(all): Readd dependency on ${WORLD} so that lisp
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e2c02c1a
KS
12004-05-10 Kim F. Storm <storm@cua.dk>
2
3 * xdisp.c (calc_line_height_property): Use string position when
4 object is a string.
5
cfe9d13e
KH
62004-05-10 Kenichi Handa <handa@m17n.org>
7
8 * fns.c (count_combining): Delete it.
9 (concat): Don't check combining bytes.
10
ceb96489
JR
112004-05-09 Jason Rumney <jasonr@gnu.org>
12
13 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
14 (globals_of_w32fns): Set it.
15
b1c661c7
JB
162004-05-09 Piet van Oostrum <piet@cs.uu.nl> (tiny change)
17
18 * data.c (Fquo): Simplify.
19
28712a21
JB
202004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
21
22 * data.c (Fquo): If any argument is float, do the computation in
23 floating point.
24
0f0af7a8
JB
252004-05-08 Juanma Barranquero <lektu@terra.es>
26
88214ef6
JB
27 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
28 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
29 Fix spelling of Emacs on docstring.
30 (Fset_process_coding_system, Fprocess_coding_system)
31 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
32 Make argument names match their use in docstring.
33 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
34 Fix docstring.
35
0f0af7a8
JB
36 * editfns.c (Finsert_buffer_substring): Make argument names match their
37 use in docstring.
38
39 * syntax.c (Fmodify_syntax_entry): Fix docstring.
40
2a316a84
ST
412004-05-07 Steven Tamm <steventamm@mac.com>
42
43 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
44 around call to ReceiveEvent to avoid certain crashes.
45
462004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
47 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
48 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
49 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
50 Save/restore the current graphics port and device handle when
51 drawing into an offscreen graphics world.
52
53 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
54 (gif_load): Likewise.
55
ab80314b
JB
562004-05-07 Juanma Barranquero <lektu@terra.es>
57
58 * window.c (Fset_window_buffer): Fix docstring.
59
70646bb5
TTN
602004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
61
62 * emacs.c (main) [VMS]: Fix var ref.
63
b03a4fdd
JB
642004-05-06 Romain Francoise <romain@orebokech.com> (tiny change)
65
66 * data.c (Fsetq_default): Fix docstring.
67
279d3293
JR
682004-05-06 Jason Rumney <jasonr@gnu.org>
69
70 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
71 to avoid name clash.
72
f72b5416
JD
732004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
74
75 * fileio.c (barf_or_query_if_file_exists): Use lstat.
76 (Frename_file): Handle renaming of symlinks across file systems.
440c7d00 77 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
f72b5416 78
6ab66799
KS
792004-05-04 Kim F. Storm <storm@cua.dk>
80
81 * xdisp.c (Qtotal): New var.
82 (syms_of_xdisp): Intern and staticpro it.
83 (calc_line_height_property): New arg total. Set it if
84 line-spacing property has format (total . VALUE).
85 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
86 Handle total line-spacing property.
87
ab2d724b
JD
882004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
89
90 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
91 "under" scroll bar when size/position changes.
92
238add5e
JR
932004-05-03 Jason Rumney <jasonr@gnu.org>
94
95 * makefile.nt: Remove.
96
1644f4e4
EZ
972004-05-02 Eli Zaretskii <eliz@gnu.org>
98
05fdbeb8
EZ
99 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT): Avoid
100 compiler warnings.
101
1644f4e4
EZ
102 * Makefile.in (region-cache.o): Depend on config.h.
103
6cbc951e
SM
1042004-05-02 Romain Francoise <romain@orebokech.com> (tiny change)
105
106 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
107 with continuation lines, too.
108
2b98b088
TTN
1092004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
110
111 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
112
d9bf7950
SM
1132004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
114
115 * xdisp.c (calc_line_height_property): YAILOM (yet another
116 int/Lisp_Object mixup).
117
affa509c
EZ
1182004-05-01 Eli Zaretskii <eliz@gnu.org>
119
120 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
121 undo bad effect of pack(4) in some versions of system headers.
122
07c07cfe
JR
1232004-05-01 Jason Rumney <jasonr@gnu.org>
124
125 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
126
e71caa4e
KS
1272004-04-30 Kim F. Storm <storm@cua.dk>
128
129 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
b2b55d03 130 (syms_of_buffer) <cursor-type>: Doc fix.
e71caa4e
KS
131
132 * dispextern.h (struct it): Remove member use_default_face.
133 Add members override_ascent, override_descent, override_boff.
134
135 * xdisp.c (init_iterator): Handle line-spacing float value.
136 Initialize override_ascent member.
137 (append_space_for_newline): Reset override_ascent.
138 Remove use_default_face.
139 (calc_line_height_property): New function to calculate value of
140 line-height and line-spacing properties. Look at overlays, too.
141 Set override_ascent, override_descent, override_boff members when
142 using another face than the current face. Float values are now
143 relative to the frame default font, by default; accept a cons
144 of ratio and face name to specify value relative to a specific face.
145 (x_produce_glyphs): Use calc_line_height_property.
146 Use override_ascent etc. when set to handle different face heights.
147 A negative line-spacing property value is interpreted as a total
148 line height, rather than inter-line spacing.
149 (note_mouse_highlight): Allocate room for 40 overlays initially.
150
0fddae66
SM
1512004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
152
153 * data.c (Fsubr_name): New fun.
154 (syms_of_data): Defsubr it.
155
712d23dc
KS
1562004-04-29 Kim F. Storm <storm@cua.dk>
157
158 * xdisp.c (null_glyph_slice): New var.
159 (append_glyph, append_composite_glyph, append_stretch_glyph):
160 Use it to initialize glyph slice.
161
033ad8c6
SM
1622004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
163
164 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
165 (on_hot_spot_p): Make sure we always return a value.
166 (Flookup_image_map): Remove unused var ix and iy.
167 (note_mode_line_or_margin_highlight): Remove unused var `image'.
168
93397360
EZ
1692004-04-27 Eli Zaretskii <eliz@gnu.org>
170
171 * msdos.c (init_environment): If one of the TMP... environment
172 variables is set to a drive letter without a trailing slash,
173 append a slash.
174
0c54865e
EZ
1752004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
176
177 * editfns.c (lisp_time_argument): Provide externally.
178
179 * fileio.c (Fset_file_times): New function.
180 (syms_of_fileio): Intern and staticpro it.
181
d3b111bd
KS
1822004-04-27 Kim F. Storm <storm@cua.dk>
183
07dc1231
KS
184 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
185 header line strings.
186
360fe9d2
KS
187 * dispextern.h (struct it): New member use_default_face.
188
d3b111bd
KS
189 * xdisp.c (Qline_height): New variable.
190 (syms_of_xdisp): Intern and staticpro it.
191 (append_space_for_newline): Partially undo 2004-04-25 change;
192 add default_face_p arg, and restore callers.
193 Clear it->use_default_face after use.
194 (x_produce_glyphs): Set default font for ascii char if
195 it->use_default_font is set. Change line-spacing property to set
196 just extra line spacing. Handle new line-height property.
197
0448588b
AS
1982004-04-26 Andreas Schwab <schwab@suse.de>
199
200 * print.c (print_object): Print non-ascii characters in bool
201 vector representation as octal escapes.
202
203 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
204 * print.c (print_object): Use it instead of BITS_PER_CHAR for
205 bool vectors.
206 * lread.c (read1): Likewise.
207 * alloc.c (Fmake_bool_vector): Likewise.
208 * data.c (Faref, Faset): Likewise.
209 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
210 (mapcar1): Likewise.
d3b111bd 211
536d6baa
ST
2122004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
213
214 * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
215
ae11577a
MB
2162004-04-26 Miles Bader <miles@gnu.org>
217
218 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
219
e198ba87
JB
2202004-04-26 Juanma Barranquero <lektu@terra.es>
221
222 * buffer.c (Fpop_to_buffer): Fix docstring.
223
f3d5f92d 2242004-04-26 Steven Tamm <steventamm@mac.com>
e198ba87 225
f3d5f92d
ST
226 * lread.c (init_lread): Don't display missing lisp directory
227 warnings with Carbon Emacs because self-contained bundled Emacs
e198ba87 228 may be built without correct installation path.
f3d5f92d 229
03e35edc
KS
2302004-04-25 Kim F. Storm <storm@cua.dk>
231
9ff3aa31
KS
232 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
233
234 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
235
03e35edc
KS
236 * xdisp.c (append_space_for_newline): Rename from append_space.
237 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
238 (x_produce_glyphs): Handle line-spacing property on newline char.
239 If value is t, adjust ascent and descent to fit current row height.
240 If value is an integer or float, set extra_line_spacing to integer
241 value, or to float value x current line height.
242
f24814e0
KH
2432004-04-23 Kenichi Handa <handa@m17n.org>
244
245 * fontset.c (Finternal_char_font): If POSITION is nil, return
246 font for displaying CH with the default face.
247
d814862a
JB
2482004-04-23 Juanma Barranquero <lektu@terra.es>
249
250 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
251
063a45c5
SM
2522004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
253
254 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
255 Don't make assumptions about the relative place of i and val.
256 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
257
ae7ab2d3
KS
2582004-04-21 Kim F. Storm <storm@cua.dk>
259
260 * dispextern.h (struct glyph_slice): New struct.
261 (struct glyph): New member slice.
262 (GLYPH_SLICE_EQUAL_P): New macro.
263 (GLYPH_EQUAL_P): Use it.
264 (struct glyph_string): New member slice.
265 (struct it_slice): New struct.
266 (struct it): New member slice, add member to stack too.
267 New member constrain_row_ascent_descent_p.
268 (image_ascent): Add prototype.
269
270 * dispnew.c (buffer_posn_from_coords): Return full image width
271 and height even for image slices (posn is relative to full image).
272 (marginal_area_string): Adjust x0,y0 for image slice.
273
274 * image.c (image_ascent): Add slice arg; calculate ascent for
275 image slice (or full image).
276
277 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
278 (syms_of_keyboard): Defsubr them.
279
280 * lisp.h (pos_visible_p): Fix prototype.
281
c62aec78 282 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
ae7ab2d3
KS
283 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
284 (x_draw_image_foreground, x_draw_image_relief)
285 (x_draw_image_foreground_1, x_draw_image_glyph_string):
286 Draw sliced images.
287
288 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
289 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
290 (x_draw_image_foreground, x_draw_image_relief)
291 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
292 Draw sliced images.
293
294 * w32term.h (image_ascent): Remove prototype.
295
296 * window.c (Fpos_visible_in_window_p): Return pixel position if
297 PARTIALLY arg is non-nil. Simplify. Doc fix.
298 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
299 to return/set vscroll in pixels.
300
301 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
302
303 * xdisp.c (Qslice): New variable.
304 (syms_of_xdisp): Intern and staticpro it.
305 (pos_visible_p): Return pixel position in new x and y args.
306 (init_iterator): Reset it->slice info.
307 (handle_display_prop): Parse (slice ...) property.
308 (push_it, pop_it): Save/restore slice info.
309 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
310 force repositioning of tall row if window is vscrolled, as that
311 would reset vscroll.
312 (append_space): Set it->constrain_row_ascent_descent_p to avoid
313 increasing row height if row is non-empty.
314 (fill_image_glyph_string): Copy slice info.
315 (take_vertical_position_into_account): Simplify.
316 (produce_image_glyph): Handle iterator slice info, setup glyph
317 slice info. Do not force minimum line height.
318 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
319 do not increase height (ascent/descent) of non-empty row when
320 adding normal character glyph; instead reduce glyph ascent/descent
321 appropriately; if row is higher than current glyph, adjust glyph
322 descent/ascent to reposition glyph within the existing row.
323 Likewise, when char is newline, only set ascent/descent if row is
324 currently empty.
325 (note_mouse_highlight): Handle hotspots with sliced image.
326
327 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
328 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
329 (x_draw_image_foreground, x_draw_image_relief)
330 (x_draw_image_foreground_1, x_draw_image_glyph_string):
331 Draw sliced images.
332
333 * xterm.h (image_ascent): Remove prototype.
334
d58f8753
SM
3352004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
336
337 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
338
4ce2719d
JPW
3392004-04-20 John Paul Wallington <jpw@gnu.org>
340
341 * fns.c (Fassoc, Feql): Fix indentation.
342
d58f8753 343 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4ce2719d 344
95f8c3b9
JPW
3452004-04-19 John Paul Wallington <jpw@gnu.org>
346
347 * fns.c (Feql): New function.
d58f8753 348 (syms_of_fns): Defsubr it.
95f8c3b9 349
b7e85537
JR
3502004-04-18 Jason Rumney <jasonr@gnu.org>
351
352 * w32select.c (Fw32_set_clipboard_data): Get sequence number
353 after closing the clipboard.
354
5a72efd4
LT
3552004-04-16 Luc Teirlinck <teirllm@auburn.edu>
356
357 * buffer.c (Fbuffer_base_buffer): Doc fix.
358
20dc8583
KS
3592004-04-17 Kim F. Storm <storm@cua.dk>
360
60962ec4
KS
361 * keymap.c (Fkey_description): Add optional PREFIX arg.
362 Combine prefix with KEYS to make up the full key sequence to describe.
363 Correlate meta_prefix_char and following (simple) key to describe
364 as meta modifier. All callers changed.
365 (describe_map): Rename arg `keys' to `prefix'. Remove local
366 `elt_prefix' var. Use Fkey_description with prefix instead of
367 elt_prefix combined with Fsingle_key_description.
368 (describe_vector): Declare static. Replace arg `elt_prefix' with
369 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
370 if !KEYMAP_P. Use Fkey_description with prefix instead of
371 Fsingle_key_description.
372
373 * keymap.h (Fkey_description): Fix prototype.
374 (describe_vector): Remove prototype.
375
409368b9
KS
376 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
377
20dc8583
KS
378 * image.c (PNG_BG_COLOR_SHIFT): Remove.
379 (png_load): Fix calculation of transparent background color on X
380 and W32 platforms.
381
75c5501b
JB
3822004-04-16 Juanma Barranquero <lektu@terra.es>
383
384 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
385 not too large before computing how much to scroll.
386
da879ae8
SM
3872004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
388
389 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
390
d01ca4a8
LT
3912004-04-14 Luc Teirlinck <teirllm@auburn.edu>
392
393 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
394 Add hyperlink to Elisp manual to the docstring.
395
572943b3
SM
3962004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
397
398 * callint.c (fix_command): Use XDCR.
399
5e30a0fb
NR
4002004-04-14 Nick Roberts <nick@nick.uklinux.net>
401
402 * window.c (Fget_lru_window): Doc fix.
403
a27ddfaf
KS
4042004-04-14 Kim F. Storm <storm@cua.dk>
405
406 * editfns.c (Fformat): Fix allocation size of precision array.
407
408 * dispnew.c (update_window): Only set changed_p if
409 scrolling_window actually did scroll.
410 (scrolling_window): Only return 1 if we actually did scroll.
411
412 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
413 height to glyph height when cursor row is not fully visible.
414 (make_cursor_line_fully_visible): Add FORCE_P arg to return
415 failure in case row is higher than window. Callers changed.
416 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
417 Try to scroll partially visible, higher-than-window cursor row.
418 (redisplay_window): Always try to scroll partially visible,
419 higher-than-window cursor row - both initially and again with
420 centering_position = 0.
421 Clear desired matrix before retrying with centering_position = 0.
422
da879ae8
SM
4232004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
424
425 * syntax.c (scan_lists): Simplify backward string scan.
426 Fix off-by-one boundary check for string and comment fences.
427
5fc16e8e
SM
4282004-04-13 Joe Buehler <jbuehler@hekimian.com>
429
430 * sheap.c, unexcw.c: New files.
431
c9aac8e6
LT
4322004-04-12 Luc Teirlinck <teirllm@auburn.edu>
433
434 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
435 base buffer has been killed. Correct the error message if the
436 base buffer does not exist.
437
1e88a355
SM
4382004-04-12 Joe Buehler <jbuehler@hekimian.com>
439
440 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
441 Cygwin itself. Add support for Xaw3d scrollbars.
442
443 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
444
445 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
446
447 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
448 before Cygwin unexec.
449
450 * Makefile.in: Link changes for Cygwin unexec() support.
451
8dbff9a0
AS
4522004-04-12 Andreas Schwab <schwab@suse.de>
453
454 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
455
54dffe35
LT
4562004-04-11 Luc Teirlinck <teirllm@auburn.edu>
457
458 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
459 IGNORE argument equals NAME. Doc fix.
460
99a72bdf
MY
4612004-04-11 Masatake YAMATO <jet@gyve.org>
462
1e88a355 463 * buffer.c (fix_start_end_in_overlays): Make overlays
99a72bdf
MY
464 empty if they are backwards.
465
40899d7b
SM
4662004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
467
468 * xfaces.c (face_color_supported_p): Fix compilation without X11.
469
f8f853de
SM
4702004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
471
472 * doc.c (Fsnarf_documentation): Ignore new file name entries.
473
c953fe1b
KS
4742004-04-06 Kim F. Storm <storm@cua.dk>
475
661e85c1
KS
476 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
477 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
478
479 * w32term.c (w32_read_socket): Set mouse_face_hidden after
480 clearing highlight.
481
482 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
483
484 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
485 clearing highlight.
486
c953fe1b
KS
487 * indent.c (vmotion): Do not reserve one column for continuation
488 marks on window frames.
489
c1994268
EZ
4902004-04-04 Eli Zaretskii <eliz@gnu.org>
491
492 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
493 from GCC.
494
9f691b0d
SM
4952004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
496
497 * .gdbinit-union: Remove.
498
499 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
500 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
501 ($nonvalbits): Remove.
502 ($valmask): Set it by calling xreload to avoid redundancy.
503
504 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
505 (gdb_emacs_intbits): Remove.
506
7a8560d7
JD
5072004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
508
9f691b0d 509 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
7a8560d7 510
3c8111fc
KH
5112004-03-30 Kenichi Handa <handa@m17n.org>
512
513 * editfns.c (Fformat): Fix initialization of the array info.
514
48a0bce4
KS
5152004-03-30 Kim F. Storm <storm@cua.dk>
516
517 * xterm.c (x_mouse_click_focus_ignore_position): New var.
518 (syms_of_xterm): DEFVAR_BOOL it.
519 (ignore_next_mouse_click_timeout): New var.
520 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
521 Use it to filter mouse clicks following focus event.
522
1cd0066c
KS
5232004-03-29 David Ponce <david@dponce.com>
524
525 * callint.c (Fcall_interactively): Fix last change.
526
adb3b353
SM
5272004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
528
529 * eval.c (Fcommandp): Simplify.
530
531 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
532 Extend to handle all kinds of functions.
533
534 * lisp.h (Finteractive_form): Declare.
535
536 * callint.c (Fcall_interactively): Use it.
537
6fc4c9c9
KS
5382004-03-26 Kim F. Storm <storm@cua.dk>
539
540 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
541 to catch errors in calc_pixel_width_or_height during redisplay.
542
abdb9b83
MY
5432004-03-26 Masatake YAMATO <jet@gyve.org>
544
b17856dd 545 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
abdb9b83 546
b17856dd 547 * lisp.h (fix_start_end_in_overlays): Likewise.
abdb9b83 548
b17856dd 549 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
abdb9b83 550
b17856dd 551 * editfns.c (Ftranspose_regions): Likewise.
abdb9b83 552
e8a84b6c
JD
5532004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
554
b17856dd 555 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
e8a84b6c 556
36a3fd05
RS
5572004-03-19 Richard M. Stallman <rms@gnu.org>
558
559 * s/sol2-6.h: Delete previous change.
560
ab24c127
KS
5612004-03-19 Kim F. Storm <storm@cua.dk>
562
563 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
564 to_charpos corresponds to newline in right fringe. Use local
565 BUFFER_POS_REACHED_P macro.
566
992126de
JD
5672004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
568
569 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
570 to compile on non-window system.
571
45dbfc84
KS
5722004-03-19 Kim F. Storm <storm@cua.dk>
573
574 * dispextern.h (calc_pixel_width_or_height): Add prototype.
575
576 * image.c (Qcenter): Move to xdisp.c.
577
578 * xdisp.c (Qcenter): Declare here.
adb3b353 579 (syms_of_xdisp): Intern and staticpro it.
45dbfc84
KS
580 (handle_single_display_prop): Allow space display property on all
581 platforms.
582 (display_mode_line): Set mode_line_p before displaying line.
583 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
584 handling. Remove complex cases for fringes and scroll-bars.
585 Add left, right, and center alignment positions. Add text (area)
586 width/height. Return width or height for image specs.
587 (produce_stretch_glyph): Improve handling of :align-to. Is now
588 relative to left of text area by default, but other base offsets
589 can be specified -- also for text lines.
590
591 * term.c (produce_glyphs): Handle IT_STRETCH.
592 (produce_stretch_glyph): New function to handle space width and
593 align-to display properties on non-window systems.
594
37264101
SM
5952004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
596
597 * fileio.c (Fread_file_name): Set completion-ignore-case for
598 case-insensitive systems.
599
73bc43da
MY
6002004-03-14 Masatake YAMATO <jet@gyve.org>
601
602 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
603 when keymap and cursor are setup.
604
9062aa89
ST
6052004-03-14 Steven Tamm <steventamm@mac.com>
606
b17856dd 607 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9062aa89 608
e4b1b5ab
KS
6092004-03-14 Kim F. Storm <storm@cua.dk>
610
611 * dispextern.h (x_find_image_file): Add prototype.
612
613 * image.c (x_find_image_file): Make extern.
614
615 * xfns.c (x_find_image_file): Remove prototype.
616
a6eeaa81 6172004-03-13 Eli Zaretskii <eliz@gnu.org>
5109b06a 618
37264101 619 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
5109b06a 620
37264101 621 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
5109b06a 622
e69cfac2
RS
6232004-03-12 Richard M. Stallman <rms@gnu.org>
624
625 * fns.c (internal_equal): New arg PROPS controls comparing
626 text properties. All callers changed.
627 (Fequal_including_properties): New function.
628 (syms_of_fns): defsubr it.
629
45034953
KS
6302004-03-12 Kim F. Storm <storm@cua.dk>
631
632 Fix image support on MAC. From YAMAMOTO Mitsuharu.
37264101 633
45034953
KS
634 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
635 (image_background, image_background_transparent): Fix prototypes.
636
37264101 637 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
45034953
KS
638
639 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
640 (x_query_font, x_find_ccl_program, x_set_window_size)
641 (x_make_frame_visible, mac_initialize, XCreatePixmap)
642 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
643 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
644
645 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
646 (x_query_font, x_find_ccl_program, x_set_window_size)
647 (x_make_frame_visible, mac_initialize, XCreatePixmap)
648 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
649 (mac_draw_line_to_pixmap): Add prototypes.
650
6512004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
652
653 * macterm.c (XTread_socket): Fix mouse click on tool bar.
654
a12d3d87
KS
6552004-03-11 Kim F. Storm <storm@cua.dk>
656
d3ab1cf1
KS
657 * dispextern.h: Move image related prototypes from xfns.c section
658 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
659 HAVE_X_WINDOWS.
37264101 660
37de9f51 661 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
37264101 662 Move gtkutil.o to new GTK_OBJ list.
a12d3d87
KS
663 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
664 (GTK_OBJ) [USE_GTK]: New declaration.
665 (obj): Add $(GTK_OBJ) to list.
666
5243c06a 6672004-03-11 Steven Tamm <steventamm@mac.com>
5109b06a 668
5243c06a
ST
669 * image.c [MAC_OSX]: Include sys/stat.h
670
671 * macfns.c (syms_of_macfns): Remove definitions of things now
672 defined in image.c
673
c0f97789
KS
6742004-03-11 Kim F. Storm <storm@cua.dk>
675
676 The following changes consolidates the identical/similar image
677 support code previously found in xfns.c, w32fns.c, and macfns.c
678 into a new file image.c.
679
680 * makefile.w32-in (OBJ1): Add image.o.
681 ($(BLD)/image.$(O)): Add dependencies.
682
683 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
684 (image.o): Add dependencies.
37264101 685
c0f97789
KS
686 * image.c: New file with consolidated image support code.
687 (COLOR_TABLE_SUPPORT): New define to control whether
688 color table support is available (X only).
689 (Bitmap_Record): Common name for x_bitmap_record,
690 w32_bitmap_record, and mac_bitmap_record.
691 (XImagePtr): Common name for pointer to XImage or equivalent.
692 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
693 to XImagePtr on X+MAC, and to HDC on W32.
694 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
695 (NO_PIXMAP): Common name for "None" or equivalent.
696 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
697 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
698 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
37264101
SM
699 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
700 Define with suitable equivalents on W32 and MAC for code sharing.
c0f97789
KS
701 (XDrawLine): Define on MAC for code sharing.
702 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
703 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
704 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
705 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
706 (x_reference_bitmap, x_create_bitmap_from_data)
707 (x_create_bitmap_from_file, x_destroy_bitmap)
708 (x_destroy_all_bitmaps, x_create_bitmap_mask)
709 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
710 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
711 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
712 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
713 (define_image_type, lookup_image_type, valid_image_p)
714 (image_error, enum image_value_type, struct image_keyword)
715 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
716 (make_image, free_image, prepare_image_for_display, image_ascent)
717 (four_corners_best, image_background, image_background_transparent)
718 (x_clear_image_1, x_clear_image, x_alloc_image_color)
719 (make_image_cache, free_image_cache, clear_image_cache)
720 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
721 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
722 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
723 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
724 (init_image_func_pointer, image_load_quartz2d)
725 (struct ct_color, init_color_table, free_color_table)
726 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
727 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
728 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
729 (x_disable_image, x_build_heuristic_mask)
730 (XBM support, XPM support, PBM support, PNG support, JPEG support)
731 (TIFF support, GIF support, Ghostscript support): Consolidate image
732 code from xfns.c, w32fns.c, and macfns.c.
733 (syms_of_image): Consolidate image related symbol setup here.
734 (init_image): Consolidate image related initializations here.
37264101 735
c0f97789
KS
736 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
737 and init_image. Remove call to init_xfns.
738
37264101
SM
739 * macterm.h (struct mac_bitmap_record): Add file member.
740 Not currently used, but simplifies code sharing.
c0f97789
KS
741
742 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
743 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
744 (x_reference_bitmap, x_create_bitmap_from_data)
745 (x_create_bitmap_from_file, x_destroy_bitmap)
746 (x_destroy_all_bitmaps, x_create_bitmap_mask)
747 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
748 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
749 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
750 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
751 (define_image_type, lookup_image_type, valid_image_p)
752 (image_error, enum image_value_type, struct image_keyword)
753 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
754 (make_image, free_image, prepare_image_for_display, image_ascent)
755 (four_corners_best, image_background, image_background_transparent)
756 (x_clear_image_1, x_clear_image, x_alloc_image_color)
757 (make_image_cache, free_image_cache, clear_image_cache)
758 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
759 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
760 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
761 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
762 (init_image_func_pointer, image_load_quartz2d)
763 (struct ct_color, init_color_table, free_color_table)
764 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
765 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
766 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
767 (x_disable_image, x_build_heuristic_mask)
768 (XBM support, XPM support, PBM support, PNG support, JPEG support)
769 (TIFF support, GIF support, Ghostscript support): Merge with image
770 code from xfns.c and macfns.c into image.c.
771 (syms_of_xfns): Move image related symbols to image.c.
772 (init_external_image_libraries, init_xfns): Remove; initialization
773 moved to init_image in image.c.
774
775 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
776 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
777 (x_reference_bitmap, x_create_bitmap_from_data)
778 (x_create_bitmap_from_file, x_destroy_bitmap)
779 (x_destroy_all_bitmaps, x_create_bitmap_mask)
780 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
781 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
782 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
783 (define_image_type, lookup_image_type, valid_image_p)
784 (image_error, enum image_value_type, struct image_keyword)
785 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
786 (make_image, free_image, prepare_image_for_display, image_ascent)
787 (four_corners_best, image_background, image_background_transparent)
788 (x_clear_image_1, x_clear_image, x_alloc_image_color)
789 (make_image_cache, free_image_cache, clear_image_cache)
790 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
791 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
792 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
793 (struct ct_color, init_color_table, free_color_table)
794 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
795 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
796 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
797 (x_disable_image, x_build_heuristic_mask)
798 (XBM support, XPM support, PBM support, PNG support, JPEG support)
799 (TIFF support, GIF support, Ghostscript support): Merge with image
800 code from xfns.c and macfns.c into image.c.
801 (syms_of_xfns): Move image related symbols to image.c.
802 (init_external_image_libraries, init_xfns): Remove; initialization
803 moved to init_image in image.c.
804
805 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
806 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
807 (x_reference_bitmap, x_create_bitmap_from_data)
808 (x_create_bitmap_from_file, x_destroy_bitmap)
809 (x_destroy_all_bitmaps, x_create_bitmap_mask)
810 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
811 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
812 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
813 (define_image_type, lookup_image_type, valid_image_p)
814 (image_error, enum image_value_type, struct image_keyword)
815 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
816 (make_image, free_image, prepare_image_for_display, image_ascent)
817 (four_corners_best, image_background, image_background_transparent)
818 (x_clear_image_1, x_clear_image, x_alloc_image_color)
819 (make_image_cache, free_image_cache, clear_image_cache)
820 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
821 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
822 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
823 (struct ct_color, init_color_table, free_color_table)
824 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
825 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
826 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
827 (x_disable_image, x_build_heuristic_mask)
828 (XBM support, XPM support, PBM support, PNG support, JPEG support)
829 (TIFF support, GIF support, Ghostscript support): Merge with
830 w32fns.c and macfns.c image code into image.c.
831 (syms_of_xfns): Move image related symbols to image.c.
832 (init_xfns): Remove; initialization moved to init_image in image.c.
833
834 * lisp.h (syms_of_image, init_image): Add protoypes.
835 (init_xfns): Remove prototype.
836
837 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
838 (x_reference_bitmap, x_create_bitmap_from_data)
839 (x_create_bitmap_from_file, x_destroy_bitmap)
840 (x_create_bitmap_mask): Move prototypes from dispextern.h.
841 (gamma_correct) [MAC_OS]: Add prototype.
842
843 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
844 (x_reference_bitmap, x_create_bitmap_from_data)
845 (x_create_bitmap_from_file, x_destroy_bitmap)
846 (x_create_bitmap_mask): Move prototypes to dispextern.h.
847
6eced09c
KH
8482004-03-09 Kenichi Handa <handa@etlken2>
849
850 * coding.c (decode_coding_emacs_mule): Handle insufficent source
851 correctly.
852
9a7e95f3
RS
8532004-03-04 Richard M. Stallman <rms@gnu.org>
854
04a6e76b
RS
855 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
856
9a7e95f3
RS
857 * window.c (Fdisplay_buffer): Doc fix.
858
859 * buffer.c (Fpop_to_buffer): Doc fix.
860
6c2488df
KS
8612004-03-03 Kim F. Storm <storm@cua.dk>
862
863 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
864
d8d95bc7
SM
8652004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
866
867 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
868
357589bf
RS
8692004-03-02 Richard M. Stallman <rms@gnu.org>
870
871 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
872
409949b5
KH
8732004-03-02 Kenichi Handa <handa@m17n.org>
874
875 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
876
d24bc50f
KS
8772004-03-02 Kim F. Storm <storm@cua.dk>
878
879 * window.h (struct window): New member overlay_arrow_bitmap.
880
881 * window.c (make_window): Initialize overlay_arrow_bitmap.
882
883 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
884 implement and integrate multiple overlay arrows with redisplay.
885 (syms_of_xdisp): DEFVAR_LISP and initialize it.
886 (last_arrow_position, last_arrow_string): Replace by properties.
887 (Qlast_arrow_position, Qlast_arrow_string)
888 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
889 (syms_of_xdisp): Intern and staticpro them.
890 (overlay_arrow_string_or_property, update_overlay_arrows)
891 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
892 (overlay_arrow_at_row): New functions for multiple overlay arrows.
893 (redisplay_internal): Use them instead of directly accessing
894 Voverlay_arrow_position etc. for multiple overlay arrows.
895 (mark_window_display_accurate): Use update_overlay_arrows.
896 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
897 (try_window_id): Use overlay_arrows_changed_p.
898 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
899 (display_line): Use overlay_arrow_at_row to check multiple
900 overlay arrows, and get relevant overlay-arrow-string and
d8d95bc7 901 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
d24bc50f
KS
902 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
903 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
904
905 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
906 (update_window_fringes): Remove unused code.
907
c1464661
JR
9082004-03-01 Jason Rumney <jasonr@gnu.org>
909
910 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
911
a64387ee
JB
9122004-03-01 Juanma Barranquero <lektu@terra.es>
913
914 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
915
916 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
917
334faa08
JD
9182004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
919
920 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
921 how many colors can be displayed.
922
bb62616f
KH
9232004-03-01 Kenichi Handa <handa@m17n.org>
924
925 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
926 correctly.
927
0fd16104
KS
9282004-02-28 Kim F. Storm <storm@cua.dk>
929
930 * dispnew.c (update_window): Update header line also if there are
931 no other changes in window (move code after set_cursor label).
932
933 * lisp.h (mark_window_display_accurate): Remove prototype.
934
935 * window.c (window_loop, Fforce_window_update): Force mode line
936 updates by setting prevent_redisplay_optimizations_p and
937 update_mode_lines.
938
b59dd9c8
JD
9392004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
940
d8d95bc7 941 * xfns.c (x_window): Fix indentation.
b59dd9c8
JD
942
943 * xterm.c (x_calc_absolute_position): Call x_real_positions
944 to get WM window sizes and use those to calculate position.
d8d95bc7 945 (x_set_offset): Remove code commented out.
b59dd9c8 946
a874691c
MB
9472004-02-28 Miles Bader <miles@gnu.org>
948
949 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
950
3e0c6482
KS
9512004-02-28 Kim F. Storm <storm@cua.dk>
952
953 * keyboard.c (kbd_buffer_store_event_hold): New function to store
954 an event into kbd fifo, but with special handling of quit event;
955 a quit event is saved for later, and further events are discarded
956 until the saved quit event has been processed.
957 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
958 (gen_help_event): Store help event in kbd fifo.
959 (NREAD_INPUT_EVENTS): Remove.
960 (read_avail_input): Adapt to new read_socket_hook interface.
961 Remove allocation and initialization of local input_event buffer,
962 as read_socket_hook stores events directly in fifo. Allocate and
963 initialize local hold_quit event to handle postponed quit event
964 (and store it if set by kbd_buffer_store_event_hold).
965
966 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
967 (gen_help_event): Fix prototype.
968
a64387ee 969 * macterm.c (XTread_socket): Remove bufp_r and
3e0c6482
KS
970 numcharsp args. Add hold_quit arg.
971 Rework to use just one, local, inev input_event. Store inev
972 directly in fifo using kbd_buffer_store_event_hold.
973
974 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
975 (read_input_waiting): Adapt to new read_socket_hook interface.
976 Remove allocation and initialization of local input_event buffer,
977 as read_socket_hook stores events directly in fifo. Allocate and
978 initialize local hold_quit event to handle postponed quit event
979 (and store it if set by kbd_buffer_store_event_hold).
980
a64387ee 981 * term.c (read_socket_hook): Fix arg list.
3e0c6482
KS
982
983 * termhooks.h (read_socket_hook): Fix prototype.
984
985 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
986 numcharsp args. Add hold_quit arg.
987 Rework to use just one, local, inev input_event. Store inev
988 directly in fifo using kbd_buffer_store_event_hold.
989
990 * w32inevt.h (w32_console_mouse_position): Fix prototype.
991
992 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
993 Add hold_quit arg. Rework to use just one, local, inev
994 input_event. Store inev directly in fifo using
995 kbd_buffer_store_event_hold. Update count in one place.
996 Postpone call to gen_help_event until inev is stored; use new
997 local do_help for this.
998 Remove local emacs_event in handing of ButtonPress event; just use
999 inev instead (so no reason to copy it later).
1000
1001 * xsmfns.c (x_session_check_input): Remove numchars arg.
1002
d8d95bc7
SM
1003 * xterm.c (x_focus_changed, x_detect_focus_change):
1004 Remove numchars arg. Always store event into bufp arg.
1005 Return nothing. Callers changed accordingly.
3e0c6482
KS
1006 (glyph_rect): Simplify.
1007 (STORE_KEYSYM_FOR_DEBUG): New macro.
1008 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
1009 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
1010 (current_hold_quit) [USE_GTK]: Add.
1011 (event_handler_gdk): Adapt to new handle_one_xevent.
1012 (handle_one_xevent): Remove bufp_r and numcharsp args.
1013 Add hold_quit arg. Rework to use just one, local, inev
1014 input_event. Store inev directly in fifo using
1015 kbd_buffer_store_event_hold. Update count in one place.
1016 Postpone call to gen_help_event until inev is stored; use new
1017 local do_help for this.
1018 Simplify handling of keysyms (consolidate common code). Fix bug
1019 where count was updated with nchars instead of nbytes.
1020 Remove local emacs_event in handing of ButtonPress event; just use
1021 inev instead (so no reason to copy it later).
1022 Remove `out' label. Rename label `ret' to `done'; add various
1023 `goto done' to clarify code flow in deeply nested blocks.
1024 (x_dispatch_event): Simplify as handle_one_xevent now calls
1025 kbd_buffer_store_event itself.
1026 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
1027 arg. Call handle_one_xevent with new arglist. Store event from
1028 x_session_check_input in fifo.
1029 [USE_GTK]: Setup current_hold_quit.
1030 Decrement handling_signal before unblocking input.
1031 (x_initialize) [USE_GTK]: Initialize current_count.
1032
1033 * xterm.h (x_session_check_input): Fix prototype.
1034
e3564461 10352004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a64387ee 1036
d8d95bc7 1037 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
a64387ee 1038
e3564461
ST
1039 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
1040 macgui.h).
a64387ee 1041
e3564461 1042 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
a64387ee 1043
e3564461
ST
1044 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
1045 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
1046 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
1047 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
1048 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
1049 (Bitmap): Remove typedef.
1050 (Pixmap): Change int to GWorldPtr.
1051
d8d95bc7 1052 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
a64387ee 1053
d8d95bc7
SM
1054 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
1055 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
1056 New #define to extract 16-bit depth color components from unsigned
e3564461
ST
1057 long representation.
1058 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
1059 colors used for masks.
1060 (struct mac_display_info): Add color_p. Remove n_cbits.
a64387ee 1061
e3564461
ST
1062 * macfns.c: Include sys/types.h and sys/stat.h.
1063 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
1064 Include QuickTime/QuickTime.h.
1065 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
1066 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
1067 functions defined in macterm.c.
1068 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
1069 (ZPixmap): New #define for compatibility with xfns.c.
1070 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
1071 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
d8d95bc7
SM
1072 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
1073 New functions.
e3564461 1074 (four_corners_best, x_create_x_image_and_pixmap)
d8d95bc7
SM
1075 (x_destroy_x_image, unwind_create_frame, x_disable_image)
1076 (x_edge_detection, init_color_table, colors_in_color_table)
e3564461
ST
1077 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
1078 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
1079 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
1080 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
1081 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
1082 long mixup.
1083 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
1084 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
1085 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
1086 (x_set_cursor_type, Fxw_color_values, valid_image_p)
1087 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
1088 (x_alloc_image_color, clear_image_cache, lookup_image)
1089 (x_find_image_file, xbm_read_bitmap_file_data)
1090 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
1091 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
1092 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
1093 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
1094 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
d8d95bc7 1095 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
e3564461
ST
1096 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
1097 #if 0.
1098 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
1099 #if 0. Free white_relief.gc and black_relief.gc.
d8d95bc7
SM
1100 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
1101 New functions (from xfns.c).
e3564461
ST
1102 (Fx_create_frame): Record unwind_create_frame.
1103 (Fxw_display_color_p): Use dpyinfo->color_p.
1104 (Fx_display_grayscale_p, Fx_display_planes): Don't use
1105 dpyinfo->n_cbits.
1106 (Fx_display_color_cells): Use dpyinfo->n_planes;
1107 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
1108 (Qheuristic, cross_disabled_images, emboss_matrix)
1109 (laplace_matrix): New variables (from xfns.c).
1110 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
1111 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
1112 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
d8d95bc7
SM
1113 (image_background_transparent): New function (from xfns.c).
1114 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1115 (image_load_quicktime): Add declaration.
1116 [MAC_OSX] (image_load_quartz2d): Likewise.
1117 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
1118 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
d8d95bc7 1119 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
e3564461
ST
1120 (xbm_load_image_from_file, x_laplace_read_row)
1121 (x_laplace_write_row, pbm_read_file): Remove functions.
1122 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
1123 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
1124 (colors_in_color_table): Sync with xfns.c (although not used).
1125 (lookup_rgb_color): Don't lookup color table. Just do gamma
1126 correction.
1127 (COLOR_INTENSITY): New #define (from xfns.c).
d8d95bc7
SM
1128 (x_disable_image): New function (from xfns.c).
1129 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
1130 (x_build_heuristic_mask): Sync with xfns.c.
1131 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1132 (HAVE_PBM): Remove #ifdef.
1133 (pbm_load): Sync with xfns.c. Set img->width and img->height
1134 before IMAGE_BACKGROUND.
d8d95bc7 1135 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
e3564461
ST
1136 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
1137 Don't enclose with #if HAVE_PNG.
1138 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
d8d95bc7
SM
1139 symbol _CGImageCreateWithPNGDataProvider is defined.
1140 Otherwise use image_load_quicktime.
e3564461 1141 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
d8d95bc7
SM
1142 [HAVE_PNG] (png_load): Sync with xfns.c.
1143 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
e3564461
ST
1144 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
1145 HAVE_JPEG.
1146 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
1147 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
1148 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
1149 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
1150 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
1151 (tiff_image_p, tiff_load): Don't enclose declarations with #if
1152 HAVE_TIFF.
1153 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
1154 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
1155 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
d8d95bc7
SM
1156 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
1157 New functions (from xfns.c).
e3564461 1158 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
d8d95bc7 1159 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
e3564461
ST
1160 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
1161 Don't enclose with #if HAVE_GIF.
1162 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
1163 animated gif. Otherwise use image_load_quicktime.
1164 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
1165 gif_DrawText to avoid conflict with QuickdrawText.h.
1166 [HAVE_GIF] (gif_load): Sync with xfns.c.
1167 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
1168 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
1169 Ghostscript is not supported yet).
1170 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
1171 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
1172 cross_disabled_images (from xfns.c). Remove #if 0 for supported
1173 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
1174 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
1175 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
d8d95bc7
SM
1176 HAVE_PNG. Call EnterMovies to support animated gifs.
1177 Call init_image_func_pointer to bind a symbol
e3564461 1178 _CGImageCreateWithPNGDataProvider if it is defined.
a64387ee 1179
d8d95bc7 1180 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
e3564461
ST
1181 (x_draw_bar_cursor): Sync declaration with xterm.c.
1182 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
1183 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
1184 graphics).
1185 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
1186 (mac_draw_line_to_pixmap, XCreatePixmap)
1187 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
d8d95bc7
SM
1188 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
1189 New functions.
1190 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
1191 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
1192 Cast bits to char *.
e3564461
ST
1193 (reflect_byte): New function (from w32fns.c).
1194 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
1195 due to byte alignment.
d8d95bc7
SM
1196 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
1197 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
e3564461
ST
1198 (XSetForeground): Remove static (now used in macfns.c).
1199 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
1200 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
1201 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
1202 (x_draw_glyph_string_box, x_draw_image_foreground)
1203 (x_draw_image_foreground_1, x_draw_image_glyph_string)
1204 (x_draw_stretch_glyph_string, x_draw_glyph_string)
1205 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
1206 Sync with xterm.c.
1207 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
1208 than the xterm.c version when a strictly horizontal or vertical
1209 line is drawn.
1210 (XTset_terminal_window): Add static.
1211 (x_make_frame_visible): Add UNBLOCK_INPUT.
1212 (x_free_frame_resources): New funcion (from xterm.c).
1213 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
1214 occurs in tool bar area.
d8d95bc7
SM
1215 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
1216 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
e3564461
ST
1217 Initialize image cache.
1218 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
1219 Enclose unused functions with #if 0.
1220 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
1221 (decode_mac_font_name): New function to apply code conversions
d8d95bc7 1222 from a mac font name to an XLFD font name according to its script code.
e3564461 1223 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
d8d95bc7 1224 font name to a mac font name according to REGISTRY and ENCODING fields.
e3564461
ST
1225 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
1226 whose name starts with `.'.
1227 (init_font_name_table): Use decode_mac_font_name. Add both
1228 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
1229 of a font is smJapanese.
1230 (mac_do_list_fonts): New function to list fonts that match a given
1231 pattern.
1232 (x_list_fonts, XLoadQueryFont): Use it.
1233 (XLoadQueryFont): Set rbearing field for each variable width
1234 character to avoid needless redraw.
1235 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
1236
446f5f3d
KS
12372004-02-26 Kim F. Storm <storm@cua.dk>
1238
af617d0f
KS
1239 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
1240 as read_socket_hook handler on X aborts if buffer is too small
1241 and W32 handler doesn't always check buffer limit.
1242
446f5f3d
KS
1243 * xdisp.c (handle_single_display_prop): Handle left-fringe and
1244 right-fringe similar to a display margin image. Specifically,
1245 the characters having the fringe prop are no longer shown, and
1246 we use IT_IMAGE/next_element_from_image with image_id = -1 to
1247 do this. Set fringe bitmap face_id in it->face_id.
1248 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
1249 still realize it->face (i.e. the fringe bitmap face).
1250
7d8a0b55
MB
12512004-02-25 Miles Bader <miles@gnu.org>
1252
1253 * xdisp.c (check_it): Check string/string_pos consistency.
1254 (init_iterator): Initialize string-related fields properly.
1255
12562004-02-11 Miles Bader <miles@gnu.org>
1257
1258 * xdisp.c (produce_image_glyph): Force negative descents to zero.
1259
12602004-02-10 Miles Bader <miles@gnu.org>
1261
1262 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
1263 BLOCK_INPUT can be nested, so it doesn't make much sense.
1264
a64387ee 12652004-02-24 Michael Mauger <mmaug@yahoo.com>
ce35edd1
JR
1266
1267 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
1268 (xbm_read_bitmap_data): Use unsigned char for image data.
1269
92f5fba2
LT
12702004-02-23 Luc Teirlinck <teirllm@auburn.edu>
1271
1272 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
1273
8565fb3d
JR
12742004-02-22 Jason Rumney <jasonr@gnu.org>
1275
1276 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
1277 correctly over other bitmaps.
1278
a6eeaa81 12792004-02-21 Eli Zaretskii <eliz@gnu.org>
f8125c39
EZ
1280
1281 * emacs.c (USAGE1): Split into two halves.
1282 (USAGE2): Second half of the old USAGE1.
d8d95bc7
SM
1283 (USAGE3): Rename from USAGE2.
1284 (USAGE4): Rename from USAGE3.
f8125c39 1285
4effffca
EZ
12862004-02-21 Juri Linkov <juri@jurta.org>
1287
1288 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
1289 Fix --multibyte. Move --help, --version to USAGE2. Add alias
1290 --file. Fix -f, -l. Sort options. Untabify.
1291 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
1292
923c1e6f
LT
12932004-02-19 Luc Teirlinck <teirllm@auburn.edu>
1294
1295 * category.c (Fdefine_category, Fcategory_docstring)
1296 (Fget_unused_category, Fset_category_table)
1297 (Fcategory_set_mnemonics): Doc fixes.
1298
b0e225fd
KS
12992004-02-20 Kim F. Storm <storm@cua.dk>
1300
1301 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
1302 The following changes are relative to the 2004-01-21 revision.
1303 (NREAD_INPUT_EVENTS): Define as max number of input events to read
1304 in one call to read_socket_hook. Value is 8.
1305 (read_avail_input): Separate and rework handling of read_socket_hook
1306 and non-read_socket_hook cases. Use smaller input_event buffer
d8d95bc7
SM
1307 in read_socket_hook case, and repeat if full buffer is read.
1308 Use new local variable 'discard' to skip input after C-g.
b0e225fd
KS
1309 In non-read_socket_hook case, just use a single input_event, and
1310 call kbd_buffer_store_event on the fly for each character.
1311
b15aa9f9
SM
13122004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
1313
1314 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
1315 Remove unused `gu' alternative.
1316
83c9aa95
AS
13172004-02-19 Andreas Schwab <schwab@suse.de>
1318
1319 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
1320 warning.
1321
cc808173
KS
13222004-02-18 Kim F. Storm <storm@cua.dk>
1323
1324 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
1325 Fix last change.
1326
ab90a54d
KS
13272004-02-17 Kim F. Storm <storm@cua.dk>
1328
b26f249f
KS
1329 * xdisp.c (fast_find_position): Fix return value of new version;
1330 it was inverted compared to the 21.1 version.
1331 (get_window_cursor_type): Don't look at glyph if NULL.
1332 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
0bf7d005 1333
ab90a54d
KS
1334 * keyboard.c: Rework previous change; it didn't consider that the
1335 buf array was allocated on the stack.
1336 (prev_read): Remove variable.
1337 (read_avail_input_buf): New static event buffer array.
b9568dfc 1338 (in_read_avail_input): New static variable to handle re-entrancy.
ab90a54d 1339 (read_avail_input): Change buf to pinter to read_avail_input_buf.
b9568dfc
KS
1340 Use in_read_avail_input to handle re-entrance; when re-entered,
1341 fully initialize and use tmp_buf array instead of read_avail_input_buf.
1342 Do not initialize read_avail_input_buf in full here; instead assume it
ab90a54d
KS
1343 is always cleared on entry. To ensure that, we clear (just) the
1344 entries that were used before we return.
1345 (init_keyboard): Initialize read_avail_input_buf here.
1346
4e039f3f
EZ
13472004-02-16 Jesper Harder <harder@ifa.au.dk> (tiny change)
1348
1349 * cmds.c (Fend_of_line): Doc fix.
1350
7b5368c1
EZ
13512004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
1352
1353 * keyboard.c (prev_read): New static variable.
1354 (read_avail_input): Use it to zero out only those slots in buf[]
1355 that were used last time we were called.
1356
a6eeaa81 13572004-02-16 Eli Zaretskii <eliz@gnu.org>
ca4bc494
EZ
1358
1359 * Makefile.in (obj): Move fringe.o from here...
1360 (XOBJ, MAC_OBJ): ...to here.
1361
159c348e
SE
13622004-02-16 Stephen Eglen <stephen@gnu.org>
1363
1364 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
1365
d2f14999
SM
13662004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
1367
b15aa9f9
SM
1368 * data.c (Fbyteorder):
1369 * fringe.c (Fdefine_fringe_bitmap):
1370 * xdisp.c (handle_single_display_prop):
d2f14999
SM
1371 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
1372
8d50508a
JR
13732004-02-16 Jason Rumney <jasonr@gnu.org>
1374
1375 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
1376
dd4497dc
ST
13772004-02-15 Steven Tamm <steventamm@mac.com>
1378
1379 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
1380 controlling emulation of a three button mouse with option and
1381 command keys.
1382 (Qreverse, mac_get_enumlated_btn): Handle the emulation
b15aa9f9 1383 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
dd4497dc 1384
c9159cb3
KS
13852004-02-15 Kim F. Storm <storm@cua.dk>
1386
2cc52658
KS
1387 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
1388
c9159cb3
KS
1389 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
1390 Perform byte-swapping.
1391
12fde2dc
KS
13922004-02-14 Kim F. Storm <storm@cua.dk>
1393
1394 * dispextern.h (struct draw_fringe_bitmap_params): Change member
1395 bits from char to short to facilitate wider bitmaps.
1396 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
1397 member.
1398
1399 * fringe.c (struct fringe_bitmap): Change member bits from char to
1400 short to facilitate 16 bits wide bitmaps. Modify all standard
1401 bitmaps accordingly.
1402 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
1403 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
1404 (draw_fringe_bitmap): Ditto.
1405 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
1406 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
1407 handle up to 16 bits wide bitmaps.
1408 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
f21a7192 1409 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
12fde2dc
KS
1410
1411 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
1412 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
1413 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
1414
1415 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
1416 so it is no longer necessary to expand them here.
1417
1418 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
1419
9d7271e8
KS
14202004-02-12 Kim F. Storm <storm@cua.dk>
1421
1422 * window.c (Fwindow_fringes): Doc fix.
1423
706c1e4f
JD
14242004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1425
1426 * xselect.c (x_get_foreign_selection): Add new optional parameter
1427 time_stamp.
1428 (Fx_get_selection_internal): Ditto, pass time_stamp to
1429 x_get_foreign_selection.
1430
1431 * data.c (Fbyteorder): New function.
1432
c2d12b5d
JD
14332004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1434
1435 * atimer.c: Move include stdio.h to same place as in other files.
1436
1437 * region-cache.c: Ditto.
1438
1439 * sysdep.c: Ditto.
1440
1441 * xfaces.c: Ditto.
1442
4c1947b9
SS
14432004-02-09 Sam Steingold <sds@gnu.org>
1444
1445 * w32term.c (w32_draw_fringe_bitmap): Fixed a typo in the last patch.
1446
82722af3
KS
14472004-02-09 Kim F. Storm <storm@cua.dk>
1448
1449 * fringe.c: New file. Move original fringe related declarations
1450 and code from dispextern.h and xdisp.c here.
1451 Rework code to support user defined fringe bitmaps, redefining
1452 standard bitmaps, ability to overlay user defined bitmap with
1453 overlay arrow bitmap, and add faces to bitmaps.
1454 (Voverflow_newline_into_fringe): Declare here.
1455 (enum fringe_bitmap_align): New enum.
1456 (..._bits): All bitmaps are now defined without bitswapping; that
1457 is now done in init_fringe_once (if necessary).
1458 (standard_bitmaps): New array with specifications for the
1459 standard fringe bitmaps.
1460 (fringe_faces): New array.
1461 (valid_fringe_bitmap_id_p): New function.
1462 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
1463 (draw_fringe_bitmap): New function which draws fringe bitmap,
1464 possibly overlaying bitmap with cursor in right fringe or the
1465 overlay arrow in the left fringe.
1466 (update_window_fringes): Do not handle overlay arrow here.
1467 Compare and copy fringe bitmap faces.
1468 (init_fringe_bitmap): New function.
1469 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
1470 define and destroy user defined fringe bitmaps.
1471 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
1472 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
1473 (syms_of_fringe): New function. Defsubr new DEFUNs.
1474 DEFVAR_LISP Voverflow_newline_into_fringe.
1475 (init_fringe_once, init_fringe): New functions.
1476 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
4c1947b9 1477
82722af3
KS
1478 * Makefile.in (obj): Add fringe.o.
1479 (fringe.o): New dependencies.
1480
1481 * dispextern.h (FRINGE_ID_BITS): New definition for number of
1482 bits allocated to hold a fringe number. Increase number of bits
1483 from 4 to 8 to allow user defined fringe bitmaps.
1484 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
1485 left_user_fringe_face_id, right_user_fringe_bitmap,
1486 right_user_fringe_face_id.
1487 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
1488 Move to new file fringe.c.
1489 (MAX_FRINGE_BITMAPS): Define here.
1490 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
1491 and overlay_p. Change member which to int.
1492 (struct redisplay_interface): New members define_fringe_bitmap
1493 and destroy_fringe_bitmap.
1494 (valid_fringe_bitmap_id_p): Add prototype.
1495 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
1496
1497 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
1498 arrows.
1499 (update_frame): Do flush_display if force_flush_display_p to
1500 ensure display (specifically fringes) are updated in a timely
1501 manner when resizing the frame by dragging the mouse.
1502 (update_window_line): Update row if overlay arrow changed.
1503 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
1504 or overlay arrow changed.
1505
1506 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
1507 syms_of_fringe, and init_fringe.
1508
1509 * frame.h (struct frame): New member force_flush_display_p.
1510
1511 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
1512 Add prototypes.
1513
a3993cc8 1514 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
a64387ee 1515 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
a3993cc8
KS
1516 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
1517 Use cursor color for displaying cursor in fringe.
82722af3
KS
1518 (x_redisplay_interface): Add null handlers for
1519 define_fringe_bitmap and destroy_fringe_bitmap functions.
1520
1521 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
1522 xterm.c to handle overlayed fringe bitmaps and to use cursor color
1523 for displaying cursor in fringe.
1524 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
1525 specific functions to define and destroy fringe bitmaps in fringe_bmp.
1526 (w32_redisplay_interface): Add them to redisplay_interface.
1527 (w32_term_init): Call w32_init_fringe instead of explicitly
1528 defining fringe bitmaps in fringe_bmp array.
1529 (x_delete_display): Call w32_reset_fringes instead of explicitly
1530 destroying fringe bitmaps in fringe_bmp array.
1531
1532 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
1533 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
1534 (continued_bits, continuation_bits, ov_bits, first_line_bits)
1535 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
1536 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
1537 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
1538 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
1539 Move fringe handling vars and code to new file fringe.c.
1540 (handle_display_prop): Handle left-fringe and right-fringe
1541 display properties; store user fringe bitmaps in iterator.
1542 (move_it_in_display_line_to): Handle cursor in fringe at eob.
1543 (clear_garbaged_frames): Set force_flush_display_p if resized.
1544 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
1545 (display_line): Handle cursor in fringe at eob.
1546 (display_line): Set row user fringe bitmaps from iterator.
1547
1548 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
1549 Use cursor color for displaying cursor in fringe.
1550 (x_redisplay_interface): Add null handlers for
1551 define_fringe_bitmap and destroy_fringe_bitmap functions.
1552
030400eb
JD
15532004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1554
1555 * macfns.c (Fx_change_window_property): Make doc string and
1556 parameters same as for X version.
1557
1558 * w32fns.c (Fx_change_window_property): Ditto.
1559
3af55251
KS
15602004-02-07 Kim F. Storm <storm@cua.dk>
1561
ec110e9e
KS
1562 * xdisp.c (hscroll_window_tree): Position cursor near to right
1563 margin in hscrolled window when jumping to end of line (rather
1564 than centering cursor).
1565
3af55251
KS
1566 * process.c (wait_reading_process_input): Don't do adaptive read
1567 buffering if waiting for a specific process.
1568
b0c138ce
LT
15692004-02-05 Luc Teirlinck <teirllm@auburn.edu>
1570
1571 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
1572 (Fread_minibuffer, Feval_minibuffer)
1573 (Fread_string, Fread_no_blanks_input)
1574 (Fcompleting_read): Doc fixes.
1575 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
1576 completion-regexp-list. Define Qcase_fold_search and staticpro it.
1577 (read_minibuf): Fix initial comment.
1578 (Ftry_completion, Fall_completions, Ftest_completion): Bind
1579 case-fold-serach to the value of completion-ignore-case when
1580 checking completion-regexp-list.
1581 (Fdisplay_completion_list): Make it handle arguments that are
1582 symbols. Doc fix.
1583
9676f5ad 15842004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
64d1e373 1585
9676f5ad 1586 * xterm.h: Add declaration of free_frame_menubar.
64d1e373 1587
9676f5ad
JD
1588 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
1589 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
b0c138ce 1590 (Fx_change_window_property): Add declaration of parameters type and
9676f5ad 1591 format. Remove unused variable cons.
5b698285
JD
1592
1593 * xselect.c: Include stdio,h.
1594
fc1d15f6
KH
15952004-02-05 Kenichi Handa <handa@m17n.org>
1596
ebaff4af
KH
1597 * fns.c (Fset_char_table_range): Fix previous change.
1598
fc1d15f6
KH
1599 * buffer.c (Fset_buffer_multibyte): Fix docstring.
1600
9676f5ad
JD
16012004-02-04 Luc Teirlinck <teirllm@auburn.edu>
1602
1603 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
1604
da75761f
SM
16052004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
1606
1607 * keymap.c (Vmouse_events): Rename from Vmenu_events.
1608 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
1609
13c5d120
KH
16102004-02-04 Kenichi Handa <handa@m17n.org>
1611
1612 * fns.c (Fset_char_table_range): Handle charsets ascii,
1613 eight-bit-control, and eight-bit-graphic correctly.
1614
2883d842
JR
16152004-02-03 Jason Rumney <jasonr@gnu.org>
1616
1617 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
1618
1619 * w32fns.c (x_to_w32_font): Likewise.
1620
69eff41f
JD
16212004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1622
1623 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
1624 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
1625
1626 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
1627 ClientMessages.
1628
1629 * xselect.c: Include termhooks.h and X11/Xproto.h
1630 (x_check_property_data, x_fill_property_data)
1631 (x_property_data_to_lisp, mouse_position_for_drop)
1632 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
da75761f 1633 (Fx_send_client_event): Move here from xfns.c.
69eff41f
JD
1634 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
1635
da75761f 1636 * xfns.c (x-send-client-message): Move to xselect.c
69eff41f
JD
1637 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
1638 OUTER_P.
1639 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
1640 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
1641 if vector_ret_p is true.
1642 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
69eff41f 1643
a6eeaa81 16442004-02-02 Eli Zaretskii <eliz@gnu.org>
dcdbbb5d
EZ
1645
1646 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
1647 basename of FILE relative to it, not FILE itself.
1648
09721b31
KH
16492004-02-02 Kenichi Handa <handa@m17n.org>
1650
1651 * coding.c (coding_restore_composition): Check invalid
1652 composition data more rigidly.
1653
eb996101
LT
16542004-01-30 Luc Teirlinck <teirllm@auburn.edu>
1655
1656 * fileio.c (Fread_file_name_internal): Correctly handle the case
1657 where insert-default-directory is nil.
1658 (Fread_file_name): Always return an empty string if the user exits
1659 with an empty minibuffer. Adapt the docstring accordingly.
1660 (syms_of_fileio): Adapt the docstring of insert-default-directory
1661 to the change in Fread_file_name.
1662
a6eeaa81 16632004-01-29 Eli Zaretskii <eliz@gnu.org>
a0367d42
EZ
1664
1665 * alloca.c [!alloca]: Fix the prototype for xfree.
1666
13f52ed8
KH
16672004-01-29 Kenichi Handa <handa@m17n.org>
1668
1669 * fns.c (string_char_to_byte): Optimize for ASCII only string.
1670 (string_byte_to_char): Likewise.
1671
d57625a0
JR
16722004-01-28 Peter Runestig <peter@runestig.com>
1673
1674 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
1675
a64387ee 16762004-01-27 Steven Tamm <steventamm@mac.com>
911c78b4
ST
1677
1678 * unexmacosx.c (unexec_copy): Do not copy more than was
1679 requested to prevent overwriting during unexec.
1680
eb37b8fd
JD
16812004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1682
ce38070a
JD
1683 * process.c (sigchld_handler): Add comment about not calling malloc.
1684
eb37b8fd
JD
1685 * process.h: Add extern to synch_process_termsig.
1686
a64387ee 16872004-01-27 Steven Tamm <steventamm@mac.com>
21a3e657 1688
da75761f
SM
1689 * macterm.c (make_mac_frame, make_mac_terminal_frame):
1690 Move setting of scroll bars from make_mac_frame to
1691 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
21a3e657 1692
d62a265d
RS
16932004-01-26 Richard M. Stallman <rms@gnu.org>
1694
1695 * search.c (Freplace_match): Handle nonexistent
1696 back-references properly.
1697
16982004-01-03 Richard M. Stallman <rms@gnu.org>
1699
1700 * window.c (decode_any_window): New function.
1701 (Fwindow_height, Fwindow_width, Fwindow_edges)
1702 (Fwindow_pixel_edges, Fwindow_inside_edges)
1703 (Fwindow_inside_pixel_edges): Use decode_any_window.
1704
ff236419
JD
17052004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1706
1707 * process.h: synch_process_termsig new variable.
1708
1709 * callproc.c: Define synch_process_termsig.
1710 (Fcall_process): Initiate synch_process_termsig to zero and
1711 check if non-zero and get signal name after subprocess has ended.
1712
1713 * process.c (sigchld_handler): Set synch_process_termsig
1714 if terminated by a signal. synch_process_death setting removed.
1715
1716 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
1717
41b867ea
AS
17182004-01-26 Andreas Schwab <schwab@suse.de>
1719
1720 * print.c (print_preprocess): Declare size as EMACS_INT to not
1721 lose bits.
1722 (print_object): Likewise.
1723 * alloc.c (Fpurecopy): Likewise.
1724
a08084ff
LT
17252004-01-25 Luc Teirlinck <teirllm@auburn.edu>
1726
1727 * window.c (Fwindow_minibuffer_p): Doc fix.
1728
b19ac475
JY
17292004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
1730
1731 * editfns.c (Fformat): Make both passes accept the same set of flags.
1732
fe905025
KH
17332004-01-23 Kenichi Handa <handa@m17n.org>
1734
1735 * fns.c (Fmd5): If OBJECT is a buffer different from the current
1736 one, set buffer to OBJECT temporarily.
1737
438fc6c0
SM
17382004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1739
455316e2
SM
1740 * keyboard.c (kbd_buffer_gcpro): Remove.
1741 (kbd_buffer_store_event, clear_event, Fdiscard_input)
1742 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
1743 Don't initialize and/or maintain the variable any more. It was made
1744 redundant by my commit of 2003-06-15.
1745
438fc6c0
SM
1746 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
1747
5335a4ee
JD
17482004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1749
1750 * lisp.h: Add undef DECL_ALIGN.
1751
dcdaeebc
SM
17522004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
1753
1754 * process.c (wait_reading_process_input) [SYNC_INPUT]:
1755 Check interrupt_input_pending explicitly.
1756
1757 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
1758
1759 * keyboard.c (handle_async_input): New fun,
1760 extracted from input_available_signal.
1761 (input_available_signal, reinvoke_input_signal): Use it.
1762
9076a823
SM
17632004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
1764
d7107586
SM
1765 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
1766
1767 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
1768 manipulation macros for when tags are in the lower bits.
1769 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
1770 (DECL_ALIGN): New macro.
1771 (DEFUN): Use it.
1772
1773 * lisp.h [ENABLE_CHECKING]: Don't force union type.
1774
1775 * s/darwin.h (__attribute__): Remove outdated workaround.
1776
1777 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
1778
1779 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
1780 Don't check range of malloc address.
1781 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
1782
9076a823
SM
1783 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
1784
1785 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
1786
ba029065
KH
17872004-01-19 Kenichi Handa <handa@m17n.org>
1788
1789 * fontset.c (fontset_font_pattern): Fix previous change.
1790
7af0e8d7
MB
17912004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
1792
1793 * xdisp.c (Voverflow_newline_into_fringe)
1794 (move_it_in_display_line_to, redisplay_internal)
1795 (update_window_fringes, redisplay_window, display_line, window):
1796 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
1797 that it compiles without a window-system.
1798 * dispnew.c (direct_output_for_insert, update_window): Likewise.
1799
77a9cf69
KS
18002004-01-16 Kim F. Storm <storm@cua.dk>
1801
1802 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
1803
a64387ee 1804 * buffer.c (init_buffer_once): Set buffer_defaults and
77a9cf69
KS
1805 buffer_local_flags for indicate_buffer_boundaries.
1806 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
1807 default- variable for it.
1808
1809 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
1810 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
d7107586 1811 New members exact_window_width_line_p and cursor_in_fringe_p for
77a9cf69
KS
1812 overflowing newlines into right fringe.
1813 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
1814 and indicate_bottom_line_p for buffer boundaries and scrolling.
1815 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
1816 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
1817 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
1818 and HOLLOW_SQUARE_BITMAP.
1819 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
1820 Add prototypes.
1821
1822 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
1823 instead of related indicator fields.
1824 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
1825 (direct_output_for_insert): Handle exact width lines like
1826 contined lines. Call update_window_fringes.
1827 (update_window): Call update_window_fringes.
1828 (scrolling_window): Don't skip desired rows with changed bitmaps.
1829 Check if fringe bitmaps changes when assigning scrolled rows.
1830
1831 * xdisp.c (Voverflow_newline_into_fringe): New variable.
1832 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
1833 (move_it_in_display_line_to): Overflow newline into fringe for
1834 rows that are exactly as wide as the window.
1835 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
1836 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
1837 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
1838 (fringe_bitmaps): Add new bitmaps.
1839 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
1840 Select proper bitmap for cursor in fringe when appropriate.
1841 Handle alignment of bitmap to top or bottom of row.
1842 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
1843 done by update_window_fringes.
1844 (update_window_fringes, draw_window_fringes): New functions.
1845 (redisplay_internal): Call update_window_fringes in case only
1846 cursor row is updated.
1847 (redisplay_window): Call update_window_fringes.
1848 Explicitly call draw_window_fringes if redisplay was done using
1849 the current matrix or the overlay arrow is in the window.
1850 (try_window_reusing_current_matrix): Mark scrolled rows for
1851 fringe update (to update buffer-boundaries / scrolling icons).
1852 (find_last_unchanged_at_beg_row): Handle exact width lines line
1853 continued lines.
1854 (display_line): Overflow newline into fringe for rows that are
1855 exactly as wide as the window. Don't append space for newline
d7107586 1856 in this case.
77a9cf69
KS
1857 (notice_overwritten_cursor): Explicitly clear cursor bitmap
1858 in fringe as if it had been overwritten.
1859 (erase_phys_cursor): Erase cursor bitmap in fringe.
d7107586 1860 (syms_of_xdisp): Mark show-trailing-whitespace and
77a9cf69
KS
1861 void-text-area-pointer as user options.
1862 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
d7107586 1863
77a9cf69
KS
1864 * xterm.c (x_update_window_end): Call draw_window_fringes.
1865 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1866 in row instead of actually drawing fringe bitmaps.
1867 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1868 (x_draw_window_cursor): Draw cursor in fringe.
1869
1870 * w32term.c (x_update_window_end): Call draw_window_fringes.
1871 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1872 in row instead of actually drawing fringe bitmaps.
1873 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1874 (w32_draw_window_cursor): Draw cursor in fringe.
1875
1876 * macterm.c (x_update_window_end): Call draw_window_fringes.
1877 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
1878 in row instead of actually drawing fringe bitmaps.
1879 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
1880 (mac_draw_window_cursor): Draw cursor in fringe.
1881
a633a954
JD
18822004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1883
1884 * xterm.c (handle_one_xevent): Don't handle characters that are part
1885 of an old style (XLookupString) compose sequence.
1886
80460525
KH
18872004-01-15 Kenichi Handa <handa@m17n.org>
1888
1889 * search.c (Freplace_match): Use make_multibyte_string or
1890 make_unibyte_string according to the buffer multibyteness.
1891
7fc34f85
SM
18922004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
1893
1894 * alloc.c (struct interval_block, struct string_block)
1895 (struct symbol_block, struct marker_block, live_string_p)
1896 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
1897 Better preserve alignment for objects in blocks.
1898 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
1899
1900 * lread.c (defvar_per_buffer): Remove dead declaration.
1901
1902 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
1903 space size.
1904
66070bd1
JD
19052004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1906
1907 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
1908 if a key press should pop down. Only pop down if a key is pressed
1909 outside the menu/dialog.
1910 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
1911 popup_get_selection.
1912 (create_and_show_dialog): Pass 1 for down_on_keypress to
1913 popup_get_selection.
1914
de7515d6
JD
19152004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1916
1917 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
1918 BLOCK/UNBLOCK_INPUT.
1919
160b1b50
JD
19202004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1921
1922 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
1923 specified.
1924
3a9f36e6
KH
19252004-01-08 Kenichi Handa <handa@m17n.org>
1926
1927 * editfns.c (Fformat): Fix '&' to '&&'.
1928
3803eb32
AS
19292004-01-08 Andreas Schwab <schwab@suse.de>
1930
1931 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
1932 size if PSEUDOVECTOR_FLAG is set.
1933
9da88f37
KH
19342004-01-07 Kenichi Handa <handa@m17n.org>
1935
74ac5074
KH
1936 * charset.c (Fdeclare_equiv_charset): Fix docstring.
1937
9da88f37
KH
1938 * fontset.c (fontset_ref_via_base): Fix previous change.
1939
05faee07
KS
19402004-01-07 Kim F. Storm <storm@cua.dk>
1941
1942 * process.c (read_process_output): Only activate adaptive
1943 buffering if we read less than 256 bytes at a time.
1944
634910c8
KS
19452004-01-06 Kim F. Storm <storm@cua.dk>
1946
1947 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
1948 object and image object. Return glyph width and height.
1949 (mode_line_string, marginal_area_string): Ditto.
1950
1951 * dispextern.h (buffer_posn_from_coords, mode_line_string)
1952 (marginal_area_string): Fix prototypes.
1953
1954 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
1955 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
1956 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
1957
1958 * keyboard.c (make_lispy_position): Use modified mode_line_string,
1959 buffer_posn_from_coords, and marginal_area_string functions to
1960 include both string object and image object in the lispy position.
1961 Also add actual glyph width and height to position.
1962 (read_key_sequence): Use real buffer position from mouse
1963 event to find keymap property even when click is in marginal area.
1964
1965 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
1966 mode_line_string and marginal_area_string functions to handle
1967 both string object and image object properties.
d7107586 1968
57951c2e
AS
19692004-01-06 Andreas Schwab <schwab@suse.de>
1970
1971 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
1972 character.
1973
181e6a61
AS
19742004-01-02 Andreas Schwab <schwab@suse.de>
1975
d7107586
SM
1976 * macterm.c (emacs_options, x_initialized, same_x_server):
1977 Remove unused (and duplicated) definitions.
181e6a61 1978
31e0fbdd
KS
19792004-01-02 Kim F. Storm <storm@cua.dk>
1980
1981 * process.h (struct Lisp_Process): New members for adaptive read
1982 buffering: adaptive_read_buffering, read_output_delay, and
1983 read_output_skip.
1984
1985 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
1986 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
1987 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
1988 (process_output_delay_count, process_output_skip): New vars.
1989 (Vprocess_adaptive_read_buffering): New variable.
1990 (make_process): Initialize adaptive read buffering members.
1991 (Fstart_process): Set adaptive_read_buffering member.
1992 (deactivate_process): Cleanup adaptive read buffering.
1993 (wait_reading_process_input): Temporarily omit delayed
1994 subprocesses from the set of file descriptors to read from;
1995 adjust the select timeout if we skipped any subprocesses.
1996 (read_process_output): Increase adaptive read buffering delay if
1997 we read less than a full buffer; reduce delay when we read a
1998 full buffer.
1999 (send_process): Simplify using local Lisp_Process var.
2000 Reset adaptive read buffering delay after write.
2001 (init_process): Initialize process_output_delay_count and
2002 process_output_skip.
2003 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
2004
68c6a789
JR
20052004-01-01 Jason Rumney <jasonr@gnu.org>
2006
d7107586 2007 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
68c6a789 2008
3f70fe82
LT
20092003-12-30 Luc Teirlinck <teirllm@auburn.edu>
2010
2011 * print.c (Ferror_message_string): Add hyperlink in the docstring
2012 to the definition of `signal' in the Elisp manual.
2013 * eval.c (Fsignal): Ditto.
2014
a64387ee 20152003-12-29 James Clark <jjc@jclark.com> (tiny change)
c2be49ed
EZ
2016
2017 * fns.c (internal_equal): Return t for two NaN arguments.
2018
7abd90ea
RS
20192003-12-29 Richard M. Stallman <rms@gnu.org>
2020
2021 * data.c (store_symval_forwarding): Handle setting
2022 default-fill-column, etc., by changing the value in
2023 buffers that use the default.
2024
2025 * minibuf.c (Fset_minibuffer_window): Doc fix.
2026
2027 * fileio.c (choose_write_coding_system): Ignore auto_saving
2028 if using the visited file for auto saves.
2029 (Fwrite_region): Don't update SAVE_MODIFF
2030 if auto-saving in visited file.
2031
3e7cfcdc
KH
20322003-12-29 Kenichi Handa <handa@m17n.org>
2033
2034 * dispextern.h (face_font_available_p): Extern it.
2035
2036 * fontset.c (Voverriding_fontspec_alist): New variable.
2037 (lookup_overriding_fontspec): New function.
d7107586 2038 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
3e7cfcdc
KH
2039 (fontset_font_pattern): Likewise.
2040 (regulalize_fontname): New function.
2041 (Fset_fontset_font): Call regulalize_fontname.
2042 (Fset_overriding_fontspec_internal): New function.
d7107586
SM
2043 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
2044 Defsubr Sset_overriding_fontspec_internal.
3e7cfcdc
KH
2045
2046 * xfaces.c (face_font_available_p): New function.
2047
7abd90ea
RS
20482003-12-28 Richard M. Stallman <rms@gnu.org>
2049
2050 * buffer.c (Fother_buffer): Don't crash if BUF is nil
2051 or if its name is nil.
2052
2053 * buffer.c (Fkill_buffer): Don't delete auto-save file
2054 if it's the same as the visited file.
2055
de1d1a40
LT
20562003-12-28 Luc Teirlinck <teirllm@auburn.edu>
2057
2058 * coding.c (Fcheck_coding_system): Doc fix.
2059
204fb75e
KS
20602003-12-28 Kim F. Storm <storm@cua.dk>
2061
2062 * Makefile.in (eval.o): Depend on dispextern.h.
2063
2064 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
2065 image glyph using image's ascent.
2066 (mode_line_string): Return image glyph as object clicked on.
2067 Adjust y0 for image glyph using image's ascent.
2068
2069 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
2070 (struct glyph): New members, ascent and descent. Used to save
2071 this glyph's ascent and descent, instead of having.
2072 (struct glyph): Declare member face_id using FACE_ID_BITS.
2073 (find_hot_spot): Add prototype.
2074
2075 * keyboard.c (Qimage): Remove extern (now in lisp.h).
2076 (QCmap): Declare extern.
2077 (make_lispy_position): When position is inside image hot-spot,
2078 use hot-spot element's id as posn element.
2079
2080 * lisp.h (IMAGEP): New macro to test for image object type.
2081 (Qimage): Declare extern.
2082
2083 * macfns.c (Qimage): Remove extern (now in lisp.h).
2084 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2085
2086 * macterm.c (Qface, Qmouse_face): Remove unused externs.
2087
2088 * w32fns.c (Qimage): Remove extern (now in lisp.h).
2089 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2090
2091 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
2092
2093 * w32term.c (Qface, Qmouse_face): Remove unused externs.
2094
2095 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
2096 pointer types.
2097 (Qrelative_width, Qalign_to): Remove unused variables.
2098 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
2099 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
2100 image maps.
d7107586 2101 (x_y_to_hpos_vpos): Return glyph relative coordinates through
204fb75e
KS
2102 new dx and dy args.
2103 Remove buffer_only_p arg (always 0). Simplify code accordingly.
2104 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
2105 than row's ascent and height, to get sensible height on tall rows.
2106 (build_desired_tool_bar_string): Remove Qimage extern.
2107 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
2108 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
2109 image glyph is alone on the last line.
2110 (append_glyph, append_composite_glyph, produce_image_glyph)
d7107586 2111 (append_stretch_glyph): Set glyph's ascent and descent.
204fb75e 2112 (on_hot_spot_p): New function to check if position is inside an
d7107586 2113 rectangular, circular, or polygon-shaped image hot-spot,
204fb75e
KS
2114 (find_hot_spot): New function to search for image hot-spot.
2115 (Flookup_image_map): New defun to search for image hot-spot.
2116 (define_frame_cursor1): New aux function to determine frame pointer.
2117 (note_mode_line_or_margin_highlight, note_mouse_highlight):
2118 Handle `pointer' text property and :pointer image property to
2119 control frame pointer shape. Detect image hot-spots for pointer
2120 and help_echo properties. Use define_frame_cursor1.
2121 (note_mouse_highlight): Use Vvoid_text_area_pointer.
2122 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
2123 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
2124
2125 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
2126
2127 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
2128 (Qimage): Remove extern (now in lisp.h).
2129 (valid_image_p, parse_image_spec): Use IMAGEP macro.
2130
2131 * xmenu.c (show_help_event): Remove unused code.
2132
2133 * xterm.c (Qface, Qmouse_face): Remove unused externs.
2134 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
2135 row's ascent and descent, to get a sensible height on tall rows.
2136
fc052137
LT
21372003-12-25 Luc Teirlinck <teirllm@auburn.edu>
2138
2139 * minibuf.c (Fcompleting_read): Undo previous change.
2140
a64387ee 21412003-12-25 Lars Hansen <larsh@math.ku.dk>
b9148500
LH
2142
2143 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
2144 Arguments GCPRO'ed in call to file name handler.
2145
56ffd194
TTN
21462003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
2147
2148 * termcap.c (tgetst1): Scan for "%pN"; if all
2149 N are continuous in [1,9], remove all "%pN".
2150
5202d23d
JD
21512003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2152
f26fab36
JD
2153 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
2154
5202d23d
JD
2155 * xfaces.c (lface_fully_specified_p): Take into account that
2156 MAC OS always have unspecified stipple.
2157
8babaa59
TTN
21582003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2159
2160 * tparam.c (tparam1): Add handling for `%pN', which
2161 means use param N for the next substitution.
2162
2d176448
TTN
21632003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
2164
2165 * xfaces.c (Fcolor_gray_p): Fix omission bug:
2166 In case `frame' is nil, consult the selected frame.
2167 (Fcolor_supported_p): Likewise.
2168
adb0708c
LT
21692003-12-23 Luc Teirlinck <teirllm@auburn.edu>
2170
000eeb15
LT
2171 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
2172 Doc fixes.
0dc72b11
LT
2173
2174 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
2175 and an integer. Adapt the introductory comment accordingly.
adb0708c
LT
2176 (Fread_from_minibuffer): Delete code moved into read_minibuf.
2177 Doc fix.
2178 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
2179 read_minibuf.
2180 (Fcompleting_read): Delete code moved into read_minibuf.
d7107586 2181 (Ftest_completion): Make it handle obarrays and hash tables correctly.
adb0708c 2182
2e4d132b
KH
21832003-12-03 Kenichi Handa <handa@m17n.org>
2184
2185 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
2186 encoding sequence.
2187
3999c705
KH
21882003-12-01 Kenichi Handa <handa@m17n.org>
2189
2190 * composite.c (syms_of_composite): Don't make the compostion hash
2191 table week.
2192
d344ecbb
LT
21932003-11-30 Luc Teirlinck <teirllm@auburn.edu>
2194
2195 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
2196 * textprop.c (Fget_char_property_and_overlay): New function.
2197 (syms_of_textprop): Defsubr it.
2198
03d6484e
JD
21992003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2200
019b1f0e
JD
2201 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
2202 to compile on terminal configuration.
2203
03d6484e
JD
2204 * fileio.c (Fread_file_name): Check use_file_dialog also before
2205 calling Fx_file_dialog.
2206
2207 * fns.c: use_file_dialog: New variable.
2208 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
2209
442d3fd0
KS
22102003-11-29 Kim F. Storm <storm@cua.dk>
2211
2212 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
2213 (syms_of_msdos): Don't intern and staticpro them.
2214
0f6a07a8
KS
22152003-11-27 Kim F. Storm <storm@cua.dk>
2216
2217 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
2218 coordinates relative to glyph at posn. If glyph is an image,
2219 return that as object at posn. Callers changed.
2220 (mode_line_string, marginal_area_string): Calculate and return
2221 pixel coordinates relative to glyph. Callers changed.
2222
2223 * dispextern.h (buffer_posn_from_coords, mode_line_string)
2224 (marginal_area_string): Fix prototypes.
2225 (window_box_left_offset, window_box_right_offset): Add prototypes.
2226
2227 * frame.h (get_specified_cursor_type, get_window_cursor_type):
2228 Remove prototypes.
2229
2230 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
2231
2232 * keyboard.c (make_lispy_position): Add x and y coordinates
2233 relative to the current glyph as 7th element of position.
2234 If glyph is an image, return it in the object element.
2235 (read_key_sequence): Skip checks for keymap property in cases
2236 where POSN_STRING is not a string (e.g. an image).
2237
2238 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
2239 (Vshow_text_cursor_in_void): New variable.
2240 (glyph_to_pixel_coords): Don't use negative hpos.
2241 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
2242 (append_stretch_glyph): Change ascent arg to be actual value
2243 in pixels rather than ratio to height. Callers changed.
2244 (calc_pixel_width_or_height): New aux function, implementing
2245 pixel based artihmetic for glyph widths and heights.
2246 (produce_stretch_glyph): Use calc_pixel_width_or_height for
2247 :width, :height, :align-to, and :ascent, thus allowing these to
2248 be specified in pixels as well as multiples of characters.
2249 Don't produce stretch glyphs with zero width or height.
2250 (get_specified_cursor_type): Declare static.
2251 (get_window_cursor_type): Declare static. Add glyph arg to be
2252 able to know when cursor is on an image; always substitute
2253 hollow-box cursor for filled-box cursor on images, to avoid
2254 negative images and flicker when blinking the cursor.
2255 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
2256 (note_mode_line_or_margin_highlight): Use non-text cursor rather
2257 than vertical scroll-bar cursor in display margins.
2258 (note_mouse_highlight): Use non-text cursor rather than text
2259 cursor in fringes and over images in the text area.
2260 Use non-text cursor when mouse pointer is outside editable text,
2261 i.e. in the void after end-of-line or end-of-buffer; this was
2262 already done for W32, but is now standard for all systems --
2263 user can toggle show-text-cursor-in-void to get old behaviour.
2264 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
2265 Vdisplay_pixels_per_inch.
2266
00498bfc
AS
22672003-11-25 Andreas Schwab <schwab@suse.de>
2268
2269 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
2270 EMACS_INT to not lose bits.
2271 (Ffillarray): Don't set bits beyond the size of a bool vector.
2272
edaa824d
KS
22732003-11-25 Kim F. Storm <storm@cua.dk>
2274
2275 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
2276 define this defun on systems that cannot use stderr as lvalue.
2277
74d6f539
GM
22782003-11-24 Gerd Moellmann <gerd@gnu.org>
2279
2280 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
2281 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
2282 ld's default is incompatible with unexec.
2283
6a1ff3ba
KS
22842003-11-23 Kim F. Storm <storm@cua.dk>
2285
63dc7c6b
KS
2286 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
2287 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
2288 (Fforce_window_update): New defun.
2289 (syms_of_window): Defsubr it.
2290 (Fset_window_margins, Fset_window_fringes): Doc fix.
2291
6a1ff3ba
KS
2292 * print.c (Fredirect_debugging_output): New defun.
2293 (syms_of_print): Defsubr it.
2294
aef109b7
LT
22952003-11-22 Luc Teirlinck <teirllm@auburn.edu>
2296
2297 * fns.c (Fset_char_table_parent): Doc fix.
2298
6a1ff3ba 22992003-11-22 Kim F. Storm <storm@cua.dk>
63ccbe21
KS
2300
2301 * dispnew.c (buffer_posn_from_coords): Return actual row/column
2302 for glyph clicked on, rather than (unused) pixel positions.
2303 (mode_line_string, marginal_area_string): Change X and Y args to
2304 pointers for returning actual row/column for glyph clicked on.
2305 Simplify and optimize loops.
2306
aef109b7
LT
2307 * dispextern.h (mode_line_string, marginal_area_string):
2308 Update prototypes.
63ccbe21
KS
2309
2310 * keyboard.c (make_lispy_position): New function for generating
2311 mouse click positions from frame and pixel coordinates.
2312 Enhanced to return buffer position and actual row/column for
2313 events outside the text area using updated mode_line_string and
2314 marginal_area_string functions.
2315 Return left-fringe and right-fringe clicks as such, rather than
2316 clicks in text area.
2317 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
2318 pixel_to_glyph_coords, as we never use the results.
2319 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
2320 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
2321 Eliminate unused code in WHEEL_EVENT handling.
2322 (make_lispy_movement): Use make_lispy_position.
2323
2324 * window.c (coordinates_in_window): Remove redundant tests.
2325 Fix returned X pixel value for left-margin.
2326
2327 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
2328 mode_line_string and marginal_area_string parameters.
2329
a64387ee 23302003-11-22 Lars Hansen <larsh@math.ku.dk>
930a9995 2331
d7107586
SM
2332 * w32.c (struct the_group, getgrgid): Add.
2333 * mac.c (struct my_group, getgrgid): Add.
aef109b7 2334
3dbf3426
LT
23352003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2336
2337 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
2338
cae8ddbb 23392003-11-21 Lars Hansen <larsh@math.ku.dk>
ded4064f 2340
d7107586
SM
2341 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
2342 include in call to file name handler. Optionally translate numeric
2343 UID and GID to strings. Update docstring.
2344 (directory_files_internal): Add parameter ID-FORMAT.
2345 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
2346 include in call to file name handler and call to
2347 directory_files_internal. Update Docstring.
2348 (Fdirectory_files): Add dummy parameter in call to
2349 directory_files_internal.
2350 * lisp.h (Qinteger): Add.
2351 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
2352 (Ffile_attributes): Add parameter.
2353 * data.c (Qinteger): Export.
cae8ddbb 2354
2550b848
LT
23552003-11-21 Luc Teirlinck <teirllm@auburn.edu>
2356
3dbf3426 2357 * fns.c (Freverse, Fnreverse): Doc fixes.
2550b848 2358
88380018
KS
23592003-11-19 Kim F. Storm <storm@cua.dk>
2360
2361 * xdisp.c (init_iterator): Initialize it->start to position
2362 before reseating (in case start position is invisible).
2363 (init_to_row_start): Set it->start to row-start.
2364 (redisplay_window): Accept optional_new_start if start position
2365 is invisible (in which case IT_CHARPOS overshoots PT).
2366 (display_line): Setup row->start from it->start (rather than
2367 it->current which is wrong if first char on line is invisible).
2368 When done, reseat it->start to it->current (= start of next row).
2369 (expose_area): Fix exposure of text area when first char (e.g. TAB)
2370 is only partially visible.
2371
2372 * dispextern.h (struct it): New member start.
2373
854c1a59
SM
23742003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2375
455316e2
SM
2376 * alloc.c (make_float, Fcons): Clear the markbit at init time.
2377 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
2378 of block_index outside of the macro call.
2379 (Fgarbage_collect): Remove null code.
2380
2381 * m/amdx86-64.h: Don't redefine XPNTR.
2382
854c1a59
SM
2383 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
2384 of VALMASK.
2385
2386 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
2387 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
2388 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
2389
2390 * lisp.h (VALMASK): Only define for non-union type.
2391 (MARKBIT): Remove.
2392 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
2393 (XTYPE): Define unconditionally.
2394 (XSETTYPE): Remove one more remnant.
2395 (EQ): Define differently for the union and non-union cases.
2396 (INTMASK): New bit mask.
2397 (struct Lisp_Marker): Move down to prepare for upcoming patch.
2398 (GC_EQ): Delegate to EQ.
2399
2400 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
2401
a0c6ef2d
JD
24022003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2403
2404 * xterm.c (x_window_to_scroll_bar): Move check of display to
2405 where window_id is compared.
2406
859492c4
KS
24072003-11-17 Kim F. Storm <storm@cua.dk>
2408
2409 * dispextern.h (struct it): New member first_vpos.
2410
2411 * xdisp.c (start_display): Set it->first_vpos.
2412 (try_window_id): Use first_vpos to start display in first _text_
2413 line if no reusable lines at start of window with header line.
2414
810f2256
JD
24152003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2416
7c402969 2417 * w32fns.c (XPutPixel):
854c1a59
SM
2418 * w32bdf.c (w32_init_bdf_font):
2419 * sunfns.c (sel_read):
2420 * process.c (Fmake_network_process):
2421 * frame.c (store_frame_param):
2422 * fontset.c (Fset_fontset_font):
2423 * emacs.c (shut_down_emacs):
a64387ee 2424 * ccl.c (ccl_driver): Remove period at end of error message.
7c402969 2425
a32e9bfd
JD
2426 * config.in: Regenerate.
2427
810f2256
JD
2428 * xfns.c (x_window_to_frame, x_any_window_to_frame)
2429 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2430 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
2431 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
2432 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
2433
2434 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
2435
2436 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
2437 (XTmouse_position, handle_one_xevent): Pass Display* to
2438 x_window_to_scroll_bar.
2439 (x_window_to_scroll_bar): Take a Display* argument.
2440 Check that display for frame is equal to Display* argument.
854c1a59 2441 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
810f2256
JD
2442 x_display_info_for_display instead. Use Display in xev instead
2443 of GDK_DISPLAY.
2444 (x_dispatch_event): Call x_display_info_for_display.
2445 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
2446 (x_connection_closed): Call xg_display_close for GTK.
2447 (x_term_init): Call xg_display_open for additional displays.
2448 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
2449 for GTK.
2450
2451 * xmenu.c (single_menu_item, mouse_position_for_popup)
2452 (x_activate_menubar): Formatting adjustments.
2453
2454 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
2455 adjustments.
2456
2457 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
2458 (xg_display_close, xg_create_default_cursor)
2459 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
2460 handling.
854c1a59
SM
2461 (xg_left_ptr_cursor): Remove.
2462 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
810f2256
JD
2463 cursor here.
2464 (xg_win_to_widget): Take Display* argument, call
2465 gdk_xid_table_lookup_for_display.
2466 (xg_create_frame_widgets, xg_get_file_name, create_menus)
2467 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
2468 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
2469 in FRAME_X_DISPLAY_INFO.
2470 (xg_get_scroll_id_for_window): Take Display* argument.
2471 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
854c1a59 2472 (xg_initialize): Remove xg_left_ptr_cursor.
810f2256
JD
2473
2474 * gtkutil.h: xg_get_scroll_id_for_window, xg_win_to_widget takes
2475 Display* argument also. Declare xg_display_open,
2476 xg_display_close, xg_create_default_cursor.
2477
0b03cc78
JD
24782003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2479
2480 * xterm.c (x_detect_focus_change): Do not change focus frame for
2481 Enter/LeaveNotify if the current focus frame has explicit focus.
2482
77e688fa
KS
24832003-11-14 Kim F. Storm <storm@cua.dk>
2484
2485 * dispnew.c (update_text_area): Fix redisplay error when hscroll
2486 is active and first glyph is only partially visible.
854c1a59 2487
dd429b03
KH
24882003-11-13 Kenichi Handa <handa@m17n.org>
2489
2490 * xdisp.c (select_frame_for_redisplay): New function.
2491 (redisplay_internal): Record also selected_frame for
2492 unwind_redisplay. Call select_frame_for_redisplay before
2493 redrawing each frame.
2494 (unwind_redisplay): Argument changed to a cons.
2495
6d9266f4
LT
24962003-11-12 Luc Teirlinck <teirllm@auburn.edu>
2497
2498 * fns.c (Fstring_to_multibyte): Doc fix.
2499
80060eb3
KH
25002003-11-11 Kenichi Handa <handa@m17n.org>
2501
2502 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
2503
74305183
JD
25042003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2505
2506 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
2507 program specified positions.
2508
cfda993e
JD
25092003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2510
2511 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
2512
df211069
KH
25132003-11-08 Kenichi Handa <handa@m17n.org>
2514
2515 * Makefile.in (lisp): Add kannada.el.
2516 (shortlisp): Likewise.
2517
4307d534
KH
25182003-11-07 Kenichi Handa <handa@m17n.org>
2519
854c1a59
SM
2520 * coding.c (coding_allocate_composition_data):
2521 Reset coding->composing to COMPOSITION_NO.
4307d534
KH
2522 (coding_restore_composition): Detect invalid composition data.
2523 Give Fstring and Fvector a Lispy integer, not C int.
2524
854c1a59
SM
25252003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
2526
2527 * floatfns.c (Flogb): Don't use VALMASK.
2528
2529 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
2530 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
2531
2532 * lisp.h (XINT): Move the cast to clarify what is going on.
2533 (GCTYPEMASK, XSETTYPE): Remove.
2534 (XGCTYPE): Make it an alias of XTYPE.
2535
d04103a1
JD
25362003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2537
2538 * xterm.c (x_term_init): Fix formatting.
2539
da18b5ac
JD
25402003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2541
2542 * gtkutil.h: Declare xg_have_tear_offs, remove xg_keep_popup
2543 and xg_did_tearoff.
2544
2545 * gtkutil.c: Remove variable xg_did_tearoff.
2546 (xg_have_tear_offs): New function.
2547 (tearoff_remove): Just decrease xg_detached_menus.
2548 (tearoff_activate): Increase xg_detached_menus and call
2549 tearoff_remove when tearoff is removed.
854c1a59 2550 (xg_keep_popup): Remove function.
da18b5ac
JD
2551 (create_menus): Give add_tearoff_p as argument to recursive
2552 call to create_menus.
2553 (xg_create_widget): Use variables instead of multiple
2554 strcmp. Tell create_menus to create tear off only for
2555 menu bar menus.
2556 (xg_update_menubar): Change title for a detached menu also.
2557 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
2558 of deep_p.
2559 (xg_initialize): Initialize xg_detached_menus, remove
2560 initialization of xg_did_tearoff.
2561
2562 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
2563 xg_have_tear_offs returns non-zero.
2564 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
2565 call to xg_keep_popup.
2566
64d4923e
AC
25672003-11-01 Andrew Choi <akochoi@shaw.ca>
2568
2569 * macterm.c (XTread_socket): Handle menubar selection and grow
2570 window only for mouseDown events.
854c1a59 2571
6cc8bc07
JD
25722003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2573
2574 * xterm.c (x_term_init): For GTK part, increase x_initialized
2575 to check for more than one display. Use error instead of return 0.
2576
043131c4
AC
25772003-10-31 Andrew Choi <akochoi@shaw.ca>
2578
854c1a59 2579 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
043131c4
AC
2580 (copy_dysymtab): Call it.
2581
bdda99a1
LT
25822003-10-31 Luc Teirlinck <teirllm@auburn.edu>
2583
2584 * eval.c (Fdefvaralias): Doc fix.
2585
800f42ff 25862003-10-26 Luc Teirlinck <teirllm@auburn.edu>
0d11571e
LT
2587
2588 * data.c (Fsetplist): Doc fix.
2589
ef35b389
LK
25902003-10-14 Lute Kamstra <lute@gnu.org>
2591
2592 * window.c (Fset_window_fringes): Clarify docstring.
07107abc 2593
ef35b389 25942003-10-14 Kim F. Storm <storm@cua.dk>
854c1a59 2595
07107abc
KS
2596 * window.c (Fset_window_margins): Simplify arg checking.
2597
f7005886
RS
25982003-10-13 Richard M. Stallman <rms@gnu.org>
2599
2600 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
2601 (print_partial_compiled_pattern): Replace assert with a printout.
2602 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
2603
2604 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
2605
2606 * window.c (Fset_window_margins): Allow only integers as args.
2607 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
2608 Doc fixes.
2609
9c0c2af5
LK
26102003-10-13 Lute Kamstra <lute@gnu.org>
2611
2612 * window.c (Fset_window_fringes): Elaborate docstring.
2613
3f080e4e
AC
26142003-10-12 Andrew Choi <akochoi@shaw.ca>
2615
854c1a59 2616 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
a4887377 2617
3f080e4e
AC
2618 * s/darwin.h (GC_MARK_STACK): Define.
2619
0aa513ed
JD
26202003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2621
2622 * window.c (shrink_windows): New function.
2623 (size_window): Call shrink_windows to calculate window sizes when
2624 shrinking frame with more than one window.
2625
6aa8858a
KS
26262003-10-12 Kim F. Storm <storm@cua.dk>
2627
2628 * xdisp.c (compute_fringe_widths): Doc fix.
2629
c2164d91
KH
26302003-10-08 Kenichi Handa <handa@m17n.org>
2631
854c1a59 2632 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
c2164d91 2633
f82ac129
KH
26342003-10-07 Kenichi Handa <handa@m17n.org>
2635
2636 * coding.c (Qcoding_system_define_form): New variable.
2637 (syms_of_coding): Intern and staticpro it.
2638 (Fcheck_coding_system): Try to autoload the definition of
2639 CODING-SYSTEM.
2640
9296c947
LT
26412003-10-05 Luc Teirlinck <teirllm@auburn.edu>
2642
2643 * fns.c (Frequire): Doc fix.
2644
c1f0671a
JD
26452003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2646
3d8c3826
JD
2647 * xfns.c (Fx_send_client_event): New function as a base for
2648 manipulating extended window manager hints.
6dc15d98 2649 (Fx_send_client_event): Remove unused variable s.
3d8c3826 2650
068ae0fd
JD
2651 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
2652 that function is removed.
2653
2654 * xterm.c (x_set_offset): Use move_offset_left/top instead of
2655 x/y_pixels_outer_diff.
2656 (x_check_expected_move): Calculate move_offset_left/top.
2657
2658 * xterm.h (struct x_output): New members: move_offset_top/left.
2659
854c1a59 2660 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
068ae0fd
JD
2661 call x_set_offset directly.
2662
2663 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
2664
96f09305
JD
2665 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
2666
2667 * xterm.c (x_delete_display): Free font names and font_encoder
2668 in dpyinfo->font_table.
2669
854c1a59
SM
2670 * xfns.c (Fx_close_connection): Only call XFreeFont here.
2671 Move xfree of font names to x_delete_display.
96f09305 2672
c1f0671a
JD
2673 * xterm.h (struct x_display_info): New member, wm_type.
2674 (struct x_output): New members, expected_top/left and
2675 check_expected_move.
2676
2677 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
2678 is received.
854c1a59
SM
2679 (handle_one_xevent): Rename x_check_expected_move from
2680 x_check_fullscreen_move.
c1f0671a
JD
2681 (x_set_offset): Only add WM decoration sizes to modified_top/left
2682 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
854c1a59 2683 (x_check_expected_move): Rename from x_check_fullscreen_move.
c1f0671a
JD
2684 Removed fullscreen specific code. Use check_expected_move,
2685 expected_left/top instead. Also, set wm_type.
2686 (x_term_init): Initialize wm_type to unknown.
2687
2688 * frame.c (x_fullscreen_move): Remove addition of WM decoration
2689 sizes to move_x/y.
2690
be2fdba9
KH
26912003-10-03 Kenichi Handa <handa@m17n.org>
2692
2693 * macterm.c (x_load_font): Clear all members of FONTP before start
2694 filling them.
2695
26962003-10-02 Kenichi Handa <handa@m17n.org>
2697
2698 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
2699 before calling find_ccl_program_func. Call find_ccl_program_func
2700 only when fontp->font_encoder is not NULL.
2701
2702 * xterm.c (x_load_font): Clear all members of FONTP before start
2703 filling them.
2704
26a6e439
JPW
27052003-10-03 John Paul Wallington <jpw@gnu.org>
2706
2707 * keymap.c (map_keymap): Don't abort when binding is a vector.
2708
0d4c2dc2
JR
27092003-10-02 Jason Rumney <jasonr@gnu.org>
2710
854c1a59
SM
2711 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
2712 Sync dependencies with Makefile.in.
a63cf46f
JR
2713 (alloca.o): Remove.
2714
0d4c2dc2
JR
2715 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
2716 filling them.
2717
2718 * w32bdf.c (w32_load_bdf_font): Likewise.
2719
ab8f7d5c
RS
27202003-09-30 Richard M. Stallman <rms@gnu.org>
2721
2722 * term.c (set_tty_color_mode): Calculate current_mode_spec
2723 regardless of value of VAL.
2724
854c1a59 2725 * intervals.c (graft_intervals_into_buffer):
ab8f7d5c
RS
2726 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
2727 Handle over_used when splitting UNDER.
2728
a64387ee 27292003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ab8f7d5c
RS
2730
2731 * regex.c (regex_compile): Free the stack when returning from function.
2732
3413f972
KH
27332003-09-28 Kenichi Handa <handa@m17n.org>
2734
2735 * fontset.c (Finternal_char_font): Change return value to
2736 cons (FONT-NAME . GLYPH-CODE).
2737
a6eeaa81 27382003-09-28 Eli Zaretskii <eliz@gnu.org>
40409f05
EZ
2739
2740 * term.c (tty_setup_colors): Treat any negative argument as -1.
2741
f98ddc99
KH
27422003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
2743
2744 * process.c (send_process): Delete unused temp_buf.
2745
66c8f1a8
DL
27462003-09-26 Dave Love <fx@gnu.org>
2747
2748 * xterm.c (x_bitmap_mask): Declare.
2749
ca716c26
DL
27502003-09-25 Dave Love <fx@gnu.org>
2751
2752 * Makefile.in (fns.o): Depend on md5.h.
2753
fbe57420
KS
27542003-09-25 Kim F. Storm <storm@cua.dk>
2755
2756 * window.c (set_window_buffer): Fix redisplay problems when
2757 switching between buffers with different display margin widths.
2758
ef6ae4ff
KS
27592003-09-23 Kim F. Storm <storm@cua.dk>
2760
2761 * process.c (set_socket_option): Fix :bindtodevice option.
2762 (Fset_network_process_option): Update process contact list when
2763 setting option succeeds.
2764 (Fmake_network_process): Doc fix.
2765
68e03c1c
DL
27662003-09-23 Dave Love <fx@gnu.org>
2767
7146d1c1 2768 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
68e03c1c 2769
a6eeaa81 27702003-09-22 Eli Zaretskii <eliz@gnu.org>
2f809aae
EZ
2771
2772 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
2773 color mode is an integer number (it could be -1).
2774
8fe7d8c8
RS
27752003-09-22 Richard M. Stallman <rms@gnu.org>
2776
2777 * intervals.c (graft_intervals_into_buffer): Correct the main loop
2778 in the case where OVER is longer than UNDER.
2779
2f71b5ea
MY
27802003-09-22 Masatake YAMATO <jet@gyve.org>
2781
7146d1c1 2782 * window.c (Fset_window_scroll_bars): Validate the value of
2f71b5ea 2783 `vertical_type'.
7146d1c1 2784
0c4da023
KS
27852003-09-21 Kim F. Storm <storm@cua.dk>
2786
2787 * frame.c (Vdefault_frame_scroll_bars): New variable.
2788 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
2789 (syms_of_frame): DEFVAR_LISP it, and initialize according to
2790 window-system default scroll bar position.
2791
b648413b
KS
2792 * window.c (Fwindow_scroll_bars): Doc fix.
2793
8f5b9e34
JD
27942003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2795
854c1a59 2796 * xterm.c (x_set_offset): Take window manager decorations into account.
8f5b9e34 2797
b0f23edf
RS
27982003-09-19 Richard M. Stallman <rms@gnu.org>
2799
2800 * atimer.h: Don't include lisp.h.
2801 (P_): Define it here (as well as elsewhere).
2802
2803 * print.c (Fprin1_to_string): Move the PRINTPREPARE
2804 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
2805
2806 * data.c (Fvariable_binding_locus): New function.
2807 (syms_of_data): defsubr it.
2808 (Flocal_variable_p): Delete duplicate call to indirect_variable.
2809
e1283999
DL
28102003-09-18 Dave Love <fx@gnu.org>
2811
ad5f3636
DL
2812 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
2813
e1283999
DL
2814 * process.c (Fnetwork_interface_info): Fix type error.
2815 (Fnetwork_interface_list): Doc fix.
2816 (read_process_output, read_process_output): Delete unused var.
2817
b8c7fd71
KS
28182003-09-17 Kim F. Storm <storm@cua.dk>
2819
2820 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
2821 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
2822 (Fnetwork_interface_info): Check that ifreq struct has required
2823 fields before accessing them; this requires that those fields are
2824 defined as macros, which may be too restrictive on some platforms,
2825 but it is better than failing on other platforms.
2826 (syms_of_process): Only defsubr above fns when included.
2827
11e0a411
DL
28282003-09-17 Dave Love <fx@gnu.org>
2829
2830 * unexalpha.c: Don't include varargs.h.
2831
e9c50801
KS
28322003-09-17 Kim F. Storm <storm@cua.dk>
2833
2834 * process.c (Fset_process_sentinel): Add sentinel to childp plist
2835 for network process.
2836 (socket_options): Add `:' prefix to option names. Add optbit field.
2837 (set_socket_option): Remove no_error arg and special handling of s < 0.
2838 Return 1<<optbit for known option, 0 for unknown.
2839 Do not interpret 0 as false for boolean option (only nil).
2840 Pass failed option and value to report_file_error.
7146d1c1 2841 (Fset_network_process_options): Replace by Fset_network_process_option.
e9c50801
KS
2842 (Fset_network_process_option): New function to set just one option.
2843 (Fmake_network_process): Allow :coding arg to be a cons.
2844 Allow :server arg to be an integer specifying backlog size.
2845 Remove :options arg, and allow options to be specified directly
2846 as :KEY, VALUE pairs. Parse these options before binding socket.
2847 As before, :reuseaddr t is default for a server process, but this
2848 can now be disabled by specifying :reuseaddr nil.
2849 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
2850 (init_process): Availability of network options is now checked with
2851 simpler syntax (featurep 'make-network-process :OPTION); use loop to
2852 setup features.
2853 (syms_of_process): Fix defsubr's for the replaced functions.
2854
a0fc3644
DL
28552003-09-16 Dave Love <fx@gnu.org>
2856
2857 * Makefile.in: Depend on coding.h.
2858
6df2a645
KS
28592003-09-14 Kim F. Storm <storm@cua.dk>
2860
2861 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
2862 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
2863 (syms_of_process): Defsubr them.
2864
2865 * config.in: Regenerate.
7146d1c1
SM
2866
28672003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2868
2869 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
2870 * m/news-r6.h (XUNMARK): Remove.
2871 * m/mips.h (XUNMARK): Remove.
2872 * m/mips-siemens.h (XUNMARK): Remove.
2873 * m/iris4d.h (XUNMARK): Remove.
2874 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
2875
0930c1a1
SM
28762003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2877
31003b9e
SM
2878 * lisp.h (VALBITS): Don't remove 1 for the markbit.
2879 (union Lisp_Object): Use unsigned int for types. Remove markbit.
2880 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
2881 (XTYPE): Use unsigned right-shift.
2882 (XMARKBIT, XMARK, XUNMARK): Remove.
2883
0930c1a1
SM
2884 * alloc.c (init_intervals, init_symbol, init_marker):
2885 Don't preallocate anything.
2886 (Fgarbage_collect, mark_object): Ignore the markbit.
2887
2888 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
2889
19bb0fcd 28902003-09-08 Lute Kamstra <lute@gnu.org>
5df034de
LK
2891
2892 * xdisp.c (pint2hrstr): New function.
2893 (decode_mode_spec): Add `%i' and `%I' specs.
2894 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
2895 for `mode-line-format'.
2896
03bb6a06
AS
28972003-09-07 Andreas Schwab <schwab@suse.de>
2898
2899 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
2900 avoid warning.
2901
a6eeaa81 29022003-09-07 Eli Zaretskii <eliz@gnu.org>
2063d89c 2903
0930c1a1 2904 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
2063d89c 2905
ed159bbf
KS
29062003-09-03 Kim F. Storm <storm@cua.dk>
2907
2908 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
2909 change (superseded by 2002-08-30 change); the default blink-off
2910 cursor is now again "no cursor".
2911
fe64a394
JR
29122003-09-01 Jason Rumney <jasonr@gnu.org>
2913
2914 * makefile.w32-in (alloca.o): Remove.
2915 (coding.o): Depend on intervals.h
2916 (emacs.o, bytecode.o): Depend on window.h
2917
c0175e24
DL
29182003-09-01 Dave Love <fx@gnu.org>
2919
2920 * Makefile.in (alloca.o): Remove commands.
2921 (coding.o): Depend on intervals.h composite.h window.h.
2922 (emacs.o): Depend on window.h keyboard.h keymap.h.
2923 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
2924 (bytecode.o): Depend on window.h.
2925
a24d4cb2
JR
29262003-08-31 Jason Rumney <jasonr@gnu.org>
2927
4bc2315e
JR
2928 * w32term.c (w32_per_char_metric): Allow cached metrics to be
2929 returned even when font_type is unknown.
2930
a24d4cb2
JR
2931 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
2932
9d35adc7
JD
29332003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2934
2935 * xterm.c (x_term_init): Initialize new fields in x_display_info.
2936
2937 * xterm.h (struct x_display_info): Add red/green/blue_bits and
2938 *_offset.
2939
2940 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
2941 calculate pixel value.
2942
6f68b035
GM
29432003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
2944
0930c1a1
SM
2945 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
2946 Don't tell redisplay display is accurate when it's actually been
2947 paused for pending input.
6f68b035 2948
4828b4d7
RS
29492003-08-29 Richard M. Stallman <rms@gnu.org>
2950
2951 * dispnew.c (adjust_glyph_matrix): Call window_box
2952 whenever W is nonzero.
2953
2954 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2955 (Fkill_local_variable, Fmake_variable_frame_local)
0930c1a1 2956 (Flocal_variable_p, Flocal_variable_if_set_p):
4828b4d7
RS
2957 Use indirect_variable to trace thru variable aliases.
2958
2959 * config.in: Updated.
2960
2961 * callint.c (Fcall_interactively): Save and restore
2962 Vthis_command, Vthis_original_command, real_this_command,
2963 and current_kboard->Vlast_command.
2964
2965 * abbrev.c (Fexpand_abbrev): Insert before deleting.
2966
e019878d
GM
29672003-08-29 Gerd Moellmann <gerd@gnu.org>
2968
2969 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
2970
85478bc6
KH
29712003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
2972
0930c1a1 2973 * coding.c (decode_coding_iso2022): Initialize local variable c2.
85478bc6
KH
2974 (decode_coding_sjis_big5): Likewise.
2975
07ce82d3
JR
29762003-08-27 Jason Rumney <jasonr@gnu.org>
2977
d3703de3
JR
2978 * w32.c (sys_pipe): Protect against file descriptor overflow.
2979
ee4a01d1
JR
2980 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
2981
07ce82d3
JR
2982 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
2983
a64387ee 29842003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
72d19c66
LK
2985
2986 * xfns.c (Vgtk_version_string): New variable.
2987 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
2988
a6eeaa81 29892003-08-24 Eli Zaretskii <eliz@gnu.org>
5459e42a 2990
0930c1a1 2991 * term.c (term_init): Remove `const' from buffer_size's declaration.
3d8714e7 2992
5459e42a
EZ
2993 * Makefile.in (msdos.o): Depend on intervals.h.
2994
0930c1a1 2995 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
5459e42a 2996
231d6cfb
JD
29972003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2998
2999 * xterm.h (struct x_display_info): New fields: client_leader_window
3000 and Xatom_wm_client_leader.
3001
3002 * xterm.c (x_initialize): Move call to x_session_initialize to ...
3003 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
3004
3005 * xsmfns.c (create_client_leader_window): New function.
3006 (x_session_initialize): Call create_client_leader_window, take
3007 dpyinfo as argument.
3008
3009 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
3010
3011 * Makefile.in (xsmfns.o): Add more depenedencies.
3012
afa88464
DL
30132003-08-21 Dave Love <fx@gnu.org>
3014
3015 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
3016
f730033e
KH
30172003-08-21 Kenichi Handa <handa@m17n.org>
3018
3019 * term.c (term_init): Fix previous change; don't rely on the
3020 length of `buffer' if TERMINFO is defined.
3021
6dca786c
DL
30222003-08-20 Dave Love <fx@gnu.org>
3023
3024 * atimer.h: Include lisp.h.
3025
3026 * lisp.h (EMACS_LISP_H): New.
3027 (popup_activated_flag): Don't declare.
3028
3029 * alloca.c: Some merging with gnulib. Change logic and doc
3030 concerning (x)malloc/(x)free -- no longer Emacs-specific.
3031 [DO_BLOCK_INPUT]: Don't include lisp.h.
3032 (xmalloc, xfree): Declare.
3033 (malloc): Don't declare.
3034
0930c1a1 3035 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
6dca786c
DL
3036 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
3037 atimer.h, blockinput.h.
3038
3039 * alloc.c (lisp_align_malloc): Change type of `aligned'.
3040
3041 * alloca.s: Removed.
3042
3a06a6d9
RS
30432003-08-19 Gerd Moellmann <gerd@gnu.org>
3044
3045 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
3046 use -lncurses.
3047
3048 * term.c (term_init): Use a buffer of size 4096 for tgetent since
3049 FreeBSD returns something longer than 2044. Abort if the end of
3050 the buffer is overwritten.
3051
27eeee55
MB
30522003-08-19 Miles Bader <miles@gnu.org>
3053
3054 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
3055
2f297815
GM
30562003-08-19 Gerd Moellmann <gerd@gnu.org>
3057
f4446bbf
GM
3058 * alloc.c (lisp_align_malloc): Check for memory full when
3059 allocating ablocks, which also avoids freeing a pointer into an
3060 ablocks structure.
3061
3062 * puresize.h (BASE_PURESIZE): Increase to 1100000.
3063
0930c1a1 3064 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
2f297815 3065
0e7d7aae
RS
30662003-08-16 Richard M. Stallman <rms@gnu.org>
3067
3068 * editfns.c (Fencode_time): Doc fix.
3069
30702003-08-16 David Ponce <david@dponce.com>
3071
3072 * fileio.c (Fwrite_region): Fix conditional expression to issue
3073 the right message.
3074
30752003-08-16 Juri Linkov <juri@jurta.org> (tiny change)
3076
3077 * syntax.c (Fforward_word): Argument changed to optional.
0930c1a1 3078 Set default value to 1.
0e7d7aae 3079
5d551295
KH
30802003-08-15 Kenichi Handa <handa@m17n.org>
3081
3082 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
3083 what autoscaled.
3084 (best_matching_font): Once we find a better scalable font, set
3085 non_scalable_has_exact_height_p to 1.
3086 (try_font_list): Call try_alternative_families to try any family
3087 with the given registry.
3088
1661e56b
AS
30892003-08-09 Andreas Schwab <schwab@suse.de>
3090
f29181dc
AS
3091 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
3092
1661e56b
AS
3093 * print.c (print_string): Fix printing of multibyte string with
3094 nontrivial printcharfun.
3095
465aa50a
JD
30962003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3097
3098 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
3099
3100 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
3101
e430e5ba
KH
31022003-07-31 Kenichi Handa <handa@m17n.org>
3103
3104 * process.c (read_process_output): Return the actually read bytes
3105 instead of the result of decoding.
3106
97e7188e
KH
31072003-07-31 Kenichi Handa <handa@m17n.org>
3108
3109 * xterm.h (struct x_bitmap_record): New member have_mask.
3110
3111 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
3112 to 0.
3113 (x_create_bitmap_from_file): Likewise.
3114 (x_destroy_bitmap): Check have_mask member before freeing a mask.
3115 (x_destroy_all_bitmaps): Likewise.
3116 (x_create_bitmap_mask): Set have_mask member to 1.
3117
b53094d6
RS
31182003-07-30 Richard M. Stallman <rms@gnu.org>
3119
3120 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
3121
631f2082
JD
31222003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3123
3124 * gtkutil.c (xg_mark_data): Update calls to mark_object.
3125
c855f2ca
RS
31262003-07-29 Richard M. Stallman <rms@gnu.org>
3127
3128 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
3129 Conditionalize XIM code on HAVE_XIM.
3130
3131 * fns.c (Fclear_string): New function.
3132 (syms_of_fns): defsubr it.
3133
17e6d491
KH
31342003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change)
3135
0930c1a1 3136 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
17e6d491 3137
29ea8ae9
SM
31382003-07-22 Stefan Monnier <monnier@cs.yale.edu>
3139
3140 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
3141
3142 * buffer.c (delete_all_overlays): New function.
3143 * buffer.h (delete_all_overlays): Declare.
3144 * coding.c (run_pre_post_conversion_on_str):
3145 * print.c (temp_output_buffer_setup):
3146 * fileio.c (Finsert_file_contents):
3147 * minibuf.c (get_minibuffer): Use it.
3148
1dd7ccf2
AC
31492003-07-22 Andrew Choi <akochoi@shaw.ca>
3150
3151 * unexmacosx.c (unexec_regions_sort_compare):
3152 (unexec_regions_merge): New functions. Sort and merge unexec
3153 regions before dumping them.
3154
f57bd967
DL
31552003-07-22 Dave Love <fx@gnu.org>
3156
3157 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
3158
7cdee936
SM
31592003-07-21 Stefan Monnier <monnier@cs.yale.edu>
3160
3161 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
3162 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
3163 MARKBIT as the gcmarkbit for strings.
3164
e50886d3
RS
31652003-07-21 Richard M. Stallman <rms@gnu.org>
3166
3167 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
3168
29ea8ae9 3169 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
e50886d3
RS
3170 (syms_of_fns): Corresponding change.
3171
3172 * alloc.c (syms_of_alloc): Doc fixes.
3173
31742003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
3175
3176 * s/netbsd.h: Use -Wl syntax.
3177
fdc39b59
RS
31782003-07-17 Richard M. Stallman <rms@gnu.org>
3179
3180 * xterm.c (xim_initialize): Redo 6/24 change.
3181
9c53385f
SM
31822003-07-15 Stefan Monnier <monnier@cs.yale.edu>
3183
3184 * buffer.c (copy_overlays): Use EMACS_INT for positions.
3185 (Fswitch_to_buffer): Don't signal an error when switching to the same
3186 buffer in a dedicated window.
3187
3188 * alloc.c: Use bitmaps for cons, as was done for floats.
3189 (init_float, init_cons): Let the normal code allocate the first block.
3190 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
3191 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
3192 New macros.
3193 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
3194 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
3195 (live_cons_p): Check the pointer is not past the `conses' array.
3196 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
3197 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
3198 (survives_gc_p): Use CONS_MARKED_P and simplify.
3199 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
3200
dde13196
PE
32012003-07-13 Paul Eggert <eggert@twinsun.com>
3202
3203 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
3204 puts it into BSS instead, at least on Solaris 8 and 9.
3205 This is a valid optimization, and it may occur on other platforms,
3206 so Emacs should not assume that initializing a static variable to
3207 zero puts it into data.
3208 * alloc.c (pure, staticvec):
3209 Initialize these arrays to nonzero, so that they're not
3210 put into BSS by that optimization.
3211
a801bc34
SM
32122003-07-13 Stefan Monnier <monnier@cs.yale.edu>
3213
3214 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
3215 (lisp_align_malloc): Use posix_memalign is available.
3216 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
3217 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
3218 for consistency. Update users.
3219
0c8b2afa
RS
32202003-07-13 Richard M. Stallman <rms@gnu.org>
3221
3222 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
3223
668c2ab0
JB
32242003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
3225
3226 * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
3227 and use the Gtk+ function gtk_window_icon_from_file if available.
3228
3229 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
3230 handle mask of bitmaps.
3231 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
3232 mask property.
3233 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
3234
3235 * xterm.h (xg_set_icon): New function.
3236
800bebe3
RS
32372003-07-12 Paul Eggert <eggert@twinsun.com>
3238
3239 * unexelf.c (unexec): Consider a section to precede the .bss
3240 section if its addresses overlap that of .bss.
3241
69e38995
RS
32422003-07-12 Richard M. Stallman <rms@gnu.org>
3243
3244 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
3245
3246 * config.in (HAVE_CRTIN): Add #undef.
3247 (INLINE): Really inline only if OPTIMIZE is defined.
3248
3249 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
3250 END_FILES_1.
3251 (START_FILES_1, END_FILES_1): New macros (conditional).
a801bc34 3252 (LD_SWITCH_SYSTEM_TEMACS): Define.
69e38995
RS
3253
3254 * s/openbsd.h: Don't include bsd4-3.h.
a801bc34
SM
3255 (TERMINFO): Define.
3256 (LIBS_TERMCAP): Define.
3257 (LD_SWITCH_SYSTEM): Define (two definitions).
69e38995
RS
3258
3259 * xfns.c: Include libpng/png.h instead of png.h.
3260
f1d0c238
AS
32612003-07-11 Andreas Schwab <schwab@suse.de>
3262
3263 * buffer.c (modify_overlay): Update prototype.
3264 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
3265 Likewise.
3266
5f6bf5fe
SM
32672003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3268
3269 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
3270 (struct interval): Move to intervals.h.
3271 (struct Lisp_Marker): Use EMACS_INT for position info.
3272 (forward_point): Remove prototype of defunct function.
3273 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
3274 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
3275 (syms_of_textprop, set_text_properties): Remove prototypes that are
3276 already in intervals.h.
3277
3278 * intervals.h (struct interval): Move from lisp.h.
3279 Use EMACS_INT for position and size info.
3280
3281 * coding.c: Include intervals.h for Fset_text_properties.
3282
3283 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3284 position and length information.
3285
2765b457
SM
32862003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3287
3288 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
3289 position and length information.
3290
2410d73a
SM
32912003-07-09 Stefan Monnier <monnier@cs.yale.edu>
3292
3293 Change overlays_after and overlays_before so the overlays themselves
3294 are linked into lists, rather than using cons cells. After all each
3295 Lisp_Misc already occupies 5 words, so we can add a `next' field to
3296 Lisp_Overlay for free and save up one cons cell per overlay (not
3297 to mention one indirection when traversing the list of overlay).
3298
3299 * lisp.h (struct Lisp_Overlay): New field `next'.
3300
3301 * buffer.h (struct buffer): Change overlays_before and overlays_after
3302 from Lisp lists of overlays to pointers to overlays.
3303
3304 * buffer.c (overlay_strings, recenter_overlay_lists):
3305 Fix typo in eassert in last commit.
3306 (unchain_overlay): New function.
3307 (add_overlay_mod_hooklist): Use AREF.
3308 (copy_overlays, reset_buffer, overlays_at, overlays_in)
3309 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
3310 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
3311 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
3312 (report_overlay_modification, evaporate_overlays, init_buffer_once):
3313 Adjust to new type of overlays_(before|after).
3314
3315 * alloc.c (mark_object): Mark the new `next' field of overlays.
3316 (mark_buffer): Manually mark the overlays_(after|before) fields.
3317
3318 * coding.c (run_pre_post_conversion_on_str):
3319 * editfns.c (overlays_around):
3320 * xdisp.c (load_overlay_strings):
3321 * fileio.c (Finsert_file_contents):
3322 * indent.c (current_column):
3323 * insdel.c (signal_before_change, signal_after_change):
3324 * intervals.c (set_point_both):
3325 * print.c (temp_output_buffer_setup): Use new type for
3326 overlays_(before|after).
3327
04812929
SM
33282003-07-08 Stefan Monnier <monnier@cs.yale.edu>
3329
3330 * buffer.c (report_overlay_modification): Don't run hooks while
3331 traversing the list of overlays.
3332
3333 * buffer.h (struct buffer): Use an int for overlay_center.
3334 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3335 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3336
3337 * buffer.c (reset_buffer, recenter_overlay_lists)
3338 (adjust_overlays_for_insert, adjust_overlays_for_delete)
3339 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
3340 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
3341 (overlays_at, evaporate_overlays, recenter_overlay_lists)
3342 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
3343
3344 * xdisp.c (fast_find_position): Remove unused var.
3345
3346 * cmds.c (Qexpand_abbrev): New sym.
3347 (syms_of_cmds): Initialize it.
3348 (internal_self_insert): Use it to call expand-abbrev.
3349
2e7ecf15
KS
33502003-07-09 Kim F. Storm <storm@cua.dk>
3351
3352 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if emacs
3353 was configured with --without-xim.
42f81f64 3354 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
2e7ecf15 3355
c6de56a0
RS
33562003-07-07 Richard M. Stallman <rms@gnu.org>
3357
3358 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
3359
3360 * alloc.c (Fgarbage_collect): Doc fix.
3361
b93fb365
KH
33622003-07-07 Nozomu Ando <nand@mac.com> (tiny change)
3363
3364 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
3365
bfe1a3f7
SM
33662003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3367
04812929
SM
3368 * minibuf.c (read_minibuf): UNGCPRO before returning.
3369 (Ftry_completion, Fall_completions): Doc fix.
3370
bfe1a3f7
SM
3371 * alloc.c (live_float_p): Check that p is not past the `floats' array,
3372 now that `floats' is not the last element of the struct any more.
3373
ee79d1aa
JR
33742003-07-06 Jason Rumney <jasonr@gnu.org>
3375
3376 * w32term.h (ClipboardSequence_Proc): New type.
3377
3378 * w32fns.c (clipboard_sequence_fn): New variable.
3379 (globals_of_w32fns): Initialize it.
3380
3381 * w32select.c (last_clipboard_sequence_number): New variable.
3382 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
3383 number if possible.
3384
49723c04
SM
33852003-07-06 Stefan Monnier <monnier@cs.yale.edu>
3386
4698665f
SM
3387 * m/amdx86-64.h (MARKBIT):
3388 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
3389 MARKBIT and ARRAY_MARK_FLAG any more.
3390
3391 * m/hp800.h (XSETMARKBIT):
3392 * m/sr2k.h (XSETMARKBIT):
3393 * lisp.h (XSETMARKBIT): Remove unused macro.
3394
49723c04
SM
3395 * lisp.h (mark_object): Change prototype.
3396
3397 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
3398 (last_marked): Change accordingly.
3399 (mark_interval, mark_maybe_object, mark_maybe_pointer)
3400 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
3401 (mark_buffer): Update calls to mark_object.
3402
3403 * bytecode.c (mark_byte_stack):
3404 * fns.c (sweep_weak_table):
3405 * keyboard.c (mark_kboards): Update calls to mark_object.
3406
1d660eca
JR
34072003-07-06 Jason Rumney <jasonr@gnu.org>
3408
3409 * alloc.c (struct ablock): Only include padding when there is some.
3410
618b5ae4
SM
34112003-07-04 Stefan Monnier <monnier@cs.yale.edu>
3412
3413 * alloc.c (ALIGN): Add casts to simplify usage.
3414 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
3415 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
3416 (struct ablock, struct ablocks): New types.
3417 (free_ablock): New global var.
3418 (lisp_align_malloc, lisp_align_free): New functions.
3419 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
3420 (struct float_block): Reorder and add gcmarkbits.
3421 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
3422 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
3423 (init_float, make_float): Use lisp_align_malloc.
3424 (free_float, live_float_p): Don't use `type' any more.
3425 (make_float): Use FLOAT_UNMARK to access to mark bit.
3426 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
3427 Use FLOAT_MARKED_P to access the mark bit.
3428 (pure_alloc): Simplify use of ALIGN.
3429 (mark_object): Use FLOAT_MARK to access the mark bit.
3430 (gc_sweep): Use new macros to access the float's mark bit.
3431 (init_alloc_once): Init free_ablock.
3432
3433 * lisp.h (struct Lisp_Float): Remove unused field `type'.
3434
3ef06d12
SM
34352003-06-27 Stefan Monnier <monnier@cs.yale.edu>
3436
3437 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
3438 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
3439 (allocate_buffer): Move.
3440 (string_bytes): Don't mask markbit of `size_byte'.
3441 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3442 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
3443 Use the `size' field of buffers (rather than the `name' field) for
3444 the mark bit, as is done for all other vectorlike objects.
3445 Use the new macros to access the mark bit of vectorlike objects.
3446
e81043aa
RS
34472003-06-26 Richard M. Stallman <rms@gnu.org>
3448
3449 * puresize.h (BASE_PURESIZE): Increment base size.
3450
3451 * xdisp.c (fast_find_position): Enable Gerd's new definition.
3452
3453 * xterm.c (xim_initialize): Undo previous change.
3454
2d0834cc
SM
34552003-06-26 Stefan Monnier <monnier@cs.yale.edu>
3456
3457 * alloc.c (survives_gc_p): Simplify.
3458
3459 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
3460
3461 * window.c (Fset_window_dedicated_p): Simplify.
3462 (display_buffer_1): Don't raise the win from which minibuf was entered.
3463 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
3464 (Fminibuffer_selected_window): Simplify.
3465
3466 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
3467
3468 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
3469 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
3470
3471 * insdel.c (check_markers, adjust_markers_for_delete)
3472 (adjust_markers_for_insert, adjust_markers_for_replace)
3473 (prepare_to_modify_buffer, RESTORE_VALUE):
3474 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
3475 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
3476 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
3477 * alloc.c (Fmake_marker, free_marker, gc_sweep):
3478 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
3479 * editfns.c (save_excursion_restore, transpose_markers):
3480 * window.c (delete_window):
3481 * xdisp.c (message_dolog): Update for new types.
3482
d54ae3d8
JD
34832003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3484
a5f696ac
JD
3485 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
3486 (realize_default_face): Use default_face_done_p for the force_p
2d0834cc 3487 argument to set_lface_from_font_name. Set default_face_done_p to one.
a5f696ac
JD
3488
3489 * frame.c (make_frame): Initialize default_face_done_p.
3490
3491 * frame.h (struct frame): Add default_face_done_p.
3492
d54ae3d8
JD
3493 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
3494 will be defined.
3495
2336fe58
SM
34962003-06-25 Stefan Monnier <monnier@cs.yale.edu>
3497
3498 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
3499 Initialize the new field `gcmarkbit'.
3500 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
3501 (mark_interval_tree): Don't mark the tree separately from the nodes.
3502 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
3503 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
3504 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
3505
3506 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
3507 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
3508 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
3509 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
3510 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
3511
bcea31c2
DL
35122003-06-24 Dave Love <fx@gnu.org>
3513
3514 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
3515
3516 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
3517 from gnulib.
3518
2601f59e
RS
35192003-06-21 Richard M. Stallman <rms@gnu.org>
3520
3521 * fileio.c (Fwrite_region): Alternate messages
3522 for append and partial write.
3523
3524 * keyboard.c (read_key_sequence): When converting upcase fn key to
3525 downcase, update fkey and keytran so `backspace' gets translated.
3526
3527 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
3528
3529 * process.c (wait_reading_process_input): Don't signal SIGIO
3530 in batch mode.
3531
b5d2c621
KH
35322003-06-17 Kenichi Handa <handa@m17n.org>
3533
3534 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
3535 composite.h.
3536
3537 * xselect.c: Don't include charset.h, coding.h, composite.h.
3538 (Qforeign_selection): New variable.
3539 (syms_of_xselect): Intern and static it.
3540 (selection_data_to_lisp_data): Return a unibyte string made from
3541 data with `foreign-selection' text property.
3542
6793bc63
SM
35432003-06-15 Stefan Monnier <monnier@cs.yale.edu>
3544
3545 * termhooks.h (EVENT_INIT): New macro.
3546
3547 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
3548
3549 * alloc.c (mark_kboards): Move to keyboard.c.
3550
3551 * keyboard.c (record_asynch_buffer_change, read_avail_input):
3552 * xterm.c (x_dispatch_event):
3553 * xmenu.c (find_and_call_menu_selection):
3554 * xdisp.c (handle_tool_bar_click):
3555 * w32menu.c (menubar_selection_callback):
3556 * sysdep.c (kbd_input_ast, read_input_waiting):
3557 * msdos.c (dos_rawgetc):
3558 * macterm.c (mac_check_for_quit_char):
3559 * macmenu.c (menubar_selection_callback):
3560 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
3561 data to kbd_buffer_store_event.
3562
b3ea810c
KS
35632003-06-15 Kim F. Storm <storm@cua.dk>
3564
3565 * xdisp.c (x_fix_overlapping_area): Always use area relative X
6793bc63 3566 to fix redisplay problem with tall characters (such as \e,AC\e(B).
b3ea810c 3567
b8f75eda
KG
35682003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
3569
3570 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
3571
ba92ce48
KH
35722003-06-12 Kenichi Handa <handa@m17n.org>
3573
3574 * fileio.c (Fwrite_region): Save and restore restriction.
3575
b80263be
DL
35762003-06-12 Dave Love <fx@gnu.org>
3577
3578 * alloca.c (alloca): Declare arg as size_t.
3579
6793bc63
SM
3580 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
3581 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
b80263be 3582
b23c0a83
DL
35832003-06-11 Dave Love <fx@gnu.org>
3584
3585 * search.c (shrink_regexp_cache): Use xrealloc.
3586 (syms_of_search): Use xmalloc.
3587
700e47c2
KS
35882003-06-10 Kim F. Storm <storm@cua.dk>
3589
3590 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
3591 Adjust phys_cursor.x to be relative to window box, rather than
3592 text area before checking -- to ensure cursor is redrawn when
3593 exposing window.
3594 Note: This also fixes a similar (older) bug if display margins
3595 are present.
3596
f11aa0b2
KH
35972003-06-06 Kenichi Handa <handa@m17n.org>
3598
3599 * coding.c (encoding_buffer_size): If coding->type is
3600 coding_type_ccl, double magnification on CRLF encoding.
3601
3d143690
JR
36022003-06-06 Jason Rumney <jasonr@gnu.org>
3603
3604 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
3605 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
3606
3607 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
3608 Mac too.
3609
f16205ca
DL
36102003-06-05 Dave Love <fx@gnu.org>
3611
b23c0a83
DL
3612 * strftime.c: Merge changes from gnulib.
3613
f16205ca
DL
3614 * mktime.c (__mktime_internal): Merge changes from gnulib
3615 involving year 69 and dst2.
3616
3617 Changes to merge with gnulib version and be consistent with the
3618 autoconf test:
3619
6793bc63
SM
3620 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
3621 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
f16205ca
DL
3622 [HAVE_LOCALE_H]: Include locale.h.
3623 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
3624
9b87a0bc
KS
36252003-06-05 Kim F. Storm <storm@cua.dk>
3626
3627 * window.c (coordinates_in_window): Convert X and Y to window
3628 relative coordinates inside mode-line and header-line parts.
3629 Convert X and Y to margin area relative coordinates inside left
3630 and right display margin parts.
3631
5a8a15ec
JR
36322003-06-05 Jason Rumney <jasonr@gnu.org>
3633
3634 * w32fns.c (add_system_logical_colors_to_map): New function.
3635 (Fx_open_connection): Use it.
3636
01ed8ff1
SM
36372003-06-04 Stefan Monnier <monnier@cs.yale.edu>
3638
3639 * process.c (allocate_pty): Revert part of the previous patch.
3640 (Faccept_process_output): Simplify.
3641
b427b65d
JR
36422003-06-04 Jason Rumney <jasonr@gnu.org>
3643
3644 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
3645
3646 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
3647 (lispy_mouse_wheel_names): Remove.
3648 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
3649 Always define drag_and_drop_syms.
3650
3651 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
3652 WHEEL_EVENT events.
3653
914a8c47
SM
36542003-06-03 Stefan Monnier <monnier@cs.yale.edu>
3655
01ed8ff1
SM
3656 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
3657
914a8c47
SM
3658 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
3659
adcb132c
JD
36602003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3661
3662 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
3663 menu item label.
3664
be781fa7
RS
36652003-06-03 Richard M. Stallman <rms@gnu.org>
3666
3667 * window.c (Fwindow_edges): Doc fix.
3668 (Fwindow_pixel_edges, Fwindow_inside_edges)
3669 (Fwindow_inside_pixel_edges): New functions.
3670 (syms_of_window): defsubr them.
3671
3672 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
3673 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
3674
914a8c47
SM
36752003-06-02 Stefan Monnier <monnier@cs.yale.edu>
3676
3677 * dispnew.c (Fsit_for): Don't lie about the number of args.
3678
5b07197a
DL
36792003-06-02 Dave Love <fx@gnu.org>
3680
3681 * callproc.c: Use HAVE_FCNTL_H, not USG5.
3682 (syms_of_callproc) <process-environment>: Doc fix.
3683
3684 * doc.c: Use HAVE_FCNTL_H, not USG5.
3685
3686 * xfaces.c (font_rescale_ratio): Fix for K&R.
3687
3688 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
3689
3690 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
3691
3692 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
3693
3694 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
3695 (xg_create_frame_widgets): Use ENCODE_UTF_8.
3696
d7107586 3697 * xterm.c (Qutf_8): Move to coding.c
5b07197a
DL
3698
3699 * xmenu.c (ENCODE_MENU_STRING): New.
3700 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
3701 Use it.
3702
3703 * coding.h (ENCODE_UTF_8): New.
3704 (Qutf_8): Declare.
3705
3706 * coding.c (Qutf_8): New.
3707 (syms_of_coding): Intern it.
3708
3709 * fns.c: Doc fixes.
3710
7335b336
KH
37112003-06-02 Kenichi Handa <handa@m17n.org>
3712
3713 * buffer.c (Fset_buffer_multibyte): Fix previous change.
3714
914a8c47
SM
37152003-06-01 Stefan Monnier <monnier@cs.yale.edu>
3716
3717 * lread.c (openp): Make sure STR is a string.
3718
9862c135
JR
37192003-06-01 David Ponce <david@dponce.com>
3720
3721 * termhooks.h (enum event_kind): Added new WHEEL_EVENT event.
3722 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
3723
3724 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
3725 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
3726 (discard_mouse_events): Discard WHEEL_EVENT events too.
3727 (lispy_wheel_names, wheel_syms): New.
3728 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
3729 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX
3730 defined.
914a8c47 3731 (make_lispy_event): Add WHEEL_EVENT handler.
9862c135
JR
3732
3733 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
3734 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
3735 WHEEL_EVENT events.
3736
f984e73e
JPW
37372003-05-31 John Paul Wallington <jpw@gnu.org>
3738
3739 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
3740 timer are in lisp/emacs-lisp.
3741
1efcd78f
KH
37422003-05-31 Kenichi Handa <handa@m17n.org>
3743
458c8af4
KH
3744 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
3745 region when a buffer is changed to unibyte.
3746
1efcd78f
KH
3747 * charset.h (VALID_LEADING_CODE_P): New macro.
3748 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
3749
778e2804
KH
3750 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
3751 is nonzero, accept multibyte form of eight-bit-control chars.
3752 (decode_composition_emacs_mule): Likewise.
3753 (decode_coding_emacs_mule): Likewise.
3754 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
3755 multibyte form of eight-bit-control chars.
3756
3757 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
3758 (Finsert_file_contents): If coding-system-for-read is bound to
3759 Qauto_save_coding, use the coding system emacs-mule with special
3760 setting for recovering a file.
3761 (choose_write_coding_system): On auto saving, use the coding
3762 system emacs-mule with special setting for auto saving.
3763 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
3764
034060e4
KH
37652003-05-30 Kenichi Handa <handa@m17n.org>
3766
3767 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
3768 properly before calling ccl_driver.
3769
778e2804 3770 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
3771
3772 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
3773 nonzero.
3774 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
3775 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
3776
595f5aa5
GM
37772003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
3778
3779 * xfaces.c (realize_default_face): Do not abort if lface is
3780 non-existent - reverts change from 2003-05-19.
3781
103e0180
KH
37822003-05-29 Kenichi Handa <handa@m17n.org>
3783
3784 * coding.c (decode_coding_iso2022): Pay attention to the byte
3785 sequence of CTEXT extended segment, and retain those bytes as is.
3786
37872003-05-28 Kenichi Handa <handa@m17n.org>
3788
3789 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
3790 of CODING_REPLACEMENT_CHARACTER.
3791 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
3792 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
3793 check this flag on encoding.
3794 (encode_coding_sjis_big5): Check
3795 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
3796 (Fset_terminal_coding_system_internal): Set
3797 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
3798 instead of setting CODING_FLAG_ISO_SAFE flag in
3799 terminal_coding.flags.
3800
3801 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
3802 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
3803 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
3804
ff6a3bfb 38052003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 3806
ff6a3bfb
RS
3807 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
3808
3809 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 3810
1963c428
KS
38112003-05-28 Kim F. Storm <storm@cua.dk>
3812
3813 * xdisp.c (expose_window): Fix error in calculation of
3814 window relative coordinates of area to redisplay.
3815
2b5d4601
JR
38162003-05-27 Jason Rumney <jasonr@gnu.org>
3817
3818 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
3819
1c64a4a2
JB
38202003-05-27 David Ponce <david@dponce.com>
3821
3822 Handle W32 mouse wheel events as mouse click events, like in X.
3823
3824 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
3825 MOUSE_WHEEL_EVENT anymore.
3826
3827 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
3828 Scrolling down/up the mouse wheel is respectively mapped to mouse
3829 button 4 and 5.
3830 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
3831 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
3832 WM_MOUSEWHEEL events.
3833
2d031b89
AS
38342003-05-27 Andreas Schwab <schwab@suse.de>
3835
20464fdf
AS
3836 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
3837
2d031b89
AS
3838 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
3839 partially visible line.
3840
3841 * alloc.c (Fgarbage_collect): Fix last change.
3842
97bc76d4
JPW
38432003-05-26 John Paul Wallington <jpw@gnu.org>
3844
3845 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
3846
56613f06
SM
38472003-05-25 Stefan Monnier <monnier@cs.yale.edu>
3848
3849 * window.c (Fset_window_buffer): Add type of `keep_margins'.
3850 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
3851
3852 * window.h (window_box_text_cols): Declare.
3853
3854 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
3855 (x_draw_vertical_border): Remove unused var `f'.
3856
3857 * xfaces.c (build_scalable_font_name): Remove `unused var
3858 pixel_size' warning.
3859
3860 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
3861
3862 * unexelf.c (unexec): Remove `unused var n' warning.
3863
3864 * strftime.c (my_strftime_localtime_r): Remove `defined but
3865 unused' warning.
3866
3867 * process.c (allocate_pty): Remove `unused var stb' and
3868 `cp might be used uninitialized' warnings.
3869
3870 * dispnew.c (mode_line_string): Remove unused var `f'.
3871
3872 * coding.c (find_safe_codings): Remove unused var `i'.
3873
3874 * bytecode.c (Fbyte_code): Remove `unused val' warning.
3875
3876 * buffer.c (Fkill_buffer): Remove unused var `list'.
3877
3878 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
3879
93421a1f
JD
38802003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3881
3882 * frame.c (make_frame): Condition want_fullscreen with
3883 HAVE_WINDOW_SYSTEM.
3884
c4b8aebc
JB
38852003-05-25 Juanma Barranquero <lektu@terra.es>
3886
3887 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
3888 (Fwindow_scroll_bars): Fix typo in docstring.
3889
0416870b
KS
38902003-05-24 Kim F. Storm <storm@cua.dk>
3891
3892 The following changes serve several purposes:
3893
3894 1) Swap the position of fringes and display margins in windows, i.e.
3895 the fringes are now displayed between the margins and the text area
3896 (by default).
3897
3898 2) Allow fringe and scroll bar parameters to be set per-buffer and
3899 per-window (like display margins). Such settings are now stored
3900 in window configurations, preserved when frames are resized, and
9018a88e 3901 copied when windows are split vertically or horizontally.
0416870b
KS
3902 Several bugs related to display margins have been fixed.
3903
3904 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 3905
0416870b
KS
3906 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
3907 rather than FRAME_WIDTH (FRAME_FONT (f)).
3908
3909 5) Introduce a consistent naming of variables, members and macros
3910 depending on whether their value is measured in pixels or in
3911 canonical columns/lines. Pixel dimensions are named *_width and
3912 *_height, while canonical columns/lines are named *_cols and
3913 *_lines. Pixel positions are named *_x and *_y, while column/line
3914 positions are named *_col and *_line.
3915
3916 6) Consolidate more of the X, W32, and MAC gui code by moving
3917 common data into struct frame, and generalize it for the non-gui
3918 case by using suitable defaults.
3919
3920 7) Cleanup and consolidate the macros controlling frame and window
3921 layout into frame.h and window.h, and generalize the use of the
3922 various window_box_* functions (enhanced to handle the new fringe
3923 position and the per-window fringe and scroll bar settings).
3924
3925 * frame.h (struct frame): Rename members height to text_lines,
3926 width to text_cols, window_height to total_lines, window_width to
3927 total_cols, new_height to new_text_lines, new_width to
3928 new_text_cols. All uses changed.
3929 (struct frame): New members which consolidate common members of
3930 x_output, w32_output, and mac_output structures: left_pos,
3931 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
3932 win_gravity, size_hint_flags, border_width, internal_border_width,
3933 line_height, fringe_cols, left_fringe_width, right_fringe_width,
3934 want_fullscreen. All uses changed.
3935 (struct frame): New member column_width contaning the canonical
3936 column width, analogue to line_height. All uses changed.
3937 (struct frame): Rename members scroll_bar_pixel_width to
3938 config_scroll_bar_width, and scroll_bar_cols to
3939 config_scroll_bar_cols. All uses changed.
3940 (struct frame): New member scroll_bar_actual_width which
3941 consolidates and renames the vertical_scroll_bar_extra member of
3942 x_output, w32_output, and mac_output structures. All uses changed.
3943 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
3944 from x/w32/macterm.h files. All uses changed. Also change code
3945 which referred to f->output_data...->pixel_height.
3946 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
3947 from x/w32/macterm.h files. All uses changed. Also change code
3948 which referred to f->output_data...->pixel_width.
3949 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
3950 Also change code which referred to f->height.
3951 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
3952 Also change code which referred to f->width.
3953 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
3954 to update new_text_lines and new_text_cols members directly.
3955 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
3956 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
3957 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
3958 FRAME_SCROLL_BAR_COLS. All uses changed.
3959 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
3960 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
3961 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
3962 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
3963 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
3964 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
3965 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
3966 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
3967 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
3968 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
3969 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
3970 return line_height member (it now has proper value also for
3971 non-window frames).
3972 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
3973 return new column_width member (rather than the default font width).
3974 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
3975 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
3976 from x/w32/macterm.h files. Unconditionally return corresponding
3977 member of frame structure (they now have proper values also for
3978 non-window frames).
3979 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
3980 Calculate return value from left and right widths.
3981 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
3982 internal_border_width member (has proper value for non-window frame).
3983 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
3984 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
3985 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
3986 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
3987 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
3988 consolidated from xterm.h, macterm.h, and w32term.h.
3989 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
3990 consolidated from xterm.h, macterm.h, and w32term.h.
3991 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
3992 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
3993 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
3994 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
3995 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
3996 consolidated from x/mac/w32term.h.
3997 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
3998 consolidated from x/mac/w32term.h.
3999 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
4000 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
4001 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
4002 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
4003
4004 * window.h (struct window): Rename members left to left_col,
4005 top to top_line, height to total_lines, width to total_cols,
4006 left_margin_width to left_margin_cols, right_margin_width to
4007 right_margin_cols, orig_height to orig_total_lines, orig_top to
4008 orig_top_line. All uses changed.
4009 (struct window): New members left_fringe_width, right_fringe_width,
4010 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
4011 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
4012 New macros primarily used to simplify other macros.
4013 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
4014 referred to XINT (w->width).
4015 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
4016 referred to XINT (w->height).
4017 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
4018 referred to XINT (w->width) * canon_x_unit.
4019 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
4020 referred to XINT (w->height) * canon_y_unit.
4021 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
4022 referred to XINT (w->left).
4023 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
4024 all uses and code that referred to XINT (w->left) + XINT (w->width).
4025 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
4026 referred to XINT (w->top).
4027 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
4028 referred to XINT (w->top) + XINT (w->height).
4029 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
4030 referred to XINT (w->left) * canon_x_unit.
4031 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
4032 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
4033 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
4034 referred to XINT (w->top) * canon_y_unit.
4035 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
4036 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
4037 (WINDOW_LEFTMOST_P): New macro.
4038 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
4039 All uses changed.
4040 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
4041 All uses changed.
4042 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
4043 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
4044 Do not exclude left fringe width.
4045 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
4046 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
4047 Do not exclude fringe widths.
4048 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
4049 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
4050 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
4051 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
4052 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
4053 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
4054 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
4055 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
4056 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
4057 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
4058 New macros. Change code which referenced corresponding
4059 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
4060 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
4061 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
4062 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
4063 allow per-window scroll-bar settings.
4064 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
4065 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
4066 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
4067 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
4068 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
4069 FRAME_SCROLL_BAR_WIDTH.
4070 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 4071 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
4072 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
4073 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
4074 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
4075 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
4076 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
4077 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
4078 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4079 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4080 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
4081 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
4082 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4083 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
4084 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
4085 (window_from_coordinates): Update prototype.
4086 (Fset_window_buffer): Update EXFUN.
4087 (set_window_buffer): Update prototype.
9018a88e 4088
0416870b 4089 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 4090 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
4091 changed.
4092 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
4093 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
4094 internal_border_width is now set to 0 for non-window frames.
4095 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
4096 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
4097 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
4098 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
4099 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
4100 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
4101 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
4102 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
4103 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 4104 Move to window.h and renamed [see window.h changes].
0416870b
KS
4105 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
4106 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
4107 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
4108 Use WINDOW_TOTAL_LINES.
0416870b
KS
4109 (frame_update_line_height): Remove prototype.
4110
4111 * buffer.h (struct buffer): Rename members measured in columns:
4112 left_margin_width to left_margin_cols, right_margin_width to
4113 right_margin_cols. All uses changed.
4114 New members left_fringe_width, right_fringe_width,
4115 fringes_outside_margins for per-buffer fringe settings.
4116 New members scroll_bar_width and vertical_scroll_bar_type for
4117 per-buffer scroll bar settings.
4118
4119 * buffer.c (init_buffer_once): Set buffer_defaults and
4120 buffer_local_flags for new buffer-local variables
4121 left_fringe_width, right_fringe_width, fringes_outside_margins,
4122 scroll_bar_width, and vertical_scroll_bar_type.
4123 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
4124 default-* variables for them.
4125
4126 * dispnew.c: Make (many) trivial substitutions for renamed and
4127 new macros in dispextern.h, frame.h and window.h.
4128 (mode_line_string): No need to adjust width for mode lines, as it
4129 is already adjusted by the caller.
4130 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 4131
0416870b
KS
4132 * frame.c: Make (many) trivial substitutions for renamed and
4133 new macros in dispextern.h, frame.h and window.h.
4134 (make_frame): Initialize left_fringe_width, right_fringe_width,
4135 fringe_cols, scroll_bar_actual_width, border_width,
4136 internal_border_width, column_width, line_height, x_pixels_diff,
4137 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
4138 members with values suitable for a non-window frames.
4139
4140 * gtkutil.c: Make (many) trivial substitutions for renamed and
4141 new macros in dispextern.h, frame.h and window.h.
9018a88e 4142
0416870b
KS
4143 * indent.c: Make (few) trivial substitutions for renamed and
4144 new macros in dispextern.h, frame.h and window.h.
4145
4146 * keyboard.c: Make (many) trivial substitutions for renamed and
4147 new macros in dispextern.h, frame.h and window.h.
4148 (make_lispy_event): Use window positions returned from
4149 window_from_coordinates when constructing the lisp event for
4150 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
4151 (incorrect) values locally.
4152 (make_lispy_movement): Use window positions returned from
4153 window_from_coordinates when constructing the lisp event, rather
4154 than calculating (incorrect) values locally.
4155
4156 * scroll.c: Make (some) trivial substitutions for renamed and
4157 new macros in dispextern.h, frame.h and window.h.
4158
4159 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
4160 scroll-bars.
4161
4162 * sysdep.c: Make (few) trivial substitutions for renamed and
4163 new macros in dispextern.h, frame.h and window.h.
4164
4165 * term.c: Make (some) trivial substitutions for renamed and
4166 new macros in dispextern.h, frame.h and window.h.
4167
4168 * widget.c: Make (few) trivial substitutions for renamed and
4169 new macros in dispextern.h, frame.h and window.h.
4170
4171 * window.c: Make (many) trivial substitutions for renamed and
4172 new macros in dispextern.h, frame.h and window.h.
4173 (make_window): Initialize new members
4174 left_margin_cols, right_margin_cols, left_fringe_width,
4175 right_fringe_width, fringes_outside_margins, scroll_bar_width,
4176 and vertical_scroll_bar_type.
4177 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 4178 and per-window fringes and scroll-bars.
0416870b 4179 Fix bug related to incorrectly adjusting coordinates by
9018a88e 4180 frame's internal_border_width (the effect normally negible since
0416870b
KS
4181 the internal_border_width is typically 0 or 1 pixel, but very
4182 noticeable for an internal_border_width of e.g. 25 pixels).
4183 Upon successful return (other than ON_NOTHING), the coordinates
4184 are now always properly converted to window relative for the
4185 given display element.
4186 (window_from_coordinates): Add new parameters wx and wy to
4187 return the window relative x and y position in the returned
4188 window and part. A null arg means, don't return the position.
4189 All callers changed.
4190 (adjust_window_margins): New function which may reduce the width
4191 of the display margins if a window's text area is too small after
4192 resizing or splitting windows.
4193 (size_window): Fix bug that did not account for display margin
4194 widths when checking the minimum width of a window; use
4195 adjust_window_margins.
4196 (set_window_buffer): Call Fset_window_fringes and
4197 Fset_window_scroll_bars to setup per-window elements.
4198 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
4199 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
4200 (e.g. after splitting a window or resizing the frame).
4201 All callers changed.
0416870b
KS
4202 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
4203 (Fsplit_window): Duplicate original window's display margin,
4204 fringe, and scroll-bar settings; then call Fset_window_buffer with
4205 KEEP_MARGINS non-nil. This fixes a bug which caused a split
4206 window to only preserve the display margins in one of the windows.
c4b8aebc 4207 When splitting horizontally, call adjust_window_margins on both
0416870b
KS
4208 windows to ensure that the text area of the new windows is non too
4209 narrow. This fixes a bug which could cause emacs to trap if the
4210 width of the split window was less than the width of the display
4211 margins.
9018a88e
SM
4212 (window_box_text_cols): Renamed from window_internal_width.
4213 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
4214 Fix bug that caused vertical separator to be subtracted also on
4215 window frames. Fix another bug that did not reduce the returned
4216 value by the columns used for display margins.
4217 (window_scroll_line_based): Fix bug related to scrolling too much
4218 when display margins are present (implicitly fixed by the fix to
4219 window_box_text_cols).
4220 (scroll_left, scroll_right): Fix bug related to scrolling too far
4221 by default when display margins are present (implicitly fixed by
4222 the fix to window_box_text_cols).
4223 (struct saved_window): Rename members left to left_col, top to
4224 top_line, width to total_cols, height to total_lines, orig_top to
4225 orig_top_line, orig_height to orig_total_lines. All uses changed.
4226 New members left_margin_cols, right_margin_cols,
4227 left_fringe_width, right_fringe_width, fringes_outside_margins,
4228 scroll_bar_width, and vertical_scroll_bar_type for saving
4229 per-window display elements.
4230 (Fset_window_configuration): Restore display margins, fringes,
4231 and scroll bar settings. This fixes a bug which caused display
4232 margins to be discarded when saving and restoring a window
4233 configuration.
4234 (save_window_save): Save display margins, fringes, and scroll bar
4235 settings. This fixes a bug which caused display margins to be
4236 discarded when saving and restoring a window configuration.
4237 (Fset_window_margins): Do nothing if display margins are not
4238 really changed. Otherwise, call adjust_window_margins to ensure
4239 the text area doesn't get too narrow. This fixes a bug which
4240 could cause emacs to trap if setting display margins wider than
4241 the width of the window.
4242 (Fset_window_fringes): New defun to allow user to specifically set
4243 this window's fringe widths and position vs. display margins.
4244 (Fwindow_fringes): New defun to return window's actual fringe
4245 settings.
4246 (Fset_window_scroll_bars): New defun to allow user to specifically
4247 set this window's scroll bar width and position.
4248 (Fwindow_scroll_bars): New defun to return window's actual scroll
4249 bar settings.
4250 (compare_window_configurations): Also compare display margins,
4251 fringes, and scroll bar settings.
4252 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
4253
4254 * xdisp.c: Make (many) trivial substitutions for renamed and
4255 new macros in dispextern.h, frame.h and window.h.
4256 (window_box_width): Adapt to per-window fringes and scroll bars,
4257 and new fringe vs. display margin position. Note that returned
4258 value is no longer guaranteed to be a whole multiple of the frame
4259 column width, since per-window fringes may now be any width.
4260 (window_box_left_offset): New function like window_box_left, but
4261 value is relative to left border of window (rather than frame).
4262 (window_box_right_offset): New function like window_box_right,
4263 but value is relative to left border of window.
4264 (window_box_left): Adapt to per-window fringes and scroll bars,
4265 and new fringe vs. display margin position. Simplify by using
4266 WINDOW_LEFT_EDGE_X and window_box_left_offset.
4267 (window_box): Allow null args for unnecessary return values;
4268 change/simplify relevant callers.
4269 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
4270 and new fringe vs. display margin position.
4271 Use window_box_left_offset and window_box_right_offset
0416870b 4272 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
4273 scroll bars, and new fringe vs. display margin position.
4274 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
4275 (draw_fringe_bitmap): Rework to handle per-window fringes and new
4276 fringe vs. display margin position.
4277 (hscroll_window_tree): Use window_box_width instead of window_box.
a64387ee
JB
4278 (redisplay_window): Adapt to per-window scroll bars.
4279 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
4280 bars, and new fringe vs. display margin position.
4281 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
a64387ee 4282 (x_clear_end_of_line): Adapt to per-window fringes and scroll
0416870b
KS
4283 bars, and new fringe vs. display margin position. Fix bug which
4284 increased total width of full_width rows by width of scroll bars
4285 although window's total width already includes that.
4286 (x_fix_overlapping_area): Simplify using window_box_left_offset.
4287 (expose_area): Simplify using window_box_left_offset.
4288 (x_draw_vertical_border): Handle per-window scroll bar settings,
4289 mixing windows with left, right and no scroll bars.
4290
4291 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
4292 where it's used in x_list_fonts (for clarity).
4293 (frame_update_line_height): Remove unused function; functionality
4294 is now done directly when setting the default font in x_set_font.
4295
4296 * xfns.c: Make (many) trivial substitutions for renamed and
4297 new macros in dispextern.h, frame.h and window.h.
4298
4299 * xmenu.c: Make (some) trivial substitutions for renamed and
4300 new macros in dispextern.h, frame.h and window.h.
4301
4302 * xterm.h (struct x_output): Move members left_pos, top_pos,
4303 border_width, pixel_height, pixel_width, line_height,
4304 internal_border_width, vertical_scroll_bar_extra,
4305 left_fringe_width, right_fringe_width, fringe_cols,
4306 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4307 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4308 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4309 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4310 (PIXEL_WIDTH, PIXEL_HEIGHT)
4311 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4312 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4313 frame.h and renamed [see frame.h changes].
4314 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4315 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4316 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4317 and renamed [see frame.h changes].
9018a88e 4318
0416870b
KS
4319 * xterm.c: Make (several) trivial substitutions for renamed and
4320 new macros in dispextern.h, frame.h and window.h.
4321 (x_draw_glyph_string_box): Adapt to per-window fringes and
4322 scroll-bars.
4323 (scroll_run): Adapt to new fringe position.
4324 (glyph_rect): Use window coordinates returned from
4325 window_from_coordinates rather than frame_to_window_pixel_xy.
4326 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4327 scroll-bars.
4328 (handle_one_xevent): Simplify a USE_GTK conditional.
4329 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4330 (fringes are now inside margins, i.e. always in the clipping area).
4331 All callers changed.
4332 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4333 directly, then call compute_fringe_widths. Don't call
4334 frame_update_line_height.
4335
4336 * w32term.h (struct w32_output): Move members left_pos, top_pos,
4337 border_width, pixel_height, pixel_width, line_height,
4338 internal_border_width, vertical_scroll_bar_extra,
4339 left_fringe_width, right_fringe_width, fringe_cols,
4340 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4341 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
4342 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4343 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4344 (PIXEL_WIDTH, PIXEL_HEIGHT)
4345 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4346 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4347 frame.h and renamed [see frame.h changes].
4348 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4349 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4350 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4351 and renamed [see frame.h changes].
9018a88e 4352
0416870b
KS
4353 * w32term.c: Make (several) trivial substitutions for renamed and
4354 new macros in dispextern.h, frame.h and window.h.
4355 (x_draw_glyph_string_box): Adapt to per-window fringes and
4356 scroll-bars.
4357 (glyph_rect): Use window coordinates returned from
4358 window_from_coordinates rather than frame_to_window_pixel_xy.
4359 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4360 scroll-bars.
4361 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
4362 (fringes are now inside margins, i.e. always in the clipping area).
4363 All callers changed.
4364 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4365 directly, then call compute_fringe_widths. Don't call
4366 frame_update_line_height.
4367
4368 * w32console.c: Make (few) trivial substitutions for renamed and
4369 new macros in dispextern.h, frame.h and window.h.
4370
4371 * w32fns.c: Make (many) trivial substitutions for renamed and
4372 new macros in dispextern.h, frame.h and window.h.
4373
4374 * w32menu.c: Make (few) trivial substitutions for renamed and
4375 new macros in dispextern.h, frame.h and window.h.
4376
4377 * macterm.h (struct mac_output): Move members left_pos, top_pos,
4378 border_width, pixel_height, pixel_width, line_height,
4379 internal_border_width, vertical_scroll_bar_extra,
4380 left_fringe_width, right_fringe_width, fringe_cols,
4381 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
4382 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
4383 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
4384 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
4385 (PIXEL_WIDTH, PIXEL_HEIGHT)
4386 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
4387 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
4388 frame.h and renamed [see frame.h changes].
4389 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
4390 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
4391 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
4392 and renamed [see frame.h changes].
9018a88e 4393
0416870b
KS
4394 * macterm.c: Make (several) trivial substitutions for renamed and
4395 new macros in dispextern.h, frame.h and window.h.
4396 (x_draw_glyph_string_box): Adapt to per-window fringes and
4397 scroll-bars.
4398 (glyph_rect): Use window coordinates returned from
4399 window_from_coordinates rather than frame_to_window_pixel_xy.
4400 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
4401 scroll-bars.
4402 (x_clip_to_row): Remove superfluous whole_line_p arg and code
4403 (fringes are now inside margins, i.e. always in the clipping area).
4404 All callers changed.
4405 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
4406 directly, then call compute_fringe_widths. Don't call
4407 frame_update_line_height.
4408
4409 * macfns.c: Make (several) trivial substitutions for renamed and
4410 new macros in dispextern.h, frame.h and window.h.
9018a88e 4411 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
4412
4413 * macmenu.c: Make (few) trivial substitutions for renamed and
4414 new macros in dispextern.h, frame.h and window.h.
4415
4416 * msdos.h (struct x_output): Remove members left_pos, top_pos,
4417 and line_height, and use corresponding new members in struct
4418 frame. All uses changed.
4419 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
4420 superseeded by corresponding macros in frame.h.
4421
4422 * msdos.c: Make (several) trivial substitutions for renamed and
4423 new macros in dispextern.h, frame.h and window.h.
4424 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 4425 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
4426 (internal_terminal_init): No need to initialize line_height here;
4427 it now defaults to 1.
4428
9018a88e
SM
44292003-05-24 Stefan Monnier <monnier@cs.yale.edu>
4430
4431 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
4432 dropping `down' events.
4433
016bd3c0
AS
44342003-05-24 Andreas Schwab <schwab@suse.de>
4435
4436 * coding.c (find_safe_codings): Fix last change.
4437
4dacadcc
TTN
44382003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
4439
4440 * xfns.c (x_window): Fix typo from 2003-05-21 change.
4441
319830ce
SM
44422003-05-23 Stefan Monnier <monnier@cs.yale.edu>
4443
9018a88e
SM
4444 * xdisp.c (display_mode_element): Increase max depth.
4445 Simplify the error handling code. Use a different error string
4446 for the case where we hit the depth limit.
4447
319830ce
SM
4448 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
4449
4450 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
4451
44522003-05-21 Stefan Monnier <monnier@cs.yale.edu>
4453
4454 * intervals.c (get_local_map): Don't get char-property of previous
4455 point any more: get_pos_property already does it and better.
4456
c67de8ba
DL
44572003-05-21 Dave Love <fx@gnu.org>
4458
4459 [Merged from unicode branch.]
4460
4461 * xfns.c (x_window, x_window): Use use_xim.
4462
4463 * xterm.c (use_xim): Initialize.
4464 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
4465 (x_term_init): Maybe set use_xim.
4466
4467 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
4468
edd3ff1d
JR
44692003-05-21 Jason Rumney <jasonr@gnu.org>
4470
4471 * unexw32.c (_start): Remove _fmode initialization.
4472
4473 * emacs.c (main) [WINDOWSNT]: Move it here.
4474
463f55ee
DL
44752003-05-20 Dave Love <fx@gnu.org>
4476
4477 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
4478
af253914
RS
44792003-05-19 Richard M. Stallman <rms@gnu.org>
4480
4481 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
4482 as value for QCfont attribute.
4483 (realize_default_face): lface should already exist; crash if not.
4484 Specify 0 for FORCE_P when calling set_lface_from_font_name.
4485
4486 * frame.c (Fignore_event): Doc fix.
4487
1d211019
KH
44882003-05-19 Kenichi Handa <handa@m17n.org>
4489
4490 * coding.c (decode_coding_string): Handle post-read-conversion
4491 even if the coding doesn't require decoding.
4492
4dd68254
RS
44932003-05-18 Richard M. Stallman <rms@gnu.org>
4494
4495 * callproc.c (Fcall_process_region): Doc fix.
4496
14d87dc9
SM
44972003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4498
deca5d96
SM
4499 * lread.c (Fload): Print a message if package is obsolete.
4500
14d87dc9
SM
4501 * window.c (Fselect_window): Add optional `norecord' arg.
4502 (select_window_1): Fold into Fselect_window.
4503 (select_window_norecord): New function.
4504 (temp_output_buffer_show): Use it. Preserve current buffer.
4505
4506 * window.h (Fselect_window): Update declaration.
4507
4508 * window.c (delete_window, Fother_window, Fset_window_configuration):
4509 * minibuf.c (read_minibuf):
4510 * macterm.c (x_new_focus_frame):
4511 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
4512 * callint.c (Fcall_interactively):
4513 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
4514
4515 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
4516
78f52183
DK
45172003-05-17 David Kastrup <dak@gnu.org>
4518
4519 * process.c (read_process_output): Back out change from 2003-03-09.
4520
14d87dc9
SM
45212003-05-17 Stefan Monnier <monnier@cs.yale.edu>
4522
4523 * editfns.c (get_pos_property): Don't assume that `object' = nil.
4524
4525 * textprop.c (text_property_stickiness): New arg `buffer'.
4526
4527 * intervals.h (text_property_stickiness): New arg `buffer'.
4528 (get_pos_property): Declare.
4529
4530 * intervals.c (get_local_map): Use get_pos_property, to obey
4531 stickiness and empty overlays.
4532 (create_root_interval, graft_intervals_into_buffer): Use BEG.
4533 (merge_properties, intervals_equal, merge_properties_sticky):
4534 Use XCAR, XCDR.
4535 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
4536
1fd1cc2f
RS
45372003-05-17 Richard M. Stallman <rms@gnu.org>
4538
4f9f637a
RS
4539 * minibuf.c (read_minibuf): If buffer is empty, record the default
4540 in the history.
4541 (Fminibuffer_complete_word): When deleting the overlap, take account
4542 of its real position.
4543
4544 * fns.c (map_char_table): Fix previous change.
4545
1fd1cc2f
RS
4546 * syntax.c (find_defun_start):
4547 When open_paren_in_column_0_is_defun_start,
4548 return beginning of buffer.
4549
4550 * lisp.h (map_char_table): Declare added arg.
4551
4552 * fns.c (map_char_table): New arg TABLE gets the master table.
4553 All calls changed.
4554 Process default and inheritance, resorting to Faref if necessary.
4555
4556 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
4557 (Faccessible_keymaps): Pass new arg to map_char_table.
4558
4559 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
4560
4561 * casetab.c (set_case_table): Pass new arg to map_char_table.
4562
4563 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
4564
4565 * lisp.h (specbinding_func): New typedef.
4566 (struct specbinding): Use specbinding_func, to put the `volatile'
4567 in the right place.
4568
4569 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
4570 to avoid GCC warning.
14d87dc9 4571
b4bd27c5
RS
45722003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
4573
14d87dc9 4574 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 4575
35fb885d
SM
45762003-05-15 Stefan Monnier <monnier@cs.yale.edu>
4577
4578 * keyboard.c (apply_modifiers): Don't fill the other cache.
4579
9a274fbd
SM
45802003-05-14 Stefan Monnier <monnier@cs.yale.edu>
4581
c55b5fad
SM
4582 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
4583
9a274fbd
SM
4584 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
4585 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
4586 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
4587 (Fset_window_configuration, Fcurrent_window_configuration)
4588 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
4589 (Fpos_visible_in_window_p, mark_window_cursors_off)
4590 (window_internal_height, window_internal_width, Frecenter)
4591 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
4592 (replace_buffer_in_all_windows, init_window_once, init_window)
4593 (syms_of_window, keys_of_window): Move from lisp.h.
4594 * lisp.h: Move window.c declarations to window.h.
4595
4596 * bytecode.c: Include window.h.
4597 * emacs.c: Include window.h.
4598
14d87dc9 4599 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
4600 (keyremap): Add `parent' field.
4601 (keyremap_step): Use it. Remove `parent' argument.
4602 (read_key_sequence): Setup and use the new `parent' field.
4603
fd93e331
SM
46042003-05-11 Stefan Monnier <monnier@cs.yale.edu>
4605
4606 * keyboard.c (adjust_point_for_property): Ensure termination.
4607
1c4001a1
SM
46082003-05-10 Stefan Monnier <monnier@cs.yale.edu>
4609
4610 * keyboard.c (follow_key): Remove dead variable `did_meta'.
4611 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
4612 duplicated handling of function-key-map and key-translation-map
4613 in read_key_sequence.
4614 (read_key_sequence): Use them.
4615
4616 * keyboard.c (adjust_point_for_property): Try harder to move point
4617 to the non-sticky end of an invisible property.
4618
4619 * xdisp.c (single_display_prop_intangible_p): Make `space' display
4620 property intangible as well.
4621
780379b1
AS
46222003-05-10 Andreas Schwab <schwab@suse.de>
4623
4624 * xmenu.c (single_menu_item): Change last parameter to void* to
4625 avoid warning.
4626
ca2de342
RS
46272003-05-09 Richard M. Stallman <rms@gnu.org>
4628
4629 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
4630 Bind Qinhibit_modification_hooks to t so there will be no GC.
4631 Rename local `tem' to `save_deactivate_mark'.
4632
4633 * eval.c (specpdl_ptr): Declare volatile.
4634 (unbind_to): Copy the whole binding and decrement specpdl_ptr
4635 before doing the work of unbinding it.
4636
4637 * lisp.h (struct specbinding): Declare elements volatile.
4638 (specpdl_ptr): Declare volatile.
4639
4640 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
4641
4642 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
4643 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
4644
347003be
DL
46452003-05-08 Dave Love <fx@gnu.org>
4646
4647 * coding.c (Vlast_coding_system_used): Doc fix.
4648
5adcec23
JR
46492003-05-07 Jason Rumney <jasonr@gnu.org>
4650
4651 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
4652 when system does not support them.
4653
5fe3b8a4
SM
46542003-05-05 Stefan Monnier <monnier@cs.yale.edu>
4655
4656 * fileio.c (Qwrite_region_annotate_functions): New var.
4657 (build_annotations): Use it to process the global part of the hook.
4658 (syms_of_fileio): Init and staticpro it.
4659
4660 * keyboard.c (safe_run_hooks_error): Display a message instead of
4661 silently ignoring the error.
4662
46632003-05-03 Stefan Monnier <monnier@cs.yale.edu>
4664
4665 * keyboard.c (input_available_signal): Mark static.
4666 (menu_bar_items): Use map_keymap.
4667 (menu_bar_one_keymap): Remove.
4668 (menu_bar_item): Adjust arglist (for use in map_keymap).
4669 Properly hide a second binding when not both are keymaps.
4670
4671 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
4672 (single_keymap_panes): Use it and map_keymap.
4673 (single_menu_item): Use skp as well.
4674
4675 * keymap.h (map_keymap_function_t): New type.
4676 (map_keymap): Declare.
4677
4678 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
4679 (map_keymap_call, Fmap_keymap): New functions.
4680 (syms_of_keymap): Defsubr map-keymap.
4681
4b1b4443
JD
46822003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4683
4684 * gtkutil.c (create_dialog, make_widget_for_menu_item)
4685 (make_menu_item, create_menus, xg_update_menu_item): Don't call
4686 ..._with_mnemonic functions for menu items.
4687
1f816871
KH
46882003-05-01 Kenichi Handa <handa@m17n.org>
4689
4690 * coding.c (coding_system_accept_latin_extra_p): Delete this
4691 function.
4692 (find_safe_codings): Pay attention to
4693 the property tranlsation-table-for-encode of each codings.
4694 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
4695
5ed6ba5b
SM
46962003-05-01 Stefan Monnier <monnier@cs.yale.edu>
4697
4698 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
4699
32c06229
SM
47002003-04-30 Stefan Monnier <monnier@cs.yale.edu>
4701
4702 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
4703
4704 * lisp.h (CHECK): Wrap args in parenthesis.
4705 (specbind): Fix doc: symbol = Qnil is not supported any more.
4706
4707 * bytecode.c (Fbyte_code) <unwind-protect>:
4708 Use Fprogn rather than 0 and Qnil.
4709
4710 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
4711 `double', and `triple' modifiers as well.
4712
ed3c3314
RS
47132003-04-30 Richard M. Stallman <rms@gnu.org>
4714
4715 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
4716
4717 * alloc.c (abort_on_gc): New variable.
4718 (Fgarbage_collect): Abort if abort_on_gc is set.
4719
4720 * lisp.h (abort_on_gc): Add decl.
4721
4722 * eval.c (Fsignal): Clear abort_on_gc.
4723
4724 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 4725 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
4726
4727 * xdisp.c (move_it_vertically_backward): Do the final big else
4728 even if nlines is 0.
4729
4730 * xdisp.c (redisplay_internal): Finish the per-frame loop
4731 even if redisplay is suspended by input.
4732
0b325c12
AC
47332003-04-24 Andrew Choi <akochoi@shaw.ca>
4734
4735 * macterm.c (x_list_fonts): Return all fonts that match if
4736 maxnames = -1.
4737
4e837cd0
KH
47382003-04-25 Kenichi Handa <handa@m17n.org>
4739
4740 * syntax.c (skip_chars): Fix previous change.
4741
9af7511a
KH
47422003-04-24 Kenichi Handa <handa@m17n.org>
4743
4744 * syntax.c (skip_chars): Make the code faster by using the common
4745 technique of *p, *stop, and *endp.
4746
e3b2c21f
JD
47472003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4748
4749 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 4750 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
4751 being updated.
4752
32c06229
SM
47532003-04-19 Stefan Monnier <monnier@cs.yale.edu>
4754
4755 * eval.c (Fapply): Undo last change and add a comment about why.
4756
c6464167
MB
47572003-04-18 Miles Bader <miles@gnu.org>
4758
4759 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
4760 pickier PARSE_MULTIBYTE_SEQ.
4761
e509f168
SM
47622003-04-17 Stefan Monnier <monnier@cs.yale.edu>
4763
4764 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
4765 Use XCDR, XCAR, CONSP.
4766 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
4767 (Fapply): Remove unnecessary GCPRO.
4768
4769 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
4770
4771 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
4772
4773 * buffer.h: Don't hardcode BEG==1.
4774
4775 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
4776
5ceea398
RS
47772003-04-16 Richard M. Stallman <rms@gnu.org>
4778
4779 * xdisp.c (try_window, try_window_reusing_current_matrix):
4780 When at end of window, set window_end_pos to Z-ZV.
4781
4782 * buffer.c (Foverlay_recenter): Doc fix.
4783
e509f168
SM
47842003-04-14 Stefan Monnier <monnier@cs.yale.edu>
4785
4786 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
4787
d243e605
AC
47882003-04-14 Andrew Choi <akochoi@shaw.ca>
4789
4790 * macterm.c (mac_check_for_quit_char): Don't check more often than
4791 once a second.
4792
6901b111
SM
47932003-04-11 Stefan Monnier <monnier@cs.yale.edu>
4794
4795 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
4796 specially, so that they can't hide an implicit switch-frame event.
4797 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
4798 (head_table): Use switch-frame as event_kind for select-window.
4799 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
4800
4801 * editfns.c (Fformat): Lisp_Object/int mixup.
4802 (format2): Remove unused var numargs.
4803
e301806f 48042003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 4805
6901b111 4806 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
4807 (Qafter_insert_file_set_coding): New variable.
4808 (syms_of_fileio): Initialize and staticpro it. Delete declaration
4809 for after-insert-file-adjust-coding-function.
4810 (Finsert_file_contents): Call Qafter_insert_file_set_coding
4811 instead of Vafter_insert_file_adjust_coding_function.
4812
38914424
KH
48132003-04-11 Kenichi Handa <handa@m17n.org>
4814
4815 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
4816
4817 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
4818 string. Callers changed.
4819
48202003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 4821
6901b111 4822 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 4823 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
4824 (Finsert_file_contents):
4825 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
4826 decode-format.
4827
f979dc05
JD
48282003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4829
4830 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
4831 get GtkAdjustment as widget now is a GtkRange.
4832
4833 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
4834 GtkRange to avoid memory leak.
4835
f8c6b4c2 48362003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 4837
50ebc53d
KH
4838 * xfaces.c (Vface_font_rescale_alist): New variable.
4839 (struct font_name): New member rescale_ratio.
4840 (font_rescale_ratio): New function.
6901b111 4841 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
4842 (better_font_p): On comparing point sized, pay attention to
4843 recale_ratio member of fonts.
4844 (build_scalable_font_name): Reflect font->rescale_ratio in the
4845 font name.
6901b111 4846 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 4847
cb98871c
KH
4848 * lread.c (read1): Before calling index, check if the 2nd
4849 arguemnt is in ASCII range.
4850
4773b8ca
RS
48512003-04-08 Richard M. Stallman <rms@gnu.org>
4852
b0ada147
RS
4853 * fileio.c (Ffile_symlink_p): Doc fix.
4854
4855 * editfns.c (Fformat): Translate positions of text properties
4856 in the format string to apply them to the result.
4857
4773b8ca
RS
4858 * fileio.c (Finsert_file_contents): Doc fix.
4859 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
4860
48612003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 4862
4773b8ca
RS
4863 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
4864
e8f25745 48652003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 4866
e8f25745
ST
4867 * mac.c (init_mac_osx_environment): Switch libexec and bin so
4868 that self-contained application finds libexec files.
4869
f8c6b4c2 48702003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 4871
6901b111
SM
4872 * coding.c (code_convert_region_unwind):
4873 Set Vlast_coding_system_used to the argument.
2310d84c
KH
4874 (code_convert_region): If post-read-conversion function changed
4875 the value of last-coding-sytem, keep the new value in
4876 coding->symbol so that it won't be overridden.
4877 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
4878 (coding_system_accept_latin_extra_p): New function.
4879 (find_safe_codings): Pay attention to characters registered in
4880 latin-extra-code-table.
2310d84c 4881
39c9a034
TTN
48822003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
4883
4884 * Makefile.in (md5.o): Add missing dependency info.
4885
eb67c5d6
RS
48862003-04-06 Richard M. Stallman <rms@gnu.org>
4887
4888 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
4889
4890 * marker.c (verify_bytepos): New function.
4891
4892 * intervals.c (set_intervals_multibyte_1): When becoming
4893 multibyte, adjust right and left child sizes to a whole set of
4894 characters. If an interval gets zero total-length, delete it.
4895 If an interval consists of just its children, delete one of them.
4896
4897 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
4898 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 4899
eb67c5d6
RS
4900 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
4901 All calls deleted.
4902 (lisp_malloc): Do the work here directly.
4903
b1f81fc5
JB
49042003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
4905
4906 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
4907 char tables.
4908
49092003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
4910
4911 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
4912 destructively change "%S" to "%s".
4913
774666fb
MB
49142003-04-03 Miles Bader <miles@gnu.org>
4915
4916 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
4917 always set.
4918
19c37f01
DL
49192003-04-01 Dave Love <fx@gnu.org>
4920
4921 * xfns.c (xpm_lookup_color): Grok "opaque".
4922
2f4b24c3
AC
49232003-03-31 Andrew Choi <akochoi@shaw.ca>
4924
4925 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
4926 parent window ID.
4927
4928 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
4929
4930 * macterm.h (struct mac_output): Define x_pixels_diff and
4931 y_pixels_diff.
b1f81fc5 4932
9443fcf6
JB
49332003-03-31 Juanma Barranquero <lektu@terra.es>
4934
4935 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
4936 blockinput.h and files included from it.
4937
e072891b
KS
49382003-03-31 Kim F. Storm <storm@cua.dk>
4939
4940 The following changes consolidates the common code related to
4941 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
4942 files into frame.c.
9443fcf6 4943
e072891b
KS
4944 * frame.c: Include blockinput.h.
4945 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
4946 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
4947 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
4948 related vars here.
4949 (struct frame_parm_table, frame_parms): New table for describing
4950 frame parameters and their associated Q-variable.
4951 The order of the parameters corresponds to the sequence of the
4952 frame_parm_handlers table in redisplay_interface.
4953 (x_fullscreen_move, x_set_frame_parameters)
4954 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
4955 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
4956 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
4957 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
4958 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
4959 Generic functions for processing of frame parameters.
4960 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
4961 (display_x_get_resource, x_get_resource_string): Functions for
4962 generic access to X resources.
4963 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4964 (x_default_parameter, Fx_parse_geometry): Functions for generic
4965 access to frame parameters.
6901b111
SM
4966 (x_figure_window_size): Generic calculation of frame size.
4967 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
4968 (syms_of_frame): Intern and staticpro frame parameter variables.
4969 Defvar_lisp Vx_resource_class and Vx_resource_name here.
4970 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 4971
e072891b
KS
4972 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
4973 parameter related vars defined in frame.c.
4974 (EMACS_CLASS): Define here.
4975 (enum FULLSCREEN_*): Define here.
4976 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
4977 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
4978 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
4979 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
4980 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
4981 (x_set_visibility, x_set_autoraise, x_set_autolower)
4982 (x_set_unsplittable, x_set_vertical_scroll_bars)
4983 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
4984 (x_figure_window_size): Add prototypes.
4985
4986 * dispextern.h (frame_parm_handler): New typedef.
4987 (struct redisplay_interface): New member frame_parm_handlers.
4988 (enum resource_types): Move declaration here.
4989 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
4990 (x_default_parameter): Add prototypes.
4991
4992 * window.c: Remove extern decl for frame parameter vars.
4993 (change_window_heights): New generic function;
4994 replaces x_change_window_heights. All users changed.
4995
4996 * window.h (change_window_heights): Add prototype.
4997
4998 * xfaces.c: Remove extern decl for frame parameter vars.
4999
5000 * xterm.h (EMACS_CLASS): Remove. Use generic define.
5001 (struct w32_display_info): Fix type of xrdb member.
5002 (enum FULLSCREEN_*): Remove.
5003 Remove prototypes for generic functions (in frame.h).
5004
5005 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5006 parameters now defined in frame.h and frame.c.
5007 (Vx_resource_name): Remove. Use generic var.
5008 (enum x_frame_parms): Remove (bogus, unused enum).
5009 (check_x_display_info): Make non-static (for frame.c).
5010 (struct x_frame_parm_table, x_frame_parms): Remove.
5011 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5012 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5013 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5014 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5015 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5016 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5017 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5018 Remove. Use generic functions instead.
5019 (enum resource_types): Remove.
5020 (x_set_scroll_bar_default_width): New global function (for frame.c).
5021 (Fx_create_frame): Depend on x_figure_window_size to add space for
5022 toolbar and setup size_hint_flags.
5023 (x_frame_parm_handlers): New table for redisplay_interface.
5024 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 5025
e072891b
KS
5026 * xterm.c: Remove unnecessary extern declarations.
5027 (x_fullscreen_adjust): Remove. Use generic instead.
5028 (x_redisplay_interface): Add x_frame_parm_handlers member.
5029
5030 * w32gui.h (XrmDatabase): New (dummy) typedef.
5031
5032 * w32term.h (EMACS_CLASS): Remove. Use generic define.
5033 (struct w32_display_info): Fix type of xrdb member.
5034 (enum FULLSCREEN_*): Remove.
5035 (x_fullscreen_adjust): Remove prototype.
5036
5037 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5038 parameters now defined in frame.h and frame.c.
5039 (Vx_resource_name): Remove. Use generic var.
5040 (enum x_frame_parms): Remove (bogus, unused enum).
5041 (check_x_display_info): Make non-static (for frame.c).
5042 (struct x_frame_parm_table, x_frame_parms): Remove.
5043 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5044 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5045 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5046 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5047 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5048 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5049 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5050 Remove. Use generic functions instead.
5051 (enum resource_types): Remove.
5052 (x_set_scroll_bar_default_width): New global function (for frame.c).
5053 (Fx_create_frame): Depend on x_figure_window_size to add space for
5054 toolbar and setup size_hint_flags.
5055 (w32_frame_parm_handlers): New table for redisplay_interface.
5056 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 5057
e072891b
KS
5058 * w32term.c: Remove unnecessary extern declarations.
5059 (x_fullscreen_adjust): Remove. Use generic instead.
5060 (x_redisplay_interface): Add w32_frame_parm_handlers member.
5061
5062 * w32reg.c (x_get_string_resource): Use XrmDatabase.
5063
5064 * macgui.h (XrmDatabase): New (dummy) typedef.
5065
5066 * macterm.h (EMACS_CLASS): Remove.
5067 (struct mac_display_info): Add xrdb member.
5068 (struct mac_output): Add want_fullscreen member.
5069
5070 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
5071 parameters now defined in frame.h and frame.c.
5072 (Vx_resource_name): Remove. Use generic var.
5073 (check_x_display_info): Make non-static (for frame.c).
5074 (struct x_frame_parm_table, x_frame_parms): Remove.
5075 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
5076 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
5077 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
5078 (x_change_window_heights, x_set_autoraise, x_set_autolower)
5079 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
5080 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
5081 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
5082 Remove. Use generic functions instead.
5083 (enum resource_types): Remove.
5084 (x_set_scroll_bar_default_width): New global function (for frame.c).
5085 (mac_frame_parm_handlers): New table for redisplay_interface.
5086 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 5087
e072891b
KS
5088 * macterm.c: Remove unnecessary extern declarations.
5089 (x_redisplay_interface): Add mac_frame_parm_handlers member.
5090
3e6a560b
KS
5091 * Makefile.in (frame.o): Add dependency on blockinput.h and files
5092 included from it (atimer.h and systime.h).
5093
7b7b454e
AS
50942003-03-30 Andreas Schwab <schwab@suse.de>
5095
5096 * xdisp.c (x_insert_glyphs): Fix swapped width and height
5097 parameters for shift_glyphs_for_insert.
5098
5099 * macterm.c (x_redisplay_interface): Add missing entry for
5100 draw_vertical_window_border.
5101
beb402de
KG
51022003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
5103
5104 * fileio.c (Fexpand_file_name): In the no-handler case, after
5105 expanding, look again for a handler and invoke it. This is needed
5106 for filenames like "/foo/../user@host:/bar/../baz" -- the first
5107 expansion produces "/user@host:/bar/../baz" which needs to be
5108 expanded again for the finame result "/user@host:/baz".
5109
b676f356
JD
51102003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5111
5112 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
5113 of area to be redrawn for better performance.
5114
3c671a56
SM
51152003-03-28 Stefan Monnier <monnier@cs.yale.edu>
5116
5117 * xterm.c (take_vertical_position_into_account): Remove.
5118 (xt_action_hook): Call set_vertical_scroll_bar if needed.
5119 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
5120 (xm_scroll_callback, x_create_toolkit_scroll_bar)
5121 (x_set_toolkit_scroll_bar_thumb): Simplify.
5122 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
5123 (XTread_socket): Remove unused var.
5124 (x_make_frame_invisible): Replace goto with else.
5125
5126 * xdisp.c (set_vertical_scroll_bar): New fun.
5127 (redisplay_window): Use it.
5128
84f2e615
RS
51292003-03-26 Richard M. Stallman <rms@gnu.org>
5130
5131 * xdisp.c (update_tool_bar): Recompute tool bar if
5132 update_mode_lines is set. Set w->update_mode_line
5133 only if the tool bar contents actually change.
5134 (update_menu_bar): Undo previous change.
5135
70b6104c
JD
51362003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5137
5fd6f727
JD
5138 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
5139 (xg_frame_set_char_size): Calculate scroll bar width before frame
5140 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
5141 (xg_separator_p): Check for all documented separator types.
5142 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
5143 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
5144
70b6104c
JD
5145 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
5146 so tool bar gets updated.
5147
d9b36d19
SM
51482003-03-26 Stefan Monnier <monnier@cs.yale.edu>
5149
5150 * data.c (store_symval_forwarding): Re-instate part of the code
5151 that was deleted with too much enthusiasm.
5152
51532003-03-25 Stefan Monnier <monnier@cs.yale.edu>
5154
5155 * data.c (store_symval_forwarding): Delete special read-only
5156 hack for type == -1, since we now use ->constant instead.
5157 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
5158
5159 * buffer.c (overlays_in): Declare static.
5160 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
5161 `constant' field rather than the variable's `type' field.
5162
365fa1b3
AC
51632003-03-24 Andrew Choi <akochoi@shaw.ca>
5164
5165 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
5166
5167 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
5168
5169 * fns.c [MAC_OSX]: Do not redefine vector.
5170
5171 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
5172
5173 * macgui.h: Remove definition of No_Cursor.
5174
d9b36d19 5175 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
5176
5177 * xdisp.c: Define No_Cursor.
5178 (x_write_glyphs, notice_overwritten_cursor)
5179 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
5180 (note_mouse_highlight): Remove Mac-specific code.
5181 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 5182
c0bcce6f
JPW
51832003-03-24 John Paul Wallington <jpw@gnu.org>
5184
5185 * xdisp.c (redisplay_window): If mini window's buffer is not
5186 empty, then redisplay it like other windows.
5187
a526b96c
KS
51882003-03-23 Kim F. Storm <storm@cua.dk>
5189
5190 * w32term.c (w32_draw_window_cursor): Fix last change.
5191
37ab321e
KH
51922003-03-23 Kenichi Handa <handa@m17n.org>
5193
a526b96c
KS
5194 * alloc.c (make_string_from_bytes, make_specified_string):
5195 Add `const' for the arg CONTENTS.
37ab321e
KH
5196
5197 * lisp.h (make_string_from_bytes, make_specified_string):
5198 Prototypes adjusted.
5199
7863d625
JD
52002003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5201
a526b96c 5202 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 5203
7863d625
JD
5204 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
5205 (XG_SB_RANGE): New define.
5206
5207 * gtkutil.c (xg_fixed_handle_expose): New function.
5208 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
5209 expose events.
5210 (xg_update_scrollbar_pos): Take two more arguments, left and width
5211 of scroll bar including borders.
5212 Clear left and right part outside scroll bar separately as some
5213 themes have bars that are not an even number of pixels.
d9b36d19 5214 Don't set reallocate_redraws, don't call
7863d625
JD
5215 gdk_window_process_all_updates.
5216 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
5217 so no need to change it. Calculate size and value with XG_SB_RANGE.
5218
d9b36d19
SM
5219 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
5220 Pass left and width of scroll bar including borders to
7863d625
JD
5221 xg_update_scrollbar_pos.
5222
af0ad939
TTN
52232003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
5224
5225 * Makefile.in: Make sure space precedes end-of-line backslashes.
5226
b22139fd
KS
52272003-03-22 Kim F. Storm <storm@cua.dk>
5228
5229 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
5230 Add generic versions here. Remove system specific versions
5231 defined elsewhere.
5232
5233 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
5234 Add prototypes.
5235
6e6410cf
KS
5236 * xterm.h (STORE_NATIVE_RECT): New macro.
5237
5c9cc435
KS
52382003-03-21 Kim F. Storm <storm@cua.dk>
5239
00c64fab
SM
5240 * xdisp.c (get_glyph_string_clip_rect):
5241 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
5242
5243 * dispextern.h (struct redisplay_interface): Add active_p
5244 argument to draw_window_cursor member. All uses changed.
5245
acd37560
KS
52462003-03-21 Kim F. Storm <storm@cua.dk>
5247
5248 The following changes consolidate code related to writing and
5249 inserting glyphs, exposing frame, the tool bar, the mouse face,
5250 the output cursor, and help echo from xterm.c, w32term.c and
5251 macterm.c into xdisp.c. It also generalizes the use of the
5252 window_part enum instead of using numeric values throughout.
af0ad939 5253
acd37560
KS
5254 * xdisp.c: Consolidate gui-independent code here.
5255 Include keymap.h.
5256 (Qhelp_echo): Import.
5257 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
5258 (help_echo_string, help_echo_window, help_echo_object)
5259 (previous_help_echo_string, help_echo_pos): Declare here.
5260 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
5261 (estimate_mode_line_height): Define here. Handle windowing
5262 systems directly (without using estimate_mode_line_height_hook).
5263 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
5264 (update_window_cursor, update_cursor_in_window_tree)
5265 (fast_find_position, fast_find_string_pos)
5266 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
5267 (expose_area, expose_line, expose_overlaps, expose_window)
5268 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
5269 declared static as they are only used locally in xdisp.c.
5270 (draw_glyphs): Rename from x_draw_glyphs and make static.
5271 (tool_bar_item_info, notice_overwritten_cursor): Make static.
5272 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5273 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 5274 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
5275 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5276 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
5277 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
5278 (note_mouse_highlight, x_clear_window_mouse_face)
5279 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
5280 (x_intersect_rectangles): New generic functions for use by xdisp.c
5281 and GUI front-ends.
5282 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
5283 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
5284
5285 * dispextern.h (Display_Info): Generic typedef for *_display_info.
5286 (NativeRectangle): Generic typedef for rectangle type.
5287 (enum window_part): Move here from window.c.
5288 (struct redisplay_interface): New members flush_display_optional,
5289 define_frame_cursor, clear_frame_area, draw_window_cursor,
5290 draw_vertical_window_border, shift_glyphs_for_insert.
5291 Rename member clear_mouse_face to clear_window_mouse_face.
5292 (estimate_mode_line_height_hook): Remove hook.
5293 (auto_raise_tool_bar_buttons_p): Don't declare extern.
5294 (tool_bar_item_info): Remove prototype.
5295 (help_echo_string, help_echo_window, help_echo_object)
5296 (previous_help_echo_string, help_echo_pos)
5297 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
5298 (x_stretch_cursor_p, output_cursor): Declare extern.
5299 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
5300 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
5301 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
5302 (display_and_set_cursor, set_output_cursor, x_cursor_to)
5303 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
5304 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
5305 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
5306 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
5307 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
5308 Add prototypes.
5309 (mode_line_string, marginal_area_string): Fix prototypes.
5310
5311 * window.c (enum window_part): Move to dispextern.h.
5312 (coordinates_in_window): Use enum window_part member names
5313 instead of numbers to describe return value.
5314 (struct check_window_data): Change part member to window_part.
5315 (check_window_containing): Return window_part unaltered.
5316 (window_from_coordinates): Change part arg from int to enum
5317 window_part. Allow part arg to be null. All users changed.
5318
5319 * window.h (window_from_coordinates): Fix prototype.
5320
5321 * term.c (estimate_mode_line_height): Move to xdisp.c.
5322
5323 * keyboard.c (make_lispy_event): Use enum window_part.
5324
5325 * dispnew.c (mode_line_string, marginal_area_string): Use enum
5326 window_part instead of int in arg list. Users changed.
5327
5328 * xterm.h (No_Cursor): Declare as None for X.
5329 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 5330
acd37560
KS
5331 * xterm.c: Remove consolidated defines and code.
5332 (BETWEEN): Remove unused macro.
5333 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
5334 (x_define_frame_cursor, x_clear_frame_area)
5335 (x_draw_window_cursor): New X-specific functions for RIF.
5336 (x_redisplay_interface): Add new members.
5337
5338 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
5339
5340 * w32term.h (struct w32_output): Remove cross_cursor member.
5341
5342 * w32term.c: Remove consolidated defines and code.
5343 (BETWEEN): Remove unused macro.
5344 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
5345 (w32_define_frame_cursor, w32_clear_frame_area)
5346 (w32_draw_window_cursor): New W32-specific functions for RIF.
5347 (w32_redisplay_interface): Add new members.
5348
a64387ee 5349 * w32gui.h (No_Cursor): Define as 0 for W32.
acd37560
KS
5350 (XRectangle): Add X compatible rectangle type.
5351 (NativeRectangle): Declare as RECT for W32.
5352 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5353
5354 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
5355
5356 * w32console.c: Remove consolidated defines and code.
af0ad939 5357
acd37560
KS
5358 * msdos.h (Display_Info): Add generic typedef.
5359
5360 * msdos.c: Remove consolidated defines and code.
5361 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
5362
5363 * macterm.h (struct mac_output): Replace member cross_cursor by
5364 hand_cursor.
5365 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
5366
5367 * macterm.c: Remove consolidated defines and code.
5368 (BETWEEN): Remove unused macro.
5369 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
5370 (mac_define_frame_cursor, mac_clear_frame_area)
5371 (mac_draw_window_cursor): New Mac-specific functions for RIF.
5372 (x_redisplay_interface): Add new members.
5373
5374 * macgui.h (No_Cursor): Define as 0 for Mac.
5375 (XRectangle): Add X compatible rectangle type.
5376 (NativeRectangle): Declare as Rect for Mac.
5377 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
5378
204ccab1
KS
5379 * macfns.c (x_set_mouse_color): Setup hand_cursor.
5380 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 5381
9443fcf6 5382 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
5383 included from it. Add dependency on keymap.h.
5384
5385 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
5386
8ba01a70 53872003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
5388
5389 * fileio.c (Fexpand_file_name): Fix previous change.
5390
8ba01a70 53912003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
5392
5393 * fileio.c (Ffile_name_directory): Reconstruct file name by
5394 make_specified_string.
5395 (Ffile_name_nondirectory, Ffile_name_as_directory)
5396 (Fdirectory_file_name, Fexpand_file_name)
5397 (Fsubstitute_in_file_name): Likewise.
5398 (Fread_file_name): Compare decoded homedir with DIR and
5399 DEFAULT_FILENAME.
5400
5401 * alloc.c (make_specified_string): If NCHARS is negative, count
5402 the number of characters.
5403
19536747
JD
54042003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5405
de38ae5a
JD
5406 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
5407 all widgets.
5408
19536747
JD
5409 * gtkutil.h: Removed xg_ignore_next_thumb.
5410
37ab321e 54112003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
5412
5413 * coding.c (Vchar_coding_system_table): Remove this variable.
5414 (Vcoding_system_safe_chars): New variable.
5415 (intersection): Remove this function.
5416 (find_safe_codings): Don't use Vchar_coding_system_table, but try
5417 all codings in SAFE_CODINGS.
00c64fab 5418 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
5419 find_safe_codings. Get generic coding systems from
5420 Vcoding_system_safe_chars.
5421 (Fdefine_coding_system_internal): New function.
5422 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
5423 Initialize and staticpro Vcoding_system_safe_chars.
5424
17097258
JD
54252003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5426
2a2071c3
JD
5427 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
5428 equal old values before updating.
5429
17097258
JD
5430 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
5431
5432 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
5433
54342003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5435
5436 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
5437 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
5438 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
5439 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
5440 (xg_create_scroll_bar): Pass bar to button event callback.
5441 (xg_find_top_left_in_fixed): New function.
5442 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
5443 whole scroll bar area. Get old position with
5444 xg_find_top_left_in_fixed, calculate and only clear needed areas.
5445 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
5446 dragging is in progress. Calculate whole as for Motif.
5447 Remove code that saved last values. Call gtk_range functions to
5448 set scroll bar sizes.
5449
5450 * gtkutil.h: Removed xg_ignore_next_thumb.
5451
8cb9dfbf
JB
54522003-03-17 Juanma Barranquero <lektu@terra.es>
5453
5454 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
5455 and files included from it.
5456
00c64fab
SM
54572003-03-18 Stefan Monnier <monnier@cs.yale.edu>
5458
5459 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
5460 multiple occurrences of the same keymap under different prefixes.
5461 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
5462
c45bb3b2
JR
54632003-03-16 Jason Rumney <jasonr@gnu.org>
5464
5465 * w32gui.h: Use HDC for Display.
5466
5467 * w32term.c (w32_encode_char): Prevent double-byte chars from
5468 crashing Emacs.
5469
5470 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
5471 as binary.
5472
2a6d0874
JB
54732003-03-16 Juanma Barranquero <lektu@terra.es>
5474
5475 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
5476
03eb5fab
KS
54772003-03-16 Kim F. Storm <storm@cua.dk>
5478
5479 The following changes consolidate some of the gui-independent
5480 parts of the processing and drawing of "glyph strings" from
5481 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 5482
03eb5fab
KS
5483 * dispextern.h (struct glyph): Reduce face_id member from 22 to
5484 21 bits (this reduces number of faces from 4M to 2M).
5485 Replace W32 specific w32_font_type member (2 bits) by generic
5486 font_type member (3 bits) for portability.
5487 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
5488 (enum draw_glyphs_face): Define here.
5489 (struct glyph_string): Define here. Merge W32 and X versions.
5490 (struct redisplay_interface): New members per_char_metric,
5491 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
5492 (VCENTER_BASELINE_OFFSET): Define here.
5493 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
5494 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
5495
5496 * xdisp.c: Consolidate gui-independent "glyph string" code here.
5497 (dump_glyph_string): Moved here.
5498 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
5499 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
5500 (fill_composite_glyph_string, fill_glyph_string)
5501 (fill_image_glyph_string, fill_stretch_glyph_string)
5502 (left_overwritten, left_overwriting, right_overwritten)
5503 (right_overwriting, get_char_face_and_encoding)
5504 (set_glyph_string_background_width, compute_overhangs_and_x)
5505 (append_glyph, append_composite_glyph, produce_image_glyph)
5506 (take_vertical_position_into_account, append_stretch_glyph)
5507 (produce_stretch_glyph): New generic functions (based on X version).
5508 Call platform specific functions through rif.
5509 (INIT_GLYPH_STRING): New macro, hides W32 details.
5510 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
5511 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
5512 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
5513 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
5514 (notice_overwritten_cursor):
5515 Generic functions exported to platform modules. Users changed.
5516
5517 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
5518 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
5519 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 5520 New macros for consolidated code.
2a6d0874 5521
03eb5fab
KS
5522 * xterm.c: Remove consolidated defines and code.
5523 (x_per_char_metric, x_encode_char)
5524 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
5525 (x_redisplay_interface): Add new members.
5526
5527 * w32gui.h (Display): Add dummy typedef for consolidation.
5528 (XChar2b): Define alias for wchar_t for consolidation.
5529 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5530
5531 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 5532 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
5533 New macros for consolidation.
5534
fad49844 5535 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
5536 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
5537 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
5538 (w32_per_char_metric): Change font_type arg to int for RIF.
5539 (w32_encode_char): Return int according to RIF requirements.
5540 (w32_compute_glyph_string_overhangs): Adapt to RIF.
5541 (w32_get_glyph_overhangs): New function for RIF. Uses generic
5542 x_get_glyph_overhangs.
5543 (w32_redisplay_interface): Add new members.
5544
5545 * macgui.h (XChar2b): Move typedef here for consolidation.
5546 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
5547
5548 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
5549 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
5550 consolidation.
5551
5552 * macterm.c: Remove consolidated defines and code.
5553 (mac_per_char_metric): New function for RIF.
00c64fab 5554 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
5555 (mac_compute_glyph_string_overhangs): Adapt for RIF.
5556 (x_redisplay_interface): Add new members.
5557
00c64fab
SM
55582003-03-15 Stefan Monnier <monnier@cs.yale.edu>
5559
5560 * keymap.c (Vmenu_events): New var.
5561 (syms_of_keymap): Initialize it.
5562 (where_is_internal): Check more carefully what is a menu event.
5563
225c7a07
RS
55642003-03-14 Richard M. Stallman <rms@gnu.org>
5565
5566 * lread.c (read1): After #!, exit loop on eof.
5567
cea9be54
JD
55682003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5569
9ea0e54d
JD
5570 * gtkutil.h: Add declaration for xg_frame_cleared.
5571
0cb35f4e
JD
5572 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
5573
cea9be54
JD
5574 * gtkutil.c (struct xg_last_sb_pos): New structure.
5575 (handle_fixed_child): New function.
5576 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
5577 and force a redraw on them.
5578 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
5579 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
5580 so we can avoid unneeded redraws.
5581 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
5582 and force a redraw on the scroll bar.
5583 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
5584 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 5585 (xg_frame_cleared): New function.
cea9be54 5586
20b853f3
KH
55872003-03-13 Kenichi Handa <handa@m17n.org>
5588
5589 * coding.c (Fdetect_coding_region): Fix docstring.
5590 (Fdetect_coding_string): Fix docstring.
5591
7a555aff
AS
55922003-03-13 Andreas Schwab <schwab@suse.de>
5593
25cc0080
AS
5594 * gtkutil.c: Add prototype for create_menus.
5595
30225431
AS
5596 * data.c (long_to_cons): Fix type of top.
5597
5598 * xselect.c (selection_data_to_lisp_data): Use int instead of
5599 long for an integer of size 4.
5600
7a555aff 5601 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 5602 (xg_tool_bar_help_callback): Likewise.
7a555aff 5603
a3e4741f
AS
56042003-03-12 Andreas Schwab <schwab@suse.de>
5605
5606 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
5607
9668be7c
KS
56082003-03-12 Kim F. Storm <storm@cua.dk>
5609
03eb5fab 5610 The following changes consolidate the fringe handling from
9668be7c 5611 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 5612
9668be7c
KS
5613 * xdisp.c: Consolidate fringe handling code here.
5614 (left_bits, right_bits, continued_bits, continuation_bits)
5615 (ov_bits, zv_bits): Define fringe bitmaps.
5616 (fringe_bitmaps): New array holding fringe bitmaps.
5617 (draw_fringe_bitmap): Draw a specific bitmap; call display
5618 specific drawing routine via rif->draw_fringe_bitmap.
5619 (draw_row_fringe_bitmaps): Generic replacement for
5620 x_draw_row_fringe_bitmaps; all callers changed.
5621 (compute_fringe_widths): Generic replacement for
5622 x_compute_fringe_widths; all callers changed.
5623
5624 * dispextern.h (enum fringe_bitmap_type): Define here.
5625 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
5626 (fringe_bitmaps): Declare extern.
5627 (struct redisplay_interface): New member draw_fringe_bitmap.
5628 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
5629
5630 * xterm.c: Remove generic fringe code.
5631 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5632 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5633
5634 * w32term.c: Remove generic fringe code.
5635 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
5636 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 5637
9668be7c
KS
5638 * macterm.c: Remove generic fringe code.
5639 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
5640 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
5641
00a88f32
SM
56422003-03-11 Stefan Monnier <monnier@cs.yale.edu>
5643
5644 * print.c (Fprin1_to_string): Return unibyte string if possible.
5645
1d1de695
DK
56462003-03-09 David Kastrup <dak@gnu.org>
5647
5648 * process.c (read_process_output): We have allocated enough space
5649 for readmax and carryover, so actually use the alloted space.
5650
257f40f2
JD
56512003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5652
5653 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
5654 toolkit scrollbar click.
5655
5656 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
5657 for USE_GTK.
5658 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
5659 also.
5660 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
5661 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 5662
257f40f2
JD
5663 * gtkutil.h: Declare xg_get_scroll_id_for_window.
5664
5665 * gtkutil.c (xg_get_scroll_id_for_window): New function.
5666 (xg_tool_bar_item_expose_callback): New function.
5667 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
5668 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
5669 on the tool bar widget.
5670 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
5671 to expose on the tool bar item widgets.
5672
15213141
JD
56732003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5674
26b74a0b 5675 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 5676 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
5677 deleted from the image cache).
5678
15213141
JD
5679 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
5680 the event isn't for a frame (i.e. for dialogs).
5681
20b853f3 56822003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
5683
5684 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
5685 composition components reaches the limit, terminate composing.
5686 (COMPOSITION_OK): New macro.
00a88f32 5687 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
5688 composition is found.
5689 (coding_restore_composition): Adjust the number of composition
5690 components if it is not sane.
5691
c9029fe5
JB
56922003-03-06 Juanma Barranquero <lektu@terra.es>
5693
5694 * w32term.h (struct w32_display_info): Add xrdb member to support
5695 passing resources via -xrm on Windows.
5696
5697 * w32term.c (w32_make_rdb): New function.
5698 (w32_term_init): Use it to initialize xrdb member of w32_display_info
5699 struct. Delete leftover code.
5700
5701 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
5702 for resources passed on the command line.
5703
5704 * w32reg.c (w32_get_rdb_resource): New function.
5705 (x_get_string_resource): Use it, so resources passed with -xrm
5706 supercede the ones in the registry.
5707
9d00001f
JD
57082003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5709
5710 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
5711 instead of x_top_window_to_frame.
5712
ca2417b9
JD
57132003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5714
5715 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
5716 when restarting Emacs.
5717
5b20caf0
RS
57182003-03-03 Richard M. Stallman <rms@gnu.org>
5719
5720 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
5721 to run kill-buffer-query-functions.
5722 (Qkill_buffer_query_functions): New var.
5723 (syms_of_buffer): Init and staticpro it.
5724
58e91b77
JD
57252003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5726
5727 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
5728
932357b4
KS
57292003-02-25 Kim F. Storm <storm@cua.dk>
5730
5731 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
5732 If centering point failed to make whole line visible and vscroll
5733 is non-zero, disable vscroll and try centering point again.
5734
5735 * lread.c (read1): Accept `single space' syntax like (? x).
5736
bb8db7e1
JD
57372003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5738
5739 * keyboard.c (cancel_hourglass_unwind): Surround with
5740 #ifdef HAVE_X_WINDOWS
5741
47d77aab
KH
57422003-02-25 Kenichi Handa <handa@m17n.org>
5743
5744 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
5745 process only when "subprocesses" is defined.
5746
6a097c0c
SM
57472003-02-24 Stefan Monnier <monnier@cs.yale.edu>
5748
5749 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
5750
0b063c27
JB
57512003-02-24 Juanma Barranquero <lektu@terra.es>
5752
d1135afc
JB
5753 * callint.c (fix_command): Declare as static void and move before
5754 Fcall_interactively.
5755
0b063c27
JB
5756 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
5757 (syms_of_xdisp): Don't initialize Qwhen.
5758
0af912f0
JD
57592003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5760
5761 * keyboard.c (cancel_hourglass_unwind): New function.
5762 (command_loop_1): Cancel hourglass with unwind-protect.
5763
120d0a23
RS
57642003-02-23 Richard M. Stallman <rms@gnu.org>
5765
5766 * callint.c (fix_command): New subroutine, from Fcall_interactively.
5767 Detect (when ... (region-beginning)) etc.
5768 (Fcall_interactively): Call fix_command.
5769 (Qif, Qwhen): New variables.
5770 (syms_of_callint): Init and staticpro them.
0b063c27 5771
120d0a23
RS
5772 * regex.c (print_partial_compiled_pattern): Output to stderr.
5773
4ece81a6
KG
57742003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
5775
5776 * dired.c (directory_files_internal): Don't expand directory.
5777 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
5778 instead. From Lars Hansen <larsh@math.ku.dk>.
5779
e52bd6b7
SM
57802003-02-22 Stefan Monnier <monnier@cs.yale.edu>
5781
5782 * fns.c (string_to_multibyte): Remove unused var i.
5783 (Flanginfo): Fix int/Lisp_Object mixup.
5784 (void_call2): New fun.
5785 (Fmap_char_table): Use it in place of call2.
5786
5787 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
5788
5789 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
5790
5791 * keymap.c (copy_keymap_1): Make it static.
5792
5793 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
5794
c33ef7c4
JB
57952003-02-22 David Ponce <david@dponce.com>
5796
5797 * lread.c (Fload): Don't check STRING_MULTIBYTE.
5798
16782258
JD
57992003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5800
5801 * process.h: Removed subtty field from struct Lisp_Process.
5802
5803 * process.c (create_process): Remove setting of subtty.
5804 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
5805 (Fprocess_running_child_p, process_send_signal):
5806 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
5807 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
5808
3abeca61
KG
58092003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
5810
5811 * keymap.c (Fdefine_key): Doc fix.
5812
92a8ce63
JB
58132003-02-21 Juanma Barranquero <lektu@terra.es>
5814
5815 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
5816
5817 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
5818 POLLING_PROBLEM_IN_SELECT.
5819
5820 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
5821 Delete #undef of POLLING_PROBLEM_IN_SELECT.
5822
5823 * s/hpux10-20.h: New file.
5824
e52bd6b7
SM
5825 * process.c (wait_reading_process_input):
5826 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 5827
20f1ef2e
KH
58282003-02-20 Kenichi Handa <handa@m17n.org>
5829
32d0a9dc
KH
5830 * fontset.c (check_fontset_name): If NAME is nil, return the
5831 default fontset.
5832 (override_font_info): New function.
e52bd6b7 5833 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
5834 (Ffontset_info): If FONTSET is not the default fontset, merge
5835 FONTSET onto the copy of the default fontset, and work on that
5836 copy. Document that NAME nil means the default fontset.
5837 (Ffontset_font): Document that NAME nil means the default fontset.
5838
20f1ef2e
KH
5839 * process.c (setup_process_coding_systems): If the process's
5840 in/out descriptor is -1, do nothing.
5841
77d1daf2
AS
58422003-02-19 Andreas Schwab <schwab@suse.de>
5843
e52bd6b7
SM
5844 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
5845 Add prototypes.
77d1daf2 5846
f9a45bb3
KH
58472003-02-19 Kenichi Handa <handa@m17n.org>
5848
5849 * xfaces.c (try_alternative_families): Try all scalable fonts if
5850 Vscalable_fonts_allowed is not Qt.
5851
72ecb43c
JD
58522003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5853
5854 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
5855
ee5be7c3
JD
58562003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5857
5858 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
5859 names.
5860
5861 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 5862 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
5863 x_face_list_fonts.
5864 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
5865 (Fx_list_fonts): Set maxnames to -1 to get all font names.
5866
4cd519a7
KS
58672003-02-18 Kim F. Storm <storm@cua.dk>
5868
068f9882
KS
5869 * lread.c (read1): Fix last change.
5870 "`" is not always special. Allow "?" after a character constant.
4cd519a7 5871
7290a344
AC
58722003-02-18 Andrew Choi <akochoi@shaw.ca>
5873
5874 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
5875
1f7fa69b
AS
58762003-02-18 Andreas Schwab <schwab@suse.de>
5877
5878 * window.c (window_scroll_pixel_based): Move outside a
5879 multi-glyph character before setting new window start.
5880
5881 * xdisp.c (in_display_vector_p): New function.
5882 * dispextern.h (in_display_vector_p): Declare.
5883
23e21195
KS
58842003-02-18 Kim F. Storm <storm@cua.dk>
5885
5886 * lread.c (read1): Fix and relax read syntax.
5887 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
5888 Only recognize "," after dotted-pair dot if inside backquote.
5889 Never include "`" or "," (inside backquote) in a symbol.
5890 Allow dotted-pair dot after a character constant.
5891 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 5892
f098b121
JD
58932003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5894
5895 * gtkutil.c (xg_tool_bar_expose_callback): New function.
5896 (xg_create_tool_bar): Force style of tool bar to be horizontal with
5897 icons. Set name of tool bar to emacs-toolbar.
5898 (update_frame_tool_bar): Connect expose event to
5899 xg_tool_bar_expose_callback.
5900
63020c46
RS
59012003-02-17 Richard M. Stallman <rms@gnu.org>
5902
5903 * keyboard.c (this_command_key_count_reset): New variable.
5904 Initiatize to 0 where this_command_key_count is set.
5905 (read_char): Save and restore this_command_key_count_reset
5906 around input method code.
5907 (read_char): If this_command_key_count_reset, echo reread commands.
5908 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
5909
fb4452cc
KH
59102003-02-17 Kenichi Handa <handa@m17n.org>
5911
5912 * fns.c (string_to_multibyte): Always return a multibyte string.
5913
bd11cc09
JR
59142003-02-16 Jason Rumney <jasonr@gnu.org>
5915
e52bd6b7
SM
5916 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
5917 Negative max_fonts parameter means list all.
bd11cc09 5918
4cdf4bde
DL
59192003-02-14 Dave Love <fx@gnu.org>
5920
5921 * fns.c (Flanginfo): Doc fix.
5922
023b93f6
KS
59232003-02-13 Kim F. Storm <storm@cua.dk>
5924
37cd4238
KS
5925 * lread.c (read_escape): Interpret \s as a SPACE character, except
5926 for \s-X in a character constant which still is the super modifier.
5927 (read1): Signal an `invalid read syntax' error if a character
5928 constant is immediately followed by a digit or symbol character.
5929
140a6b7e
KS
5930 * search.c (Fmatch_data): Doc fix. Explicitly state that
5931 match-data is undefined if last search failed.
5932
023b93f6
KS
5933 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
5934 All uses changed.
5935
7d5c86e5
JB
59362003-02-12 Juanma Barranquero <lektu@terra.es>
5937
5938 * eval.c (Fdefmacro): Fix typo.
5939
295fff2c
KS
59402003-02-12 Kim F. Storm <storm@cua.dk>
5941
5942 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
5943 macro is a string, convert meta modifiers in string when copying
5944 the string into a vector.
5945
60f3202d
KS
59462003-02-11 Kim F. Storm <storm@cua.dk>
5947
5948 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
5949
61cb0b53
KH
59502003-02-11 Kenichi Handa <handa@m17n.org>
5951
5952 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
5953
7392e23c
KS
59542003-02-10 Kim F. Storm <storm@cua.dk>
5955
5956 * process.c: Doc fixes.
5957 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
5958
ce4254bd
KH
59592003-02-10 Kenichi Handa <handa@m17n.org>
5960
9c7a329a
KH
5961 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
5962
ce4254bd
KH
5963 * process.c (QCfilter_multibyte): New variable.
5964 (setup_process_coding_systems): New function.
e52bd6b7
SM
5965 (Fset_process_buffer, Fset_process_filter):
5966 Call setup_process_coding_systems.
ce4254bd
KH
5967 (Fstart_process): Initialize the member `filter_multibyte' of
5968 struct Lisp_Process.
5969 (create_process): Call setup_process_coding_systems.
5970 (Fmake_network_process): New keyward `:filter-multibyte'.
5971 Initialize the member `filter_multibyte' of struct Lisp_Process.
5972 Call setup_process_coding_systems.
5973 (server_accept_connection): Call setup_process_coding_systems.
5974 (read_process_output): If the process has a filter, decide the
5975 multibyteness of a string to given to the filter by
5976 `filter_multibyte' member of the process. If the process doesn't
5977 have a filter and the result of conversion is unibyte, use
5978 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
5979 multibyte form.
5980 (Fset_process_coding_system): Call setup_process_coding_systems.
5981 (Fset_process_filter_multibyte): New function.
5982 (Fprocess_filter_multibyte_p): New function.
5983 (syms_of_process): Intern and staticpro QCfilter_multibyte.
5984 Defsubr Sset_process_filter_multibyte and
5985 Sprocess_filter_multibyte_p.
5986
5987 * process.h (struct Lisp_Process): New member filter_multibyte.
5988
5989 * lisp.h (setup_process_coding_systems): Add prototype.
5990
5991 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
5992 process, update coding systems for the process.
5993
b08d5f59
KH
59942003-02-09 Kenichi Handa <handa@m17n.org>
5995
5996 * fns.c (string_to_multibyte): New function.
5997 (Fstring_to_multibyte): New function.
5998 (syms_of_fns): Defsubr it.
5999
0dfd93c0
AS
60002003-02-08 Andreas Schwab <schwab@suse.de>
6001
6002 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
6003 instead of the substitution.
6004
7b76ca1c
JD
60052003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6006
6007 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
6008
6009 * xmenu.c (menu_position_func): Adjust menu popup position so that
6010 the menu is fully visible.
7b76ca1c 6011
2436a4e4
JD
60122003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6013
6014 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
6015 (x_make_frame_invisible, x_wm_set_icon_position):
6016 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
6017
6018 * xfns.c (x_set_name, x_set_title): Ditto.
6019
37d1e680
RS
60202003-02-04 Richard M. Stallman <rms@gnu.org>
6021
6022 * keyboard.c (echo_now): Update before_command_echo_length.
6023 (Freset_this_command_lengths): Reset this_command_key_count etc.
6024 immediately rather than arranging to do it later.
6025 (before_command_key_count_1, before_command_echo_length_1)
6026 (before_command_restore_flag): Vars deleted.
6027 (add_command_key): Don't handle before_command_restore_flag.
6028 (read_char, record_menu_key): Don't update before_command_key_count or
6029 before_command_echo_length.
6030 (read_char): Don't handle before_command_restore_flag.
6031
6032 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
6033 in direct-output clauses if it wouldn't be called in the ordinary case.
6034
578846a3
KS
60352003-02-04 Kim F. Storm <storm@cua.dk>
6036
6037 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
6038
49853a4d
JD
60392003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6040
6041 * gtkutil.c (remove_from_container): Copying list is not needed.
6042 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
6043 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
6044 on list returned from gtk_container_get_children to avoid memory leak.
6045
8b53dc06
JR
60462003-02-01 Jason Rumney <jasonr@gnu.org>
6047
5d54d177
JR
6048 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
6049 local malloc.
6050 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
6051 definitions in xpm.h.
6052 (init_xpm_functions): New function.
6053 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
6054 (init_external_image_libraries): Try to load libXpm.dll.
6055
8b53dc06
JR
6056 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
6057 timestamp.
6058
b222e415
DL
60592003-01-31 Dave Love <fx@gnu.org>
6060
6061 * syntax.c (Fskip_chars_forward)
6062 (open-paren-in-column-0-is-defun-start): Doc fix.
6063
c60ee5e7
JB
60642003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
6065
6066 * fileio.c: Support // at start of name for Cygwin (just added proper
6067 preprocessor tests).
6068
6069 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
6070
6071 * Makefile.in: Use @EXEEXT@ for Cygwin.
6072
6073 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
6074
6075 * s/cygwin.h: Added for Cygwin port.
6076
53b37591
JB
60772003-01-31 Juanma Barranquero <lektu@terra.es>
6078
6079 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
6080 when including gif_lib.h.
fe929957
JB
6081 (init_gif_functions, init_tiff_functions): New functions.
6082 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
6083 Windows. Disable color table lookups. Call library functions
53b37591 6084 through pointers determined at runtime.
fe929957
JB
6085 (init_external_image_libraries): Try to load libungif.dll and
6086 libtiff.dll.
53b37591 6087
45415a8f
KH
60882003-01-31 Kenichi Handa <handa@m17n.org>
6089
6090 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 6091 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 6092
a97e4138
JD
60932003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6094
e52bd6b7 6095 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 6096
6eed9bed
DL
60972003-01-30 Dave Love <fx@gnu.org>
6098
6099 * alloc.c (Vgc_elapsed, gcs_done): New variables.
6100 (Fgarbage_collect): Use them.
6101 (init_alloc, syms_of_alloc): Set them up.
6102
100dcd40
JB
61032003-01-30 Juanma Barranquero <lektu@terra.es>
6104
6105 * w32fns.c (init_external_image_libraries): Add missing operator.
6106
fbd852af
JR
61072003-01-29 Jason Rumney <jasonr@gnu.org>
6108
6109 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
6110 an alternative name for jpeg.dll.
6111
8a2d8020
KH
61122003-01-29 Kenichi Handa <handa@m17n.org>
6113
6114 * xdisp.c (set_cursor_from_row): Pay attention to string display
6115 properties.
6116
058c18c7
AC
61172003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
6118
6119 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
6120 <escape>.
6121 (keycode_to_xkeysym_table): Reformat and add more comments.
6122 (XTread_socket): Drop special case for backspace.
6123
385f11cf
AC
61242003-01-28 Andrew Choi <akochoi@shaw.ca>
6125
6126 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
6127 values in old-style RGB specs.
6128
c922a224
JB
61292003-01-27 Juanma Barranquero <lektu@terra.es>
6130
6131 * w32fns.c (init_external_image_libraries): Try alternate names for the
6132 jpeg dll.
6133
0a1d6de0
JD
61342003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6135
6136 * gtkutil.c (create_dialog, xg_separator_p)
6137 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
6138 before calling strcmp or strlen.
6139
a97e4138 61402003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
6141
6142 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
6143 and handle image load failure.
6144
28908312
JR
61452003-01-26 Jason Rumney <jasonr@gnu.org>
6146
6147 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
6148 New functions.
6149 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
6150 Disable color table lookups. Call jpeg library functions
6151 through pointers determined at runtime.
6152 (init_external_image_libraries): Try to load jpeg.dll.
6153
84e47416
RS
61542003-01-25 Richard M. Stallman <rms@gnu.org>
6155
6156 * lisp.h: Declare format2 instead of format1.
6157
6158 * fileio.c (barf_or_query_if_file_exists):
6159 Call format2 instead of format1.
6160
6161 * editfns.c (format2): New function, replaces format1
6162 but takes exactly two Lisp Objects as format args.
6163
6164 * buffer.c (Fkill_buffer): Call format2 instead of format1.
6165
a97e4138 61662003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
6167
6168 * xterm.h: Change to return value of x_dispatch_event to int.
6169
6170 * xterm.c (x_filter_event): New function.
6171 (event_handler_gdk, XTread_socket): Call x_filter_event.
6172 (x_dispatch_event): Change to return value of finish.
6173 (event_handler_gdk): Use return value from x_dispatch_event.
6174
6175 * xfns.c (x_window): Call create_frame_xic for GTK version to
6176 initialize input methods.
6177
6178 * gtkutil.h: Add (void) prototypes.
6179
6180 * gtkutil.c (create_menus): Remove code that puts the help menu to
6181 the right.
6182
54eefef1
JR
61832003-01-25 Jason Rumney <jasonr@gnu.org>
6184
6185 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
6186 [HAVE_PNG]: Sync with xfns.c version.
6187 (png_load): Adjust colors for Windows. Use Windows
6188 bitmaps. Disable color table lookups.
c262430d
JR
6189 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
6190 (init_png_functions): New function.
6191 (png_read_from_memory, png_load): Call png library functions
6192 through pointers determined at runtime.
6193 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
6194 (init_external_image_libraries): New function.
6195 (init_xfns): Call it.
54eefef1 6196
1a9e275b
AS
61972003-01-24 Andreas Schwab <schwab@suse.de>
6198
6199 * minibuf.c (Fminibuffer_message): Verify type of parameter.
6200
a97e4138 62012003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
6202
6203 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
6204 of static initializer.
6205
422eec7e
DL
62062003-01-24 Dave Love <fx@gnu.org>
6207
6208 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
6209 architectures.
6210
6211 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
6212 Use __alignof__.
6213
2a026b04
KH
62142003-01-24 Kenichi Handa <handa@m17n.org>
6215
6216 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 6217 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
6218 (command_loop_1): Call adjust_point_for_property with proper
6219 second arg.
6220
a18bb28d
JR
62212003-01-22 Jason Rumney <jasonr@gnu.org>
6222
6223 Sync changes with xterm.c and xfns.c.
6224
6225 * w32term.c (x_draw_glyph_string_foreground)
6226 (x_draw_composite_glyph_string_foreground): Implement overstriking.
6227
6228 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
6229 phys_cursor's hpos is overwritten. This is still not completely
6230 correct, as it doesn't really make sense to use hpos at all to
6231 get the cursor glyph (as that is relative to the width of the
6232 characters on the line, which may have changed during the update).
6233
6234 * w32term.c (notice_overwritten_cursor): Handle the special case
6235 of the cursor being in the first blank non-text line at the
6236 end of a window.
6237
6238 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6239 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6240 Compute from the x position returned by x_draw_glyphs.
6241
6242 (x_display_and_set_cursor): Don't set phys_cursor_width here,
6243 except for NO_CURSOR and system caret, to make phys_cursor_width
6244 contain what its name suggests.
6245 (notice_overwritten_cursor): Consider the cursor image erased if
6246 the output area intersects the cursor image in y-direction.
6247
6a097c0c
SM
6248 * w32term.c (note_mode_line_or_margin_highlight): Rename from
6249 note_mode_line_highlight and extend.
a18bb28d
JR
6250
6251 * w32term.c (last_window): New variable.
6252 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
6253 (note_mouse_movement): Remove reimplemented code in #if 0.
6254
6255 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
6256 not update_mode_lines, and always set it to 1.
6257
ac6e47ef
JR
62582003-01-21 Jason Rumney <jasonr@gnu.org>
6259
6260 * w32fns.c (IDC_HAND): Define it if system headers don't.
6261
62622003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6263
6264 * w32term.h (struct w32_output): New member hand_cursor.
6265 (WM_EMACS_SETCURSOR): New message definition.
6266
6267 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
6268 function w32_define_cursor.
6269 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
6270 position, change member name output_data.x to output_data.w32 and
6271 add function w32_define_cursor.
6272 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
6273 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
6274 (w32_initialize_display_info):
6275 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
6276
6277 * w32fns.c (Vx_hand_shape): New variable.
6278 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
6279 WM_EMACS_SETCURSOR.
6280 (x-create-frame): Setup Cursor types.
6281
ceb39a17
JB
62822003-01-21 David Ponce <david@dponce.com>
6283
ac6e47ef
JR
6284 * w32term.c (w32_encode_char): For DIM=1 charset, set
6285 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
6286 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 6287 2002-09-30.)
ac6e47ef
JR
6288 (w32_draw_relief_rect): Declare all args.
6289 (w32_define_cursor): New.
6290
6291 * w32fns.c (w32_load_cursor): New function.
6292 (w32_init_class): Use it.
6293 (x_put_x_image): Declare all args.
6294
46cf0bed
JB
62952003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
6296
6297 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
6298
a97e4138 62992003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
6300
6301 * gtkutil.c: Must include stdio.h before termhooks.h
6302
83fc9c63
DL
63032003-01-21 Dave Love <fx@gnu.org>
6304
6305 * alloc.c (Fgc_status): Print zombie list.
6306 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6307 Fix assignment of zombies.
6308 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
6309 Don't take car of non-cons.
6310
6311 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6312
6313 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6314
fe04b8c8
JR
63152003-01-20 David Ponce <david@dponce.com>
6316
6317 * w32menu.c (digest_single_submenu): Declare all args.
6318
6319 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
6320 changes in xmenu.c:
6321
6322 (parse_single_submenu): Use individual keymap's prompt
6323 string as pane name, if there is one.
6324 (set_frame_menubar): Save menu_items_n_panes from each call to
6325 parse_single_submenu and use it when calling digest_single_submenu.
6326
539e69a9
ST
63272003-01-20 Steven Tamm <steventamm@mac.com>
6328
6329 * macterm.c (XTread_socket): Checks for valid, visible window
6330 before sending a scroll-wheel event.
6331
675d000f
RS
63322003-01-20 Richard M. Stallman <rms@gnu.org>
6333
6334 * xdisp.c (redisplay_window): If mini window's buffer is not
6335 a minibuffer, then redisplay it like other windows.
6336
a97e4138 63372003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
6338
6339 * gtkutil.c (xg_create_frame_widgets): Check if there is an
6340 external tool bar before setting tool bar height.
6341
048addec
JD
63422003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6343
6344 * xterm.c (handle_one_xevent): Surround popup_activated
6345 with #ifdef:s for non-toolkit version.
6346
6347 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
6348 (gtkutil.o): New file.
6349 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
6350 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
6351
6352 * gtkutil.c: New file for GTK version.
6353
6354 * gtkutil.h: New file for GTK version.
6355
6356 * xterm.h: Add xt_or_gtk_widget.
6357 Include gtk files for USE_GTK.
6358 (struct x_output): Add toolbar_height.
6359 (struct x_output): Add GTK widgets and Gdk size_hints.
6360 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
6361 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
6362 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
6363
6364 * xterm.c: Include gtkutil.h for USE_GTK.
6365 Declare extern void free_frame_menubar for USE_GTK.
6366 (note_mouse_highlight): Check popup_activated for USE_GTK.
6367 (xt_action_hook): Don't compile if USE_GTK.
6368 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
6369 (xg_scroll_callback): New function.
6370 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
6371 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
6372 for USE_GTK.
6373 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
6374 xg_show_scroll_bar for USE_GTK.
6375 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
6376 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
6377 (event_handler_gdk): New function for USE_GTK.
6378 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
6379 (handle_one_xevent): Make sure widget is mapped before
6380 calling x_real_positions for USE_GTK.
6381 (XTread_socket): Add GTK event loop for USE_GTK.
6382 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
6383 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
6384 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
6385 (x_iconify_frame): Add code for USE_GTK.
6386 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
6387 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
6388 is in gtkutil.c.
6389 (x_term_init): Add initialization for GTK.
6390 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
6391
6392 * xmenu.c: Include gtkutil.h for USE_GTK.
6393 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
6394 (single_menu_item, single_menu_item, Fx_popup_dialog):
6395 Check for USE_GTK.
048addec
JD
6396 (popup_widget_loop): New function for USE_GTK.
6397 (x_activate_menubar): Add code for USE_GTK.
6398 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
6399 (menu_highlight_callback, menubar_selection_callback):
6400 Add USE_GTK versions.
048addec
JD
6401 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
6402 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
6403 (free_frame_menubar): Only compile if not USE_GTK. GTK version
6404 is in gtkutil.c.
6405 (popup_selection_callback): New version for USE_GTK.
6406 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 6407 one USE_X_TOOLKIT version.
048addec
JD
6408 (xmenu_show): Call create_and_show_popup_menu.
6409 (dialog_selection_callback): New version for USE_GTK.
6410 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 6411 one USE_X_TOOLKIT version.
048addec
JD
6412 (xdialog_show): Call create_and_show_dialog.
6413
6414 * xfns.c: Include gtkutil for USE_GTK.
6415 (x_window_to_frame, x_any_window_to_frame)
6416 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6417 (x_top_window_to_frame): Add code for USE_GTK.
6418 (x_set_background_color): Call xg_set_background_color for GTK.
6419 (x_set_menu_bar_lines): Check for USE_GTK.
6420 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
6421 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
6422 (x_window): Call xg_create_frame_widgets for USE_GTK.
6423 (Fx_create_frame): Check for USE_GTK
6424 (Fx_file_dialog): New implementation for USE_GTK.
6425
6426 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
6427 (update_menu_bar): Add check for USE_GTK.
6428 (update_tool_bar): Add check for USE_GTK and external tool bar.
6429 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
6430 (redisplay_internal): Add check for USE_GTK and popup_activated.
6431 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
6432 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
6433 (display_menu_bar): Add check for USE_GTK
6434
6435 * lisp.h: Declare Vx_resource_name extern.
6436
a64387ee 6437 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
048addec
JD
6438 for USE_GTK.
6439 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
6440
6441 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
6442 (FRAME_EXTERNAL_TOOL_BAR): New macro.
6443 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
6444
6445 * fileio.c (Fread_file_name): Add check for USE_GTK.
6446
6bdb309a
SM
6447 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
6448 Add check for USE_GTK.
048addec
JD
6449
6450 * config.in: Added HAVE_GTK
6451
6452 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
6453
64542003-01-18 Stefan Monnier <monnier@cs.yale.edu>
6455
6456 * charset.h (Funibyte_char_to_multibyte): Export.
6457
64582003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6459
6460 * xmenu.c (mouse_position_for_popup): New function.
6461 (Fx_popup_menu): Call mouse_position_for_popup for X and
6462 mouse_position_hook for others.
6463
64642003-01-17 Kim F. Storm <storm@cua.dk>
6465
6466 * editfns.c (Finsert): Mention `string-make-multibyte' and
6467 `string-as-multibyte' in doc string.
6468
64692003-01-17 Kenichi Handa <handa@m17n.org>
6470
6471 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 6472
048addec
JD
6473 * editfns.c (Fformat): Convert an unibyte char argument that is
6474 formatted by "%c" to multibyte if the total result must be a
6475 multibyte string.
cd7df9c0 6476
048addec 64772003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 6478
048addec
JD
6479 * process.c (set-process-filter): Document unibyte/multibyte-ness
6480 of string argument.
56210ecd 6481
048addec 64822003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 6483
048addec 6484 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 6485
048addec
JD
6486 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
6487 (re_search_2): Likewise.
6df8b9fe 6488
048addec 64892003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 6490
048addec
JD
6491 * xdisp.c (message_dolog): Fix bug of the case that *Message*
6492 buffer is unibyte.
292ddc31 6493
048addec 64942003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 6495
048addec 6496 * fns.c (Fsubstring): Clarify doc string.
292ddc31 6497
048addec
JD
6498 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
6499 (Fprevious_char_property_change)
6500 (Fnext_single_char_property_change)
6501 (Fprevious_single_char_property_change, Fnext_property_change)
6502 (Fnext_single_property_change, Fprevious_property_change)
6503 (Fprevious_single_property_change, Fadd_text_properties)
6504 (Fput_text_property, Fset_text_properties)
6505 (Fremove_text_properties, Fremove_list_of_text_properties)
6506 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 6507
048addec 65082003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 6509
048addec
JD
6510 * process.h (struct Lisp_Process): New member plist replaces old
6511 member private_vars. All uses changed.
63e4e4c6 6512
048addec 6513 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 6514 (QCplist): Rename from QCvars. Change all uses.
048addec 6515 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 6516 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 6517 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 6518 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 6519
048addec 65202003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 6521
6bdb309a 6522 * m/delta.h: Remove (obsolete).
e833850f 6523
048addec 65242003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 6525
048addec
JD
6526 * fileio.c (Fdelete_directory, Fdelete_file): Document the
6527 behaviour in front of symlinks.
6528 (Fdelete_file): Raise an error on directories.
817cb127 6529
048addec 65302003-01-13 Dave Love <fx@gnu.org>
817cb127 6531
048addec 6532 * fns.c (Freverse): Use QUIT.
3e8cf2ea 6533
048addec 65342003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 6535
048addec
JD
6536 * minibuf.c (minibuffer_completion_contents):
6537 Error if point is inside prompt.
3e8cf2ea 6538
048addec
JD
6539 * keyboard.c (command_loop_1): Don't redisplay directly
6540 if there's a post-command-hook.
3e8cf2ea 6541
048addec
JD
6542 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
6543 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 6544
048addec 65452003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 6546
048addec 6547 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 6548
048addec
JD
6549 * process.c (QCvars): New variable.
6550 (syms_of_process): Intern and staticpro it.
6551 (Fset_process_contact): Removed function.
6552 (Fprocess_variable, Fset_process_variable): New functions.
6553 (syms_of_process): Defsubr them.
6554 (Fstart_process): Initialize private_vars plist to nil.
6555 (Fmake_network_process): New arg :vars to setup the private
6556 variables for new network process.
6557 (server_accept_connection): Copy server's private variables to
6558 client process.
2c10f029 6559
048addec
JD
6560 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
6561 crashes). Code rewritten and simplified. Now directly aligns the
6562 pointer and recalculates pure_bytes_used, rather than aligning the
6563 size and adjusting the pointer.
b8a76c6c 6564
048addec 65652003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 6566
048addec
JD
6567 * process.c (Fset_process_contact): New function.
6568 (syms_of_process): defsubr it.
6569 (make-network-process): Update doc.
3a8d0899 6570
048addec 65712003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 6572
048addec
JD
6573 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
6574 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 6575
048addec 65762003-01-10 Dave Love <fx@gnu.org>
4abc7470 6577
048addec 6578 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 6579
048addec 65802003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 6581
048addec
JD
6582 * process.c (Fmake_network_process): Convert new port number
6583 to host byte order for `:service t' case. From Mario Lang.
bf338245 6584
048addec 65852003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 6586
048addec
JD
6587 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
6588 instead of XtAppProcessEvent.
bf338245 6589
048addec
JD
6590 * xterm.c (handle_one_xevent): New function.
6591 (x_dispatch_event): New function.
6592 (XTread_socket): Call handle_one_xevent.
bf338245 6593
048addec 6594 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 6595
048addec
JD
6596 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
6597 call XQueryPointer to get coordinates.
6598 (popup_get_selection): Do not set popup_activated_flag to zero,
6599 let popup_deactivate_callback do that. Needed for Motif.
6600 Call x_dispatch_event instead of XtDispatchEvent.
6601 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 6602
048addec 66032003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 6604
6bdb309a 6605 * process.c (server_accept_connection): Fix recording of new
048addec
JD
6606 connection's local address in :local property of contact info.
6607 (Fmake_network_process): Record local network address for new
6608 client processes in :local property of contact info.
6bdb309a 6609 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 6610
048addec 66112003-01-07 Dave Love <fx@gnu.org>
00e3ab56 6612
048addec 6613 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 6614
048addec 66152003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 6616
048addec 6617 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 6618
048addec
JD
6619 * eval.c (Fuser_variable_p): Doc change. For custom variables,
6620 use the same test as for custom-variable-p.
8c6d74c6 6621
048addec 66222003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 6623
048addec
JD
6624 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
6625 Count LAST_LINE_MISFIT in scroll margin for end of window.
6626 Move label too_near_end before setting SCROLL_MARGIN_POS.
6627 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 6628
048addec
JD
6629 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
6630 scroll_conservatively case. If scrolling that much doesn't change
6631 STARTP, move it down one line.
e833850f 6632
048addec
JD
6633 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
6634 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 6635
048addec
JD
6636 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
6637 selected frame.
8c6d74c6 6638
048addec
JD
6639 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
6640 (syms_of_keymap): staticpro them.
6641 (Fapropos_internal): Initialize them and clear them out.
6642 Don't GCPRO them.
8c6d74c6 6643
048addec
JD
6644 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
6645 Doc fixes.
8c6d74c6 6646
048addec
JD
6647 * lisp.h: New misc type Lisp_Save_Value.
6648 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
6649 (XSAVE_VALUE): New macro.
6650 (struct Lisp_Save_Value): New data type.
6651 (union Lisp_Misc): Add u_save_value alternative.
6652 (make_save_value): Declared.
8c6d74c6 6653
048addec 6654 * alloc.c (make_save_value): New function.
8c6d74c6 6655
048addec
JD
6656 * xterm.c (x_catch_errors): Save dpy using make_save_value.
6657 (x_catch_errors_unwind): Call XSync.
8c6d74c6 6658
048addec 66592003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 6660
048addec 6661 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 6662
048addec
JD
6663 * keyboard.c (command_loop_1): Call adjust_point_for_property
6664 in direct action cases for Qforward_char and Qbackward_char.
6665 Set already_adjusted so it won't be done twice.
8c6d74c6 6666
048addec 66672002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 6668
048addec
JD
6669 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
6670 type definition of size_t.
8c609cff 6671
048addec 66722003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 6673
048addec
JD
6674 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
6675 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 6676
048addec 66772002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 6678
048addec
JD
6679 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
6680 to default to t.
fa634a5e 6681
048addec 66822002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 6683
048addec 6684 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 6685
048addec 66862002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 6687
048addec
JD
6688 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
6689 allow building in a different directory than source. Uses some
6690 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 6691
048addec 66922002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 6693
048addec
JD
6694 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
6695 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
6696 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
6697 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 6698
048addec 66992002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 6700
048addec
JD
6701 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
6702 <scroll-down-aggressively>: Doc fix.
2155ecf3 6703
048addec
JD
6704 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
6705 string as pane name, if there is one.
6706 (set_frame_menubar): Save menu_items_n_panes from each call to
6707 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 6708
048addec
JD
6709 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
6710 Don't try to make last line fully visible if it is past end of window.
61f1d295 6711
048addec 67122002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 6713
048addec
JD
6714 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
6715 (mac_menu_show): Add support for hierarchical popup menus.
6716 (add_menu_item): Remove indentation support.
6717 (fill_submenu, fill_menu): Create hierarchical menus
6718 instead of using indentation.
0b17a217 6719
048addec 67202002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 6721
048addec
JD
6722 * xdisp.c (try_cursor_movement): Don't call try_window here.
6723 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 6724
048addec 6725 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 6726
048addec 67272002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 6728
048addec
JD
6729 * macterm.c (XTread_socket): Call KeyTranslate for control and
6730 meta to deal correctly shifted non-alpha characters, like C-S-5
6731 being treated like C-%. Does not look for shift key to deal
6732 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 6733
048addec 67342002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 6735
048addec
JD
6736 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
6737 If it is non-nil, run timers. Use an unwind-protect to requeue
6738 the events that were read ahead.
6739 (popup_get_selection_unwind): New subroutine.
6740 (popup_get_selection_queue): File-scope variable now holds that queue.
6741 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
6742 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
6743 Use an unwind-protect to pop down the dialog box.
6744 (xdialog_show_unwind): New subroutine implements that.
f02cac82 6745
048addec
JD
6746 * xdisp.c (row_containing_pos): Change exit test using last_y.
6747 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 6748
048addec
JD
6749 * lread.c (load_error_handler): New function.
6750 (Fload): Handle errors in Fsubstitute_in_file_name.
6751 Don't expect Fsignal to return.
f02cac82 6752
048addec
JD
6753 * eval.c: Errors and throws work right with interrupt blocking.
6754 (struct catchtag): New elt interrupt_input_blocked.
6755 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
6756 (internal_catch, Fcondition_case, internal_condition_case)
6757 (internal_condition_case_1, internal_condition_case_2): Save it.
6758 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 6759
048addec 6760 * editfns.c (Fformat): Add parens.
f02cac82 6761
048addec
JD
6762 * dired.c (file_name_completion): Fix that change.
6763 Delete special quit-handling code; just use QUIT.
f02cac82 6764
048addec 67652002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 6766
048addec
JD
6767 * dired.c (file_name_completion): Close directory on error
6768 just as in directory_files_internal.
1a590729 6769
048addec 67702002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 6771
048addec
JD
6772 * window.c (Fset_window_configuration): Set old_point to correct
6773 value when new_current_buffer == current_buffer.
f02cac82 6774
048addec 67752002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 6776
048addec
JD
6777 Revisited my earlier fix for the following entry in etc/PROBLEMS:
6778 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
6779 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 6780
048addec
JD
6781 These changes were in part based upon suggestions made by Peter
6782 'Luna' Runestig [peter@runestig.com].
9785d95b 6783
048addec
JD
6784 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
6785 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 6786 g_b_init_get_sid_identifier_authority ): Add several static
048addec 6787 global variables.
9785d95b 6788
048addec
JD
6789 * w32.c (globals_of_w32): New function. Used to initialize those
6790 global variables that must always be initialized on startup even
6791 when the global variable initialized is non zero. Its primary
6792 purpose at this time is to set the global variables
6793 g_b_init_is_windows_9x, g_b_init_open_process_token,
6794 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
6795 g_b_init_get_sid_identifier_authority to 0 on startup.
6796 Called from main.
9785d95b 6797
048addec
JD
6798 * w32.c (is_windows_9x): Perform initialization only if
6799 g_b_init_is_windows_9x is equal to 0. On initialization set
6800 g_b_init_is_windows_9x equal to 1.
2308af15 6801
048addec
JD
6802 * w32.c (open_process_token): Perform initialization only if
6803 g_b_init_open_process_token is equal to 0. On initialization set
6804 g_b_init_open_process_token equal to 1.
2308af15 6805
048addec
JD
6806 * w32.c (get_token_information): Perform initialization only if
6807 g_b_init_get_token_information is equal to 0. On initialization
6808 set g_b_init_get_token_information equal to 1.
9785d95b 6809
048addec
JD
6810 * w32.c (lookup_account_sid): Perform initialization only if
6811 g_b_init_lookup_account_sid is equal to 0. On initialization
6812 set g_b_init_lookup_account_sid equal to 1.
9785d95b 6813
048addec
JD
6814 * w32.c (get_sid_identifier_authority): Perform initialization
6815 only if g_b_init_get_sid_identifier_authority is equal to 0.
6816 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 6817
048addec
JD
6818 * w32fns.c (globals_of_w32fns): New function. Used to initialize
6819 those global variables that must always be initialized on startup
6820 even when the global variable initialized is non zero.
6821 Its primary purpose at this time is to initialize the global variable
6822 track_mouse_event_fn.
9785d95b 6823
a64387ee 6824 * w32fns.c (w32_wnd_proc): Remove initialization of
048addec 6825 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 6826
048addec 6827 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 6828
a64387ee 6829 * w32menu.c (globals_of_w32menu): New function. Used to
048addec
JD
6830 initialize those global variables that must always be initialized
6831 on startup even when the global variable initialized is non zero.
6832 Its primary purpose at this time is to initialize the global
6833 variables get_menu_item_info and set_menu_item_info.
9785d95b 6834
048addec
JD
6835 * w32menu.c (initialize_frame_menubar): Remove initialization of
6836 get_menu_item_info and set_menu_item_info.
9785d95b 6837
048addec 6838 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 6839
048addec
JD
6840 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
6841 Declare them.
9785d95b 6842
048addec
JD
6843 * emacs.c (main): Call globals_of_w32 prior to calling
6844 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
6845 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
6846 is defined.
9785d95b 6847
048addec
JD
6848 * w32term.c (x_update_window_begin): Fix Windows API error
6849 detected by BoundsChecker. Test to determine if
6850 w32_system_caret_hwnd is NULL prior to attempting to use
6851 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 6852
048addec
JD
6853 * w32term.c (x_update_window_end): Fix Windows API error
6854 detected by BoundsChecker. Test to determine if
6855 w32_system_caret_hwnd is NULL prior to attempting to use
6856 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 6857
048addec 68582002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 6859
048addec
JD
6860 * coding.c (coding_system_require_warning): New variable.
6861 (syms_of_coding): DEFVAR it.
b6da19ef 6862
048addec 6863 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 6864
048addec
JD
6865 * fileio.c (choose_write_coding_system): Even if
6866 Vcoding_system_for_write is non-nil, if
6867 coding_system_require_warning is nonzero, call
6868 Vselect_safe_coding_system_function.
bfcf6dbe 6869
048addec 68702002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 6871
048addec
JD
6872 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
6873 (lisp): Add font-core.
2c568af5 6874
048addec 68752002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 6876
048addec
JD
6877 * textprop.c (text_read_only): New arg `propval'.
6878 (get_char_property_and_overlay): Remove unused var `next_overlay'.
6879 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 6880
048addec 68812002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 6882
048addec 6883 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 6884
048addec 68852002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 6886
048addec
JD
6887 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
6888 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
6889 Be more careful about when help_events are generated.
96720f09 6890
048addec 68912002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 6892
048addec
JD
6893 * macterm.c (mac_check_for_quit_char): Correctly set the
6894 modifiers of the event to 0.
6895 * mac.c (sys_select): Duplicate rfds before calling select to
6896 ensure that rfds survive the while loop.
e5ae1c49 6897
048addec 68982002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 6899
048addec
JD
6900 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
6901 row_containing_pos returned NULL.
2eb46b2d 6902
048addec 69032002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 6904
6bdb309a 6905 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 6906 non-blocking.
6bdb309a 6907 (sys_select): Fix sys_select to not use a timeout larger than
048addec 6908 the one given.
b11f1d8a 6909
048addec 69102002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 6911
048addec 6912 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 6913
048addec 69142002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 6915
048addec
JD
6916 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
6917 as the last thing.
a4ac5b17 6918
048addec 69192002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 6920
048addec 6921 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 6922
048addec 69232002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 6924
048addec
JD
6925 * editfns.c (Fformat): Handle precision in string conversion
6926 specifiers like libc functions do (ie, print at most that many
6927 characters).
85cce843 6928
048addec 69292002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 6930
048addec
JD
6931 * xdisp.c (row_containing_pos): Check more carefully
6932 whether charpos is really in the row before returning it.
0d4d26a7 6933
048addec 69342002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 6935
048addec 6936 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 6937
048addec
JD
6938 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
6939 each stack frame. This may change as it could be time consuming.
0d4d26a7 6940
048addec
JD
6941 * macterm.c (mac_check_for_quit_char, quit_char_comp)
6942 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 6943 (mac_initialize): Add code to check for pressing of quit_char
048addec 6944 in the OS event queue.
b11f1d8a 6945
048addec
JD
6946 * mac.c (sys_select): Call mac_check_for_quit_char every second
6947 while blocking on select.
0d4d26a7 6948
048addec
JD
6949 * mac.c (sys_read): Use sys_select to test for input first
6950 before calling read, to allow C-g to break.
9252f7bc 6951
048addec 69522002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 6953
048addec 6954 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 6955
048addec 6956 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 6957
048addec 6958 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 6959
048addec
JD
6960 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
6961 autoload.
9252f7bc 6962
048addec 6963 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 6964
048addec 6965 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 6966
048addec 69672002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 6968
048addec 6969 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 6970
048addec 69712002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 6972
048addec 6973 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 6974
048addec 6975 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 6976
048addec 6977 * alloca.c: Don't use #error.
02d588e2 6978
048addec 69792002-12-03 Dave Love <fx@gnu.org>
02d588e2 6980
048addec
JD
6981 * buffer.c (Qucs_set_table_for_input): New.
6982 (Fget_buffer_create): Use it.
6983 (Qset_buffer_major_mode_hook): Deleted.
6984 (Fset_buffer_major_mode): Revert previous change.
6985 (init_buffer_once): Intern ucs-set-table-for-input.
6986 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
6987 Add &Qucs_set_table_for_input.
451e2697 6988
048addec 69892002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 6990
048addec
JD
6991 * callint.c (Fcall_interactively): Use next_event only if less
6992 than key_count.
72742a99 6993
048addec 69942002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 6995
048addec
JD
6996 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
6997 names to 255 characters.
72742a99 6998
048addec
JD
6999 * macterm.c (XTread_socket): If all frames have been collapsed,
7000 expand the first one before handling drag-and-drop events.
72742a99 7001
048addec
JD
7002 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
7003 which is detected by autoconf.
40e6ff95 7004
048addec 70052002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 7006
048addec
JD
7007 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
7008 offset in two hints table to allow prebinding to be redone and
7009 allow the executable to be stripped.
c02138c6 7010
048addec 70112002-11-29 Dave Love <fx@gnu.org>
c02138c6 7012
048addec
JD
7013 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
7014 already provided.
0e47bbf7 7015
048addec 70162002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 7017
048addec
JD
7018 * xdisp.c (start_display): Check more intelligently for
7019 whether the line is continued.
7020 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 7021
048addec 70222002-11-28 Dave Love <fx@gnu.org>
44129dcb 7023
048addec
JD
7024 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
7025 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 7026
048addec 70272002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 7028
048addec
JD
7029 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
7030 more descriptive error output from lread.c:Fload upon most require
7031 cycles during boostrapping.
1637fd2c 7032
048addec 70332002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 7034
048addec
JD
7035 * fileio.c (Finsert_file_contents): Give a more appropriate error
7036 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 7037
048addec
JD
7038 * dired.c (Ffile_attributes): Don't return negative file sizes for
7039 files bigger than 2Gb when off_t is 32 bit.
540c2788 7040
048addec 70412002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 7042
048addec 7043 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 7044
048addec
JD
7045 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
7046 Test GETPGRP_VOID instead.
7047 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 7048
048addec
JD
7049 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
7050 Don't define.
7051 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 7052
048addec 7053 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 7054
048addec 70552002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 7056
048addec
JD
7057 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
7058 supported.
4042a81a 7059
048addec 70602002-11-25 Dave Love <fx@gnu.org>
4042a81a 7061
048addec 7062 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 7063
048addec 7064 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 7065
048addec 70662002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 7067
048addec 7068 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 7069
048addec 70702002-11-24 Steven Tamm <steventamm@mac.com>
82122254 7071
048addec
JD
7072 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
7073 determine the size of pointers alloced in unexed space instead
7074 of using possibly invalid emacs_zone pointers. This fixes the
7075 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 7076
048addec 70772002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 7078
048addec 7079 * search.c (Fstring_match): Doc fix.
c1ee53bc 7080
048addec
JD
7081 * callint.c (Fcall_interactively): If a command fails because
7082 `*' detects a read-only buffer, but RECORD_FLAG is set,
7083 record it anyway if the args don't actually do tty input.
5598c32e 7084
048addec 70852002-11-22 Dave Love <fx@gnu.org>
5598c32e 7086
048addec 7087 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 7088
048addec
JD
7089 * keyboard.c (interrupt_signal): Provide forward declaration.
7090 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 7091
048addec 7092 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 7093
048addec 70942002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 7095
048addec
JD
7096 * eval.c (interactive_p): Skip any number of bytecode
7097 and special form frames, in any order.
516eea8e 7098
048addec 70992002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 7100
048addec
JD
7101 * w32fns.c (convert_mono_to_color_image): New function.
7102 (xbm_load, xbm_load_image): Use it when foreground or background
7103 is explicitly set.
04dbfa08 7104
048addec 71052002-11-19 Dave Love <fx@gnu.org>
04dbfa08 7106
048addec 7107 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 7108
048addec 71092002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 7110
048addec
JD
7111 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
7112 (XPutPixel): Swap blue and red.
7113 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
7114 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
7115 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
7116 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 7117
048addec 71182002-11-18 Dave Love <fx@gnu.org>
d824beee 7119
048addec 7120 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 7121
048addec 7122 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 7123
048addec 7124 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 7125
048addec
JD
7126 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
7127 malloc, realloc, calloc.
d824beee 7128
048addec
JD
7129 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
7130 (bcmp): Don't define.
d824beee 7131
048addec 7132 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 7133
048addec 7134 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 7135
048addec 7136 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 7137
048addec 7138 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 7139
048addec
JD
7140 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
7141 Don't include alloca.h.
d824beee 7142
048addec 7143 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 7144
048addec 7145 * regex.c (_GNU_SOURCE): Don't define.
1998560a 7146
048addec 7147 * process.c (_GNU_SOURCE): Don't define.
1998560a 7148
048addec 7149 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 7150
048addec 71512002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 7152
048addec 7153 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 7154
048addec 71552002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 7156
048addec
JD
7157 * dispextern.h (struct face): Add `overstrike' field.
7158 * xterm.c (x_draw_glyph_string_foreground)
7159 (x_draw_composite_glyph_string_foreground): Implement overstriking.
7160 * xfaces.c (load_face_font): Set `face->overstrike' based on
7161 result from choose_face_font.
7162 (best_matching_font, choose_face_font): Add `needs_overstrike'
7163 argument, and use it to return whether overstriking is desirable
7164 for this face/font combo.
7165 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 7166
048addec 71672002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 7168
048addec
JD
7169 This change is my fix for the following entry in etc/PROBLEMS:
7170 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
7171 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 7172
048addec
JD
7173 * w32.c: Added wrapper functions around the win32 API functions
7174 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
7175 GetSidIdentifierAuthority. These wrapper functions serve two
7176 purposes:
7177 1. They ensure that the wrapped function can never be called
7178 when Emacs is running on an operating system on which they are
7179 not supported (Microsoft Windows 95 / 98 / ME).
7180 2. They call the wrapped functions via function pointers rather
7181 than calling them directly. This avoids taking advantage of the
7182 undocumented fact that although these functions are not supported
7183 in the 9x branch of Microsoft Windows, the functions do exist in
7184 the version of advapi32.dll that is found in the 9x branch of
7185 Microsoft Windows.
f60ae425 7186
6bdb309a 7187 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
7188 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
7189 and GetSidIdentifierAuthority with calls to the newly added
7190 wrapper functions.
f60ae425 7191
048addec
JD
7192 * w32.h: Added extern declarations for the following functions:
7193 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
7194 syms_of_w32menu, and void syms_of_fontset.
f60ae425 7195
6bdb309a 7196 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
7197 function pointer track_mouse_event_fn in the handler for the
7198 WM_SETFOCUS message.
3582b6a3 7199
6bdb309a 7200 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
7201 reinitialize the function pointers set_menu_item_info and
7202 get_menu_item_info.
f60ae425 7203
048addec 72042002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 7205
048addec
JD
7206 * sound.c: Added a partial implementation of play-sound-internal
7207 for Microsoft Windows. Added various #ifdef / #else / #endif
7208 code blocks to separate the code that will compile under
7209 Microsoft Windows from the code that is specific to Gnu/Linux.
7210 Moved several blocks of code around to make this separation of code
7211 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 7212
048addec 7213 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 7214
048addec
JD
7215 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
7216 added support for play-sound-internal under Windows would be
7217 included in the build of Emacs.
517f42a0 7218
048addec 72192002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 7220
048addec 7221 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 7222
048addec 7223 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 7224
048addec 72252002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 7226
048addec
JD
7227 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
7228 (adjust_point_for_property): Move out of display and invisible even if
7229 we were already inside before (in case a property was added while
7230 we weren't looking). Be more careful when handling invisible props.
7231 Skip invisible text as if it really wasn't there at all.
aab83f91 7232
048addec 72332002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 7234
048addec
JD
7235 * w32term.c (x_draw_image_foreground)
7236 (w32_draw_image_foreground_1): Use standard copy and invert
7237 operations to draw images.
aab83f91 7238
048addec
JD
7239 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
7240 depth of 1.
7241 (xbm_read_bitmap_data): Invert bits as xbm is read in.
7242 (XPutPixel): Don't invert bits here.
a4478a76 7243
048addec 72442002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 7245
048addec
JD
7246 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
7247 (w32_draw_image_foreground_1): Handle image masks.
7248 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 7249
048addec
JD
7250 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
7251 (x_from_xcolors): Adjust RGB values for W32.
7252 (image_background, image_background_transparent)
7253 (postprocess_image, x_to_xcolors, x_disable_image)
7254 (x_build_heuristic_mask): Adapt for W32 and enable.
7255 (x_create_x_image_and_pixmap): Mark images with palettes as such.
7256 (xbm_load): Remove unused variable.
03670a65 7257
048addec 72582002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 7259
048addec 7260 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 7261
048addec 72622002-11-14 Dave Love <fx@gnu.org>
59daa29a 7263
048addec 7264 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 7265
048addec
JD
7266 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
7267 * xmenu.c (unuse_menu_items, digest_single_submenu):
7268 * xfns.c (x_put_x_image):
7269 * xdisp.c (message2_nolog, set_message):
7270 * undo.c (record_point):
7271 * terminfo.c (tparam):
7272 * syntax.c (scan_sexps_forward):
7273 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
7274 * composite.c (update_compositions):
7275 * cm.c (calccost, cmgoto):
7276 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 7277
048addec 7278 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 7279
048addec
JD
7280 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
7281 Don't declare.
59daa29a 7282
048addec 7283 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 7284
048addec
JD
7285 * fns.c (Fcopy_sequence): Doc fix.
7286 (Fmap_char_table): Cast `call2'.
3947677c 7287
048addec
JD
72882002-11-14 Francesco Potorti` <pot@gnu.org>
7289
7290 * s/sol2-8.h: New file.
7291
72922002-11-14 Kim F. Storm <storm@cua.dk>
7293
7294 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
7295 dependency on `risky-local-variable' and the :propertize form.
7296
72972002-11-12 Stefan Monnier <monnier@cs.yale.edu>
7298
7299 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
7300
7301 * syntax.c (scan_sexps_forward): Undo last patch.
7302 Use a more obvious fix: check eob before updating the syntax table.
7303
73042002-11-09 Stefan Monnier <monnier@cs.yale.edu>
7305
7306 * syntax.c (scan_sexps_forward): Update syntax table before reading
7307 a char rather than after so we don't update the table past eob.
7308
73092002-11-09 Dave Love <fx@gnu.org>
7310
7311 * buffer.c (Fset_buffer_major_mode): Fix last change.
7312
7313 * regex.c (regexec): Fix pmatch declaration.
7314
7315 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
7316
7317 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
7318 to self-inserting characters.
7319 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
7320
7321 * coding.c (Vtranslation_table_for_input): New.
7322 (syms_of_coding): DEFVAR it.
7323
73242002-11-08 Juanma Barranquero <lektu@terra.es>
7325
7326 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
7327 window.
7328
73292002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7330
6bdb309a 7331 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
7332 cp, and i.
7333
73342002-11-06 Dave Love <fx@gnu.org>
7335
7336 * buffer.c (Qset_buffer_major_mode_hook): New.
7337 (Fset_buffer_major_mode): Use it.
7338
73392002-11-06 Richard M. Stallman <rms@gnu.org>
7340
7341 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
7342 and stop_polling.
7343
7344 * process.c (wait_reading_process_input):
7345 Test POLLING_PROBLEM_IN_SELECT, not hpux.
7346 Avoid initialization for auto Lisp_Object var.
7347
7348 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
7349
7350 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
7351
73522002-11-05 Richard M. Stallman <rms@gnu.org>
7353
7354 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
7355
7356 * callint.c (Fcall_interactively): New local filter_specs.
7357 (Fcall_interactively): Check for progn as well as let.
7358 Add a gcpro.
7359 (Qprogn): New variable.
7360 (syms_of_callint): Staticpro and init Qprogn.
7361
73622002-11-04 John Paul Wallington <jpw@shootybangbang.com>
7363
7364 * lread.c (Feval_buffer): Doc fix.
7365
73662002-11-04 Dave Love <fx@gnu.org>
7367
7368 * keyboard.c (read_char): Always translate iff
7369 Vkeyboard_translate_table is a char table and c is valid.
7370
7371 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
7372 and fix C types.
7373
73742002-11-03 Stefan Monnier <monnier@cs.yale.edu>
7375
7376 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
7377
7378 * editfns.c (get_pos_property): Don't hardcode Qfield.
7379
7380 * keyboard.c (adjust_point_for_property): Handle `display' prop on
7381 overlays. Also handle `invisible' prop.
7382
73832002-11-02 Stefan Monnier <monnier@cs.yale.edu>
7384
7385 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
7386 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
7387
73882002-11-01 Andreas Schwab <schwab@suse.de>
7389
7390 * editfns.c (Fmessage): Revert last change to properly handle %%.
7391
73922002-11-01 Stefan Monnier <monnier@cs.yale.edu>
7393
7394 * xmenu.c (unuse_menu_items): New fun.
7395 (menu_items_inuse): New var.
7396 (syms_of_xmenu): Initialize it.
7397 (init_menu_items): Use it to detect re-entrance.
7398 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
7399 (Fx_popup_menu): Remove spurious XSETFRAME.
7400
7401 * editfns.c (find_field): Make an exception for nil fields.
7402
74032002-11-01 Dave Love <fx@gnu.org>
7404
7405 * m/gec63.h: Deleted.
7406
74072002-10-31 Dave Love <fx@gnu.org>
7408
7409 * xterm.c (XTread_socket): Fix last change.
7410 (xaw_scroll_callback): Cast call_data to long to avoid warning.
7411
74122002-10-31 Stefan Monnier <monnier@cs.yale.edu>
7413
7414 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
7415
74162002-10-30 Stefan Monnier <monnier@cs.yale.edu>
7417
7418 * editfns.c (overlays_around, get_pos_property): New funs.
7419 (find_field): Use them.
7420 Also be careful not to modify POS before its last use.
7421 (Fmessage): Don't Fformat if there's nothing to format.
7422
74232002-10-30 Dave Love <fx@gnu.org>
7424
7425 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
7426 [HAVE_PTY_H]; Include pty.h.
7427
7428 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
7429
7430 * xterm.c (Qeql): Declare.
7431 (Vx_keysym_table): New.
7432 (syms_of_xterm): Initialize it.
7433 (XTread_socket): Use it. Deal with ASCII keysyms.
7434 (XSetIMValues) [HAVE_X11R6]: Prototype.
7435
7436 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
7437 (lispy_kana_keys): Comment out.
7438 (make_lispy_event) [XK_kana_A]: Comment out.
7439 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
7440 Fix sprintf call.
7441
7442 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
7443 regexp.h change).
7444 (TERMINFO, LIBS_TERMCAP): Define.
7445
7446 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
7447 (bcmp): Define conditional on HAVE_BCMP.
7448 (NO_SIOCTL_H): Don't define.
7449 (TIOCSIGSEND): Don't make conditional on IRIX6.
7450
7451 * s/sol2-5.h: Don't include strings.h.
7452 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
7453
7454 * s/irix6-0.h (IRIX6): Don't define.
7455 (bcopy, bcmp, bzero): Don't undef.
7456
7457 * s/irix6-5.h: Don't include strings.h.
7458 (IRIX6): Don't define.
7459 (bcopy, bcmp, bzero): Don't undef.
7460
7461 * syntax.c (Fforward_comment): Doc fix.
7462
74632002-10-29 Kim F. Storm <storm@cua.dk>
7464
7465 * process.c (Fsignal_process): Allow PROCESS to be specified by
7466 name in addition to pid (as integer or string).
7467
74682002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
7469
7470 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
7471 environments.
7472
74732002-10-27 Kim F. Storm <storm@cua.dk>
7474
7475 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7476
7477 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
7478
7479 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
7480
7481 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
7482
74832002-10-26 Richard M. Stallman <rms@gnu.org>
7484
7485 * editfns.c (Fformat): Detect invalid format letters for floats.
7486
74872002-10-25 Kenichi Handa <handa@m17n.org>
7488
7489 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
7490 (x_set_title): Likewise.
7491
74922002-10-25 Juanma Barranquero <lektu@terra.es>
7493
7494 * macgui.h:
7495 * w32gui.h: Remove definition of XColor.
7496
7497 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
7498
74992002-10-24 Kim F. Storm <storm@cua.dk>
7500
7501 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
7502 Callers changed (supply dummy arg).
7503
7504 * lisp.h (get_window_cursor_type): Update prototype.
7505
7506 * w32term.c (x_display_and_set_cursor): Get active_cursor from
7507 get_window_cursor_type to track system caret.
7508
75092002-10-24 Kim F. Storm <storm@cua.dk>
7510
7511 * process.c (Fformat_network_address): New function.
7512 (syms_of_process): Defsubr it.
7513 (list_processes_1): Use it to format :local/:remote address if
7514 service/host is not set; before emacs would crash in that case.
7515 (Fmake_network_process): Don't use Ffind_operation_coding_system
7516 to setup coding system if host or service is not set.
7517
75182002-10-23 Juanma Barranquero <lektu@terra.es>
7519
7520 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
7521
7522 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
7523 COLORREF.
7524
7525 * macgui.h:
7526 * w32gui.h: Add definition of XColor.
7527
7528 * macfns.c:
7529 * w32fns.c:
7530 * xfaces.c: Remove definition of XColor.
7531
75322002-10-22 Stefan Monnier <monnier@cs.yale.edu>
7533
7534 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
7535
7536 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
7537 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
7538 window if it is dedicated.
7539 (Fshrink_window): Add preserve_before as was done for enlarge_window.
7540 (Vspecial_display_function): Update docstring.
7541
7542 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
7543 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
7544 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
7545
75462002-10-21 Stefan Monnier <monnier@cs.yale.edu>
7547
7548 * casefiddle.c (casify_region): Don't treat a prefix char as part
7549 of a word when at the beginning.
7550
75512002-10-17 Juanma Barranquero <lektu@terra.es>
7552
7553 * lread.c (syms_of_lread): Fix typos.
7554
75552002-10-17 Dave Love <fx@gnu.org>
7556
7557 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
7558
75592002-10-16 Richard M. Stallman <rms@gnu.org>
7560
7561 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
7562
75632002-10-14 Juanma Barranquero <lektu@terra.es>
7564
7565 * w16select.c (syms_of_win16select): Fix docstring for
7566 `selection-coding-system'.
7567
7568 * w32select.c (syms_of_w32select): Likewise.
7569
75702002-10-14 Stefan Monnier <monnier@cs.yale.edu>
7571
7572 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
7573 a backslash-quoted char.
7574 (scan_lists, scan_sexps_forward): Pacify the compiler.
7575
75762002-10-13 Richard M. Stallman <rms@gnu.org>
7577
7578 * window.c (window_scroll): Set immediate_quit.
7579
7580 * print.c (print): When backquote form is the car of a list,
7581 output in old style. Use old_backquote_output to output all
7582 comma forms inside it in old style too.
7583
7584 * buffer.h (struct buffer): Move `undo_list' down below `name'.
7585
75862002-10-11 Markus Rost <rost@math.ohio-state.edu>
7587
7588 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
7589 batch mode).
7590
7591 * lread.c (Fload): Doc fix (load-suffixes).
7592
75932002-10-10 Steven Tamm <steventamm@mac.com>
7594
7595 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
7596 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
7597 Also switch the default to Qnil from Qt.
7598
75992002-10-08 Kenichi Handa <handa@m17n.org>
7600
7601 * coding.c (code_convert_region): When we need more GAP for
7602 conversion, pay attention to the case that coding->produced is not
7603 greater than coding->consumed.
7604
76052002-10-07 Richard M. Stallman <rms@gnu.org>
7606
7607 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
7608
76092002-10-06 Andrew Choi <akochoi@shaw.ca>
7610
7611 * macmenu.c (mac_menu_show): Add j to count menu items; match
7612 menu_item_selection to it to find selected item.
7613
76142002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7615
7616 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
7617 cases. The correct fix is to pass ReparentNotify to Xt.
7618 The shell widget interprets ConfigureNotify differently depending
7619 on if it has been reparented or not.
7620
76212002-10-05 Markus Rost <rost@math.ohio-state.edu>
7622
7623 * editfns.c (Fformat_time_string): Doc fix.
7624
76252002-10-05 John Paul Wallington <jpw@shootybangbang.com>
7626
7627 * fns.c (Flength): Doc fix.
7628
76292002-10-04 Stefan Monnier <monnier@cs.yale.edu>
7630
7631 * keyboard.c (keyremap): New struct.
7632 (read_key_sequence): Use it: globally replace keytran_foo with
7633 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
7634 keytran_next and fkey_next to just `next'.
7635
76362002-10-04 Steven Tamm <steventamm@mac.com>
7637
7638 * macterm.c (keycode_to_xkeysym_table): Change return to be
7639 treated like an X keysym.
7640
76412002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7642
7643 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
7644 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
7645 This is to also handle x/y changes that occur because of a resize.
7646
76472002-10-02 John Paul Wallington <jpw@shootybangbang.com>
7648
7649 * frame.c (Vdelete_frame_functions): New variable.
7650 (syms_of_frame): Initialize and defvar it.
7651 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
7652 it when frame's `tooltip' parameter is non-nil.
7653
7654 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
7655
7656 * w32fns.c (x_create_tip_frame): Likewise.
7657
7658 * macfns.c (x_create_tip_frame): Likewise.
7659
76602002-09-30 Kenichi Handa <handa@m17n.org>
7661
7662 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
7663 -1 before calling ccl_driver.
7664
7665 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
7666 Only when it is non-nil, handle composition sequence.
7667 (setup_coding_system) <0>: Don't force composition handling.
7668
7669 * Makefile.in (lisp, shortlisp): Add utf-16.elc
7670
76712002-09-29 Richard M. Stallman <rms@gnu.org>
7672
7673 * search.c (Freplace_match): Adjust match data for the substitution
7674 just made in the buffer.
7675
7676 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
7677 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
7678
76792002-09-27 Richard M. Stallman <rms@gnu.org>
7680
7681 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
7682 (read_char): Use them. Do all exits thru the end of the function.
7683
76842002-09-27 Kenichi Handa <handa@etl.go.jp>
7685
7686 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
7687 is nil.
7688
76892002-09-26 Richard M. Stallman <rms@gnu.org>
7690
7691 * regex.h (__restrict_arr): Don't define if already defined.
7692
7693 * coding.c (run_pre_post_conversion_on_str):
7694 Save and restore Vdeactivate_mark.
7695
76962002-09-26 John Paul Wallington <jpw@shootybangbang.com>
7697
7698 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
7699
77002002-09-26 Kenichi Handa <handa@etl.go.jp>
7701
7702 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
7703 nonzero, try face's family at first. Otherwise try FAMILY at first.
7704 (choose_face_font): If C is a single byte char or latin-1, call
7705 try_font_list with PREFER_FACE_FAMILY 1.
7706
77072002-09-21 Richard M. Stallman <rms@gnu.org>
7708
7709 * window.c (select_window_1): Don't select frame.
7710 Set frame's selected window only when frame itself is selected.
7711 (Fselect_window): Doc fix.
7712
77132002-09-18 Kim F. Storm <storm@cua.dk>
7714
7715 * process.c (make-network-process): Doc fix (there is no
7716 network-server-log-function hook).
7717
77182002-09-18 Richard M. Stallman <rms@gnu.org>
7719
7720 * print.c (print): Clear out the unused parts of Vprint_number_table.
7721 (syms_of_print): Doc fix for `print-number-table'.
7722
7723 * unexelf.c (unexec): Undo previous change.
7724
77252002-09-17 Andreas Schwab <schwab@suse.de>
7726
7727 * m/alpha.h [LINUX]: Don't define DATA_START.
7728
77292002-09-16 Dave Love <fx@gnu.org>
7730
7731 * unexelf.c (unexec): Deal with .got, reinstating change from
7732 25-08-1999.
7733
77342002-09-13 Richard M. Stallman <rms@gnu.org>
7735
7736 * s/sol2-6.h (UNEXEC): Comment out definition.
7737
7738 * unexsol.c (unexec): Don't downcase first letter of error msg.
7739
7740 * xfaces.c (Fcolor_supported_p): Just one arg is required.
7741
77422002-09-12 Markus Rost <rost@math.ohio-state.edu>
7743
7744 * unexsol.c: Include buffer.h, charset.h, coding.h.
7745
77462002-09-11 Richard M. Stallman <rms@gnu.org>
7747
7748 * unexsol.c: Don't use report_file_error; do it by hand
7749 using dlerror.
7750
7751 * process.c (wait_reading_process_input, both versions):
7752 Before calling turn_on_atimers, call stop_polling.
7753
7754 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
7755
7756 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
7757 we go to too_near_end, call clear_glyph_matrix.
7758 (redisplay_window): After make_cursor_line_fully_visible,
7759 call clear_glyph_matrix and bypass `goto done'.
7760
7761 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
7762 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
7763
77642002-09-10 Richard M. Stallman <rms@gnu.org>
7765
7766 * fileio.c (Fdo_auto_save): Catch error making directory.
7767 Only call push_message if we need to.
7768 At the same time, make an unwind-protect to pop it.
7769 Rename local message_p to old_message_p.
7770 (do_auto_save_make_dir, do_auto_save_eh): New functions.
7771 (do_auto_save_unwind): Don't call pop_message.
7772
7773 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
7774
7775 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
7776
7777 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
7778
7779 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
7780
77812002-09-10 Stefan Monnier <monnier@cs.yale.edu>
7782
7783 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
7784 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
7785 (re_match_2_internal): Be more careful with infinite loops.
7786
77872002-09-10 Kim F. Storm <storm@cua.dk>
7788
7789 * macros.c (end_kbd_macro): New function.
7790 (Fend_kbd_macro): Use it.
7791
7792 * macros.h (end_kbd_macro): Declare extern.
7793
7794 * keyboard.c (Fdiscard_input): If defining keyboard macro,
7795 end and save it instead of discarding it.
7796
77972002-09-09 Markus Rost <rost@math.ohio-state.edu>
7798
7799 * s/sol2-6.h: Fix typo. Add comment.
7800
78012002-09-09 Richard M. Stallman <rms@gnu.org>
7802
7803 * regex.c (regnum_t): Use signed int, not unsigned int.
7804
7805 * s/sol2-6.h: New file.
7806
7807 * s/sol2-5.h (UNEXEC): Definition deleted.
7808
78092002-09-08 Kim F. Storm <storm@cua.dk>
7810
7811 * macros.c (executing_macro_index): Change type to EMACS_INT.
7812 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
7813
7814 * macros.h (executing_macro_index): Change type to EMACS_INT.
7815
78162002-09-06 Richard M. Stallman <rms@gnu.org>
7817
7818 * casetab.c (set_case_table): Make canon table point to eqv table.
7819
78202002-09-06 Juanma Barranquero <lektu@terra.es>
7821
7822 * coding.c (syms_of_coding): Fix spacing.
7823
7824 * composite.c (Fcompose_region_internal)
7825 (Fcompose_string_internal): Likewise.
7826
7827 * data.c (Flsh): Likewise.
7828
7829 * fontset.c (Fset_fontset_font): Likewise.
7830
7831 * macfns.c (Fx_server_max_request_size): Likewise.
7832
7833 * w16select.c (syms_of_win16select): Likewise.
7834
7835 * w32select.c (syms_of_w32select): Likewise.
7836
7837 * xselect.c (syms_of_xselect): Likewise.
7838
78392002-09-05 Richard M. Stallman <rms@gnu.org>
7840
7841 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
7842 call EXTEND_RANGE_TABLE and return a proper value.
7843 (set_image_of_range): Don't call set_image_of_range_1
7844 if no TRANSLATE or if range includes all of Latin-1.
7845 Only call it for the Latin-1 part of the range.
7846 For other cases, make two separate ranges,
7847 one for the original specified characters and one for
7848 their case-conversions.
7849
78502002-09-04 Richard M. Stallman <rms@gnu.org>
7851
7852 * s/sol2-5.h (UNEXEC): Use unexsol.o.
7853
7854 * window.c (displayed_window_lines): Correct for one-off bug
7855 in HEIGHT on non-window displays.
7856
7857 * regex.c (set_image_of_range_1): New function.
7858 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
7859 Return a value to indicate running out of memory.
7860 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
7861 (extend_range_table_work_area): New subroutine.
7862 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
7863 Different calling conventions, and used from set_image_of_range{,_1}.
7864 (IMMEDIATE_QUIT_CHECK): Definitions moved.
7865
78662002-09-04 Juanma Barranquero <lektu@terra.es>
7867
7868 * makefile.w32-in: All dependencies updated.
7869
78702002-09-01 Richard M. Stallman <rms@gnu.org>
7871
7872 * unexsol.c: New file.
7873
7874 * xfns.c (Qbox): Declare external, don't define.
7875
7876 * xdisp.c (redisplay_window) <force-start case>:
7877 If point is on semi-visible last line, reposition
7878 it at previous line.
7879
7880 * alloc.c (display_malloc_warning): Use display-warning.
7881 (malloc_warning_1): Function deleted.
7882
7883 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
7884
7885 * lread.c (read1): Handle #! by skipping the line.
7886
78872002-08-31 Richard M. Stallman <rms@gnu.org>
7888
7889 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
7890 Don't include LDFLAGS.
7891 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
7892
78932002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
7894
7895 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
7896 member of x_display_info unless we compile for some window system.
7897
78982002-08-31 Kim F. Storm <storm@cua.dk>
7899
7900 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
7901 (get_window_cursor_type): Don't use them.
7902 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
7903
79042002-08-30 Kenichi Handa <handa@etl.go.jp>
7905
7906 * xdisp.c (get_next_display_element): Fix previous change.
7907
79082002-08-30 Andrew Choi <akochoi@shaw.ca>
7909
7910 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
7911 (expose_window): Use it to fix the display of overlapping
7912 rows (merge code from xterm.c).
7913
7914 * macfns.c (Qbox): Add extern declaration.
7915
79162002-08-30 Juanma Barranquero <lektu@terra.es>
7917
7918 * w32fns.c (Qbox): Make extern.
7919 (syms_of_w32fns): Remove initialization of Qbox.
7920
79212002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
7922
7923 * xfns.c (Fx_open_connection): Fix error message.
7924
79252002-08-30 Kim F. Storm <storm@cua.dk>
7926
7927 The following changes consolidates the handling of the cursor
7928 type in xdisp.c, moving duplicate code and functionality from
7929 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
7930
7931 * frame.h (enum text_cursor_kinds): Consolidated here.
7932 Added DEFAULT_CURSOR value.
7933 (struct frame) <desired_cursor, cursor_width>
7934 <blink_off_cursor, blink_off_cursor_width>: New fields.
7935 Consolidated from output_x, output_w32 and output_mac structs.
7936 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
7937 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
7938
7939 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
7940 Variables consolidated here.
7941 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
7942 (Vcursor_in_non_selected_windows): Renamed from
7943 cursor_in_non_selected_windows and changed to Lisp_Object.
7944 (syms_of_xdisp): Define and staticpro new and moved variables.
7945 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
7946 consolidated here. Recognize Qhollow setting.
7947 (set_frame_cursor_types): New function to set frame cursor types
7948 based on the frame parameters.
7949 (get_window_cursor_type): New function to calculate new cursor
7950 type and width for the specified window. Based on duplicated
7951 code consolidated here.
7952 Enhancements: cursor-in-non-selected-windows may be a cursor type,
7953 check buffer-local alternate-cursor-type and blink-cursor-alist
7954 before using built-in blink off methods.
7955
7956 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
7957
7958 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
7959 (get_specified_cursor_type, get_window_cursor_type)
7960 (set_frame_cursor_types): Added prototypes.
7961
7962 * macfns.c (x_specified_cursor_type): Removed.
7963 (x_set_cursor_type): Use set_frame_cursor_types.
7964 (Qbar, Qbox): Removed.
7965 (syms_of_macfns): Don't intern or staticpro them.
7966
7967 * macterm.c (x_specified_cursor_type): Remove prototype.
7968 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
7969 (x_display_and_set_cursor): Use get_window_cursor_type.
7970 Remove unused local variables cursor_non_selected, active_cursor.
7971 Redraw cursor if hbar cursor width changes.
7972 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
7973
7974 * macterm.h (enum text_cursor_kinds): Removed.
7975 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
7976 <blink_off_cursor, blink_off_cursor_width>: Members removed.
7977 (FRAME_DESIRED_CURSOR): Macro removed.
7978
7979 * w32fns.c (Vblink_cursor_alist): Removed.
7980 (Qbar, Qhbar, Qbox, Qhollow): Removed.
7981 (syms_of_w32fns): Don't intern, staticpro, or define them.
7982 (x_specified_cursor_type): Removed.
7983 (x_set_cursor_type): Use set_frame_cursor_types.
7984
7985 * w32term.c (x_specified_cursor_type): Remove prototype.
7986 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
7987 (x_display_and_set_cursor): Use get_window_cursor_type.
7988 Remove unused local variables cursor_off_state.
7989 Redraw cursor if hbar cursor width changes.
7990 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
7991
7992 * w32term.h (enum text_cursor_kinds): Removed.
7993 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
7994 <blink_off_cursor, blink_off_cursor_width>: Members removed.
7995 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
7996 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
7997 (struct w32_display_info) <x_highlight_frame>: Renamed member from
7998 w32_highlight_frame.
7999
8000 * xfns.c (Vblink_cursor_alist): Removed.
8001 (Qbar, Qhbar, Qbox, Qhollow): Removed.
8002 (syms_of_xfns): Don't intern, staticpro, or define them.
8003 (x_specified_cursor_type): Removed.
8004 (x_set_cursor_type): Use set_frame_cursor_types.
8005
8006 * xterm.c (x_specified_cursor_type): Remove prototype.
8007 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
8008 (x_display_and_set_cursor): Use get_window_cursor_type.
8009 Remove unused local variables cursor_off_state.
8010 Redraw cursor if hbar cursor width changes.
8011
8012 * xterm.h (enum text_cursor_kinds): Removed.
8013 (struct output_x) <current_cursor, desired_cursor, cursor_width>
8014 <blink_off_cursor, blink_off_cursor_width>: Members removed.
8015 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
8016 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
8017 (x_specified_cursor_type): Remove prototype.
8018
80192002-08-28 Richard M. Stallman <rms@gnu.org>
8020
8021 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8022 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8023 (Vblink_cursor_alist): New variable.
8024 (syms_of_w32fns): Initialize and defvar it.
8025 (x_specified_cursor_type): Recognize Qbox for filled box.
8026 Exceptions are hollow boxes.
8027 (Qbox, Qhollow): New variables.
8028 (syms_of_w32fns): Initialize and staticpro them.
8029
8030 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8031 New macros.
8032 (struct w32_output): New fields blink_off_cursor,
8033 blink_off_cursor_width.
8034 (FRAME_CURSOR_WIDTH): New macro.
8035
8036 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8037 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8038
8039 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8040 for bar cursor.
8041
8042 * w32term.c (expose_overlaps): New function.
8043 (expose_window): Use it to fix the display of overlapping rows.
8044
80452002-08-28 Simon Josefsson <jas@extundo.com>
8046
8047 * xfns.c (Fx_open_connection): Improve help when X connection
8048 fails, xhost is insecure and xauth is better.
8049
80502002-08-28 Juanma Barranquero <lektu@terra.es>
8051
8052 * makefile.w32-in: Add missing dependencies on w32term.h and
8053 composite.h.
8054
8055 * emacs.c (USAGE1): Add missing newline.
8056
80572002-08-27 Andrew Choi <akochoi@shaw.ca>
8058
8059 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
8060
80612002-08-27 Richard M. Stallman <rms@gnu.org>
8062
8063 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
8064 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
8065 (Vblink_cursor_alist): New variable.
8066 (syms_of_xfns): Initialize and defvar it.
8067 (x_specified_cursor_type): Recognize Qbox for filled box.
8068 Exceptions are hollow boxes.
8069 (Qbox, Qhollow): New variables.
8070 (syms_of_xfns): Initialize and staticpro them.
8071
8072 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
8073 New macros.
8074 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
8075
8076 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
8077 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
8078
8079 * emacs.c (main): Handle --script.
8080 (USAGE1): Mention --script.
8081 (standard_args): Define sort order for --script.
8082
80832002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
8084
8085 * xdisp.c (redisplay_updating_p): Variable removed.
8086 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
8087 New variables.
8088 (init_iterator): Don't free realized faces if
8089 inhibit_free_realized_faces is set.
8090 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
8091 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
8092 initialize Qinhibit_free_realized_faces.
8093
8094 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
8095 when iterator is adding glyphs to a glyph matrix.
8096
80972002-08-27 Kenichi Handa <handa@etl.go.jp>
8098
8099 * xdisp.c (get_next_display_element): In unibyte case, don't use
8100 octal form for such eight-bit characters that can be converted to
8101 multibyte char.
8102
81032002-08-26 Kim F. Storm <storm@cua.dk>
8104
8105 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
8106 and background colors. From Joe Buehler (tiny change).
8107
81082002-08-26 Miles Bader <miles@gnu.org>
8109
8110 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
8111
81122002-08-25 Andrew Choi <akochoi@shaw.ca>
8113
8114 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
8115 defined instead of MAC_OSX.
8116
8117 * s/darwin.h (select): Define select to sys_select only if
8118 HAVE_CARBON is defined.
8119 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
8120 (DONT_REOPEN_PTY): #def it.
8121
8122 * macterm.c (XTread_socket): Remove code to call
8123 SendEventToEventTarget for keys with command modifiers when
8124 mac_command_key_is_meta is nil.
8125
81262002-08-24 Andreas Schwab <schwab@suse.de>
8127
8128 * eval.c (Fdefvar): Fix last change.
8129
81302002-08-23 Richard M. Stallman <rms@gnu.org>
8131
8132 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
8133 Record variables in load history as (defvar . VAR).
8134 (Fdefvar): Don't record in load history if no initial value.
8135 (Qdefvar): New variable.
8136 (syms_of_eval): Init and staticpro it.
8137
8138 * lread.c (syms_of_lread): Doc fix.
8139 (build_load_history): Use Fmember to see if a definition
8140 is already in the Vload_history element.
8141
8142 * process.c (Fstart_process): Remove /: from program name.
8143
8144 * emacs.c (decode_env_path): Don't add /: if file name handler
8145 has a `safe-magic' property.
8146
8147 * callproc.c (Fcall_process): Remove /: from program name.
8148
81492002-08-23 Stefan Monnier <monnier@cs.yale.edu>
8150
8151 * regex.c (PATFETCH): Remove the translating fetch.
8152 (PATFETCH_RAW): Rename to PATFETCH.
8153 (set_image_of_range): New fun.
8154 (SET_RANGE_TABLE_WORK_AREA): Use it.
8155 (regex_compile): Don't translate the pattern chars so eagerly.
8156 Only do it when inserting an `exactn' bytecode or when handling
8157 a char-range.
8158 (mutually_exclusive_p): Avoid empty statement.
8159
81602002-08-22 Kim F. Storm <storm@cua.dk>
8161
8162 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
8163 end up on a partially visible line; this reverts a specific part
8164 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
8165 display error which has been reported several times now.
8166 However it introduces the problem that changes was supposed to fix.
8167 See my comments in the source if you want to debug this further.
8168
81692002-08-20 Kenichi Handa <handa@etl.go.jp>
8170
8171 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
8172
81732002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
8174
8175 * msdos.c (croak): Add `void' to definition.
8176
8177 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
8178 Don't define them, they are defined in msdos.c.
8179
8180 * mem-limits.h [MSDOS]: Declare etext.
8181
8182 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
8183 `const' since CORRECT_DIR_SEPS modifies its target.
8184
81852002-08-19 Kim F. Storm <storm@cua.dk>
8186
8187 * keyboard.c (Fclear_this_command_keys): Added optional arg
8188 KEEP-RECORD to avoid clearing lossage when we just want to clear
8189 the current key sequence (kmacro needs this).
8190
81912002-08-19 Kenichi Handa <handa@localhost>
8192
8193 * composite.c (run_composition_function): Call FUNC if it is fboundp.
8194
8195 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
8196 cons, return Qnil.
8197
81982002-08-17 Richard M. Stallman <rms@gnu.org>
8199
8200 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
8201
8202 * sysdep.c [!VMS]: Include sys/files.h.
8203
8204 * editfns.c (save_restriction_restore): Defend from unchained marker.
8205
8206 * buffer.c (overlays_at): Handle extending vec uniformly.
8207 (overlays_in): Handle extending vec from length 0 as in overlays_at.
8208
82092002-08-15 Andrew Choi <akochoi@shaw.ca>
8210
8211 * mac.c (init_mac_osx_environment): New function.
8212
8213 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
8214
82152002-08-14 Kim F. Storm <storm@cua.dk>
8216
8217 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
8218 executing macro before appending to it (when used from Lisp).
8219 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
8220 which is called prior to each iteration of macro (for kmacro.el).
8221 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
8222
8223 * lisp.h (Fexecute_kbd_macro): Update prototype.
8224
8225 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
8226
82272002-08-14 Kenichi Handa <handa@etl.go.jp>
8228
8229 * xselect.c (QUTF8_STRING): New variable.
8230 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
8231 (x_atom_to_symbol): Likewise.
8232 (x_get_local_selection): New argument local_request. If it is
8233 nonzero, call handler_fn with the second arg nil.
8234 (x_handle_selection_request): Call x_get_local_selection with
8235 local_request 0.
8236 (lisp_data_to_selection_data): Don't encode the string here.
8237 (Fx_get_selection_internal): Call x_get_local_selection with
8238 local_request 1.
8239 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
8240
8241 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
8242
8243 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
8244
82452002-08-13 Richard M. Stallman <rms@gnu.org>
8246
8247 * minibuf.c (Fminibufferp): New function.
8248 (syms_of_minibuf): Defsubr it.
8249 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
8250
82512002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
8252
8253 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
8254
82552002-08-12 Richard M. Stallman <rms@gnu.org>
8256
8257 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
8258 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
8259 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
8260 already.
8261
8262 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
8263
82642002-08-11 Andrew Choi <akochoi@shaw.ca>
8265
8266 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
8267 (Vmac_pass_command_to_system): New variable.
8268 (Vmac_pass_control_to_system): New variable.
8269 (do_mouse_moved): Check wp with is_emacs_window.
8270 (XTread_socket): Check window_ptr with is_emacs_window.
8271 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
8272 events back to Mac Toolbox for processing, depending on values of
8273 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
8274 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
8275 Vmac_pass_control_to_system.
8276
82772002-08-10 Kenichi Handa <handa@etl.go.jp>
8278
8279 * coding.c (unencodable_char_position): New function.
8280 (Funencodable_char_position): New function.
8281 (syms_of_coding): Defsubr Funencodable_char_position.
8282
82832002-08-10 Andrew Choi <akochoi@shaw.ca>
8284
8285 * mac.c (sys_select) [MAC_OSX]: New function.
8286
8287 * macterm.c (MakeMeTheFrontProcess): New function.
8288 (mac_initialize): Call MakeMeTheFrontProcess.
8289
8290 * s/darwin.h: Define select to sys_select.
8291
82922002-08-09 Richard M. Stallman <rms@gnu.org>
8293
8294 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
8295
82962002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
8297
8298 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
8299 end of the buffer.
8300
83012002-08-08 Ken Raeburn <raeburn@mit.edu>
8302
8303 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
8304
8305 * puresize.h (BASE_PURESIZE): Increase to 910000.
8306
83072002-08-08 Kenichi Handa <handa@etl.go.jp>
8308
8309 * coding.c (Ffind_operation_coding_system): For write-region, if
8310 VISIT is a filename, make it the target.
8311
83122002-08-07 Richard M. Stallman <rms@gnu.org>
8313
8314 * alloc.c (mark_object): Detect long lists for debugging.
8315 (mark_object_loop_halt): New variable.
8316
8317 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
8318
8319 * data.c (Fmake_variable_frame_local): Doc fix.
8320
83212002-08-01 David Ponce <david@dponce.com>
8322
8323 * w32menu.c (local_heap, local_alloc, local_free): New macros.
8324 (malloc_widget_value, free_widget_value)
8325 (w32_free_submenu_strings): Use them.
8326
8327 (push_submenu_start, push_submenu_end, push_left_right_boundary)
8328 (push_menu_pane, push_menu_item, single_keymap_panes)
8329 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
8330 (single_submenu, set_frame_menubar)
8331 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
8332
8333 (Fx_popup_menu): Don't show pop up menu until preceding one is
8334 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
8335
8336 * w32menu.c: Changes adapted from xmenu.c
8337 (set_frame_menubar): First parse all submenus,
8338 then make widget_value trees from them.
8339 Don't allocate any widget_value objects
8340 until we are done with the parsing.
8341 (parse_single_submenu): New function.
8342 (digest_single_submenu): New function.
8343 (single_submenu): Function deleted, replaced by those two.
8344
83452002-08-04 Andrew Choi <akochoi@shaw.ca>
8346
8347 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
8348 returns a valid window pointer before proceeding for keyDown and
8349 autoKey events.
8350
83512002-08-03 Andrew Choi <akochoi@shaw.ca>
8352
8353 * macterm.c (USE_CARBON_EVENTS): New macro.
8354 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
8355 (x_iconify_frame): Call CollapseWindow.
8356 (Vmac_reverse_ctrl_meta): New variable.
8357 (Vmac_wheel_button_is_mouse_2): New variable.
8358 (init_mac_drag_n_drop): New function.
8359 (mac_do_receive_drag): New function.
8360 (mac_handle_service_event): New function.
8361 (init_service_handler): New function.
8362 (mac_to_emacs_modifiers): New function.
8363 (mac_event_to_emacs_modifiers): New function.
8364 (mac_get_mouse_btn): New function.
8365 (mac_convert_event_ref): New function.
8366 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
8367 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
8368 mac_get_mouse_btn.
8369 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
8370
8371 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
8372 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
8373 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
8374 TOOL_BAR_EVENT for MAC_OS as well.
8375 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
8376 as for WINDOWS_NT.
8377 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
8378
8379 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
8380
83812002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
8382
8383 * xdisp.c (forward_to_next_line_start): Fix a condition that
8384 lead to a newline being skipped.
8385
83862002-08-02 Andrew Choi <akochoi@shaw.ca>
8387
8388 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
8389
83902002-08-01 Richard M. Stallman <rms@gnu.org>
8391
8392 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
8393
83942002-07-31 Andrew Choi <akochoi@shaw.ca>
8395
8396 * macfns.c: #undef init_process before #define-ing it.
8397
8398 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
8399 HAVE_CARBON is defined.
8400
84012002-07-31 Richard M. Stallman <rms@gnu.org>
8402
8403 * xmenu.c (set_frame_menubar): First parse all submenus,
8404 then make widget_value trees from them.
8405 Don't allocate any widget_value objects
8406 until we are done with the parsing.
8407 (parse_single_submenu): New function.
8408 (digest_single_submenu): New function.
8409 (single_submenu): Function deleted, replaced by those two.
8410
84112002-07-30 Juanma Barranquero <lektu@terra.es>
8412
8413 * w32proc.c (syms_of_ntproc): Fix docstring of
8414 `w32-get-true-file-attributes'.
8415
84162002-07-28 Richard M. Stallman <rms@gnu.org>
8417
8418 * s/hpux8.h (HPUX8): Define this before including hpux.h.
8419 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
8420
8421 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
8422
8423 * keyboard.c (make_lispy_event):
8424 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
8425 Explicitly clear up_modifier in event->modifiers.
8426
84272002-07-27 Richard M. Stallman <rms@gnu.org>
8428
8429 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
8430
8431 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
8432 for bar cursor.
8433
84342002-07-26 Kenichi Handa <handa@etl.go.jp>
8435
8436 * coding.c (detect_coding_iso2022): While checking a byte sequence
8437 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
8438 it in the normal loop.
8439
84402002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
8441
8442 * xterm.c (expose_overlaps): New function.
8443 (expose_window): Use it to fix the display of overlapping rows.
8444
8445 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
8446
84472002-07-23 Ken Raeburn <raeburn@gnu.org>
8448
8449 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
8450 since it only depends on XUINT.
8451
8452 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
8453 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
8454 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
8455 Macros deleted.
3947677c 8456
77d1daf2
AS
8457 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
8458 its value over other approaches.
8459 * sysdep.c (start_of_data): Don't define the function if a macro
8460 form has been defined.
8a8e19a3 8461
048addec
JD
84622002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
8463
8464 * xdisp.c (redisplay_updating_p): New variable.
8465 (init_iterator): Don't free realized faces when
8466 redisplay_updating_p is set.
8467 (redisplay_internal): Set redisplay_updating_p while updating
8468 the display.
8469
84702002-07-23 Richard M. Stallman <rms@gnu.org>
8471
8472 * editfns.c (Fmessage): Treat "" like nil.
8473
84742002-07-23 Kenichi Handa <handa@etl.go.jp>
8475
8476 * xdisp.c (face_before_or_after_it_pos):
8477 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
8478
84792002-07-22 Juanma Barranquero <lektu@terra.es>
8480
8481 * callproc.c (init_callproc) [DOS_NT]:
8482 Initialize Vshared_game_score_directory to nil.
8483 (syms_of_callproc) [DOS_NT]: Likewise.
8484
84852002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
8486
8487 * xdisp.c (display_line): Replace an abort with xassert.
8488
84892002-07-21 Richard M. Stallman <rms@gnu.org>
8490
8491 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
8492 and END_UNCHANGED when setting buffer_unchanged_p.
8493 Use current_matrix_up_to_date_p to decide whether to use
8494 try_cursor_movement.
8495
8496 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
8497
8498 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
8499
8500 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
8501 Set to nil if dir does not exist.
8502 (syms_of_callproc): Init unconditionally and simply.
8503
8504 * buffer.c (Fbuffer_list): Doc fix.
8505
85062002-07-21 Ken Raeburn <raeburn@gnu.org>
8507
8508 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
8509
8510 * buffer.c (mmap_realloc): When shrinking, make sure number of
8511 pages to unmap is rounded towards zero.
8512
8513 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
8514 (XSETINT): Deleted.
8515
8516 * m/att3b.h (XINT): Don't define.
8517 (VALBITS, VALMASK, XTYPE): Deleted.
8518 (DATA_SEG_BITS): Define.
8519 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
8520 ARRAY_MARK_FLAG): Deleted.
8521 (DATA_SEG_BITS): Define.
8522 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
8523 (DATA_SEG_BITS): Define.
8524
85252002-07-20 Richard M. Stallman <rms@gnu.org>
8526
8527 * print.c (print_error_message): New args CONTEXT and CALLER.
8528 Calls changed.
8529
8530 * lisp.h (print_error_message): Declare new args.
8531
8532 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
8533 and CONTEXT to print_error_message, don't print them here.
8534 For a Quit, don't use Vsignaling_function.
8535 Call message_log_maybe_newline.
8536
8537 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
8538
85392002-07-20 Kim F. Storm <storm@cua.dk>
8540
8541 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
8542
85432002-07-19 Ken Raeburn <raeburn@gnu.org>
8544
8545 * bytecode.c (struct byte_stack): Pointers into byte string now
8546 point to const.
8547 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
8548 const.
8549 * charset.h (BCOPY_SHORT): Source pointer now points to const.
8550 * coding.c (encode_eol, detect_coding, detect_eol):
8551 (decode_coding, encode_coding, detect_coding_system):
8552 Source strings now treated as const.
8553 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
8554 modify Lisp string contents.
8555 * coding.h (decode_coding, encode_coding, detect_coding,
8556 detect_eol): Declarations updated.
8557 * composite.c (compose_chars_in_text): Treat Lisp string contents
8558 as const.
8559 * dispnew.c (safe_bcopy): Source pointer now points to const.
8560 * lisp.h (STRING_COPYIN): New macro.
8561 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
8562 (internal_with_output_to_temp_buffer): Declarations updated.
8563 * print.c (temp_output_buffer_setup):
8564 (internal_with_output_to_temp_buffer): Buffer name argument is now
8565 pointer to const.
8566 * sound.c (struct sound_device): Function pointer field "write"
8567 buffer argument now points to const.
8568 (vox_write): Buffer argument points to const.
8569 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
8570 contents as const.
8571 * sysdep.c (emacs_write): Buffer pointer now const.
8572 * term.c (encode_terminal_code): Buffer pointer now const.
8573 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
8574 (x_face_list_fonts, x_update_menu_appearance):
8575 (hash_string_case_insensitive): Treat Lisp string contents as const.
8576
85772002-07-19 Juanma Barranquero <lektu@terra.es>
8578
048addec
JD
8579 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
8580
8581 * fileio.c (syms_of_fileio): Likewise.
c62aec78
JB
8582 (Ffile_name_as_directory): Fix argument name in docstring.
8583 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
048addec
JD
8584
85852002-07-18 Richard M. Stallman <rms@gnu.org>
8586
8587 * data.c (Fdefalias): Doc fix.
8588
85892002-07-17 Dave Love <fx@gnu.org>
8590
8591 * intervals.h (text_property_stickiness): Use P_.
8592
8593 * ccl.c: Remove `emacs' conditionals.
8594 (ccl_backtrace_table): Fix size spec.
8595 (ccl_driver): Fix type errors.
8596
85972002-07-16 Ken Raeburn <raeburn@gnu.org>
8598
8599 * alloc.c (xstrdup, make_string, make_unibyte_string)
8600 (make_multibyte_string, build_string): String pointer args now
8601 point to const.
8602 * charset.c (find_charset_in_text, c_string_width):
8603 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
8604 * fileio.c (report_file_error):
8605 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
8606 (count_combining_before, count_combining_after, insert_1_both):
8607 (insert, insert_and_inherit, insert_string):
8608 (insert_before_markers, insert_before_markers_and_inherit):
8609 * lread.c (intern, oblookup, hash_string):
8610 * minibuf.c (temp_echo_area_glyphs):
8611 * search.c (fast_c_string_match_ignore_case):
8612 * sysdep.c (emacs_open, set_file_times):
8613 * xfaces.c (xstricmp):
8614 * xdisp.c (store_frame_title, string_char_and_length):
8615 (message_dolog, message2, message2_nolog, set_message): Likewise.
8616 (set_message_1): Cast message string argument to const pointer.
8617 * editfns.c (general_insert_function): Insertion function now
8618 takes pointer to const for input data.
8619 * charset.h (find_charset_in_text, c_string_width):
8620 (parse_str_as_multibyte): Declarations updated.
8621 * dispextern.h (xstricmp): Declaration updated.
8622 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
8623 (count_size_as_multibyte, count_combining_before):
8624 (count_combining_after, insert_1, insert_1_both, message_dolog):
8625 (insert, insert_and_inherit, insert_before_markers)
8626 (insert_before_markers_and_inherit, set_message, message2):
8627 (message2_dolog, build_string, make_string, make_unibyte_string):
8628 (make_multibyte_string, intern, oblookup, report_file_error):
8629 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
8630 (emacs_open, xstrdup): Declarations updated.
8631 * systime.h (set_file_times): Declaration updated.
8632
8633 * charset.c (find_charset_in_text, lisp_string_width): Use const
8634 for pointer to lisp string data.
8635 * charset.h (FETCH_STRING_CHAR_ADVANCE):
8636 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
8637 * coding.c (Ffind_coding_systems_region_interval):
8638 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
8639 (Fmake_directory_internal, Fdelete_directory):
8640 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
8641 * fontset.c (font_family_registry, fs_query_fontset):
8642 (list_fontsets):
8643 * frame.c (Fframe_parameter):
8644 * keyboard.c (cmd_error_internal):
8645 * keymap.c (Fdescribe_buffer_bindings):
8646 * lread.c (complete_filename_p, openp):
8647 * minibuf.c (Fminibuffer_complete_word):
8648 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
8649 (face_before_or_after_it_pos, next_element_from_string):
8650 (get_overlay_arrow_glyph_row, display_mode_element):
8651 (decode_mode_spec_coding):
8652 * xterm.c (same_x_server): Likewise.
8653
8654 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
8655 settings of non-existent fields.
8656
8657 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
8658 copy a lisp value.
8659
8660 * lread.c (Fintern_soft): Use string macros instead of
8661 Lisp_String fields.
8662 * keyboard.c (echo_char, parse_modifiers_uncached):
8663 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
8664 * textprop.c (validate_interval_range, interval_of): Likewise.
8665
8666 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
8667
8668 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8669 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
8670 XSTRING()->size_byte.
8671
8672 * lisp.h (SDATA, SREF): Produce rvalue.
8673 (SSET): New macro.
8674 * alloc.c (make_event_array): Use SSET for storing into a string.
8675 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
8676 a string.
8677 * casefiddle.c (casify_object): Use SSET.
8678 * charset.h (FETCH_STRING_CHAR_ADVANCE)
8679 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
8680 address of string contents.
8681 * data.c (Faref): Use SDATA.
8682 (Faset): Use SDATA, SSET.
8683 * dired.c (directory_files_internal): Use SSET.
8684 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
8685 (Fread_file_name): Use SREF, SSET.
8686 * fns.c (concat): Use SSET.
8687 (concat, Fdelete): Use SDATA.
8688 * insdel.c (insert_from_string_1): Use SDATA.
8689 * keyboard.c (Fevent_convert_list): Use SREF.
8690 * lread.c (Fload): Use SDATA, SSET.
8691 * macfns.c (validate_x_resource_name): Use SSET.
8692 * process.c (status_message): Use SSET.
8693 * search.c (wordify): Use SDATA.
8694 (Freplace_match): Use SREF.
8695 * w32fns.c (validate_x_resource_name): Use SSET.
8696 * xfns.c (validate_x_resource_name): Use SSET.
8697 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
8698
86992002-07-16 Richard M. Stallman <rms@gnu.org>
8700
8701 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
8702
8703 * xdisp.c (reconsider_clip_changes):
8704 Don't test prevent_redisplay_optimizations_p.
8705 (redisplay_internal): Test prevent_redisplay_optimizations_p
8706 along with clip_changed in some cases.
8707 (try_window_id): Likewise.
8708 (redisplay_window): New local var buffer_unchanged_p.
8709
8710 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
8711
8712 * process.c (create_process): Test USG_SUBTTY_WORKS.
8713 (process_send_signal): Clean up handling of GID.
8714 Detect errors in ioctls meant to set GID.
8715
8716 * window.c (temp_output_buffer_show):
8717 Don't set prevent_redisplay_optimizations_p.
8718
87192002-07-15 Juanma Barranquero <lektu@terra.es>
8720
8721 * eval.c (Fdefvaralias): Add docstring argument.
8722
87232002-07-15 Ken Raeburn <raeburn@gnu.org>
8724
8725 * lisp.h (STRING_INTERVALS): Produce rvalue.
8726 (STRING_SET_INTERVALS): New macro.
8727 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
8728 * fns.c (Fstring_as_multibyte): Likewise.
8729 * intervals.c (balance_possible_root_interval, delete_interval)
8730 (create_root_interval, copy_intervals_to_string): Likewise.
8731 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
8732 instead of 0.
8733
87342002-07-14 Ken Raeburn <raeburn@gnu.org>
8735
8736 * lisp.h (STRING_SET_CHARS): New macro.
8737 (SCHARS, SBYTES): Produce rvalues.
8738 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
8739 * fns.c (concat): Likewise.
8740 * lread.c (read_vector): Likewise.
8741
8742 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
8743 (STRING_SET_UNIBYTE): New macro.
8744 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
8745 length of -1) changed to use STRING_SET_UNIBYTE.
8746 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
8747 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
8748 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
8749 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
8750 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
8751 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
8752 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
8753 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
8754 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
8755 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
8756 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
8757 STRING_BYTES or indirection changed to SCHARS, SBYTES,
8758 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
8759 unchanged for now.
8760
87612002-07-13 Kim F. Storm <storm@cua.dk>
8762
8763 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
8764
87652002-07-12 Richard M. Stallman <rms@gnu.org>
8766
8767 * fileio.c (Fwrite_region): Doc fix.
8768
8769 * print.c (print_error_message): Don't handle Vsignaling_function here.
8770
8771 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
8772 (command_loop_1): Avoid certain actions after memory-full error.
8773
8774 * eval.c (Fsignal): Don't call cancel_hourglass.
8775 For a memory-full error, don't call Vsignal_hook_function
8776 and don't set Vsignaling_function.
8777
8778 * process.c (process_send_signal): Add abort call.
8779
87802002-07-11 Markus Rost <rost@math.ohio-state.edu>
8781
8782 * keymap.c (Fkey_binding): Fix typo.
8783
87842002-07-11 Richard M. Stallman <rms@gnu.org>
8785
8786 * alloc.c (Vmemory_full): New variable.
8787 (Vmemory_signal_data): Renamed from memory_signal_data.
8788 Uses changed.
8789 (syms_of_alloc): Defvar them.
8790 (memory_full, buffer_memory_full): Set Vmemory_full.
8791
8792 * lisp.h (Vmemory_full): Add declaration.
8793 (current_column, indented_beyond_p): Change declaration.
8794
8795 * indent.c (last_known_column): Declare as double, not float.
8796 (current_column, current_column_1, string_display_width)
8797 (position_indentation): Return `double'.
8798 (indented_beyond_p): Arg `column' is `double'. Callers changed.
8799
8800 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
8801 (back_to_previous_visible_line_start)
8802 (reseat_at_next_visible_line_start, next_element_from_buffer):
8803 Use `double', not `float', when calling indented_beyond_p.
8804
8805 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
8806
8807 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
8808
88092002-07-11 Juanma Barranquero <lektu@terra.es>
8810
8811 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
d814862a
JB
8812 composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
8813 fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
8814 macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
8815 textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
8816 xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
048addec
JD
8817
88182002-07-10 Juanma Barranquero <lektu@terra.es>
8819
d814862a
JB
8820 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
8821 All callers changed.
048addec
JD
8822
88232002-07-09 Stefan Monnier <monnier@cs.yale.edu>
8824
8825 * data.c (Fdefalias): Add an optional `docstring' argument.
8826 (set_internal, Fsetq_default): Use XCAR/XCDR.
8827
8828 * composite.c (HASH_VALUE, HASH_KEY):
8829 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
8830
88312002-07-09 Kenichi Handa <handa@etl.go.jp>
8832
8833 * callproc.c (Fcall_process): Fix previous change.
8834
88352002-07-07 Stefan Monnier <monnier@cs.yale.edu>
8836
8837 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
8838 Add support for hash-tables.
8839 (Ftry_completion): Return t even if the string appears multiple times.
8840
8841 * fns.c (Fnconc): Use XCDR.
8842 (Fprovide): Use CONSP and XCDR.
8843 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
8844 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
8845 (Fmake_hash_table): Accept `:size nil'.
8846 (Fmakehash): Delete: moved to subr.el.
8847 (syms_of_fns): Don't defsubr makehash.
8848
8849 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
8850 (HASH_TABLE_SIZE): Move from fns.c.
8851
88522002-07-07 Richard M. Stallman <rms@gnu.org>
8853
8854 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
8855 Instead just return 0 when there is something to be done.
8856 (try_scrolling): If make_cursor_line_fully_visible returns 0,
8857 retry scrolling as if cursor were off the bottom.
8858 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
8859 return CURSOR_MOVEMENT_MUST_SCROLL.
8860 (redisplay_window): If make_cursor_line_fully_visible returns 0,
8861 go to try_to_scroll.
8862
8863 * buffer.c (Fbuffer_local_value): Store current value into its binding
8864 so we get the up-to-date value for the binding that is loaded.
8865
8866 * eval.c (Fdefmacro): Doc fix.
8867
88682002-07-05 Dave Love <fx@gnu.org>
8869
8870 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
8871 correctly.
8872
8873 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
8874 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
8875 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
8876 CCL_LookupCharConstTbl.
8877 (syms_of_ccl): Defvar translation-hash-table-vector.
8878
88792002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8880
8881 * xdisp.c: Remove unused variable `face'.
8882
88832002-07-04 Juanma Barranquero <lektu@terra.es>
8884
8885 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
8886 obsolescence information.
8887
88882002-07-03 Andrew Choi <akochoi@shaw.ca>
8889
8890 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
8891 pattern. Search cache first.
8892 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
8893 for Japanese font.
8894 (XLoadQueryFont): Use it.
8895
88962002-07-02 Richard M. Stallman <rms@gnu.org>
8897
8898 * keymap.c (Fdefine_key): Doc fix.
8899
8900 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
8901
89022002-07-02 Juanma Barranquero <lektu@terra.es>
8903
8904 * keymap.c (syms_of_keymap): Fix typo.
8905
89062002-07-01 Andrew Choi <akochoi@shaw.ca>
8907
8908 * s/darwin.h: Define POSIX_SIGNALS.
8909
8910 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
8911 and FSRefMakePath to convert FSSpec returned with Apple Event to
8912 Posix pathname.
8913 (mac_initialize) [TARGET_API_MAC_CARBON]:
8914 Call init_required_apple_events and disable the `Quit' menu item
8915 provided automatically by the Carbon Toolbox.
8916
89172002-07-01 Dave Love <fx@gnu.org>
8918
8919 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
8920 for K&R.
8921
8922 * xterm.c: Fix prototype for K&R.
8923
8924 * term.c (costs_set): Declare static, non-initialized for pcc.
8925
89262002-07-01 Richard M. Stallman <rms@gnu.org>
8927
8928 * keyboard.c (timer_last_idleness_start_time): New variable.
8929 (timer_start_idle): Set that.
8930 (read_key_sequence): Use that to reset timer_idleness_start_time
8931 to previous value.
8932
8933 * window.c (Frecenter): With arg, set optional_new_start.
8934
8935 * xdisp.c (redisplay_internal): Make optional_new_start really work.
8936
8937 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
8938 buffer for completion.
8939
89402002-06-29 Ken Raeburn <raeburn@gnu.org>
8941
8942 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
8943
89442002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8945
8946 * keyboard.c (readable_filtered_events): New function that filters
8947 FOCUS_IN_EVENT depending on parameter.
8948 (readable_events): Calls readable_filtered_events, not filtering
8949 FOCUS_IN_EVENT.
8950 (get_filtered_input_pending): New function, filtering parameter passed
8951 to readable_filtered_events.
8952 (get_input_pending): Calls get_filtered_input_pending, not filtering
8953 FOCUS_IN_EVENT.
8954 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
8955 FOCUS_IN_EVENT.
8956
8957 * xterm.h (struct x_output): Add focus_state.
8958
8959 * xterm.c (x_focus_changed): New function.
8960 (x_detect_focus_change): New function.
8961 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
8962 EnterNotify and LeaveNotify to track X focus changes.
8963
89642002-06-28 Andreas Schwab <schwab@suse.de>
8965
8966 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
8967
89682002-06-27 Kim F. Storm <storm@cua.dk>
8969
8970 * xdisp.c: (mode_line_string_list, mode_line_string_face)
8971 (mode_line_string_face_prop): New variables.
8972 (store_mode_line_string): New function.
8973 (display_mode_element): Use store_mode_line_string to
8974 add mode-line string elements to mode_line_string_list
8975 when mode_line_string_list is non-nil.
8976 (Fformat_mode_line): Now returns propertized string by
8977 default. New arg NO-PROPS to ignore properties.
8978 (decode_mode_spec): Only add two dashes for %- in propertized
8979 mode-line string.
8980 (syms_of_xdisp): Init and staticpro mode_line_string_list.
8981
89822002-06-27 Stefan Monnier <monnier@cs.yale.edu>
8983
8984 * minibuf.c (minibuffer_completion_contents): Add return type.
8985
89862002-06-27 Juanma Barranquero <lektu@terra.es>
8987
8988 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
8989
89902002-06-26 Juanma Barranquero <lektu@terra.es>
8991
8992 * fileio.c (read_file_name_cleanup): Add missing return.
8993
89942002-06-26 Richard M. Stallman <rms@gnu.org>
8995
8996 * window.c (Frecenter): Don't set force_start flag.
8997
8998 * minibuf.c (do_completion, Fminibuffer_complete_word)
8999 (Fminibuffer_completion_help): Complete just the text before point.
9000 (minibuffer_completion_contents): New function.
9001
9002 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
9003
9004 * frame.c (frames_bury_buffer): Function deleted.
9005
90062002-06-25 Miles Bader <miles@gnu.org>
9007
9008 * callint.c (Fcall_interactively): When checking to see if doprnt hit
9009 the end of callint_message, allow for a terminating '\0'.
9010
90112002-06-24 Juanma Barranquero <lektu@terra.es>
9012
9013 * w32select.c: Include composite.h
9014
9015 * w16select.c: Likewise.
9016
90172002-06-24 Kenichi Handa <handa@etl.go.jp>
9018
9019 * callproc.c (Fcall_process): If code detection is necessary,
9020 call detect_coding directly here.
9021
9022 * coding.c (detect_eol): Preserve coding->cmp_data.
9023
9024 * w16select.c (Fw16_get_clipboard_data):
9025 * w32fns.c (w32_to_x_font):
9026 * w32select.c (Fw32_get_clipboard_data):
9027 * xselect.c (selection_data_to_lisp_data):
9028 * xterm.c (XTread_socket): Disable composition handling.
9029
90302002-06-24 Stefan Monnier <monnier@cs.yale.edu>
9031
9032 * print.c (temp_output_buffer_setup): Kill all local variables.
9033
90342002-06-22 Stefan Monnier <monnier@cs.yale.edu>
9035
9036 * lread.c (Fread): Remove redundant and imprecise declaration.
9037
9038 * xfns.c (check_x_display_info): Use check_x_frame.
9039
9040 * .gdbinit (xprintsym): Use the new `xname' field.
9041 (xsymbol): Use it.
9042
90432002-06-22 Jason Rumney <jasonr@gnu.org>
9044
9045 * w32fns.c (file_dialog_callback): New function.
9046 (Fx_file_dialog): Allow selecting directories as well as files.
9047
90482002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9049
9050 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
9051 OpenBSD. Add support for mipseb-*-netbsd* machines.
9052
90532002-06-17 Andrew Choi <akochoi@shaw.ca>
9054
9055 * macterm.c (mac_scroll_area): Set foreground and backcolor to
9056 black and white before scrolling. Restore frame background and
9057 foreground color after scrolling.
9058 (do_window_update): Call XClearWindow before calling expose_frame.
9059 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
9060 FRAME_FOREGROUND_PIXEL of frame.
9061
9062 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9063 test Mac command key as <ALT> key.
9064
90652002-06-17 Stefan Monnier <monnier@cs.yale.edu>
9066
9067 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
9068
9069 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
9070 Lookup keys in function-key-map immediately so that key-translation-map
9071 can be applied earlier.
9072 Remove function_key_possible and key_translation_possible, replaced
9073 by checking `keytran_start < t'.
9074
9075 * .gdbinit (xsymbol): Use the new `xname' field.
9076
90772002-06-17 Andrew Choi <akochoi@shaw.ca>
9078
9079 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
9080 test Mac command key as <ALT> key.
9081
9082 * mac.c (do_applescript): Call initialize_applescript if necessary
9083 when first called. Dispose of result_desc only when there is no error.
9084 (Fdo_applescript): Use %d format specifier instead of %ld.
9085
90862002-06-16 Andrew Choi <akochoi@shaw.ca>
9087
9088 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
9089 of FrontWindow for cases keyDown and autoKey.
9090
9091 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
9092 Vdefault_fontset to Monaco with mac-roman coding.
9093
9094 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
9095 init_process before and after inclusion of Carbon/Carbon.h, resp.
9096
9097 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
9098 cursor_gc.
9099 (add_font_name_table_entry): New function.
9100 (init_font_name_table): Use add_font_name_table_entry; add italic,
9101 bold, and bold-italic entries for truetype fonts.
9102
9103 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
9104 for Mac too.
9105 (try_font_list) [MAC_OS]: If no font matches given registry, try
9106 fonts with any registry matching face_family.
9107 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
9108
9109 * s/darwin.h: If autoconf detects the Ncurses library, define
9110 LIBS_TERMCAP to -lncurses to use it.
9111
91122002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
9113
9114 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
9115
91162002-06-15 Richard M. Stallman <rms@gnu.org>
9117
9118 * window.c (Fset_window_configuration): Explicitly preserve
9119 the point value that new_current_buffer had at the start.
9120
91212002-06-14 Juanma Barranquero <lektu@terra.es>
9122
9123 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
9124 Fix typos.
9125
91262002-06-14 Kim F. Storm <storm@cua.dk>
9127
9128 * insdel.c (insert_1_both, insert_from_string_1)
9129 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
9130 insert happened in the end_unchanged region. Otherwise, the
9131 redisplay may be confused and duplicate the last line in the
9132 buffer [seen after save-buffer when require-final-newline==t].
9133
91342002-06-13 Jason Rumney <jasonr@gnu.org>
9135
9136 * w32.c (init_environment): Remove EMACSLOCKDIR.
9137 (stat): Swap _S_IFDIR and _S_IFREG.
9138
91392002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9140
9141 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
9142 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
9143 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
9144 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
9145 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
9146 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
9147 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
9148 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
9149 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
9150 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
9151 SELECTION_REQUEST_EVENT, selection_clear_event to
9152 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
9153 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
9154 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
9155 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
9156 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
9157 no_event to NO_EVENT.
9158
91592002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9160
9161 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
9162
91632002-06-12 Stefan Monnier <monnier@cs.yale.edu>
9164
9165 * intervals.c (textget): Don't forget to `return'.
9166 (lookup_char_property): Use XCAR/XCDR.
9167
91682002-06-12 Juanma Barranquero <lektu@terra.es>
9169
9170 * xdisp.c (Fformat_mode_line): Fix typo.
9171
91722002-06-12 Kim F. Storm <storm@cua.dk>
9173
9174 * xdisp.c (Fformat_mode_line): New function.
9175 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
9176 (store_frame_title_char, store_frame_title): Use unconditionally.
9177 (init_xdisp): Defsubr Fformat_mode_line.
9178 Initialize frame_title_buf etc. unconditionally.
9179
91802002-06-11 Stefan Monnier <monnier@cs.yale.edu>
9181
9182 * keyboard.c (read_key_sequence):
9183 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
9184 things through those maps after downcasing events.
9185 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
9186 applies after function-key-map.
9187 Make sure that keytran can be done in the middle in the sequence.
9188 Be careful not to throw away events past the one we downcase.
9189
9190 * lread.c (read_integer): Remove unused var `tem'.
9191 (read1): Fix int/Lisp_Object mixup.
9192
9193 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
9194
91952002-06-11 Richard M. Stallman <rms@gnu.org>
9196
9197 * keyboard.c (readable_events): Ignore any number of
9198 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
9199
92002002-06-09 Miles Bader <miles@gnu.org>
9201
9202 * xfaces.c (Ftty_supports_face_attributes_p): New function.
9203 (parse_rgb_list, tty_lookup_color): New functions.
9204 (tty_defined_color): Use `tty_lookup_color' to do all the work.
9205 (color_distance, Fcolor_distance): New functions.
9206 (TTY_SAME_COLOR_THRESHOLD): New macro.
9207 (Qtty_color_standard_values): New variable.
9208 (syms_of_xfaces): Initialize new vars & functions.
9209
92102002-06-08 Colin Walters <walters@verbum.org>
9211
9212 * textprop.c (Vchar_property_alias_alist): New variable.
9213 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
9214
9215 * intervals.c (lookup_char_property): New function for looking up
9216 overlay and text properties, created from textget.
9217 (textget): Use it.
9218
9219 * intervals.h (lookup_char_property): Declare.
9220 (Vchar_property_alias_alist): Declare.
9221
9222 * buffer.c (Foverlay_get): Use lookup_char_property.
9223
92242002-06-07 Sam Steingold <sds@gnu.org>
9225
9226 * xselect.c (lisp_data_to_selection_data): Fix last change:
9227 *data_ret is not a Lisp string, while unibyte_string is.
9228
92292002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
9230
9231 * xselect.c (lisp_data_to_selection_data): Fix last change:
9232 set size_ret.
9233
92342002-06-07 Andreas Schwab <schwab@suse.de>
9235
9236 * m/amdx86-64.h: New file.
9237
92382002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
9239
9240 * fns.c (Fstring_make_unibyte): Doc fix.
9241
9242 * xselect.c (lisp_data_to_selection_data): If the requested type
9243 is STRING, call string_make_unibyte to encode the selected text
9244 as a string.
9245
9246 * window.c (Fset_window_hscroll): Doc fix.
9247
92482002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9249
9250 * fileio.c (choose_write_coding_system):
9251 Call select-safe-coding-system properly.
9252
92532002-06-03 Richard M. Stallman <rms@gnu.org>
9254
9255 * xdisp.c (message_with_string): Error if STRING is not a string.
9256
9257 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
9258
9259 * fileio.c (choose_write_coding_system): Pass FILE arg to
9260 Vselect_safe_coding_system_function.
9261
92622002-06-03 Ken Raeburn <raeburn@gnu.org>
9263
9264 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
9265
92662002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
9267
9268 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
9269 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
9270 * keymap.c (describe_command): Likewise.
9271 * minibuf.c (read_minibuf): Likewise.
9272
9273 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
9274 Cast `current_column' return value to int.
9275 (back_to_previous_visible_line_start)
9276 (reseat_at_next_visible_line_start, next_element_from_buffer):
9277 Cast `indented_beyond_p' 3rd arg to float.
9278
9279 * indent.c (last_known_column): Now a float.
9280 (current_column_1, position_indentation, current_column)
9281 (string_display_width): Return float.
9282 (Fcurrent_column): Cast `current_column' return value to int.
9283 (Fcurrent_indentation): Cast `position_indentation' retval to int.
9284 (indented_beyond_p): Third arg now a float.
9285 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
9286
9287 * lisp.h (current_column): Now returns float.
9288 (indented_beyond_p): 3rd arg now a float.
9289
92902002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
9291
9292 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
9293 is Qcompound_text_with_extensions.
9294
9295 * xselect.c (lisp_data_to_selection_data): Always set selection
9296 type as string if x_encode_text returns streingp non-NULL.
9297
9298 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
9299
93002002-05-30 Richard M. Stallman <rms@gnu.org>
9301
9302 * window.c (Fset_window_configuration): Correct the handling
9303 of point in current buffer, to work with multiple windows.
9304
93052002-05-29 Colin Walters <walters@verbum.org>
9306
9307 * lread.c (Fread_from_string): Don't depend on order of evaluation
9308 for C function parameters.
9309
93102002-05-28 Richard M. Stallman <rms@gnu.org>
9311
9312 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
9313 way for blinked-off state and for a nonselected window.
9314
9315 * window.c (window_scroll_pixel_based): Don't call Fbolp;
9316 instead, see if the new start pos is at beginning of line.
9317
9318 * fileio.c (Fwrite_region): If START is a string, don't
9319 make any annotations.
9320
9321 * eval.c (syms_of_eval): Doc fix.
9322
93232002-05-28 Colin Walters <walters@debian.org>
9324
9325 * emacs.c (USAGE1): Add --no-splash.
9326 (standard_args): Ditto.
9327
93282002-05-28 Colin Walters <walters@gnu.org>
9329
9330 * lread.c (readchar_count): New variable.
9331 (readchar): Increment it.
9332 (unreadchar): Decrement it.
9333 (read_multibyte): Decrement it.
9334 (Vread_with_symbol_positions): New variable.
9335 (Vread_symbol_positions_list): New variable.
9336 (read_internal_start): New function, created from Fread and
9337 Fread_from_string. Handle Vread_symbol_positions_list and
9338 Vread_with_symbol_positions.
9339 (readevalloop, Fread, Fread_from_string): Use it.
9340 (read1): Use readchar_count to add symbol positions to
9341 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
9342 (syms_of_lread): DEFVAR_LISP and initialize them.
9343
9344 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
9345 (substitute_object_recurse, substitute_object_in_subtree)
9346 (substitute_in_interval): Prototype.
9347 (read_multibyte): Return c if it's less than zero.
9348
93492002-05-28 Kim F. Storm <storm@cua.dk>
9350
9351 * fileio.c (Fread_file_name_internal): Added brute-force
9352 speed up for using predicate file-directory-p.
9353
93542002-05-28 Kim F. Storm <storm@cua.dk>
9355
9356 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
9357 New variables.
9358 (syms_of_fileio): DEFVAR_LISP them.
9359 (read_file_name_cleanup): New unwind function.
9360 (Fread_file_name_internal): Only return completions satifying
9361 Vread_file_name_predicate. Temporarily unwind protect and rebind
9362 default-directory while checking completions against the predicate.
9363 (Fread_file_name): Added PREDICATE argument. Specbind it to
9364 Vread_file_name_predicate during completion.
9365 Call Vread_file_name_function to read the file name if non-nil.
9366
9367 * lisp.h (Fread_file_name): Now has 6 args.
9368
9369 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
9370 predicate for Fread_file_name when reading directory name.
9371 Supply Qnil for predicate in other calls to Fread_file_name.
9372
93732002-05-26 Miles Bader <miles@gnu.org>
9374
9375 * term.c (tty_capable_p): New function.
9376 * dispextern.h (tty_capable_p): New function declaration.
9377 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
9378 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
9379
93802002-05-23 Stefan Monnier <monnier@cs.yale.edu>
9381
9382 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
9383 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
9384 (Vwrite_region_annotate_functions): Docstring fix.
9385
93862002-05-23 Kim F. Storm <storm@cua.dk>
9387
9388 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
9389 phys_cursor's hpos is overwritten. This is still not completely
9390 correct, as it doesn't really make sense to use hpos at all to
9391 get the cursor glyph (as that is relative to the width of the
9392 characters on the line, which may have changed during the update).
9393
93942002-05-22 Jason Rumney <jasonr@gnu.org>
9395
9396 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
9397 Lisp_Object.
9398 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
9399 Use modified enumfont_t struct.
9400
9401 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9402
9403 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
9404 Handle the `hbar' cursor type.
9405 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9406
9407 * w32fns.c (Qhbar): New variable.
9408 (x_specified_cursor_type): Use it.
9409
94102002-05-21 Ken Raeburn <raeburn@gnu.org>
9411
9412 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
9413 now, when the address is needed.
9414
94152002-05-21 Colin Walters <walters@gnu.org>
9416
9417 * Makefile.in (shortlisp): Add font-core.el.
9418
94192002-05-20 Richard M. Stallman <rms@gnu.org>
9420
9421 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
9422
9423 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
9424 equivalent key bindings here.
9425
94262002-05-20 Ken Raeburn <raeburn@gnu.org>
9427
9428 Change symbol structure to contain a lisp object for the symbol
9429 name:
9430 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
9431 object field named "xname".
9432 (SYMBOL_NAME): New macro.
9433 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
9434 name field.
9435 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
9436 (mark_object, gc_sweep): Use symbol xname field and XSTRING
9437 instead of name field.
9438 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
9439 SYMBOL_NAME instead of XSYMBOL and name field.
9440 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
9441 instead of XSYMBOL and name field.
9442 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
9443 and SYMBOL_NAME instead of XSYMBOL and name field.
9444 * coding.c (Fread_coding_system, code_convert_region1)
9445 (code_convert_string1, code_convert_string_norecord)
9446 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
9447 XSYMBOL and name field.
9448 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
9449 (Fmake_variable_buffer_local, Fmake_local_variable)
9450 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
9451 of XSYMBOL and name field.
9452 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
9453 XSYMBOL and name field.
9454 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
9455 instead of XSYMBOL and name field.
9456 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
9457 XSYMBOL and name field.
9458 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
9459 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9460 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
9461 instead of XSYMBOL and name field.
9462 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
9463 (parse_modifiers, apply_modifiers, Fevent_convert_list)
9464 (parse_solitary_modifier, Fexecute_extended_command):
9465 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9466 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
9467 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
9468 of XSYMBOL and name field.
9469 (describe_command, describe_translation): Use SYMBOL_NAME and
9470 assignment instead of XSYMBOL and name field and XSETSTRING.
9471 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
9472 instead of XSYMBOL and name field.
9473 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
9474 name field and XSETSTRING.
9475 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9476 of XSYMBOL and name field.
9477 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
9478 assignment instead of XSYMBOL and name field and XSETSTRING.
9479 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
9480 XSTRING instead of XSYMBOL and name field.
9481 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
9482 and XSTRING instead of XSYMBOL and name field.
9483 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
9484 and XSTRING instead of XSYMBOL and name field.
9485 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
9486 XSTRING instead of XSYMBOL and name field.
9487 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
9488 of XSYMBOL and name field.
9489 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
9490 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
9491
94922002-05-19 Ken Raeburn <raeburn@gnu.org>
9493
9494 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
9495 and XCDR real rvalues in most configurations.
9496
9497 * buffer.c (fix_overlays_in_range, fix_overlays_before):
9498 Don't take the address of the cdr part of a cons cell; instead, track
9499 the parent cell and call XSETCDR, or set the variable for the head
9500 of the list if we haven't started down the list yet.
9501
95022002-05-19 Richard M. Stallman <rms@gnu.org>
9503
9504 * doc.c (reread_doc_file): Don't ask for confirmation.
9505
95062002-05-18 Jason Rumney <jasonr@gnu.org>
9507
9508 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
9509 (xbm_load_image): Use it.
9510 (xbm_load): Ditto.
9511 (xbm_read_bitmap_data): Reverted to xfns.c version.
9512 From David Ponce <david@dponce.com>.
9513
95142002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
9515
9516 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
9517 2.02 and later.
9518
95192002-05-16 Juanma Barranquero <lektu@terra.es>
9520
9521 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
9522
95232002-05-15 Stefan Monnier <monnier@cs.yale.edu>
9524
9525 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
9526 meaningful test.
9527 (read_char_minibuf_menu_prompt): Fix typo.
9528
95292002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9530
9531 * eval.c (Fcommandp): Doc fix.
9532
95332002-05-13 Stefan Monnier <monnier@cs.yale.edu>
9534
9535 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
9536 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
9537 (Fset_keymap_parent): Gcpro a bit more.
9538 (access_keymap): Gcpro around meta_map call and around the main loop.
9539 (get_keyelt): Gcpro when following indirect references.
9540 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
9541 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
9542 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
9543 Remove useless ad-hoc remap code.
9544
95452002-05-13 Richard M. Stallman <rms@gnu.org>
9546
9547 * search.c (search_buffer): Give up boyer moore search if inverse
9548 translation change charset_base.
9549
95502002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
9551
9552 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
9553 characters is carried over from the previous block of text, adjust
9554 coding->produced to account for the extra character.
9555
95562002-05-11 Andreas Schwab <schwab@suse.de>
9557
9558 * coding.c (intersection): Keep the elements of the returned list
9559 in the same order as in the first list.
9560
95612002-05-11 Kim F. Storm <storm@cua.dk>
9562
9563 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
9564 only update cmm_size if realloc actually succeeds.
9565 Testing with initial size of 2 elements revealed that using
9566 realloc on GNU/Linux would cause a random trap in xmalloc
9567 later on, so I rewrote the code to use malloc/bcopy/free instead
9568 of realloc.
9569
95702002-05-10 Jason Rumney <jasonr@gnu.org>
9571
9572 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
9573
95742002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
9575
9576 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
9577 parens, to ensure correct evaluation order.
9578
95792002-05-10 Kim F. Storm <storm@cua.dk>
9580
9581 * keymap.c (Vemulation_mode_map_alists): New variable.
9582 (syms_of_keymap): DEFVAR_LISP it.
9583 (current_minor_maps): Process keymap alists in that list before
9584 minor-mode-overriding-map-alist and minor-mode-map-alist.
9585
95862002-05-09 Richard M. Stallman <rms@gnu.org>
9587
9588 * search.c (Freplace_match): Doc fix.
9589
95902002-05-09 Kim F. Storm <storm@cua.dk>
9591
9592 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9593 Enlarge cursor rectangle drawn around image with non-zero relief.
9594
9595 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
9596 Enlarge cursor rectangle drawn around image with non-zero relief.
9597
9598 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
9599 Enlarge cursor rectangle drawn around image with non-zero relief.
9600
96012002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
9602
9603 * xselect.c (lisp_data_to_selection_data): Don't set selection
9604 type if comes from the Lisp object's car. If the selection
9605 contains a pure ASCII text, always return QSTRING as its type.
9606
96072002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9608
9609 * mac.c (mac-cut-function): Doc fix.
9610
96112002-05-05 Richard M. Stallman <rms@gnu.org>
9612
9613 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
9614
96152002-05-04 Jason Rumney <jasonr@gnu.org>
9616
9617 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
9618 for event-click-count.
9619
9620 * process.c (init_process): Only add server subfeature if we can
9621 use non-blocking I/O.
9622
96232002-05-04 Andrew Choi <akochoi@shaw.ca>
9624
9625 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
9626 repeatedly.
9627
96282002-05-03 Jason Rumney <jasonr@gnu.org>
9629
9630 * process.c (Fmake_network_process): Only support server sockets
9631 when we can make them non-blocking.
9632
9633 * s/ms-w32.h (HAVE_SELECT): Define.
9634
9635 * w32.h (FILE_NDELAY): New flag.
9636
9637 * w32.c (sys_getpeername, fcntl): New functions.
9638 (_sys_read_ahead): Temporarily block on non-blocking sockets.
9639
9640 * w32proc.c: include sys/file.h.
9641
96422002-05-03 Colin Walters <walters@verbum.org>
9643
9644 * callproc.c (Vgame_score_directory): Renamed to
9645 Vshared_game_score_directory.
9646
96472002-04-30 Richard M. Stallman <rms@gnu.org>
9648
9649 * s/gnu.h [emacs]: Include stdio.h.
9650 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
9651
9652 * eval.c (do_autoload): Error if called while preparing to dump.
9653
9654 * fns.c (Frequire): Error if need to load while preparing to dump.
9655
96562002-04-28 Colin Walters <walters@verbum.org>
9657
9658 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
9659 Default to "~/.emacs.d/games".
9660
96612002-04-29 Stefan Monnier <monnier@cs.yale.edu>
9662
9663 * lread.c (openp): Change arg exec_only to predicate.
9664 (build_load_history): Use XCAR/XCDR.
9665 (Flocate_file_internal): New fun.
9666 (syms_of_lread): Defsubr it.
9667 (Fload): Update call to openp.
9668
9669 * lisp.h (openp): Update prototype.
9670
9671 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
9672 * w32proc.c (sys_spawnve):
9673 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
9674 * w32.c (check_windows_init_file):
9675 * sound.c (Fplay_sound_internal):
9676 * process.c (Fstart_process):
9677 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
9678 * mac.c (run_mac_command):
9679 * emacs.c (init_cmdargs):
9680 * callproc.c (Fcall_process): Update call to openp.
9681
9682 * textprop.c (remove_properties): Don't use XCAR without CONSP.
9683
9684 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
9685
96862002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9687
9688 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
9689 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
9690
96912002-04-28 Richard M. Stallman <rms@gnu.org>
9692
9693 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
9694
9695 * eval.c (Fcommandp): New arg for_call_interactively.
9696 * lisp.h (Fcommandp): Declare new arg.
9697
96982002-04-28 Jason Rumney <jasonr@gnu.org>
9699
9700 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
9701
9702 * w32.c (stat, fstat): Use file index information to generate
9703 inodes for directories where available.
9704
97052002-04-26 Andrew Choi <akochoi@shaw.ca>
9706
9707 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
9708 [HAVE_CARBON]: Include Mac object files.
9709
9710 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
9711 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
9712 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
9713 MAC_OSX, and MAC_OS instead of macintosh.
9714
9715 * editfns.c [MAC_OS8]: Include stdio.h.
9716
9717 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
9718
9719 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
9720 Apple Monaco.
9721
9722 * process.c: Declare QCfamily and QCfilter as extern.
9723 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
9724 calling select.
9725
9726 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
9727
9728 * tparam.c [MAC_OSX]: Don't define BC and UP.
9729
9730 * config.in [HAVE_CARBON]: Add.
9731
9732 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
9733 Move here from mac/src and mac/inc.
9734
9735 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
9736
97372002-04-26 Gerd Moellmann <gerd@gnu.org>
9738
9739 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
9740 Compute phys_cursor_width from the x position returned
9741 by x_draw_glyhs, which is cheaper.
9742 (x_display_and_set_cursor): Compute the buffer-local value
9743 of `cursor-in-non-selected-windows' only when needed.
9744
97452002-04-25 Gerd Moellmann <gerd@gnu.org>
9746
9747 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
9748 cursor on a stretch glyph has a width that depends on
9749 x_stretch_cursor_p.
9750
97512002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9752
9753 * abbrev.c (abbrev-start-location): Doc fix.
9754
9755 * indent.c (Fvertical_motion): Fix last change.
9756
97572002-04-25 Gerd Moellmann <gerd@gnu.org>
9758
9759 * indent.c (Fvertical_motion): Move to the start of the line
9760 containing PT before moving up or down.
9761
97622002-04-24 Gerd Moellmann <gerd@gnu.org>
9763
9764 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
9765 case of writing a whole row, more or less analogous to the case of
9766 writing only parts of a row.
9767
9768 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
9769 0 for NO_CURSOR.
9770
9771 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
9772
97732002-04-23 Colin Walters <walters@verbum.org>
9774
9775 * buffer.c (syms_of_buffer): Doc fix.
9776
97772002-04-23 Gerd Moellmann <gerd@gnu.org>
9778
9779 * xterm.c (notice_overwritten_cursor): Handle the special case
9780 of the cursor being in the first blank non-text line at the
9781 end of a window.
9782
9783 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
9784 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
9785 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
9786 bar cursors only, to make phys_cursor_width contain what its name
9787 suggests.
9788 (notice_overwritten_cursor): Consider the cursor image erased if
9789 the output area intersects the cursor image in y-direction.
9790
97912002-04-23 Simon Marshall <simon@gnu.org>
9792
9793 * xfns.c (x_set_mouse_color): Change default for cross_cursor
9794 to XC_hand2.
9795
97962002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9797
9798 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
9799
98002002-04-22 Kim F. Storm <storm@cua.dk>
9801
9802 * textprop.c (remove_properties): Fixed trap for malformed plist.
9803
98042002-04-22 Richard M. Stallman <rms@gnu.org>
9805
9806 * cmds.c (Fend_of_line): Handle intangible text in mid line.
9807
9808 * window.c (make_window): Initialize height_fixed_p,
9809 last_cursor_off_p, and p->cursor_off_p slots.
9810
98112002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9812
9813 * fns.c (use-dialog-box): Doc fix.
9814
98152002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9816
9817 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
9818 variables `row', `i' and `area'.
9819 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
9820 toolkit library.
9821
98222002-04-19 Stefan Monnier <monnier@cs.yale.edu>
9823
9824 * xfaces.c (clear_font_table): Don't free the default font of
9825 a frame even if it's on another display.
9826 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
9827 that could be Qt.
9828
98292002-04-19 Juanma Barranquero <lektu@terra.es>
9830
9831 * indent.c (Fmove_to_column): Remove unused local variable
9832 `next_boundary_byte'.
9833 (current_column_1): Likewise.
9834
98352002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9836
9837 * msdos.c (Qhbar): New variable.
9838 (syms_of_msdos): Intern and staticpro it.
9839 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
9840 cursor type.
9841
98422002-04-19 Dave Lambert <dlambert@acm.org>
9843
9844 Theses change implement an underscore-like (`hbar') cursor.
9845
9846 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
9847
9848 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
9849 Handle the `hbar' cursor type.
9850 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
9851
9852 * xfns.c (Qhbar): New variable.
9853 (syms_of_xfns): Intern and staticpro it.
9854 (x_specified_cursor_type): Handle `hbar' cursor.
9855
9856 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
9857 not defined.
9858
98592002-04-18 Richard M. Stallman <rms@gnu.org>
9860
9861 * textprop.c (remove_properties): New arg LIST allows scanning
9862 either a list or a plist.
9863 (interval_has_some_properties_list): New function, like
9864 interval_has_some_properties using list instead of plist.
9865 All callers changed.
9866 (Fremove_list_of_text_properties): New function.
9867 (syms_of_textprop): Defsubr it.
9868
98692002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
9870
9871 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
9872
98732002-04-17 Juanma Barranquero <lektu@terra.es>
9874
9875 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
9876
98772002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
9878
9879 * window.c (coordinates_in_window): Don't report on margin area
9880 if its width is zero.
9881
98822002-04-16 Jason Rumney <jasonr@gnu.org>
9883
9884 * w32fns.c (Fx_file_dialog): Decode file name before using.
9885
9886 * w32term.c (construct_drag_n_drop): Likewise.
9887
98882002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
9889
9890 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
9891 store load-history in pure space.
9892
9893 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
9894
98952002-04-16 Stefan Monnier <monnier@cs.yale.edu>
9896
9897 * xterm.c (Qlatin_1, Qutf_8): New vars.
9898 (syms_of_xterm): Initialize them.
9899 (XTread_socket): Eliminate incorrect optimization that tried to avoid
9900 decoding the output of X*LookupString.
9901 Always use latin-1 to decode the output of XLookupString.
9902 Try Xutf8LookupString if XmbLookupString failed.
9903
9904 * region-cache.c (new_region_cache): Use BEG.
9905
99062002-04-16 Gerd Moellmann <gerd@gnu.org>
9907
9908 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
9909 configuration files.
9910 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
9911 returns 0.
9912
99132002-04-15 Andreas Schwab <schwab@suse.de>
9914
9915 * config.in: Regenerated using autoheader.
9916
9917 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
9918 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
9919 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
9920 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
9921 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
9922 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
9923 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
9924 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
9925 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
9926 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
9927 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
9928 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
9929 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
9930 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
9931 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
9932 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
9933 STACK_DIRECTION, now set by autoconf.
9934
99352002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9936
9937 * dispnew.c (marginal_area_string): Sort arguments.
9938
9939 * dispextern.h (marginal_area_string): Add prototype.
9940
99412002-04-13 Richard M. Stallman <rms@gnu.org>
9942
9943 * fileio.c (Finsert_file_contents):
9944 Don't call temp_output_buffer_setup--do just part, by hand.
9945
9946 * coding.c (run_pre_post_conversion_on_str):
9947 Don't call temp_output_buffer_setup--do just part, by hand.
9948
9949 * keyboard.c (command_loop_1): Don't call start_hourglass
9950 or cancel_hourglass when executing a macro.
9951
9952 * marker.c (count_markers): New function.
9953
9954 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
9955 grow without limit. Move recently used elements to the front.
9956
99572002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9958
9959 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
9960
99612002-04-12 Gerd Moellmann <gerd@gnu.org>
9962
9963 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
9964 rows marginal areas.
9965 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
9966 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
9967
9968 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
9969
99702002-04-12 Dave Love <fx@gnu.org>
9971
9972 * dispnew.c (marginal_area_string): New.
9973
9974 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
9975 (Qleft_margin, Qright_margin): Declare.
9976 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
9977
9978 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
9979 note_mode_line_highlight and extended.
9980
9981 * keyboard.c (Qleft_margin, Qright_margin): Declare.
9982 (make_lispy_event): Deal with mouse events in margins.
9983
99842002-04-12 Stefan Monnier <monnier@cs.yale.edu>
9985
9986 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
9987
9988 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
9989 than deactivating the mark if tmm is set to `lambda'.
9990 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
9991 Use a single event for HELP_EVENT.
9992 (Fexecute_extended_command): Save last_point_position.
9993
99942002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9995
9996 * lisp.h (Fpropertize): Add prototype.
9997
9998 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
9999
100002002-04-10 Colin Walters <walters@verbum.org>
10001
10002 * config.in: Add HAVE_SHARED_GAME_DIR.
10003
10004 * callproc.c: (Vgame_score_directory): New variable.
10005 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
10006
100072002-04-10 Richard M. Stallman <rms@gnu.org>
10008
10009 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
10010
100112002-04-09 Stefan Monnier <monnier@cs.yale.edu>
10012
10013 * minibuf.c (read_minibuf): Use empty_string.
10014 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
10015 Short-circuit the search as soon as it "failed".
10016 (Fall_completions): Allow lambda forms and lists of strings for alist.
10017 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
10018 when require_match is nil.
10019 (Ftest_completion): Rename from `test_completion' and export to elisp.
10020 Call the predicate also when alist is a list.
10021 Obey Vcompletion_regexp_list.
10022 (do_completion, Fminibuffer_complete_and_exit): Use it.
10023 (Fassoc_string): Rename from `assoc_for_completion'.
10024 Allow list of strings as well and export to elisp.
10025
100262002-04-08 Stefan Monnier <monnier@cs.yale.edu>
10027
10028 * puresize.h (BASE_PURESIZE): Increase to 900KB.
10029
100302002-04-08 Juanma Barranquero <lektu@terra.es>
10031
10032 * w32.c (sys_accept): Don't hide variable `s'.
10033
100342002-04-05 Gerd Moellmann <gerd@gnu.org>
10035
10036 * callint.c (Fcall_interactively): Use INTEGERP instead of
10037 NUMBERP for checking Vhistory_length.
10038
100392002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10040
10041 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
10042 Doc fix to reflect it.
10043
100442002-04-04 Richard M. Stallman <rms@gnu.org>
10045
10046 * xdisp.c (display_mode_element): New arg RISKY.
10047 Disregard text props found or specified within a variable
10048 that isn't marked risky-local-variable.
10049 (Qrisky_local_variable): New variable.
10050 (syms_of_xdisp): Init and staticpro it.
10051
100522002-04-04 Stefan Monnier <monnier@cs.yale.edu>
10053
10054 * undo.c (record_point): New fun.
10055 (record_delete, record_insert): Use it.
10056
100572002-04-03 Juanma Barranquero <lektu@terra.es>
10058
10059 * doc.c (Fdocumentation): Add missing parentheses.
10060 (Fdocumentation_property): Likewise.
10061
100622002-04-03 Stefan Monnier <monnier@cs.yale.edu>
10063
10064 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
10065 data is 0, just return nil.
10066
100672002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
10068
10069 * msdos.c (syms_of_msdos): Fix last change with
10070 mouse_autoselect_window.
10071
100722002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10073
10074 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
10075 mouse_autoselect_window.
10076
100772002-04-02 Stefan Monnier <monnier@cs.yale.edu>
10078
10079 * keyboard.c (make_lispy_event): Handle unknown keysyms together
10080 with system-specific keysyms. Use it also for unknown function keys.
10081
10082 * doc.c (reread_doc_file): Return whether reload was attempted.
10083 (Fdocumentation, Fdocumentation_property): Don't try to reload
10084 if the doc is 0 and only ask once.
10085
10086 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
10087
100882002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
10089
10090 * keyboard.c (read_char): If the event was Qselect_window,
10091 restore timer_idleness_start_time to its previous value.
10092
10093 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
10094
100952002-04-01 Stefan Monnier <monnier@cs.yale.edu>
10096
10097 * region-cache.c (new_region_cache): Use BEG.
10098
10099 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
10100 Use BEG and BEG_BYTE.
10101
10102 * doc.c (get_doc_string): Return nil if the location is wrong.
10103 (reread_doc_file): New fun.
10104 (Fdocumentation, Fdocumentation_property):
10105 Call it if get_doc_string fails.
10106 (Fsnarf_documentation): Make it work for a dumped Emacs.
10107
10108 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
10109 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
10110
10111 * charset.c (Fstring): Allow 0 arguments.
10112
10113 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
10114
10115 * process.c (DATAGRAM_CONN_P, list_processes_1)
10116 (Fprocess_datagram_address, Fset_process_datagram_address)
10117 (Fset_network_process_options, server_accept_connection):
10118 Fix some int/Lisp_Object confusions (thank you union types).
10119
101202002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10121
10122 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
10123
10124 * w32term.c: Likewise.
10125 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
10126
10127 * keyboard.c (Qselect_window): New symbol.
10128 (head_table): Use it.
10129 (keys_of_keyboard): Bound select-window event to handle-select-window.
10130 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
10131
10132 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
10133 (last_window): New variable.
10134 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
10135 (note_mouse_movement): Remove reimplemented code in #if 0.
10136 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
10137 Emacs windows.
10138
10139 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
10140
101412002-03-31 Gerd Moellmann <gerd@gnu.org>
10142
10143 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
10144 Callers changed.
10145
101462002-03-30 Richard M. Stallman <rms@gnu.org>
10147
10148 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
10149 loop whenever it stops making progress.
10150
10151 * widget.c (set_frame_size): Don't call change_frame_size.
10152
101532002-03-30 Gerd Moellmann <gerd@gnu.org>
10154
10155 * dispnew.c (direct_output_for_insert):
10156 Call mark_window_display_accurate.
10157
101582002-03-29 Jason Rumney <jasonr@gnu.org>
10159
10160 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
10161
101622002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
10163
10164 * Makefile.in (lread.o): Depend on coding.h.
10165
10166 * lread.c (openp, Fload): Encode the file name before passing it
10167 to `stat', `access', and `emacs_open'.
10168 (openp): GCPRO the encoded file name. Don't recompute Lisp
10169 strings unnecessarily.
10170
101712002-03-29 Kim F. Storm <storm@cua.dk>
10172
10173 * fns.c (Flax_plist_put): Doc fix.
10174
101752002-03-28 Miles Bader <miles@gnu.org>
10176
10177 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
10178
101792002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10180
10181 * process.c (set-network-process-options): Add usage.
10182 (make-network-process): Doc fix.
10183
101842002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
10185
10186 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
10187
101882002-03-26 Richard M. Stallman <rms@gnu.org>
10189
10190 * fns.c (Fsubstring_no_properties): New function.
10191 (Flax_plist_get, Flax_plist_put): New functions.
10192 (syms_of_fns): defsubr them.
10193
10194 * xdisp.c (update_menu_bar): Test only update_mode_lines;
10195 don't test or alter w->update_mode_line.
10196
10197 * window.c (Fdisplay_buffer): Doc fix.
10198
101992002-03-24 Richard M. Stallman <rms@gnu.org>
10200
10201 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
10202
102032002-03-24 Gerd Moellmann <gerd@gnu.org>
10204
10205 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
10206 (Fdefmacro): Handle `(declare ...)'.
10207 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
10208 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
10209
102102002-03-24 Jason Rumney <jasonr@gnu.org>
10211
10212 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
10213 (xbm_file_p): Add prototypes.
10214 (xbm_format, xbm_image_p): Sync with xfns.c.
10215 (reflect_byte): New function.
10216 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
10217 (xbm_load_image): Create bitmaps with a depth of 1.
10218 (init_xfns): Enable XBM images.
10219
102202002-03-23 Jason Rumney <jasonr@gnu.org>
10221
10222 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
10223 correctly. Do not pass up_modifier to keyboard buffer.
10224
10225 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
10226
102272002-03-22 Stefan Monnier <monnier@cs.yale.edu>
10228
10229 * Makefile.in (bootstrapclean): New target.
10230 (bootstrap-temacs, bootstrap-doc): Remove.
10231 (bootstrap-emacs): Use a bog-standard `temacs'.
10232 Don't bother to build a DOC file.
10233
10234 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
10235
10236 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
10237 in temacs even if !CANNOT_DUMP.
10238 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
10239
10240 * alloc.c (check_pure_size): Only output a warning.
10241
102422002-03-22 Jason Rumney <jasonr@gnu.org>
10243
10244 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
10245 supported.
10246
10247 * w32term.c (zv_bits): Declare as short, for word alignment.
10248 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
10249 (syms_of_w32term): Define x-use-underline-position-properties.
10250
10251 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
10252 (clear_image_cache): Block input, fix logic, clear matrices in
10253 all frames that share this cache.
10254
102552002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
10256
10257 * emacs.c (main): Update the Copyright year in the blurb printed
10258 by "emacs --version".
10259
10260 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
10261
10262 * xterm.c (XTread_socket): If XK_ISO_Lock and
10263 XK_ISO_Last_Group_Lock are defined, handle keysyms between
10264 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
10265
102662002-03-21 Kim F. Storm <storm@cua.dk>
10267
10268 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
10269 menu-bar bindings in keymap and local-map properties _are_ used.
10270 But try keymap property first in accordance with 2002-01-03 patch.
10271 Added comment describing why this is not always reliable.
10272 (tool_bar_items): Ditto for tool-bar.
10273
102742002-03-21 Jason Rumney <jasonr@gnu.org>
10275
10276 * w32fns.c (x_clear_image_1): Disable color table code.
10277
102782002-03-21 Kim F. Storm <storm@cua.dk>
10279
10280 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
10281 removed the wrong version of the DEFUN macro; fixed it.
10282
10283 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
10284 Fmember rather than Fmemq).
10285 (Fprovide): Check that subfeatures is a list.
10286
10287 * process.c (QCfeature, QCdatagram): Removed variables.
10288 (QCtype, Qdatagram): New variables.
10289 (network_process_featurep): Removed function.
10290 (Fmake_network_process): Removed :feature check.
10291 Use :type 'datagram instead of :datagram t to create a datagram
10292 socket. This allows us to add other connection types (e.g. raw
10293 sockets) later in a consistent manner.
10294 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
10295 supported subfeatures for feature make-network-process.
10296 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
10297 Intern and staticpro QCtype and Qdatagram.
10298 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
10299
10300 * xfns.c: (QCtype): Remove duplicate declaration and
10301 initialization (is now declared in process.c).
10302
10303 * w32fns.c: (QCtype): Remove duplicate declaration and
10304 initialization (is now declared in process.c).
10305
103062002-03-21 Richard M. Stallman <rms@gnu.org>
10307
10308 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
10309 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
10310 when jumping to `fail' to avoid undoing reg changes in the
10311 last iteration of the loop.
10312 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
10313
10314 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
10315 Depend on process.h.
10316
103172002-03-20 Jason Rumney <jasonr@gnu.org>
10318
10319 Most of the following changes are still conditional on HAVE_IMAGES
10320 which is not set by default on Windows.
10321
10322 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
10323
10324 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
10325 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
10326 (four_corners_best, x_clear_image_1, x_clear_image)
10327 (x_alloc_image_color, postprocess_image)
10328 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
10329 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
10330 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
10331
10332 * w32gui.h (struct XImage): Define.
10333
10334 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
10335 extract mouse co-ordinates.
10336
103372002-03-20 Jason Rumney <jasonr@gnu.org>
10338
10339 * w32.c (init_winsock): Dynamically load new server and UDP
10340 socket functions.
10341 (socket_to_fd): New function.
10342 (sys_socket): Use it.
10343 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
10344 (sys_recvfrom, sys_sendto): New wrapper functions.
10345
10346 * process.c (QCfamily, QCfilter): Remove duplicate declaration
10347 and initialization.
10348
10349 * makefile.w32-in (LIBS): Remove $(WSOCK32).
10350
103512002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
10352
10353 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
10354 Don't use "sun" as a variable, it's a predefined constant on Sun
10355 machines.
10356
103572002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10358
10359 * bytecode.c (Fbyte_code): Revert last change.
10360
103612002-03-19 Kim F. Storm <storm@cua.dk>
10362
10363 * makefile.w32-in (LIBS): Add $(WSOCK32).
10364 From David Ponce <dponce@voila.fr>.
10365
103662002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10367
10368 * process.c (wait_reading_process_input): Move variables `pname'
10369 and `pnamelen' down where they are used.
10370
10371 * bytecode.c (Fbyte_code): Discard unused computed value to
10372 prevent gcc warning.
10373
10374 * lisp.h (Fplist_member): Add prototype.
10375
103762002-03-18 Kim F. Storm <storm@cua.dk>
10377
10378 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
10379 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
10380
10381 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10382 Remove explicit GNU_LINUX settings for datagram support.
10383
103842002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10385
10386 * process.c (Fmake_network_process): Remove unused variable `sa'.
10387 Doc fix. Add usage:.
10388 (set_socket_options): Remove unused variables `optnum' and `opttype'.
10389
103902002-03-17 Richard M. Stallman <rms@gnu.org>
10391
10392 * xdisp.c (cursor_type_changed): New variable.
10393 (redisplay_internal): Redisplay all windows if cursor_type_changed.
10394 Clear it when clearing windows_or_buffers_changed.
10395 (try_cursor_movement, redisplay_window, try_window_id)
10396 (try_window_reusing_current_matrix): Test cursor_type_changed
10397 along with windows_or_buffers_changed.
10398
10399 * window.h (cursor_type_changed): New variable.
10400
10401 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
10402 not update_mode_lines, and always set it to 1.
10403
10404 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
10405 if no frames needed redrawing.
10406
104072002-03-17 Kim F. Storm <storm@cua.dk>
10408
10409 The following changes add support for network server processes,
10410 datagram connections, and local (unix) sockets.
10411
10412 * process.h (struct Lisp_Process): New member log.
10413 Doc fix: Member command used to indicate stopped network process.
10414 Doc fix: Member childp contains plist for network process.
10415 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
10416
10417 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
10418 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
10419 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
10420 New variables.
10421 (NETCONN1_P): New macro.
10422 (DATAGRAM_SOCKETS): New conditional symbol.
10423 (datagram_address): New array.
10424 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
10425 (status_message): Use concat3.
10426 (Fprocess_status): Add `listen' status to doc string. Return `stop'
10427 for a stopped network process.
10428 (Fset_process_buffer): Update contact plist for network process.
10429 (Fset_process_filter): Ditto. Don't enable input for stopped
10430 network processes. Server must listen, even if filter is t.
10431 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
10432 New functions.
10433 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
10434 (Fprocess_contact): Added KEY argument. Handle datagrams.
10435 (list_processes_1): Optionally show only processes with the query
10436 on exit flag set. Dynamically adjust column widths. Omit tty
10437 column if not needed. Report stopped network processes.
10438 Identify server and datagram network processes.
10439 (Flist_processes): New optional arg `query-only'.
10440 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
10441 (conv_lisp_to_sockaddr, set_socket_options)
10442 (network_process_featurep, unwind_request_sigio): New helper functions.
10443 (Fprocess_datagram_address, Fset_process_datagram_address):
10444 (Fset_network_process_options): New lisp functions.
10445 (Fopen_network_stream): Removed. Now defined in simple.el.
10446 (Fmake_network_process): New lisp function. Code is based on previous
10447 Fopen_network_stream, but heavily reworked with new property list based
10448 argument list, support for datagrams, server processes, and local
10449 sockets in addition to old client-only functionality.
10450 (server_accept_connection): New function.
10451 (wait_reading_process_input): Use it to handle incoming connects.
10452 Do not enable input on a new connection if process is stopped.
10453 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
10454 (send_process): Handle datagram sockets.
10455 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
10456 network process is indicated by setting command field to t .
10457 (Fprocess_send_eof): No-op if datagram connection.
10458 (Fstatus_notify): Don't read input for a stream server socket or a
10459 stopped network process.
10460 (init_process): Initialize datagram_address array.
10461 (syms_of_process): Intern and staticpro new variables, defsubr new
10462 functions.
10463
104642002-03-16 Jason Rumney <jasonr@gnu.org>
10465
10466 * w32fns.c (w32_to_all_x_charsets): Return correct type in
10467 startup case.
10468
104692002-03-16 Richard M. Stallman <rms@gnu.org>
10470
10471 * xdisp.c (redisplay_internal, redisplay_windows):
10472 Use list_of_error to call internal_condition_case_1.
10473 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
10474 so as to catch all errors with no possibility of debugger redisplay.
10475 (list_of_error): New variable.
10476 (syms_of_xdisp): Init and staticpro it.
10477
10478 * print.c (print_object): Delete `\ ' from printed rep of frame.
10479
104802002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
10481
10482 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
10483 until its implementation is fixed.
10484
104852002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10486
10487 * xfns.c (png_load): Remove unused variable `gamma_str'.
10488
104892002-03-14 Richard M. Stallman <rms@gnu.org>
10490
10491 * xfns.c (x_real_positions): Handle failure in XQueryTree.
10492
104932002-03-14 Miles Bader <miles@gnu.org>
10494
10495 * intervals.c (adjust_for_invis_intang): New function.
10496 (set_point_both): Use `adjust_for_invis_intang' to do most of the
10497 work for dealing with invisible+intangible regions. Do so before
10498 and after both forward and backward movements, to handle both
10499 front-sticky and rear-sticky cases.
10500 * textprop.c (text_property_stickiness): Function moved here from
10501 `editfns.c'.
10502 * intervals.h (text_property_stickiness): New declaration.
10503 * editfns.c (char_property_eq): Function removed.
10504 (text_property_stickiness): Function moved to `textprop.c'.
10505
105062002-03-13 Jason Rumney <jasonr@gnu.org>
10507
10508 * config.in: Add STRFTIME_NO_POSIX2.
10509
10510 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
10511 and %OX when underlying strftime does not.
10512
105132002-03-13 Stefan Monnier <monnier@cs.yale.edu>
10514
10515 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
10516 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
10517 line) to avoid annoying flicker.
10518 (xm_scroll_callback): Get rid of the now unnecessary kludge.
10519 (XTread_socket): Mark it static.
10520
10521 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
10522
105232002-03-13 Kim F. Storm <storm@cua.dk>
10524
10525 * puresize.h (BASE_PURESIZE): Increase to 775000.
10526
105272002-03-12 Juanma Barranquero <lektu@terra.es>
10528
10529 * editfns.c (syms_of_editfns): Fix typo.
10530
105312002-03-12 Gerd Moellmann <gerd@gnu.org>
10532
10533 * xsmfns.c: Include stdio.h because termhooks.h needs it.
10534 Include termopt.h for interrupt_input.
10535
105362002-03-11 Andreas Schwab <schwab@suse.de>
10537
10538 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
10539
105402002-03-11 Gerd Moellmann <gerd@gnu.org>
10541
10542 * xterm.c (note_mouse_movement): Put code for
10543 x_autoselect_window_p in #if 0.
10544
10545 * lread.c (Fload): Don't assume that message_with_string uses the
10546 string it is given like a C string.
10547
105482002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10549
10550 * xterm.h (x_session_check_input, x_session_initialize): Declared.
10551
10552 * xterm.c: (XTread_socket): Add call to x_session_check_input and
10553 x_session_have_connection.
10554 (x_initialize): Add call to x_session_initialize.
10555
10556 * termhooks.h (enum event_kind): Add save_session_event.
10557
10558 * keyboard.c: Add Emacs event save_session_event.
10559
10560 * emacs.c (main): Add call to syms_of_xsmfns.
10561
10562 * lisp.h: Declare syms_of_xsmfns as extern.
10563
10564 * config.in: Add HAVE_X_SM.
10565
10566 * Makefile.in (LIBXT): Add -lSM -lICE
10567 if HAVE_X_SM and not USE_X_TOOLKIT.
10568 (XOBJ): New file xsmfns.c added.
10569
10570 * xsmfns.c: New file for X session management.
10571
105722002-03-09 Jason Rumney <jasonr@gnu.org>
10573
10574 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
10575 read-only when setting modified time.
10576
105772002-03-08 Gerd Moellmann <gerd@gnu.org>
10578
10579 * xdisp.c (move_it_vertically_backward): At the end of the function,
10580 when moving forward by lines, treat terminal frames specially.
10581
10582 * keyboard.c (echo_char): Make sure to add a separator between
10583 keys even if echo_dash hasn't been called.
10584
10585 * xdisp.c: Use new string macros.
10586 (update_echo_area): Pass number of bytes to message3 instead of
10587 number of chars.
10588 (set_message_1): Don't access a string's size_byte directly.
10589 (decode_mode_spec_coding): Use number of bytes of eoltype string
10590 instead number of chars.
10591
10592 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
10593
105942002-03-08 Juanma Barranquero <lektu@terra.es>
10595
10596 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
10597 24-bit.
10598
105992002-03-06 Jason Rumney <jasonr@gnu.org>
10600
10601 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
10602
106032002-03-06 Gerd Moellmann <gerd@gnu.org>
10604
10605 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
10606 (cancel_echoing, echo_length, echo_truncate): Changed to
10607 work with new kboard definition.
10608 (echo_now): Use message3_nolog instead of message2_nolog.
10609
10610 * alloc.c (mark_kboards): Mark echo_string.
10611
10612 * keyboard.h (ECHOBUFSIZE): Removed.
10613 (struct kboard): Member echoptr removed, member echobuf renamed
10614 to echo_string.
10615
10616 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
10617 message3 instead of message2 to display the message using STRING's
10618 text properties.
10619
106202002-03-05 Andreas Schwab <schwab@suse.de>
10621
10622 * xdisp.c (hscroll_margin): Change to EMACS_INT.
10623
106242002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
10625
10626 * frame.c (default-frame-alist): Explain that setting it doesn't
10627 affect existing frames.
10628
106292002-03-05 Stefan Monnier <monnier@cs.yale.edu>
10630
10631 * indent.c (skip_invisible): Fix my brain fart.
10632
10633 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
10634
106352002-03-04 Stefan Monnier <monnier@cs.yale.edu>
10636
10637 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
10638 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
10639 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
10640 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
10641 and variables to use EMACS_INT instead of just int.
10642
10643 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
10644
106452002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
10646
10647 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
10648 environment, pass it down with corrected value.
10649
106502002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10651
10652 * lread.c (read_filtered_event): Do not call start_hourglass
10653 before returning.
10654
106552002-03-04 Juanma Barranquero <lektu@terra.es>
10656
10657 * w32term.c (x_display_and_set_cursor): Fix typo.
10658
106592002-03-03 Richard M. Stallman <rms@gnu.org>
10660
10661 * fileio.c (Fmake_temp_name): Doc fix.
10662
106632002-03-03 Gary Wong <gtw@gnu.org>
10664
10665 * termcap.c [!emacs]: Replace ospeed for building standalone
10666 libtermcap, for binary compatibility.
10667
10668 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
10669
106702002-03-03 Richard M. Stallman <rms@gnu.org>
10671
10672 * xrdb.c (file_p): Rename arg `path' to `filename'.
10673
10674 * abbrev.c (Fexpand_abbrev): Increment plist as use count
10675 only if it is an integer.
10676
10677 * xfns.c (png_load): Set screen_gamma based on f->gamma.
10678 If png_get_sRGB gives an answer, call png_set_gamma
10679 using the default image gamma value.
10680
10681 * lread.c (read1): When reading from a file, default string to
10682 multibyte only if it has some multibyte characters.
10683
10684 * print.c (print_object): Output multibyte chars 128...255
10685 using \x even if ! print_escape_multibyte.
10686
10687 * xdisp.c (display_mode_element): Move the places where
10688 bytepos, charpos, this, and lisp_string are set.
10689 Use lisp_string to set bytepos.
10690
10691 * xdisp.c (redisplay_internal):
10692 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
10693
10694 * xdisp.c (display_mode_element): Merge properties specified with
10695 :propertize onto those that come with the string.
10696
106972002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
10698
10699 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
10700 automatic-hscrolling. Users changed.
10701 <hscroll-margin>: Renamed from automatic-hscroll-margin.
10702 Users changed.
10703 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
10704
107052002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10706
10707 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
10708
107092002-03-02 Kim F. Storm <storm@cua.dk>
10710
10711 * window.c (Fminibuffer_selected_window): New function.
10712 (syms_of_window): Defsubr it.
10713
107142002-03-01 Kim F. Storm <storm@cua.dk>
10715
10716 * window.h (struct window): New member phys_cursor_width.
10717
10718 * window.c (make_window, replace_window): Init phys_cursor_width.
10719
10720 * xterm.c (x_display_and_set_cursor): Blink box cursor using
10721 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
10722
10723 * w32term.c (x_display_and_set_cursor): Blink box cursor using
10724 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
10725
10726 * lisp.h (GCPRO6): New macro.
10727
10728 * process.c (Fopen_network_stream): Use GCPRO6.
10729
107302002-03-01 Kim F. Storm <storm@cua.dk>
10731
10732 * process.c (Qconnect, Qfailed): New variables.
10733 (syms_of_process): Intern and staticpro them.
10734 (Fprocess_status): Document connect and failed return values.
10735 [NON_BLOCKING_CONNECT]: New conditional.
10736 (connect_wait_mask, num_pending_connects): New variables.
10737 (status_message): Convert Qfailed status.
10738 (Fopen_network_stream): Added support for non-blocking connect.
10739 New optional args: filter, sentinel, non_blocking. Doc updated.
10740 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
10741 (deactivate_process): Handle pending non-blocking connect.
10742 (wait_reading_process_input): Poll for status of non-blocking
10743 connects. Exec sentinel directly when connect succeeds.
10744 (status_notify): Don't read process output if not yet connected.
10745
107462002-02-28 Kim F. Storm <storm@cua.dk>
10747
10748 * window.c: (minibuf_selected_window): Renamed from
10749 Vminibuf_selected_window. Users changed.
10750 (syms_of_window): Staticpro it.
10751
107522002-02-26 Kim F. Storm <storm@cua.dk>
10753
10754 The following changes add a new Vminibuf_selected_window variable
10755 which is similar to Vminibuf_scroll_window, but which is only set
10756 on entry to the minibuffer (from a non-minibuffer window):
10757
10758 * window.c: (Vminibuf_selected_window): New variable.
10759 (struct save_window_data): New member minibuf_selected_window.
10760 (Fset_window_configuration): Restore Vminibuf_selected_window.
10761 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
10762 Set minibuf_scroll_window member to nil if minibuf_level is 0.
10763 (compare_window_configurations): Compare minibuf_selected_window.
10764
10765 * window.h: (Vminibuf_selected_window): Declare extern.
10766
10767 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
10768 entry to minibuffer or on entry from a non-minibuffer window.
10769
10770 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
10771 Vminibuf_selected_window instead of Vminibuf_scroll_window.
10772
10773 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
10774 instead of Vminibuf_scroll_window when deciding in which window
10775 the region should be highlighted. Consequently, the region remains
10776 highlighteded even when a completion buffer is also displayed.
10777
107782002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
10779
10780 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
10781
10782 * xselect.c (Qcompound_text_with_extensions): Renamed from
10783 Qcompound_text_no_extensions.
10784 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
10785
107862002-02-26 Juanma Barranquero <lektu@terra.es>
10787
10788 * w32proc.c (syms_of_ntproc): Doc fix.
10789
107902002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10791
10792 * intervals.h: Include "dispextern.h" unconditionally.
10793
107942002-02-24 Jason Rumney <jasonr@gnu.org>
10795
10796 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
10797 and disp-table.elc.
10798 (lisp): Add emacs-lisp/backquote.elc.
10799
108002002-02-24 Kim F. Storm <storm@cua.dk>
10801
10802 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
10803 The validation of the event type was too strict as it didn't
10804 allow string events; buffer names are used in bindings for
10805 menu-bar-select-buffer (see `menu-bar-update-buffers').
10806
108072002-02-23 Kim F. Storm <storm@cua.dk>
10808
10809 The following changes rework my patch of 2002-02-06 which
10810 added command remapping by entering the commands directly into
10811 the keymaps. Now, command remapping uses an explicit `remap'
10812 prefix in the keymaps, i.e. [remap COMMAND].
10813
10814 * keymap.c (Qremap, remap_command_vector): New variables.
10815 (is_command_symbol): Removed function.
10816 (Fdefine_key): No longer accept a symbol for KEY.
10817 Added validation of [remap COMMAND] argument for KEY.
10818 The DEF is no longer required to be a symbol when remapping a command.
10819 (Fremap_command): New function to remap command through keymaps.
10820 (Flookup_key): Perform command remapping initiated by
10821 Fremap_command directly for speed.
10822 (Fkey_binding): Use Fremap_command for command remapping.
10823 (where_is_internal): Handle new command remapping representation.
10824 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
10825 staticpro them. Defsubr Fremap_command.
10826
10827 * keymap.h (Fremap_command): Declare extern.
10828 (is_command_symbol): Remove extern.
10829
10830 * keyboard.c (command_loop_1): Use Fremap_command for command
10831 remapping; now try command remapping for all symbols.
10832
108332002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
10834
10835 * coding.h (run_pre_post_conversion_on_str): Add prototype.
10836
108372002-02-23 Jason Rumney <jasonr@gnu.org>
10838
10839 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
10840 on the string before encoding it.
10841 (Fw32_get_clipboard_data): Run post-read-conversion on the string
10842 after decoding it.
10843
10844 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
10845
108462002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10847
10848 * w32term.c (enter_timestamp): Remove unused static variable to
10849 prevent warning.
10850
10851 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
10852
108532002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
10854
10855 * w16select.c (Fw16_get_clipboard_data): Fix last change.
10856
10857 * xselect.c (selection_data_to_lisp_data): Fix last change.
10858
108592002-02-22 Jason Rumney <jasonr@gnu.org>
10860
10861 * w32term.h (struct w32_output): New member menu_command_in_progress.
10862
10863 * w32menu.c (menubar_selection_callback): Free the menu and
10864 clear the menu_command_in_progress flag.
10865
10866 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
10867 (menu_free_timer): New variable.
10868 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
10869 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
10870 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
10871 menu command is in progress.
10872 <WM_COMMAND>: Set the menu_command_in_progress flag.
10873 Kill any menu_free_timer that is running.
10874
10875 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
10876 Call ExtTextOutA rather than ExtTextOut.
10877
108782002-02-22 Eli Zaretskii <eliz@gnu.org>
10879
10880 * puresize.h (BASE_PURESIZE): Increase to 755000.
10881
108822002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10883
10884 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
10885 on the string before encoding it.
10886 (Fw16_get_clipboard_data): Run post-read-conversion on the string
10887 after decoding it.
10888
108892002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10890
10891 Support for ICCCM Extended Segments in X selections:
10892
10893 * xselect.c <Qcompound_text_no_extensions>: New variable.
10894 (syms_of_xselect): Intern and staticpro it.
10895 (selection_data_to_lisp_data): Run post-read-conversion on decoded
10896 selection text.
10897 (lisp_data_to_selection_data): If next-selection-coding-system is
10898 compound-text-no-extensions, set the type of selection to be
10899 compound-text.
10900
10901 * xterm.h (x_encode_text): Update prototype.
10902
10903 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
10904 callers changed. If SELECTIONP is non-zero, run the
10905 pre-write-conversion function before encoding the selection text.
10906
109072002-02-21 Kim F. Storm <storm@cua.dk>
10908
10909 * frame.c (syms_of_frame): Change mouse-highlight default to t.
10910
10911 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
10912 Correct composing of language-change event.
10913
109142002-02-20 Kim F. Storm <storm@cua.dk>
10915
10916 * keyboard.c (menu_bar_items): Don't include keymap or local-map
10917 bindings at PT when building menu (the menu is not updated often
10918 enough for this to work reliable).
10919 (tool_bar_items): Likewise.
10920 (current_active_maps): Removed unused (and buggy) function.
10921
109222002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
10923
10924 * xfns.c (gif_load): Use correct width and height for GIF images.
10925
109262002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
10927
10928 * floatfns.c (Fatan): Accept an optional second arg and call
10929 atan2 if passed 2 args.
10930
109312002-02-18 Jason Rumney <jasonr@gnu.org>
10932
10933 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
10934
109352002-02-17 Jason Rumney <jasonr@gnu.org>
10936
10937 * w32term.c (x_autoselect_window_p): New variable.
10938 (syms_of_w32term): DEFVAR_BOOL and initialize it.
10939 (note_mouse_movement): Use it.
10940
10941 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
10942
10943 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
10944
10945 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
10946 New variables.
10947 (syms_of_w32fns): Intern and staticpro them.
10948 (x_frame_parms) <"fullscreen">: New parameter.
10949 (x_fullscreen_move, x_set_fullscreen): New functions.
10950 (x_set_frame_parameters): Support Qfullscreen.
10951 (x_real_positions): Save x/y_pixels_diff frame params.
10952 (x_figure_window_size): Support full-screen frames.
10953 (Fx_create_frame): Default the fullscreen parameter.
10954
10955 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
10956 (x_fullscreen_adjust): New functions.
10957 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
10958 fullscreen. Call x_check_fullscreen_move, and set the
10959 want_fullscreen member of output_data.w32
10960 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
10961
10962 * w32term.h: New enum for FULLSCREEN_* constants.
10963 (struct w32_output): New members want_fullscreen, x_pixels_diff,
10964 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
10965 (x-fullscreen-adjust): New prototype.
10966
109672002-02-17 Kim F. Storm <storm@cua.dk>
10968
10969 * frame.c: (Vmouse_highlight): New variable.
10970 (syms_of_frame): DEFVAR_LISP it.
10971
10972 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 10973
048addec 10974 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 10975
048addec
JD
10976 * xterm.c (disable_mouse_highlight): Removed variable.
10977 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
10978 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
10979 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
10980 and on after keyboard input.
10981 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 10982
048addec 10983 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 10984
048addec
JD
10985 * msdos.c (disable_mouse_highlight): Removed variable.
10986 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
10987 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
10988 (internal_terminal_init): Initialize mouse_face_hidden.
10989 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
10990 and on after keyboard input.
4f1b1854 10991
048addec 10992 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 10993
048addec
JD
10994 * w32term.c (disable_mouse_highlight): Removed variable.
10995 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
10996 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
10997 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
10998 and on after keyboard input.
10999 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 11000
048addec 110012002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 11002
048addec
JD
11003 * msdos.c (last_mouse_window): New variable.
11004 (dos_rawgetc): Fix last change--if the mouse is in the same window
11005 as recorded in last_mouse_window, don't select this window.
5cb6905d 11006
048addec 11007 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 11008
048addec
JD
11009 * msdos.c (x_autoselect_window_p): New variable.
11010 (syms_of_msdos): Defvar it.
11011 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
11012 which the last mouse movement occured, unless it is already selected.
437dfb9f 11013
048addec
JD
11014 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
11015 New variables.
11016 (syms_of_xdisp): DEVFAR them.
11017 (hscroll_window_tree): Use automatic_hscroll_margin and
11018 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 11019
048addec 110202002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 11021
048addec
JD
11022 * xterm.c (x-autoselect-window): New variable.
11023 (note_mouse_movement): Use it.
9f696a00 11024
048addec 11025 * keyboard.c: Do not include "systime.h" twice.
d57966d7 11026
048addec 110272002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 11028
048addec 11029 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 11030
048addec 11031 * alloc.c (NSTATICS): Increase to 1280.
74779f52 11032
048addec 110332002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 11034
048addec 11035 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 11036
048addec
JD
11037 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
11038 (Vx_super_keysym): New variables.
11039 (syms_of_xterm): DEFVAR_LISP them.
11040 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
11041 variables to determine which keys to use for the various modifiers.
a474d59c 11042
048addec 110432002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 11044
048addec
JD
11045 * window.c: (Vmode_line_in_non_selected_windows): Removed.
11046 (mode_line_in_non_selected_windows): New variable.
11047 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 11048
048addec
JD
11049 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
11050 Use mode_line_in_non_selected_windows.
11051 (mode_line_in_non_selected_windows): Declare extern.
11052 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 11053
048addec 110542002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 11055
048addec
JD
11056 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
11057 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
11058 (Fclear_this_command_keys): Doc fixes.
2d10309f 11059
048addec
JD
11060 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
11061 (update_face_from_frame_parameter): Increment face_change_count
11062 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 11063
048addec
JD
11064 * xdisp.c (QCpropertize): New variable.
11065 (mode_line_proptrans_alist): New variable.
11066 (display_mode_element): New arg PROPS; all calls changed.
11067 Implement this, for strings.
11068 Handle literal output of strings by sharing the
11069 main-line code for strings, using local var `literal'.
11070 Handle :propertize feature.
11071 (syms_of_xdisp): Initialze and staticpro QCpropertize and
11072 mode_line_proptrans_alist.
0b1e6b54 11073
048addec 110742002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 11075
048addec
JD
11076 * window.c: (Vmode_line_in_non_selected_windows): New variable.
11077 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 11078
048addec
JD
11079 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
11080 (CURRENT_MODE_LINE_FACE_ID): Use it.
11081 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 11082
048addec
JD
11083 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
11084 to get mode line face.
e17144de 11085
048addec 110862002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11087
048addec
JD
11088 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
11089 variables; cus-start.el doesn't need them anymore.
44368f8f 11090
048addec 110912002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 11092
048addec
JD
11093 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
11094 reduction. This fixes a display problem where stray newlines were
11095 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 11096
048addec 110972002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 11098
048addec 11099 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 11100
048addec 11101 * xdisp.c (display_mode_lines): Fix last change.
453c5510 11102
048addec 111032002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 11104
048addec
JD
11105 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
11106 match each other.
11107 (w32_load_system_font): Prevent Cleartype fonts from loading.
11108 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 11109
048addec 111102002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 11111
048addec
JD
11112 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
11113 (CURRENT_MODE_LINE_HEIGHT): Use it.
11114 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11115
048addec
JD
11116 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
11117 (pos_visible_p, handle_face_prop): Likewise.
11118 (display_mode_lines): Likewise, but for the real selected window.
11119 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 11120
048addec
JD
11121 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
11122 in non-selected windows.
11123 (realize_basic_faces): Realize it.
11124 (syms_of_term): Intern and staticpro it.
308dd672 11125
048addec 111262002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 11127
048addec
JD
11128 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
11129 Changed mail addresses to emacs-devel@gnu.org.
308dd672 11130
048addec 111312002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 11132
048addec
JD
11133 * fileio.c (Fsubstitute_in_file_name): If the file name includes
11134 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 11135
048addec 11136 * floatfns.c (Fround): Doc fix.
3c1e6b46 11137
048addec 111382002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 11139
048addec 11140 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 11141
048addec 111422002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 11143
048addec 11144 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 11145
048addec 111462002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 11147
048addec
JD
11148 * keymap.c (where_is_internal): Only check whether definition is
11149 remapped if it fulfills is_command_symbol.
0065bb74 11150
048addec 111512002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 11152
048addec 11153 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 11154
048addec 11155 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 11156
048addec 111572002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 11158
048addec
JD
11159 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
11160 defining command remapping. Doc updated.
11161 (Flookup_key): Remap command through keymap if KEY is a symbol.
11162 (is_command_symbol): New function.
11163 (Fkey_binding): Use it. New optional argument NO-REMAP.
11164 Doc updated. Callers changed. Perform command remapping via
11165 recursive call unless that arg is non-nil.
11166 (where_is_internal): New argument no_remap. Callers changed.
11167 Call recursively to find original key bindings for a remapped
11168 comand unless that arg is non-nil.
11169 (Fwhere_is_internal): New optional argument NO-REMAP.
11170 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 11171
048addec
JD
11172 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
11173 (is_command_symbol): Added prototype.
0d8466cc 11174
048addec
JD
11175 * keyboard.c (Vthis_original_command): New variable.
11176 (syms_of_keyboard): DEFVAR_LISP it.
11177 (command_loop_1): Set it, and perform command remapping.
15fff01d 11178
048addec 111792002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 11180
048addec 11181 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 11182
048addec 111832002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 11184
048addec 11185 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 11186
048addec 111872002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 11188
048addec 11189 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 11190
048addec 111912002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 11192
048addec 11193 * filelock.c (S_ISLNK): Define if not defined.
3a232704 11194
048addec 111952002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 11196
048addec 11197 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 11198
048addec
JD
11199 * lread.c (read1): Redesign strategy for force_multibyte and
11200 force_singlebyte. Now is_multibyte records whether read_buffer
11201 is multibyte. Encountering any multibyte character makes it so.
4e02881b 11202
048addec 112032002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 11204
048addec
JD
11205 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
11206 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 11207
048addec 112082002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 11209
048addec
JD
11210 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
11211 latter never being defined on GNU/Linux.
749f499f 11212
048addec 112132002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 11214
048addec
JD
11215 * xfaces.c (realize_default_face): Don't set the weight and slant of
11216 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 11217
048addec 112182002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 11219
048addec
JD
11220 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
11221 Call cancel_hourglass unconditionally.
d0fd26dd 11222
048addec
JD
11223 * eval.c (Fsignal): Remove duplicated declaration of
11224 the variable `display_hourglass_p'.
b4c45162 11225
048addec 112262002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 11227
048addec 11228 * editfns.c (region_limit): Nicer error message.
c95eaa61 11229
048addec
JD
11230 * coding.c (decode_composition_emacs_mule):
11231 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 11232
048addec
JD
11233 * callint.c (check_mark): New arg to specify clearer error message.
11234 Callers changed.
c95eaa61 11235
048addec 112362002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 11237
048addec 11238 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 11239
048addec 112402002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 11241
048addec
JD
11242 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
11243 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
11244 Fix doc-strings.
c95eaa61 11245
048addec 112462002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 11247
048addec 11248 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 11249
048addec
JD
11250 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
11251 and scroll_up_aggressively.
c95eaa61 11252
048addec 112532002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 11254
048addec 11255 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 11256
048addec 112572002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 11258
048addec
JD
11259 * textprop.c (Fnext_property_change, Fnext_single_property_change)
11260 (Fprevious_property_change, Fprevious_single_property_change):
11261 Stay within the narrowed-buffer boundaries.
e2c3786a 11262
048addec 112632002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 11264
048addec
JD
11265 * term.c (Ftty_display_color_cells): New function.
11266 (syms_of_term): Defsubr it.
11267 (Ftty_display_color_cells, Ftty_display_color_p): Change the
11268 argument name to DISPLAY. Doc fix.
bf794306 11269
048addec
JD
11270 * dispextern.h: Add prototype for set_tty_color_mode and
11271 tty_setup_colors.
bf794306 11272
048addec 112732002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 11274
048addec
JD
11275 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
11276 If region left to draw is not what was expected, mark the frame as
11277 garbaged.
62582985 11278
048addec
JD
11279 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
11280 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 11281
048addec 112822002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 11283
048addec
JD
11284 * w32term.c (x_update_window_begin): Only hide caret if
11285 w32_use_visible_system_caret is set.
11286 (x_update_window_end): Only show caret if
11287 w32_use_visible_system_caret is set.
11288 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 11289
048addec 11290 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 11291
048addec 112922002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 11293
048addec
JD
11294 * unexelf.c (unexec): Define n so as to cause compilation error
11295 for the code where people have often written n instead of nn.
1e9a6186 11296
048addec 11297 * .gdbinit (hookpost-run): Defined.
1e9a6186 11298
048addec 112992002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 11300
048addec 11301 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 11302
048addec 113032002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 11304
048addec
JD
11305 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
11306 if fullscreen is being set.
7c75be36 11307
048addec 113082002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 11309
048addec
JD
11310 * minibuf.c (Fminibuffer_contents)
11311 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
11312 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 11313
048addec 113142002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 11315
048addec 11316 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 11317
048addec 113182002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 11319
048addec
JD
11320 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
11321 height before comparison.
11322 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 11323
048addec 113242002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 11325
048addec
JD
11326 * w32term.c (w32_system_caret_width): Remove.
11327 (w32_use_visible_system_caret): New user flag.
11328 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
11329 Windows reports a screen reader running.
11330 (x_update_window_begin): Hide the system caret.
11331 (x_update_window_end): Show the system caret.
11332 (x_display_and_set_cursor): Don't draw a cursor when
11333 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 11334
048addec
JD
11335 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
11336 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
11337 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
11338 the user requests it. Use system default width when creating.
11339 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 11340
048addec
JD
11341 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
11342 New window messages.
905cc05a 11343
048addec 113442002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 11345
048addec 11346 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 11347
048addec 113482002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 11349
048addec 11350 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 11351
048addec 113522002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 11353
048addec 11354 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 11355
048addec 113562002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 11357
048addec
JD
11358 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
11359 that Windows returns. If a double check fails, try to guess how
11360 ExtTextOut is going to act.
4d0fa4f3 11361
048addec
JD
11362 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
11363 in place of stricmp.
11364 (w32_list_synthesized_fonts): Removed.
11365 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
11366 (struct enumfont_t): New element; list.
11367 (enum_font_cb2): List all style and charset variations of a font.
11368 (Fw32_select_font): New optional argument; include_proportional.
11369 Exclude vertical fonts. Exclude proportional fonts unless
11370 include_proportional is non-nil.
11371 (w32_enable_synthesized_fonts): Change to a boolean.
11372 (Fw32_send_sys_command): Doc fix.
493faf20 11373
048addec 113742002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 11375
048addec
JD
11376 * dispnew.c (update_frame): Move the variable `tem' to the block
11377 where it is used.
4971e491 11378
048addec 113792002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 11380
048addec
JD
11381 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
11382 call to face-set-after-frame-default.
4971e491 11383
048addec 113842002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 11385
048addec
JD
11386 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
11387 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 11388
048addec 113892002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 11390
048addec
JD
11391 * window.c (enlarge_window): When exceeding size of parent,
11392 directly delete all the siblings instead of trying to resize it.
201c831a 11393
048addec 113942002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 11395
048addec 11396 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 11397
048addec 113982002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 11399
048addec 11400 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 11401
048addec 114022002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 11403
048addec
JD
11404 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
11405 is invisible. This can happen if cursor is on top line of a
11406 window, and we switch to a buffer with a header line.
d77fbc16 11407
048addec 11408 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 11409
048addec 114102002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 11411
048addec
JD
11412 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
11413 `dont_resize' only when used.
61e3b944 11414
048addec 11415 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 11416
048addec 114172002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 11418
048addec
JD
11419 * xdisp.c (display_mode_element): When computing charpos, depend
11420 on multibyteness of elt, not the text in field.
8af01033 11421
048addec 114222002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 11423
048addec
JD
11424 * buffer.c (Fkill_all_local_variables):
11425 Increment `update_mode_lines' only once.
7363986a 11426
048addec 114272002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 11428
048addec
JD
11429 * lisp.h (adjust_after_replace_noundo)
11430 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 11431
048addec 11432 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 11433
048addec 114342002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 11435
048addec
JD
11436 Support for the --color command-line argument and tty-color-mode
11437 frame parameter:
f1a85b89 11438
048addec
JD
11439 * term.c (tty_default_color_capabilities, tty_setup_colors)
11440 (set_tty_color_mode): New functions.
11441 (term_init): Call tty_default_color_capabilities.
11442 (Qtty_color_mode_alist): New variable.
11443 (syms_of_term): Intern and staticpro it.
f1a85b89 11444
048addec
JD
11445 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
11446 frames.
11447 (do_switch_frame): For termcap frames, switch the tty
11448 color mode as specified by the frame's parameters.
11449 (Qtty_color_mode): New variable.
11450 (syms_of_frame): Intern and staticpro it.
3a62677f 11451
048addec
JD
11452 * emacs.c (USAGE2): Add the --color option.
11453 (standard_args): Ditto.
72244db2 11454
048addec
JD
114552002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11456
11457 * xterm.h (struct x_output): New members want_fullscreen,
11458 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
11459 y_pixels_outer_diff.
11460 New enum for FULLSCREEN_* constants.
11461 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
11462 is NULL.
11463 (x_fullscreen_adjust): Add prototype.
3a62677f 11464
048addec
JD
11465 * emacs.c (USAGE2): Add the new full-screen arguments.
11466 (standard_args): Ditto.
3a62677f 11467
048addec
JD
11468 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
11469 New variables.
11470 (syms_of_xfns): Intern and staticpro them.
11471 (x_frame_parms) <"fullscreen">: New parameter.
11472 (x_fullscreen_move, x_set_fullscreen): New functions.
11473 (x_set_frame_parameters): Support for Qfullscreen.
11474 (x_real_positions): More accurate computation of the frame position.
11475 (x_figure_window_size): Support full-screen frames.
11476 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 11477
048addec
JD
11478 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
11479 (XTread_socket) <Expose>: Call x_check_fullscreen.
11480 <ConfigureNotify>: Don't resize to fullscreen.
11481 Call x_check_fullscreen_move, and set the want_fullscreen member of
11482 output_data.x.
3a62677f 11483
048addec 114842002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 11485
048addec
JD
11486 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
11487 for mice with more than 3 buttons.
b8523839 11488
048addec
JD
11489 * w32term.c (parse_button): New parameter xbutton. Callers changed.
11490 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 11491
048addec
JD
11492 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
11493 (syms_of_w32fns): DEFVAR_BOOL it.
11494 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 11495
048addec 114962002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 11497
048addec 11498 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 11499
048addec 115002002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 11501
048addec 11502 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 11503
048addec 115042002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 11505
048addec
JD
11506 * .gdbinit (xbuffer): Remove address operator since data is now a
11507 pointer.
c93674bb 11508
048addec 115092002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 11510
048addec 11511 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 11512
048addec 11513 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 11514
048addec 115152002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 11516
048addec
JD
11517 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
11518 when checking for multiple frames.
91175673 11519
048addec 115202002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 11521
048addec
JD
11522 * window.c (delete_window): Rewrite the code for changing the
11523 selected window to handle the case where WINDOW is not a leaf.
91175673 11524
048addec 115252002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 11526
048addec
JD
11527 * process.c (send_process): Set src_multibyte to 1 after the call
11528 top setup_coding_system, not before the call.
e0fead5d 11529
048addec 115302002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 11531
048addec
JD
11532 * xmenu.c (set_frame_menubar, xmenu_show):
11533 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 11534
048addec
JD
11535 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
11536 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 11537
048addec 115382002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 11539
048addec 11540 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 11541
048addec 11542 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 11543
048addec 11544 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 11545
048addec 115462002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 11547
048addec
JD
11548 * insdel.c (make_gap_larger): Make sure buffer size does not
11549 overflow range of int.
62854fe2 11550
048addec 115512002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 11552
048addec
JD
11553 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
11554 OVERLAPS_P.
656f46bb 11555
048addec 11556 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 11557
048addec
JD
11558 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
11559 to the left or to the right of the pointer, put it against
11560 the left screen edge.
11561 (x_frame_parms): Add missing braces around initializer.
036e218d 11562
048addec
JD
11563 * w32term.c (x_setup_relief_colors): Don't compute an image's
11564 background color if it doesn't have a Pixmap.
11565 (notice_overwritten_cursor): Don't depend on
11566 output_cursor and updated_area. Compare pixel coordinates with
11567 window's cursor pixel coordinates.
11568 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11569 Call notice_overwritten_cursor with new arg list.
11570 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11571 unconditionally.
11572 (x_draw_image_relief): Use predefined macro instead of
11573 constant when the value of `tool_bar_button_relief' is negative.
036e218d 11574
048addec 11575 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 11576
048addec 115772002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 11578
048addec 11579 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 11580
048addec 115812002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 11582
048addec
JD
11583 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
11584 (Fkey_binding): Try the `keymap' property map first.
11585 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
11586 minor mode bindings.
90647b07 11587
048addec 115882002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 11589
048addec 11590 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 11591
048addec 115922002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 11593
048addec
JD
11594 * keyboard.c (read_key_sequence): Handle the keymap property
11595 before minor mode maps.
9fbc32aa 11596
048addec
JD
11597 * editfns.c (Fformat): Update thissize from field_width
11598 based on the actual width, in the string case.
036e218d 11599
048addec 116002002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 11601
048addec
JD
11602 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
11603 when used as truth value to prevent gcc warnings.
9fbc32aa 11604
048addec
JD
11605 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
11606 * w32proc.c: Include <config.h>.
9fbc32aa 11607
048addec 116082002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 11609
048addec
JD
11610 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
11611 not EMACS_INT, to make them compatible with DEFVAR_INT.
11612 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 11613
048addec 116142002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 11615
048addec
JD
11616 * print.c (print_object): Test print_escape_nonascii only for
11617 unibyte strings.
11618 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
11619 when outputting to a multibyte buffer.
9fbc32aa 11620
048addec 116212001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 11622
048addec
JD
11623 * print.c (print_object): In multibyte string, use hex escapes.
11624 Use octal only for unibyte strings.
11625 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 11626
048addec
JD
11627 * lread.c (read_escape): New arg BYTEREP for reporting whether
11628 escape forces unibyte or multibyte.
11629 (read1): When reading a string, take note of that info.
0142178a 11630
048addec 116312001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 11632
048addec
JD
11633 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
11634 comparison to test lisp value returned by Fget.
d4824a5d 11635
048addec 116362001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 11637
048addec 11638 * lisp.h (max_specpdl_size): Add declaration.
b1356234 11639
048addec 11640 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 11641
048addec
JD
11642 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
11643 Handle modifier bits. Correct typo in error message.
99e380ee 11644
048addec 116452001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 11646
048addec
JD
11647 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
11648 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
11649 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
11650 Update calls to Fdefine_abbrev.
11651 (write_abbrev): Update for changed data format.
11652 Don't list "system" abbrevs.
11653 (Fexpand_abbrev): Update use count with new data format.
11654 (describe_abbrev): Update for changed data format.
11655 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 11656
048addec 11657 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 11658
048addec 11659 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 11660
048addec
JD
11661 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
11662 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 11663
048addec
JD
11664 * keymap.c (Flookup_key): Error message if key has wrong data type.
11665 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
11666 (exclude_key): New variable.
59a86c99 11667
048addec 116682001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 11669
048addec
JD
11670 * xterm.c (x_setup_relief_colors): Don't compute an image's
11671 background color if it doesn't have a Pixmap.
eb77a5f4 11672
048addec
JD
11673 * xterm.c (notice_overwritten_cursor): Don't depend on
11674 output_cursor and updated_area. Compare pixel coordinates with
11675 window's cursor pixel coordinates.
11676 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
11677 Call notice_overwritten_cursor with new arg list.
11678 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
11679 unconditionally.
eb77a5f4 11680
048addec
JD
11681 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
11682 height of the cursor line to the amount to scroll.
eb77a5f4 11683
048addec 116842001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 11685
048addec
JD
11686 * intervals.c (set_point_both): The position after an invisible,
11687 intangible character is not an acceptable stopping point.
bb313871 11688
048addec 116892001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 11690
048addec
JD
11691 * window.c (enlarge_window): In new preserve_before code, convert
11692 CURBEG from lisp object to integer before doing arithmetic.
6052529b 11693
048addec 116942001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 11695
048addec 11696 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 11697
048addec 116982001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 11699
048addec
JD
11700 * keyboard.c (record_char): Ignore duplicate help-echo events only
11701 separated by mouse-movement. When tracking mouse, only record
11702 first and last mouse-movement event in same window.
11703 Don't record mouse-movement events in keyboard macros.
3ce081f5 11704
048addec 117052001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 11706
048addec
JD
11707 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
11708 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 11709
048addec
JD
11710 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
11711 instead of Fstring_as_unibyte.
9fabb2f5 11712
048addec 117132001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 11714
048addec 11715 The following changes remove mocklisp support:
9fabb2f5 11716
048addec 11717 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 11718
048addec
JD
11719 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
11720 `Qmocklisp' and `Qmocklisp_arguments'.
11721 Remove prototype of syms_of_mocklisp.
2fa0eedf 11722
048addec 11723 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 11724
048addec
JD
11725 * callint.c: Do not include mocklisp.h.
11726 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 11727
048addec
JD
11728 * eval.c: Remove variables `Qmocklisp_arguments',
11729 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
11730 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
11731 Do not test for mocklisp case.
11732 (Fwhile): Remove unused variable `tem'.
11733 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 11734
048addec 11735 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 11736
048addec 11737 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 11738
048addec 11739 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 11740
048addec 117412001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 11742
048addec
JD
11743 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
11744 to the left or to the right of the pointer, put it against
11745 the left screen edge.
6108b49c 11746
048addec 117472001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 11748
048addec
JD
11749 * Makefile.in (distclean): Remove .gdbinit if we are building
11750 outside the source tree.
5eea19a4 11751
048addec 117522001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 11753
048addec 11754 * w32.c (emacs_root_dir): New function.
5eea19a4 11755
048addec 11756 * msdos.c (emacs_root_dir): New function.
5eea19a4 11757
048addec
JD
11758 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
11759 of the current drive as the fallback for default_directory.
438e57dd 11760
048addec
JD
11761 * dired.c (file_name_completion): Run the elements of
11762 completion-ignored-extensions through ENCODE_FILE.
438e57dd 11763
048addec
JD
11764 * lisp.h (scmp): Remove prototype, since it's now a static
11765 function private to dired.c.
c88e5347 11766
048addec 117672001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 11768
048addec
JD
11769 * dired.c (scmp): Function moved from minibuf.c.
11770 Delete multibyte handling--used only on encoded strings.
59ce1461 11771
048addec 11772 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 11773
048addec 11774 * fns.c (merge): Add QUIT call.
59ce1461 11775
048addec 117762001-12-18 Dave Love <fx@gnu.org>
8727d588 11777
048addec
JD
11778 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
11779 language/georgian.el.
8727d588 11780
048addec 117812001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 11782
048addec
JD
11783 * Makefile.in (lisp, shortlisp): Synchronize with changes to
11784 lisp/Makefile.in:DONTCOMPILE.
cc63037e 11785
048addec 117862001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 11787
048addec
JD
11788 * xdisp.c (window_box_height): Do not return negative values.
11789 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 11790
048addec 11791 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 11792
048addec 11793 * term.c (keys): Likewise.
deece6f5 11794
048addec 11795 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 11796
048addec 117972001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 11798
048addec
JD
11799 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
11800 patch (COMPOSING_P, not COMPOSING).
28ff4293 11801
048addec 118022001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 11803
048addec 11804 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 11805
048addec
JD
11806 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
11807 before calling decode_coding.
9b46de40 11808
048addec 11809 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 11810
048addec
JD
11811 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
11812 instead of only for COMPOSITION_DISABLED.
9b46de40 11813
048addec 118142001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 11815
048addec 11816 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 11817
048addec 11818 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 11819
048addec
JD
11820 * buffer.h (struct buffer): New field `display_error_modiff'.
11821 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 11822
048addec 11823 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 11824
048addec
JD
11825 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
11826 Call redisplay_window, but not if display_error_modiff field says no.
11827 (redisplay_window_error): New function.
11828 (displayed_buffer): New variable.
11829 (redisplay_internal, redisplay_windows): Call the new functions
11830 instead of redisplay_window directly.
2cd23960 11831
048addec 118322001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 11833
048addec 11834 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 11835
048addec 118362001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 11837
048addec
JD
11838 * makefile.w32-in (EMACSLOADPATH): Define.
11839 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
11840 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 11841
048addec 118422001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 11843
048addec
JD
11844 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
11845 parameter have a numeric value all the time.
f6fa0866 11846
048addec 11847 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 11848
048addec 118492001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 11850
048addec 11851 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 11852
048addec
JD
11853 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
11854 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 11855
048addec 118562001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 11857
048addec
JD
11858 * xdisp.c (move_it_vertically_backward): Change heuristic
11859 for the case that we didn't move far enough initially.
91c153e2 11860
048addec
JD
11861 * window.c (Frecenter): Simplify computation in the case of window
11862 system frames and ARG < 0; use window_box_height.
65b7d3e7 11863
048addec 118642001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 11865
048addec
JD
11866 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
11867 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 11868
048addec 118692001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 11870
048addec
JD
11871 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
11872 arg is negative.
be676094 11873
048addec 118742001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 11875
048addec
JD
11876 * m/hp800.h: Split the __hpux conditional into the parts
11877 that are right for GNU/Linux too and the parts that are not.
11878 Use the former if GNU_LINUX.
11879 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 11880
048addec 11881 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 11882
048addec 118832001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 11884
048addec
JD
11885 * macros.c, msdos.c, w16select.c: Change doc-string comments to
11886 `new style' [w/`doc:' keyword].
032a857d 11887
048addec 118882001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 11889
048addec
JD
11890 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
11891 before using.
b6270150 11892
048addec 118932001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 11894
048addec
JD
11895 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
11896 keyword].
98cbb9fa 11897
048addec 118982001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 11899
048addec 11900 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 11901
048addec 11902 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 11903
048addec 119042001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 11905
048addec
JD
11906 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
11907 Add comment to explain where the struct came from.
11908 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
11909 (add_menu_item): Process pop-up menus first to avoid memory leak.
11910 (add_menu_item, w32_menu_display_help): Use `help' field as
11911 Lisp_Object.
11912 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 11913
048addec 119142001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 11915
048addec 11916 * COPYING: Moved back.
fa336b91 11917
048addec
JD
11918 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
11919 Add parentheses around && within ||.
077907d4 11920
048addec 11921 * indent.c (compute_motion): Likewise.
aa2af83a 11922
048addec 11923 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 11924
048addec
JD
11925 * coding.c (setup_coding_system, shrink_encoding_region)
11926 (Fdecode_sjis_char): Likewise.
60a653f1 11927
048addec 119282001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 11929
048addec
JD
11930 * xdisp.c (display_mode_element): Don't read past end of string if
11931 it ends with '%'.
60a653f1 11932
048addec
JD
11933 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
11934 can hold.
60a653f1 11935
048addec
JD
11936 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
11937 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
11938 type changed to Lisp_Object.
11939 (syms_of_data): DEFVAR_LISP them.
60a653f1 11940
048addec 119412001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 11942
048addec
JD
11943 * callproc.c (init_callproc): Set Vdata_directory based on the source
11944 location whenever Emacs was run uninstalled.
60a653f1 11945
048addec 119462001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 11947
048addec
JD
11948 * config.in (HAVE_WORKING_VFORK): New #undefs.
11949 * process.c (create_process):
11950 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
11951 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
11952 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
11953 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
11954 * m/intel386.h (HAVE_VFORK): Likewise.
11955 * m/mips-siemens.h (HAVE_VFORK): Likewise.
11956 * m/mips.h (HAVE_VFORK): Likewise.
11957 * s/freebsd.h (vfork): Remove #define.
11958 * s/lynxos.h (HAVE_VFORK): Remove #undef.
11959 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 11960
048addec 119612001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 11962
048addec
JD
11963 * s/hpux10.h (random): Add undef.
11964 (HAVE_RANDOM): Define it just once.
60a653f1 11965
048addec 119662001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 11967
048addec 11968 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 11969
048addec 119702001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 11971
048addec
JD
11972 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
11973 scroll bars of the frame before deleting the frame itself. If the
11974 frame has a widget, delete the frame with XtDestroyWidget, and do
11975 not call XDestroyWindow before that.
60a653f1 11976
048addec 119772001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 11978
048addec 11979 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 11980
048addec 11981 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 11982
048addec 119832001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 11984
048addec
JD
11985 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
11986 excessively large.
60a653f1 11987
048addec
JD
11988 * insdel.c (make_gap_larger): New function.
11989 (make_gap_smaller): New function.
11990 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
11991 Call make_gap_smaller if arg is negative.
60a653f1 11992
048addec 119932001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 11994
048addec
JD
11995 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
11996 Pass a dummy argument when calling interrupt_signal.
11997 (parse_menu_item): Mark disabled items before checking for empty def.
11998 (read_char_minibuf_menu_prompt): Make safety more visible.
11999 (read_key_sequence): Add a `first_unbound' variable.
12000 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
12001 unbound prefix as soon as we can detect it.
60a653f1 12002
048addec
JD
12003 * doc.c (Fsnarf_documentation): Add prototype.
12004 (get_doc_string): Handle negative arguments.
12005 (Fdocumentation): Use AREF and ASIZE.
12006 Move the calls to get_doc_string to a single place.
12007 Don't confuse an interactive-spec for a docstring reference.
12008 (Fdocumentation_property): Take advantage of the fact that
12009 get_doc_string now ignores the sign of the docstring position.
60a653f1 12010
048addec 12011 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 12012
048addec 120132001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12014
a64387ee 12015 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
60a653f1 12016
048addec 120172001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12018
048addec
JD
12019 * xterm.c (x_draw_image_relief): Use predefined macro instead of
12020 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 12021
048addec 120222001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 12023
048addec
JD
12024 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
12025 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 12026
048addec 12027 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 12028
048addec 120292001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12030
048addec 12031 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 12032
048addec 120332001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 12034
048addec 12035 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 12036
048addec 120372001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 12038
048addec 12039 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 12040
048addec
JD
12041 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
12042 [!WM_MOUSELEAVE]: Define.
60a653f1 12043
048addec
JD
12044 * w32menu.c (current_popup_menu, get_menu_item_info):
12045 (set_menu_item_info): New vars.
12046 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
12047 (w32_menu_show): Set current_popup_menu.
12048 (add_menu_item): Allocate new strings for owner-drawn menu items
12049 and help strings.
12050 Use owner-draw for disabled menu items again.
12051 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
12052 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 12053
048addec
JD
12054 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
12055 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
12056 <WM_EXITMENULOOP>: Free menu strings.
12057 <WM_MOUSELEAVE>: Stop tracking mouse.
12058 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 12059
048addec
JD
12060 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
12061 and mouse face.
60a653f1 12062
048addec 120632001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 12064
048addec
JD
12065 The following changes add left-fringe and right-fringe
12066 frame parameters to adjust fringe widths, or remove one or
12067 both fringes.
60a653f1 12068
048addec
JD
12069 * frame.h (struct frame): Remove trunc_area_pixel_width and
12070 trunc_area_cols fields.
12071 (Qleft_fringe, Qright_fringe): Declare.
12072 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 12073
048addec
JD
12074 * frame.c (Qleft_fringe, Qright_fringe): New vars.
12075 (syms_of_frame): Initialize them.
60a653f1 12076
048addec
JD
12077 * window.c (coordinates_in_window): Handle separate left and right
12078 fringe widths.
60a653f1 12079
048addec
JD
12080 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
12081 and fringe_cols fields.
12082 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
12083 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
12084 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
12085 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
12086 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
12087 (x_compute_fringe_widths): Add prototype.
60a653f1 12088
048addec
JD
12089 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
12090 fill fringe evenly with small dashes.
12091 (x_draw_fringe_bitmap): Clear background if necessary. Align and
12092 clip the new ZV bitmap to avoid jitter between rows.
12093 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
12094 background. Don't draw fringe bitmaps if fringe width is zero.
12095 (x_compute_fringe_widths): New function.
12096 (x_new_font, x_set_window_size_1): Use it.
60a653f1 12097
048addec
JD
12098 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
12099 (x_set_frame_parameters): Process `font' parameter before other
12100 parameters as fringe widths depend on it.
12101 (x_set_fringe_width): New function.
12102 (x_figure_window_size): Use x_compute_fringe_widths.
12103 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
12104 parameters.
60a653f1 12105
048addec
JD
12106 * widget.c (set_frame_size): Use x_compute_fringe_widths.
12107 (EmacsFrameSetCharSize): Ditto.
60a653f1 12108
048addec
JD
12109 * w32term.h: Merged changes from xterm.h.
12110 * w32term.c: Merged changes from xterm.c.
12111 * w32fns.c: Merged changes from xfns.c.
60a653f1 12112
048addec 121132001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12114
048addec 12115 * COPYING: Removed.
60a653f1 12116
048addec 121172001-11-29 Dave Love <fx@gnu.org>
60a653f1 12118
048addec
JD
12119 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
12120 extra extra slot.
12121 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 12122
048addec 121232001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12124
048addec
JD
12125 * fileio.c (file-name-coding-system)
12126 (default-file-name-coding-system): Doc fix (links to referenced
12127 variables added).
60a653f1 12128
048addec 121292001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12130
048addec
JD
12131 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
12132 Add dummy uses of gcproN variables.
60a653f1 12133
048addec
JD
12134 * category.c (describe_category, describe_category_1)
12135 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
12136 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 12137
048addec 121382001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 12139
048addec 12140 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 12141
048addec
JD
12142 * Makefile.in (lispdir): New variable, referring to build dir.
12143 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 12144
048addec 121452001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 12146
048addec
JD
12147 * w32menu.c (w32_menu_display_help): Actually add the new argument
12148 OWNER.
60a653f1 12149
048addec 121502001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 12151
048addec
JD
12152 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
12153 menu items. From David Ponce <dponce@wanadoo.fr>.
12154 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
12155 conditionally.
12156 (w32_menu_display_help): New argument OWNER. Rewritten to store a
12157 help event in the owner frame's keyboard buffer.
60a653f1 12158
048addec
JD
12159 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
12160 (Fx_show_tip): Don't subtract last width from row width.
12161
12162 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
12163 (w32_read_socket): Use EQ to compare frames.
60a653f1 12164
048addec 121652001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 12166
048addec
JD
12167 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
12168 OVERLAPS_P.
60a653f1 12169
048addec 121702001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12171
048addec
JD
12172 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
12173 `gcpro3' and `gcpro4'.
60a653f1 12174
048addec 12175 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 12176
048addec 121772001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12178
048addec 12179 * ccl.c: Use AREF and ASIZE.
60a653f1 12180
048addec 121812001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12182
048addec
JD
12183 * lisp.h (run_hook_list_with_args): Remove.
12184 (LIST_END_P): Fix call to wrong_type_argument.
12185 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 12186
048addec 121872001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12188
048addec
JD
12189 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
12190 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 12191
048addec
JD
12192 * eval.c: Use AREF and ASIZE.
12193 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 12194
048addec
JD
12195 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
12196 which match the end of the file-name.
12197 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
12198 is not a valid env var, but leave it as is instead.
60a653f1 12199
048addec
JD
12200 * keymap.c (access_keymap): Handle t bindings like nil bindings.
12201 Make nil bindings in char-tables transparent.
12202 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 12203
048addec 122042001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 12205
048addec
JD
12206 * textprop.c (set_text_properties_1): Allow START, END in either order.
12207 Do nothing if range is empty.
60a653f1 12208
048addec 12209 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 12210
048addec
JD
12211 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
12212 (clean): Not here.
60a653f1 12213
048addec 122142001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12215
048addec
JD
12216 * textprop.c (set_text_properties_1): Clearly mark that the
12217 interval should not be empty.
60a653f1 12218
048addec
JD
12219 * intervals.c (graft_intervals_into_buffer):
12220 Don't call set_text_properties_1 on an empty interval.
60a653f1 12221
048addec 122222001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 12223
048addec 12224 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 12225
048addec
JD
12226 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
12227 don't lose the data in it.
60a653f1 12228
048addec 122292001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 12230
048addec 12231 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 12232
c62aec78 12233 * buffer.c (Fkill_buffer): Likewise.
60a653f1 12234
c62aec78 12235 * print.c (temp_output_buffer_setup): Likewise.
60a653f1 12236
048addec 122372001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12238
048addec 12239 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 12240
048addec 122412001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12242
048addec
JD
12243 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
12244 Niemitalo <kon@iki.fi>.
60a653f1 12245
048addec 122462001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 12247
048addec 12248 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 12249
048addec
JD
12250 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
12251 (Fx_show_tip): Block input during frame creation.
12252 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 12253
048addec 122542001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 12255
048addec
JD
12256 * lread.c (Fload): Detect recursive load error for more than 3
12257 nestings of the same file.
12258 (Vrecursive_load_depth_limit): Variable deleted.
12259 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 12260
048addec 122612001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 12262
048addec
JD
12263 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
12264 mouse position if either left or top is not specified.
60a653f1 12265
048addec
JD
12266 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
12267 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
12268 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
12269 (my_create_tip_window): Assign tip_window.
12270 (x_create_tip_frame): Use same defaults as X.
12271 (compute_tip_xy): Remove unused variable. Use full screen width.
12272 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 12273
048addec
JD
12274 * w32term.c (x_after_update_window_line): Doc fix.
12275 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
12276 frames.
12277 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 12278
048addec
JD
12279 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
12280 for all Windowed systems.
60a653f1 12281
048addec 122822001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 12283
048addec
JD
12284 * msdos.c (IT_clear_screen): If the frame's faces are not yet
12285 realized, use the initial screen colors to clear the screen.
60a653f1 12286
048addec 122872001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12288
048addec
JD
12289 * textprop.c (Fset_text_properties): Remove unused variables
12290 `unchanged', `prev_changed', `s' and `len'.
60a653f1 12291
048addec
JD
12292 * search.c (Freplace_match): Remove unused variable `inslen'.
12293
12294 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
12295
122962001-11-22 Jason Rumney <jasonr@gnu.org>
12297
12298 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
12299 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
12300 (my_create_tip_window): New function.
12301 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
12302 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
12303
123042001-11-20 Jason Rumney <jasonr@gnu.org>
12305
12306 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
12307 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
12308
12309 * w32fns.c (Vw32_system_coding_system): Remove.
12310 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
12311
123122001-11-19 Stefan Monnier <monnier@cs.yale.edu>
12313
12314 * fileio.c (Fwrite_region): Move choose_write_coding_system to
12315 after build_annotations.
12316
12317 * syntax.c (describe_syntax): Add dummy arg.
12318 (describe_syntax_1): Update call to describe_vector.
12319
12320 * category.c (describe_category): Add dummy arg.
12321 (describe_category_1): Update call to describe_vector.
12322
12323 * keymap.c (Fdescribe_vector): Add `describer' parameter.
12324 (describe_command, describe_translation): Add dummy second param.
12325 (describe_map): Call elt_describer with two arguments.
12326 (describe_vector_princ): Add `fun' parameter.
12327 Call it instead of the hardcoded `princ'.
12328 (describe_vector): Add arg `args'.
12329 Pass it as a new second argument to elt_describer.
60a653f1 12330
048addec 12331 * keymap.h (describe_vector): Update prototype.
60a653f1 12332
048addec
JD
12333 * frame.c: Don't include keymap.h any more.
12334 (keys_of_frame): Remove.
60a653f1 12335
048addec 12336 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 12337
048addec 12338 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 12339
048addec 123402001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 12341
048addec
JD
12342 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
12343 if defined, 0 otherwise.
12344 (MAP_FAILED): Define if not defined and use it to test mmap failure.
12345 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 12346
048addec 123472001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 12348
048addec 12349 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 12350
048addec 123512001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 12352
048addec
JD
12353 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
12354 (x_draw_bar_cursor): If the background color of the glyph under
12355 the cursor equals the frame's cursor color, use the glyph's
12356 foreground color for drawing the bar cursor.
12357 (x_after_update_window_line): Clear internal border in different
12358 circumstances.
12359 (w32_set_vertical_scroll_bar): Check for width and height > 0.
12360 (w32_draw_relief_rect): Correct relief by 1 pixel.
12361 (x_set_glyph_string_background_width):
12362 Set extends_to_end_of_line_p if the row's fill_line_p is set and
12363 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
12364 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
12365 if cursor_in_non_selected_windows is false.
12366 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
12367 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
12368 Notice if cursor gets overwritten.
12369 (notice_overwritten_cursor): Renamed from
12370 note_overwritten_text_cursor. Rewritten to take glyph widths
12371 into account, and to take X positions as parameters.
12372 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
12373 around call to x_draw_glyphs.
12374 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
12375 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
12376 color to use for image glyph reliefs.
12377 (x_draw_image_relief): Accept zero tool_bar_button_relief.
12378 (glyph_rect): Remove unused variable `area'.
60a653f1 12379
048addec
JD
12380 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
12381 some items.
12382 (x_set_internal_border_width): Set frame garbaged when window
12383 doesn't exist yet.
12384 (Fx_create_frame): Accept zero tool_bar_button_relief.
12385 (x_clear_image_1, four_corners_best, image_background)
12386 (image_background_transparent): New functions.
12387 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
12388 (gs_format): Add `:background' entry.
12389 (lookup_image): Set IMG's background color if specified.
12390 (pbm_load, xbm_load_image, png_load): Set IMG's background field
12391 when appropriate.
12392 (x_clear_image_1): Reset `background_valid' and
12393 `background_transparent_valid' fields.
12394 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
12395 calculating it here. Set IMG's background_transparent field.
12396 (enum xpm_keyword_index): Add XPM_BACKGROUND.
12397 (enum png_keyword_index): Add PNG_BACKGROUND.
12398 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
12399 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
12400 (enum gif_keyword_index): Add GIF_BACKGROUND.
12401 (enum gs_keyword_index): Add GS_BACKGROUND.
12402 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
12403 Pre-calculate image background color where necessary.
12404 (x_create_x_image_and_pixmap, xbm_load, gs_load):
12405 Use display info's n_cbits entry for screen depth.
12406 (Fx_show_tip): Remove unused variables `buffer', `top',
12407 `left', `max_width' and `max_height'.
60a653f1 12408
048addec 12409 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 12410
048addec 124112001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 12412
048addec 12413 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 12414
048addec 124152001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 12416
048addec 12417 * frame.c (Fframe_live_p): Doc fix.
60a653f1 12418
048addec 124192001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 12420
048addec
JD
12421 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
12422 (message_dolog_marker3): New static variables hold three markers.
12423 (syms_of_xdisp): Initialize and staticpro them.
12424 (message_dolog): Use message_dolog_marker1..3 instead of
12425 allocating markers each time. Unchain them when done.
60a653f1 12426
048addec 124272001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 12428
048addec 12429 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 12430
048addec 124312001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 12432
048addec 12433 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 12434
048addec 124352001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 12436
048addec 12437 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 12438
048addec 124392001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 12440
048addec 12441 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 12442
048addec 124432001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 12444
048addec
JD
12445 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
12446 with invalid position.
60a653f1 12447
048addec 124482001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 12449
048addec 12450 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 12451
048addec
JD
12452 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
12453 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
12454 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 12455
048addec 12456 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 12457
048addec 124582001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 12459
048addec
JD
12460 * fileio.c (build_annotations): Split off the tail.
12461 (build_annotations_2): New fun. Extracted from build_annotations.
12462 (Fwrite_region): Split the call to build_annotations into two
12463 calls to build_annotations and build_annotations_2.
077907d4 12464
048addec 124652001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 12466
048addec
JD
12467 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
12468 clear_waiting_for_input with argument.
1756e2fb 12469
048addec 12470 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 12471
048addec 12472 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 12473
048addec 12474 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 12475
048addec 12476 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 12477
048addec 124782001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 12479
048addec
JD
12480 * fileio.c (choose_write_coding_system): New fun, extracted
12481 from Fwrite_region.
12482 (Fwrite_region): Use it.
fa336b91 12483
048addec
JD
12484 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
12485 (funcall_lambda, run_hook_with_args): Make static and add prototype.
12486 (ml_apply, find_handler_clause): Add prototype.
fa336b91 12487
048addec 124882001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 12489
048addec 12490 * config.in: Add #undef HAVE_COFF_H.
fa336b91 12491
048addec
JD
12492 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
12493 Required for ISC 4.1.
fa336b91 12494
048addec 124952001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 12496
048addec
JD
12497 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
12498 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 12499
048addec 125002001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 12501
048addec
JD
12502 The following changes are made to clean up the various internal
12503 references to the fringes to actually use the term `fringe' for
12504 them. Previously, they were called `flags areas', `bitmap areas',
12505 `left/right side of windows', or implicitly as `flags' or
12506 `bitmaps':
fa336b91 12507
048addec
JD
12508 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
12509 Comments fixed. Use renamed symbols.
06e8f738 12510
048addec 12511 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 12512
048addec
JD
12513 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
12514 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
12515 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 12516
048addec 12517 * msdos.c: Comment fix.
9ce647f4 12518
048addec 12519 * w32fns.c: Use renamed symbols.
9b784ab8 12520
048addec
JD
12521 * w32term.c: Comment fixes. Use renamed symbols.
12522 (fringe_bitmap_type): Renamed from bitmap_type.
12523 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12524 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
12525 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 12526
048addec
JD
12527 * w32term.h: Comment fixes. Use renamed symbols.
12528 (fringes_extra): Renamed from flags_areas_extra.
12529 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12530 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12531 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12532 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12533 (FRAME_X_LEFT_FRINGE_WIDTH):
12534 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12535 (FRAME_X_RIGHT_FRINGE_WIDTH):
12536 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 12537
048addec 12538 * widget.c: Use renamed symbols.
9f7e52b4 12539
048addec
JD
12540 * window.c: Comment fixes. Use renamed symbols.
12541 (coordinates-in-window-p): Doc fix.
fa336b91 12542
048addec 12543 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 12544
048addec 12545 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 12546
048addec 12547 * xfns.c: Use renamed symbols.
89512fcd 12548
048addec
JD
12549 * xterm.c: Comment fixes. Use renamed symbols.
12550 (fringe_bitmap_type): Renamed from bitmap_type.
12551 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
12552 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
12553 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 12554
048addec
JD
12555 * xterm.h: Comment fixes. Use renamed symbols.
12556 (fringes_extra): Renamed from flags_areas_extra.
12557 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
12558 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
12559 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
12560 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
12561 (FRAME_X_LEFT_FRINGE_WIDTH):
12562 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
12563 (FRAME_X_RIGHT_FRINGE_WIDTH):
12564 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
12565
125662001-11-15 Jason Rumney <jasonr@gnu.org>
12567
12568 * w32menu.c (add-menu-item): Make help_echo and radio buttons
12569 work for most menu items. From David Ponce
12570 <david.ponce@wanadoo.fr>.
12571
125722001-11-15 Gerd Moellmann <gerd@gnu.org>
12573
12574 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
12575 Some x_set_* function expect to be called even if old and new
12576 value are equal.
12577
12578 * xdisp.c (build_desired_tool_bar_string): Accept zero
12579 tool_bar_button_relief.
12580
12581 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
12582
12583 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
12584
12585 * xterm.c (x_draw_bar_cursor): If the background color of the
12586 glyph under the cursor equals the frame's cursor color, use
12587 the glyph's foreground color for drawing the bar cursor.
12588
12589 * dispnew.c (direct_output_forward_char): Fix character/byte
12590 position comparison.
7d18891d 12591
048addec 125922001-11-15 Miles Bader <miles@gnu.org>
d2936d21 12593
048addec
JD
12594 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
12595 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
12596 Update arguments to find_field.
12597 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
12598 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
12599 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
12600 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 12601
048addec 126022001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 12603
048addec 12604 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 12605
048addec
JD
12606 * dispextern.h (image_background, image_background_transparent):
12607 Conditionalize on HAVE_X_WINDOWS.
7d18891d 12608
048addec 126092001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 12610
048addec 12611 * print.c (Fprin1_to_string): Doc fix.
7d18891d 12612
048addec 12613 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 12614
048addec 12615 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 12616
048addec 12617 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 12618
048addec 12619 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 12620
048addec 12621 * eval.c (syms_of_eval): Doc fix.
7d18891d 12622
048addec 12623 * coding.c (syms_of_coding): Doc fix.
7d18891d 12624
048addec 12625 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 12626
048addec 12627 * dispnew.c (syms_of_display): Doc fix.
9474c847 12628
048addec 12629 * category.c (Fget_unused_category): Doc fix.
9474c847 12630
048addec 12631 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 12632
048addec 126332001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 12634
048addec 12635 * print.c (prin1, print): Doc fix.
e3059a5d 12636
048addec 126372001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 12638
048addec
JD
12639 * fontset.h: Remove declarations of variables
12640 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 12641
048addec
JD
12642 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
12643 `Vclip_large_size_font'.
eae936e2 12644
048addec 126452001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 12646
048addec 12647 * w32fns.c: Doc fix.
ddb67bdc 12648
048addec 126492001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 12650
048addec 12651 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 12652
048addec 12653 * fns.c: Doc fix.
6e1b91d7 12654
048addec 12655 * emacs.c: Doc fix.
1c1d3d69 12656
048addec 12657 * coding.c: Doc fix.
1c1d3d69 12658
048addec
JD
12659 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
12660 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
12661 `new style' [w/`doc:' keyword].
b6f4c7ba 12662
048addec 126632001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 12664
048addec
JD
12665 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
12666 LeaveNotify events. Only FocusIn and FocusOut do that now.
12667 (x_display_and_set_cursor): Do display hollow cursors in active
12668 minibuffer windows when they are not selected.
b6f4c7ba 12669
048addec 126702001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 12671
048addec
JD
12672 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12673 * w32term.c: Change doc-string comments to `new style'.
12674 [w/`doc:' keyword]. Doc fixes.
a89f435d 12675
048addec
JD
12676 * w32fns.c: Don't define max.
12677 (Fx_open_connection): Only execute once.
a4cd0cd7 12678
048addec 126792001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 12680
048addec
JD
12681 * ccl.c: Change macros to use do-while block instead of if-else.
12682 Use braces to follow GNU Coding Standards.
eafb659a 12683
048addec 126842001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 12685
048addec 12686 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 12687
048addec 12688 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 12689
048addec
JD
12690 * insdel.c (replace_range): Use adjust_markers_for_replace
12691 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 12692
048addec 12693 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 12694
048addec
JD
12695 * textprop.c (set_text_properties_1): New subroutine
12696 broken out of set_text_properties.
12697 (set_text_properties): Use set_text_properties_1.
91823618 12698
048addec
JD
12699 * intervals.c (graft_intervals_into_buffer):
12700 Use set_text_properties_1 to clear out properties.
91823618 12701
048addec
JD
12702 * search.c (Freplace_match): Use replace_range to insert
12703 and delete. Don't request property inheritance from
12704 surrounding text.
86928dfb 12705
048addec 127062001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 12707
048addec
JD
12708 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
12709 vertical fonts. Allow them if face name is explicitly specified.
12710 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 12711
048addec 127122001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 12713
048addec
JD
12714 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
12715 instead of malloc/free.
a78e0303 12716
048addec 127172001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 12718
048addec
JD
12719 * xfaces.c (merge_face_vectors): Use braces to follow GNU
12720 Coding Standards.
12721 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 12722
048addec 12723 * buffer.c (Fbury_buffer): Likewise.
0c99b139 12724
048addec 12725 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 12726
048addec
JD
12727 * coding.c (encode_coding): Use precomputed value of `src'.
12728 (encode_coding): Remove unused variable `src_end'.
12729 (code_convert_region): Remove unused variables `count'.
830ddd77 12730
048addec 127312001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 12732
048addec
JD
12733 * w32term.c (x_display_and_set_cursor): Do not move system caret
12734 if cursor_glyph is NULL.
55c6d645 12735
048addec 127362001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 12737
048addec 12738 * keymap.c (access_keymap): Fix compilation error.
5de38842 12739
048addec 127402001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 12741
048addec 12742 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 12743
048addec 127442001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 12745
048addec
JD
12746 * intervals.c (graft_intervals_into_buffer):
12747 Remove #ifdef'd-out code.
12748 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 12749
048addec
JD
12750 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
12751 code (eval-current-buffer).
12752 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 12753
048addec 127542001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 12755
048addec 12756 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 12757
048addec 127582001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 12759
048addec 12760 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 12761
048addec
JD
12762 * keyboard.c (make_lispy_event): Check integerness and fix
12763 Lisp_Object/int mixup.
17893c65 12764
048addec 127652001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 12766
048addec 12767 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 12768
048addec
JD
12769 * fontset.c (fontset_font_pattern): Remove unused variable
12770 `family_registry'.
d5360cc7 12771
048addec 12772 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 12773
048addec 127742001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 12775
048addec 12776 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 12777
048addec
JD
12778 * buffer.c (Fkill_buffer): Don't delete auto save file
12779 if buffer is modified.
d9d54213 12780
048addec 127812001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 12782
048addec
JD
12783 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
12784 CHECK_NUMBER_CDR.
b116830b 12785
048addec 127862001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 12787
048addec 12788 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 12789
048addec 127902001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 12791
048addec 12792 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 12793
048addec 127942001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 12795
048addec 12796 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 12797
048addec 127982001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 12799
048addec
JD
12800 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
12801 the program image directly.
982f6c7e 12802
048addec 128032001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 12804
048addec 12805 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 12806
048addec 128072001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 12808
048addec
JD
12809 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
12810 and CHECK_BUFFER.
d31053f9 12811
048addec
JD
12812 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
12813 (record_char): Likewise.
d31053f9 12814
048addec
JD
12815 * keyboard.c (make_lispy_event): Don't insist a drag event must
12816 move to a different buffer position. Instead, check for moving at
12817 least double_click_fuzz.
982f6c7e 12818
048addec 12819 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 12820
048addec 12821 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 12822
048addec
JD
12823 * indent.c (current_column_1, Fmove_to_column): Separate the code
12824 for display-table glyphs from the code for buffer text, to fix
12825 bugs in the former.
830047fd 12826
048addec 128272001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 12828
048addec
JD
12829 * buffer.c (Fbuffer_local_value): New function.
12830 (syms_of_buffer): Defsubr it.
2df5238c 12831
048addec
JD
12832 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
12833 value of `cursor-in-non-selected-windows'.
4e397688 12834
048addec
JD
12835 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
12836 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
12837 (syms_of_xdisp): Initialize it.
48b0f3ae 12838
048addec 128392001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 12840
048addec 12841 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 12842
048addec
JD
12843 * coding.c: Change doc-string comments to `new style' [w/`doc:'
12844 keyword].
3ecaf7e5 12845
048addec
JD
12846 * eval.c (top_level_value, top_level_set): Remove commented and
12847 #ifdef'd-out code.
12848 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 12849
048addec 128502001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 12851
048addec 12852 * xfns.c: Include unistd.h, if it exists.
8db2e33b 12853
048addec 12854 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 12855
048addec 12856 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 12857
048addec 128582001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 12859
048addec
JD
12860 * lisp.h (CHECK_STRING_CAR): New macro.
12861 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
12862 treating XCAR and XCDR as lvalues.
12863 (openp): Use CHECK_STRING_CAR.
12864 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 12865
048addec 128662001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 12867
048addec
JD
12868 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
12869 (SIGMASKTYPE): Define.
1b1acc13 12870
048addec 12871 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 12872
048addec 128732001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 12874
048addec
JD
12875 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
12876 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
12877 Fix typos in comments.
6cb16f95 12878
048addec
JD
12879 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
12880 and #ifdef'd-out code.
12881 Fix and reindent comments.
6cb16f95 12882
048addec 12883 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 12884
048addec
JD
12885 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
12886 argument `i' in macros.
6cb16f95 12887
048addec
JD
12888 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
12889 `i' in macros.
7e9d3c2f 12890
048addec
JD
12891 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
12892 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
12893 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
12894 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
12895 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
12896 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
12897 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
12898 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
12899 in macros.
7e9d3c2f 12900
048addec
JD
12901 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12902 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
12903 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
12904 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
12905 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
12906 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
12907 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
12908 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
12909 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
12910 (remove unused second argument).
7e9d3c2f 12911
048addec 129122001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 12913
048addec
JD
12914 * syntax.c (describe_syntax): New wrapper.
12915 (Finternal_describe_syntax_value): Rename from describe_syntax.
12916 Don't insert space at front and \n at the end.
12917 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 12918
048addec
JD
12919 * regex.c (re_wctype): Try to fix some warnings.
12920 (regcomp, regexec): Don't forget the __restrict.
9ba48103 12921
048addec 129222001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 12923
048addec 12924 * textprop.c (Fget_char_property): Doc fix.
9ba48103 12925
048addec 129262001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 12927
048addec 12928 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 12929
048addec 12930 * data.c (Fsetq_default): Ditto.
c22e59e1 12931
048addec 12932 * callint.c (Finteractive): Ditto.
9271ed2c 12933
048addec 129342001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 12935
048addec
JD
12936 * macros.c: Don't include keymap.h any more.
12937
129382001-11-01 Richard M. Stallman <rms@gnu.org>
12939
12940 * data.c (Fmake_local_variable): Doc fix.
12941
12942 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
12943 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 12944
048addec 12945 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
12946 bindings along with or instead of the buffer local map.
12947 Make the overriding maps override what they should.
12948
f00691a3 129492001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
12950
12951 * window.c (grow_mini_window): Fix typo in comment.
12952
27188d11
GM
129532001-11-01 Gerd Moellmann <gerd@gnu.org>
12954
7b49b9d2
GM
12955 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
12956 (XTset_vertical_scroll_bar): Likewise.
12957
43f7c3ea
GM
12958 * xfns.c (x_build_heuristic_mask): Use four_corners_best
12959 instead of IMAGE_BACKGROUND.
c22e59e1 12960
b350c2e5
GM
12961 * xfns.c (four_corners_best): Reindent.
12962
c22e59e1 12963 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
12964 Handle :box so that it is possible to specify sexprs.
12965
bf00d461
EZ
129662001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
12967
12968 * s/hpux11.h: New file.
12969
f00691a3 129702001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 12971
2b209b97
PJ
12972 * emacs.c (USAGE1): Show command line option --no-window-system
12973 instead of --no-windows in usage.
12974 (standard_args): Rename --no-windows to --no-window-system.
12975 (bug_reporting_address): Follow Emacs coding conventions.
12976
9dbc9081
PJ
12977 * eval.c (Fcommandp): Doc fix.
12978 Change doc-string comments to `new style' [w/`doc:' keyword].
12979
4e10df59
PJ
12980 * frame.c (Fframe_live_p): Doc fix.
12981
12982 * buffer.c (selective-display-ellipses): Doc fix.
12983
dd387b25
GM
129842001-10-31 Gerd Moellmann <gerd@gnu.org>
12985
fe957e65
GM
12986 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
12987
dd387b25
GM
12988 * xfaces.c (realize_x_face): If C is not a single-byte character,
12989 set the face's colors_copied_bitwise_p instead of the defaulted_p
12990 members which have a different meaning.
12991 (free_face_colors): Do nothing for a face whose colors have been
12992 copied bitwise.
12993
c22e59e1 12994 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 12995
f00691a3 129962001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 12997
687784e8
PJ
12998 * marker.c, mocklisp.c: Change doc-string comments to `new style'
12999 [w/`doc:' keyword].
2e1280f8 13000
b9d9a9b9
GM
130012001-10-31 Gerd Moellmann <gerd@gnu.org>
13002
13003 * fns.c (require_unwind): Return Lisp_Object.
13004
f00691a3 130052001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 13006
fa1361cb
PJ
13007 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
13008 (last-input-char): Revert doc-string to be the same as the
13009 doc-string of `last-input-event'.
13010
6c465a15 13011 * xdisp.c: Fix typos in comments.
48400103 13012
eafa3196
GM
130132001-10-31 Gerd Moellmann <gerd@gnu.org>
13014
13015 * window.c (grow_mini_window): Handle case that the root
13016 window is already smaller than the nominal mininum height.
13017
747d3f2a
SM
130182001-10-30 Stefan Monnier <monnier@cs.yale.edu>
13019
bf9bb76f
SM
13020 * emacs.c (main): Don't call keys_of_macros any more.
13021
13022 * lisp.h (keys_of_macros): Remove.
13023
13024 * macros.c (keys_of_macros): Remove.
13025
747d3f2a
SM
13026 * xfaces.c (Fface_attribute_relative_p): Declare args.
13027
5e905a57
JR
130282001-10-30 Jason Rumney <jasonr@gnu.org>
13029
13030 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
13031 (enum_font_cb2): Ignore fonts with vertical orientation.
13032
3a426197
RS
130332001-10-30 Richard M. Stallman <rms@gnu.org>
13034
13035 * keyboard.c (Finput_pending_p): Doc fix.
13036
a742d646
GM
130372001-10-30 Gerd Moellmann <gerd@gnu.org>
13038
259cf6bc
GM
13039 * xterm.c (x_after_update_window_line): Don't run the code
13040 clearing in borders for rows whose visible height is 0.
13041
3f99f948
GM
13042 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
13043 resized_p flag is set. If not set, use the much less flickering
13044 method previously used.
13045
13046 * dispnew.c (change_frame_size_1): Set frame's resized_p.
13047
13048 * frame.h (struct frame) <resized_p>: New member.
13049
b4a3be43
GM
13050 * lread.c (to_multibyte): Ensure read_buffer is at least twice
13051 as large as the number of bytes to convert.
747d3f2a 13052
a742d646
GM
13053 * lread.c (to_multibyte): New function.
13054 (read1): Use it.
13055
cacbb9e9
EZ
130562001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
13057
13058 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
13059
99cb6b2f
GM
130602001-10-30 Gerd Moellmann <gerd@gnu.org>
13061
327f42ee 13062 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
13063 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
13064 if the row's fill_line_p is set and drawing the last glyph with
13065 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 13066
99cb6b2f
GM
13067 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
13068
8e8223e2
SM
130692001-10-29 Stefan Monnier <monnier@cs.yale.edu>
13070
13071 * xmenu.c: Include coding.h and charset.h.
13072 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
13073 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
13074 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
13075 Explicitly set wv->help. Use `TRUE' rather than `True'.
13076 (menu_help_callback): Use empty_string.
13077
13078 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
13079 (Fx_popup_dialog): Explicitly init f.
13080 (w32_menu_display_help): Use empty_string.
13081
4d083a8f
RS
130822001-10-29 Richard M. Stallman <rms@gnu.org>
13083
b2304472
RS
13084 * fns.c (Frequire): Detect recursive try to require the same
13085 feature 3 or more levels deep, and get error.
13086 (require_unwind): New subroutine.
13087 (require_nesting_list): New variable.
13088 (syms_of_fns): Init and staticpro it.
13089
4d083a8f
RS
13090 * print.c (print_object): Clarify indication of insertion type.
13091
2fe41216
EZ
130922001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
13093
90480000
EZ
13094 * coding.c (syms_of_coding): Document that locale-coding-system is
13095 used for decoding input on X.
13096
2fe41216
EZ
13097 * window.c (Fscroll_left, Fscroll_right): Doc fix.
13098
f00691a3 130992001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
13100
13101 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
13102 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
13103
60ebcfe8
GM
131042001-10-29 Gerd Moellmann <gerd@gnu.org>
13105
9a7bdceb
GM
13106 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
13107 use NO_CURSOR if cursor_in_non_selected_windows is false.
13108
3f08fcd2
GM
13109 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
13110 the slant attribute if FRAME is t.
13111
0ccfdad2
GM
13112 * xfns.c (x_set_internal_border_width): Set frame garbaged
13113 when X window doesn't exist yet.
13114
ef253080
GM
13115 * xterm.c (x_after_update_window_line): Clear internal border
13116 in different circumstances.
b116830b 13117
60ebcfe8
GM
13118 * xterm.c (XTread_socket) <KeyPress>: Don't use
13119 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
13120 <handa@etl.go.jp>.
13121
73d25f9c
EZ
131222001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
13123
13124 * m/ibms390.h: New file. From Adam Thornton
13125 <athornton@sinenomine.net>.
13126
cac1daf0
GM
131272001-10-28 Gerd Moellmann <gerd@gnu.org>
13128
053b3256 13129 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 13130
cac1daf0
GM
13131 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
13132 a loop counter.
13133
f00691a3 131342001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 13135
186486eb
PJ
13136 * emacs.c: Use argv[0] instead of emacs when -t was specified.
13137
4707d2d0
PJ
13138 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
13139 keyword].
13140 Fix typos in comments.
b116830b 13141
d883731c
PJ
13142 * emacs.c (bug_reporting_address): New function.
13143 Use it when displaying usage message.
13144
04012254
PJ
13145 * minibuf.c (read_minibuf): Remove unused external declaration of
13146 variable `Qread_only'.
13147
13b1a09c
PJ
13148 * keymap.c (access_keymap): Remove unused variable `charset'.
13149
5bbf4378
MB
131502001-10-28 Miles Bader <miles@gnu.org>
13151
13152 * xfaces.c (merge_face_heights): Handle TO being relative as well.
13153 Remove #ifdef'd-out code.
13154 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
13155 (syms_of_xfaces): Initialize them.
13156
1ce1e4ee
JR
131572001-10-27 Jason Rumney <jasonr@gnu.org>
13158
13159 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
13160 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
13161 position using the system caret.
13162
13163 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
13164 (w32_system_caret_height, w32_system_caret_x)
13165 (w32_system_caret_y): New variables for tracking system caret.
13166 (w32_initialize): Initialize them.
c2d53558 13167 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 13168
c2d53558
SM
13169 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
13170 New messages types.
1ce1e4ee
JR
13171
13172 * w32term.c (note_mouse_highlight): Clear old help_echo.
13173
f00691a3 131742001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 13175
bb4600a4
PJ
13176 * xterm.c: Fix typo in a comment.
13177
7db35a48
PJ
13178 * emacs.c: Fix typos in comments.
13179 Remove unnecessary spaces.
13180 Change doc-string comments to `new style' [w/`doc:' keyword].
13181 (USAGE2): Fix typos in usage string.
13182
a7248e4f
PJ
13183 * xterm.c: Fix typo in a comment.
13184
4e30ce42
PJ
13185 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
13186 emacs.c.
13187
62725a92
GM
131882001-10-27 Gerd Moellmann <gerd@gnu.org>
13189
798dbe1f 13190 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 13191 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
13192 farther backward when target_y was not reached.
13193
62725a92
GM
13194 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
13195 Display errno only if non-zero.
13196 (sound_warning): New function.
13197 (vox_configure): Don't treat failing to set sample rate as error.
13198 (various places): Improve error messages.
13199
d4e34d24
EZ
132002001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
13201
944e6f60
EZ
13202 * fileio.c (Faccess_file): Run the argument filename through
13203 Fexpand_file_name, before using it.
13204
d4e34d24
EZ
13205 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
13206 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
13207
38d2af0c
GM
132082001-10-26 Gerd Moellmann <gerd@gnu.org>
13209
da80a8d5
GM
13210 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
13211
38d2af0c
GM
13212 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13213 Fix clearing in the case of scroll bars on the right.
c2d53558 13214
45de4a6f 132152001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
13216
13217 * w32gui.h (XImage): Add a dummy typedef.
13218
fbd5ceb2
GM
132192001-10-26 Gerd Moellmann <gerd@gnu.org>
13220
c2d53558 13221 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 13222
b23236fb
EZ
132232001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
13224
13225 * frame.c (Fframe_parameter): Fix last change.
13226
5d991fc4
EZ
13227 * fileio.c: Revert last change (which removed old commented-out
13228 version of expand-file-name). Add a comment that explains why
13229 this old version should not be removed.
13230
879eadc3
GM
132312001-10-25 Gerd Moellmann <gerd@gnu.org>
13232
75700ff2
GM
13233 * frame.c (Fframe_parameter): Fix a bug whereby some
13234 ``artificial'' frame parameters, like `minibuffer' were not
13235 obtained by calling Fframe_parameters.
13236
dfe92a6a
GM
13237 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
13238 cursor differently.
13239
879eadc3
GM
13240 * xdisp.c (move_it_vertically_backward): Compute line height
13241 differently. Add heuristic to try to be more compatible to 20.x.
13242
e1010ebe
SM
132432001-10-25 Stefan Monnier <monnier@cs.yale.edu>
13244
d73a471b
SM
13245 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
13246
d6da5a06
GM
13247 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
13248 boolean.
e1010ebe 13249
f66bd220
MB
132502001-10-25 Miles Bader <miles@gnu.org>
13251
13252 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
13253 BG is a pointer to a structure, not a structure.
13254 (gif_format, png_format): Add missing commas.
13255
d436d538
RS
132562001-10-24 Richard M. Stallman <rms@gnu.org>
13257
13258 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 13259 (syms_of_xfaces): Defsubr it.
d436d538 13260
f00691a3 132612001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
13262
13263 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
13264 variable `area'.
13265
f00691a3 132662001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 13267
c2d53558 13268 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 13269
e2a57b34
MB
132702001-10-25 Miles Bader <miles@gnu.org>
13271
13272 * dispextern.h (struct image): Add `background',
13273 `background_valid', and `background_transparent' fields.
13274 (image_background, image_background_transparent): New declarations.
13275 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
13276 * xfns.c (image_background, image_background_transparent)
13277 (four_corners_best): New functions.
c2d53558 13278 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
13279 (gs_format): Add `:background' entry.
13280 (lookup_image): Set IMG's background color if specified.
13281 (pbm_load, xbm_load_image, png_load): Set IMG's background field
13282 when appropriate.
13283 (x_clear_image_1): Reset `background_valid' and
13284 `background_transparent_valid' fields.
13285 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
13286 calculating it here. Set IMG's background_transparent field.
13287 (enum xpm_keyword_index): Add XPM_BACKGROUND.
13288 (enum png_keyword_index): Add PNG_BACKGROUND.
13289 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
13290 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
13291 (enum gif_keyword_index): Add GIF_BACKGROUND.
13292 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 13293 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
13294 Pre-calculate image background color where necessary.
13295 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
13296 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
13297 color to use for image glyph reliefs.
13298
b547b6e8
GM
132992001-10-24 Gerd Moellmann <gerd@gnu.org>
13300
d9e3b8c6
GM
13301 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
13302 in full-width rows.
c2d53558 13303
b547b6e8
GM
13304 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
13305 Fix clearing of area not covered by scroll bar.
13306
f00691a3 133072001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
13308
13309 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
13310 and `real_start'.
c2d53558 13311 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
13312 (glyph_rect): Remove unused variable `area'.
13313
76cb5e06
GM
133142001-10-24 Gerd Moellmann <gerd@gnu.org>
13315
bdbdebff 13316 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
13317
13318 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
13319 (row_containing_pos): Take additional argument DY.
13320 Treat rows ending in middle of char differently.
62e33982
GM
13321 (display_line): Handle tabs on window systems differently.
13322
13323 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
13324 with additional argument.
13325
13326 * dispextern.h (row_containing_pos): Adjust prototype.
13327
76cb5e06
GM
13328 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
13329 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
13330 (try_window_id, try_window_reusing_current_matrix)
13331 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 13332 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 13333
f00691a3 133342001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 13335
c9e60620
PJ
13336 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
13337 gnuemacs).
13338 (HAVE_BOXES): Fix typo in comment.
13339 (push_menu_pane): Fix typo in comment.
13340
3b552d56
PJ
13341 * xdisp.c: (display_prop_string_p): Remove unused local declaration
13342 of `Qwhen'.
13343 (single_display_prop_string_p): Remove unused local declarations
13344 of `Qwhen' and `Qmargin'.
13345 (string_buffer_position): Remove unused variable `around'.
13346 (store_frame_title): Remove unused variable `width'.
13347
15c565ac
PJ
13348 * window.c: Don't define max.
13349 (coordinates_in_window): Remove unused variable `uy'.
13350
a8818eb9
PJ
13351 * widget.c: Don't define max.
13352
996fee11
PJ
13353 * process.c: Don't define max.
13354 (create_process): Remove unused variable `buffer'.
13355
496e1a5b
GM
133562001-10-23 Gerd Moellmann <gerd@gnu.org>
13357
c2d53558 13358 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 13359
5905ae8b
EZ
133602001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
13361
13362 * xfaces.c (Finternal_set_lisp_face_attribute)
13363 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
13364 frame is on a windowed display.
13365
24db49fb
GM
133662001-10-23 Gerd Moellmann <gerd@gnu.org>
13367
c2d53558
SM
13368 * dispnew.c (sync_window_with_frame_matrix_rows):
13369 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
13370 of marginal areas.
13371
c2d53558 13372 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 13373
f0487f05
EZ
133742001-10-23 Andreas Schwab <schwab@suse.de>
13375
13376 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
13377 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
13378
f0a48a01
GM
133792001-10-23 Gerd Moellmann <gerd@gnu.org>
13380
c2d53558 13381 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
13382 REAL_END. Notice if cursor gets overwritten.
13383 (notice_overwritten_cursor): Take X positions as parameters.
13384 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
13385 around call to x_draw_glyphs.
13386
f00691a3 133872001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 13388
fc11dff0
PJ
13389 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
13390 instead of C) and usage.
a50a10a0 13391
fc11dff0
PJ
13392 * editfns.c (char-to-string): Fix argument names (use CHAR instead
13393 of C) and usage.
a50a10a0
PJ
13394
13395 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
13396 `left', `max_width' and `max_height'.
13397
8738febd
GM
133982001-10-23 Gerd Moellmann <gerd@gnu.org>
13399
13400 * xdisp.c (display_line): For a tab continued to the next line,
13401 set row's ends_in_middle_of_char_p.
13402
653c329b
GM
134032001-10-22 Gerd Moellmann <gerd@gnu.org>
13404
13405 * xdisp.c (display_line): Fix computation of continuation lines
13406 width for TABs.
13407
f00691a3 134082001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 13409
7ba51063
PJ
13410 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
13411 `Qlaplace'.
13412
f958c5ac
PJ
13413 * fileio.c: Remove unused code.
13414
eb360291
MB
134152001-10-22 Miles Bader <miles@gnu.org>
13416
13417 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
13418 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
13419 Remove `DOC_STRINGS_IN_COMMENTS' cases.
13420
98515cf0
JR
134212001-10-21 Jason Rumney <jasonr@gnu.org>
13422
13423 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
13424
93026d88
EZ
134252001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
13426
13427 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
13428 (Finsert_string): Avoid the multi-line string literals warning.
13429
c9a95b79
MB
134302001-10-22 Miles Bader <miles@gnu.org>
13431
13432 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
13433 (Fdocumentation): Don't use it.
13434 (syms_of_doc): Don't initialize it.
13435
13436 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
13437 * print.c (Fwith_output_to_temp_buffer): Likewise.
13438 * window.c (Fsave_window_excursion): Likewise.
c2d53558 13439 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 13440 (Fsave_restriction): Likewise.
c2d53558
SM
13441 * eval.c (Frun_hooks, Frun_hook_with_args)
13442 (Frun_hook_with_args_until_failure)
13443 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
13444 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
13445 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
13446 (Funwind_protect, Fcondition_case): Likewise.
13447 * coding.c (Ffind_operation_coding_system): Likewise.
13448 * keyboard.c (Ftrack_mouse): Likewise.
13449
a3b10252
MB
134502001-10-21 Miles Bader <miles@gnu.org>
13451
c2d53558 13452 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
13453 (Fmake_hash_table): Add usage: string to doc string.
13454 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 13455 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
13456 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
13457 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
13458 (Fml_prefix_argument_loop): Likewise.
13459
f00691a3 134602001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 13461
c2d53558 13462 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 13463
c6f73eec
PJ
13464 * sysdep.c (init_sys_modes): Change doc-string comments to `new
13465 style' [w/`doc:' keyword].
13466
13467 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
13468 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
13469 comments to `new style' [w/`doc:' keyword].
13470
3cf3436e
JR
134712001-10-21 Jason Rumney <jasonr@gnu.org>
13472
13473 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
13474
c169b8f1
JR
13475 * w32term.c (remember_mouse_glyph): New function.
13476 (w32_mouse_position): Use it.
13477 (note_mouse_movement): If the mouse moved off the glyph, remember
13478 its new position.
c2d53558 13479
4fdd691b
JR
13480 * w32term.h (struct w32_output): Correct spelling of x_compatible.
13481 (w32_display_info): Add mouse_face_overlay.
13482
c169b8f1
JR
13483 * w32term.c (notice_overwritten_cursor): Renamed from
13484 note_overwritten_text_cursor. Rewritten to take glyph widths into
13485 account.
13486 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
13487 (fast_find_string_pos): New function.
13488 (fast_find_position): Return the correct vpos. Add parameter
13489 STOP. In the final row, stop before glyphs having STOP as object.
13490 Don't consider glyphs that are not from a buffer.
13491 (fast_find_position) [0]: Add a presumably more correct version
13492 for after 21.1.
13493 (expose_window_tree, expose_frame): Don't compute intersections here.
13494 (expose_window): Do it here instead.
13495 (expose_window_tree, expose_window, expose_line): Return 1 when
13496 overwriting mouse-face.
13497 (expose_window): If W is the window currently being updated, mark
13498 the frame garbaged.
13499 (expose_frame): If mouse-face was overwritten, redo it.
13500 (x_use_underline_position_properties): New variable.
13501 (syms_of_xterm): DEFVAR_BOOL it.
13502 (x_draw_glyph_string): Add comment to use it in future.
13503 (x_draw_glyph_string): Restore clipping after drawing box.
13504 Fix a computation of the underline position.
13505 (w32_get_glyph_string_clip_rect): Minor cleanup.
13506 (x_fill_stretch_glyph_string): Remove an assertion.
13507 (x_produce_glyphs): Don't convert multibyte characters
13508 to unibyte characters in unibyte buffers.
13509 (cursor_in_mouse_face_p): New function.
13510 (x_draw_stretch_glyph_string): Use it to choose a different GC
13511 when drawing a cursor within highlighted text. Don't draw
13512 background again if it has already been drawn.
13513 (x_draw_glyph_string_box): Don't draw a full-width
13514 box just because the glyph row's full_width_p flag is set.
13515 (x_draw_glyphs): Fix computation of rightmost x for
13516 full-width rows.
13517 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
13518 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
13519 change bottom shadow accordingly. Some cleanup.
13520 (x_update_window_end): Handle overwritten mouse face
13521 also for tool bar windows.
13522 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
13523 DRAW is DRAW_IMAGE_RAISED.
13524 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
13525 actually redrawn. Make the function static.
13526 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
13527 optimize away highlighting if we pass over that same overlay again.
13528 (note_mouse_highlight): Call mouse_face_overlay_overlaps
13529 to detect a case where we have to highlight a different region
13530 despite not having left the currently highlighted region.
13531 Set mouse_face_overlay in the x_display_info. Avoid changing the
13532 mouse pointer shape when show_mouse_face has already done it, or
13533 there is no need. Handle mouse-face and help-echo in strings.
13534 (glyph_rect): New function.
13535 (w32_mouse_position): Use it to raise the threshold for mouse
13536 movement event generation.
13537 (w32_initialize_display_info): Initialize the x_display_info's
13538 mouse_face_overlay.
13539 (w32_set_vertical_scroll_bar): Don't clear a zero height
13540 or width area.
13541 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
13542 a widget to zero height.
13543
3cf3436e 13544 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 13545 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
13546 equivalents in menu_items.
13547 (w32_menu_show): Don't overwrite an item's name with its key
13548 description in case the description is a multibyte string.
13549 (single_submenu): Some cleanup.
13550
13551 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
13552 (postprocess_image): New function.
13553 (lookup_image): Call it for all image types except PostScript.
13554 (x_kill_gs_process): Call postprocess_image.
13555 (tiff_error_handler, tiff_warning_handler): New functions.
13556 (tiff_load): Install them as handlers.
13557 (x_kill_gs_process): Recognize if someone has cleared the image
13558 cache under us.
13559 (valid_image_p): Protect better against invalid image
13560 specifications. Previous code could signal an error.
13561 (Fx_hide_tip, Fshow_tip): Doc fix.
13562 (Fv_max_tooltip_size): New variable.
13563 (syns_of_xfns): DEFVAR_LISP it.
13564 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
13565 window buffer to *tip* right after creating the frame. Set frame's
13566 window_width. Use a maximum tooltip size specified by
13567 Vx_max_tooltip_size, if that has valid contents.
13568 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
13569 Make sure the tooltip is completely visible.
13570 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
13571 (Fx_create_frame): Adjust the frame's height for presence
13572 of the tool bar before calling x_figure_window_size.
13573 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
13574 when the window gets smaller.
13575 (x_set_foreground_color): Set frame's cursor_pixel.
13576 (x_set_foreground_color, x_set_background_color): Cleaned up.
13577 (x_set_font): Handle case of x_new_fontset returning the same name
13578 as before, although there was a change in fontsets.
13579
386ca361
MB
135802001-10-21 Miles Bader <miles@gnu.org>
13581
c2d53558 13582 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
13583 (Flogxor): Add usage: string to doc string.
13584 * charset.c (Fstring): Likewise.
13585 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
13586 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
13587
f00691a3 135882001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 13589
03be2694
PJ
13590 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
13591
13592 * alloc.c: Reindent DEFUNs with doc: keywords.
13593
13594 * abbrev.c (Finsert_abbrev_table_description): Reindent.
13595
14ff1ee0
PJ
13596 * frame.c: Change doc-string comments to `new style' [w/`doc:'
13597 keyword].
13598
2f147815 13599See ChangeLog.9 for earlier changes.
6922b018
KH
13600
13601;; Local Variables:
49b3bd82 13602;; coding: iso-2022-7bit
6922b018 13603;; End:
2a34a036 13604
2f147815 13605 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
13606 Copying and distribution of this file, with or without modification,
13607 are permitted provided the copyright notice and this notice are preserved.
ab5796a9
MB
13608
13609;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4