(view-file, view-file-other-window, view-file-other-frame):
[bpt/emacs.git] / src / ChangeLog
CommitLineData
1efcd78f
KH
12003-05-31 Kenichi Handa <handa@m17n.org>
2
3 * charset.h (VALID_LEADING_CODE_P): New macro.
4 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
5
778e2804
KH
6 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7 is nonzero, accept multibyte form of eight-bit-control chars.
8 (decode_composition_emacs_mule): Likewise.
9 (decode_coding_emacs_mule): Likewise.
10 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
11 multibyte form of eight-bit-control chars.
12
13 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
14 (Finsert_file_contents): If coding-system-for-read is bound to
15 Qauto_save_coding, use the coding system emacs-mule with special
16 setting for recovering a file.
17 (choose_write_coding_system): On auto saving, use the coding
18 system emacs-mule with special setting for auto saving.
19 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
20
034060e4
KH
212003-05-30 Kenichi Handa <handa@m17n.org>
22
23 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
24 properly before calling ccl_driver.
25
778e2804 26 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
034060e4
KH
27
28 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
29 nonzero.
30 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
31 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
32
103e0180
KH
332003-05-29 Kenichi Handa <handa@m17n.org>
34
35 * coding.c (decode_coding_iso2022): Pay attention to the byte
36 sequence of CTEXT extended segment, and retain those bytes as is.
37
382003-05-28 Kenichi Handa <handa@m17n.org>
39
40 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
41 of CODING_REPLACEMENT_CHARACTER.
42 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
43 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
44 check this flag on encoding.
45 (encode_coding_sjis_big5): Check
46 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
47 (Fset_terminal_coding_system_internal): Set
48 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
49 instead of setting CODING_FLAG_ISO_SAFE flag in
50 terminal_coding.flags.
51
52 * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
53 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
54 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
55
ff6a3bfb 562003-05-28 Richard M. Stallman <rms@gnu.org>
45f266dc 57
ff6a3bfb
RS
58 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
59
60 * eval.c (unbind_to): Move init of this_binding to separate statement.
45f266dc 61
1963c428
KS
622003-05-28 Kim F. Storm <storm@cua.dk>
63
64 * xdisp.c (expose_window): Fix error in calculation of
65 window relative coordinates of area to redisplay.
66
2b5d4601
JR
672003-05-27 Jason Rumney <jasonr@gnu.org>
68
69 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
70
1c64a4a2
JB
712003-05-27 David Ponce <david@dponce.com>
72
73 Handle W32 mouse wheel events as mouse click events, like in X.
74
75 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
76 MOUSE_WHEEL_EVENT anymore.
77
78 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
79 Scrolling down/up the mouse wheel is respectively mapped to mouse
80 button 4 and 5.
81 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
82 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
83 WM_MOUSEWHEEL events.
84
2d031b89
AS
852003-05-27 Andreas Schwab <schwab@suse.de>
86
20464fdf
AS
87 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
88
2d031b89
AS
89 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
90 partially visible line.
91
92 * alloc.c (Fgarbage_collect): Fix last change.
93
97bc76d4
JPW
942003-05-26 John Paul Wallington <jpw@gnu.org>
95
96 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
97
56613f06
SM
982003-05-25 Stefan Monnier <monnier@cs.yale.edu>
99
100 * window.c (Fset_window_buffer): Add type of `keep_margins'.
101 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
102
103 * window.h (window_box_text_cols): Declare.
104
105 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
106 (x_draw_vertical_border): Remove unused var `f'.
107
108 * xfaces.c (build_scalable_font_name): Remove `unused var
109 pixel_size' warning.
110
111 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
112
113 * unexelf.c (unexec): Remove `unused var n' warning.
114
115 * strftime.c (my_strftime_localtime_r): Remove `defined but
116 unused' warning.
117
118 * process.c (allocate_pty): Remove `unused var stb' and
119 `cp might be used uninitialized' warnings.
120
121 * dispnew.c (mode_line_string): Remove unused var `f'.
122
123 * coding.c (find_safe_codings): Remove unused var `i'.
124
125 * bytecode.c (Fbyte_code): Remove `unused val' warning.
126
127 * buffer.c (Fkill_buffer): Remove unused var `list'.
128
129 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
130
93421a1f
JD
1312003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
132
133 * frame.c (make_frame): Condition want_fullscreen with
134 HAVE_WINDOW_SYSTEM.
135
c4b8aebc
JB
1362003-05-25 Juanma Barranquero <lektu@terra.es>
137
138 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
139 (Fwindow_scroll_bars): Fix typo in docstring.
140
0416870b
KS
1412003-05-24 Kim F. Storm <storm@cua.dk>
142
143 The following changes serve several purposes:
144
145 1) Swap the position of fringes and display margins in windows, i.e.
146 the fringes are now displayed between the margins and the text area
147 (by default).
148
149 2) Allow fringe and scroll bar parameters to be set per-buffer and
150 per-window (like display margins). Such settings are now stored
151 in window configurations, preserved when frames are resized, and
9018a88e 152 copied when windows are split vertically or horizontally.
0416870b
KS
153 Several bugs related to display margins have been fixed.
154
155 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
9018a88e 156
0416870b
KS
157 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
158 rather than FRAME_WIDTH (FRAME_FONT (f)).
159
160 5) Introduce a consistent naming of variables, members and macros
161 depending on whether their value is measured in pixels or in
162 canonical columns/lines. Pixel dimensions are named *_width and
163 *_height, while canonical columns/lines are named *_cols and
164 *_lines. Pixel positions are named *_x and *_y, while column/line
165 positions are named *_col and *_line.
166
167 6) Consolidate more of the X, W32, and MAC gui code by moving
168 common data into struct frame, and generalize it for the non-gui
169 case by using suitable defaults.
170
171 7) Cleanup and consolidate the macros controlling frame and window
172 layout into frame.h and window.h, and generalize the use of the
173 various window_box_* functions (enhanced to handle the new fringe
174 position and the per-window fringe and scroll bar settings).
175
176 * frame.h (struct frame): Rename members height to text_lines,
177 width to text_cols, window_height to total_lines, window_width to
178 total_cols, new_height to new_text_lines, new_width to
179 new_text_cols. All uses changed.
180 (struct frame): New members which consolidate common members of
181 x_output, w32_output, and mac_output structures: left_pos,
182 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
183 win_gravity, size_hint_flags, border_width, internal_border_width,
184 line_height, fringe_cols, left_fringe_width, right_fringe_width,
185 want_fullscreen. All uses changed.
186 (struct frame): New member column_width contaning the canonical
187 column width, analogue to line_height. All uses changed.
188 (struct frame): Rename members scroll_bar_pixel_width to
189 config_scroll_bar_width, and scroll_bar_cols to
190 config_scroll_bar_cols. All uses changed.
191 (struct frame): New member scroll_bar_actual_width which
192 consolidates and renames the vertical_scroll_bar_extra member of
193 x_output, w32_output, and mac_output structures. All uses changed.
194 (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
195 from x/w32/macterm.h files. All uses changed. Also change code
196 which referred to f->output_data...->pixel_height.
197 (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
198 from x/w32/macterm.h files. All uses changed. Also change code
199 which referred to f->output_data...->pixel_width.
200 (FRAME_LINES): Renamed from FRAME_HEIGHT. All uses changed.
201 Also change code which referred to f->height.
202 (FRAME_COLS): Renamed from FRAME_WIDTH. All uses changed.
203 Also change code which referred to f->width.
204 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
205 to update new_text_lines and new_text_cols members directly.
206 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
207 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
208 (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
209 FRAME_SCROLL_BAR_COLS. All uses changed.
210 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
211 Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
212 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
213 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
214 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
215 (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
216 (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
217 (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
218 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
219 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
220 (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT. Unconditionally
221 return line_height member (it now has proper value also for
222 non-window frames).
223 (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT. Unconditionally
224 return new column_width member (rather than the default font width).
225 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
226 (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
227 from x/w32/macterm.h files. Unconditionally return corresponding
228 member of frame structure (they now have proper values also for
229 non-window frames).
230 (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
231 Calculate return value from left and right widths.
232 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
233 internal_border_width member (has proper value for non-window frame).
234 (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
235 (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
236 (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
237 (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
238 (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
239 consolidated from xterm.h, macterm.h, and w32term.h.
240 (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
241 consolidated from xterm.h, macterm.h, and w32term.h.
242 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
243 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
244 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
245 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
246 (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
247 consolidated from x/mac/w32term.h.
248 (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
249 consolidated from x/mac/w32term.h.
250 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
251 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
252 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
253 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
254
255 * window.h (struct window): Rename members left to left_col,
256 top to top_line, height to total_lines, width to total_cols,
257 left_margin_width to left_margin_cols, right_margin_width to
258 right_margin_cols, orig_height to orig_total_lines, orig_top to
259 orig_top_line. All uses changed.
260 (struct window): New members left_fringe_width, right_fringe_width,
261 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
262 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
263 New macros primarily used to simplify other macros.
264 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
265 referred to XINT (w->width).
266 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
267 referred to XINT (w->height).
268 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
269 referred to XINT (w->width) * canon_x_unit.
270 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
271 referred to XINT (w->height) * canon_y_unit.
272 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
273 referred to XINT (w->left).
274 (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE. Change
275 all uses and code that referred to XINT (w->left) + XINT (w->width).
276 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
277 referred to XINT (w->top).
278 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
279 referred to XINT (w->top) + XINT (w->height).
280 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
281 referred to XINT (w->left) * canon_x_unit.
282 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
283 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
284 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
285 referred to XINT (w->top) * canon_y_unit.
286 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
287 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
288 (WINDOW_LEFTMOST_P): New macro.
289 (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
290 All uses changed.
291 (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
292 All uses changed.
293 (WINDOW_BOX_LEFT_EDGE_X): Renamed from
294 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
295 Do not exclude left fringe width.
296 (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
297 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
298 Do not exclude fringe widths.
299 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
300 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
301 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
302 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
303 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
304 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
305 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
306 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
307 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
308 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
309 New macros. Change code which referenced corresponding
310 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
311 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
312 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
313 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
314 allow per-window scroll-bar settings.
315 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
316 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
317 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
318 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
319 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
320 FRAME_SCROLL_BAR_WIDTH.
321 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
9018a88e 322 (WINDOW_SCROLL_BAR_AREA_X): New macros.
0416870b
KS
323 (WINDOW_HEADER_LINE_HEIGHT): Renamed from
324 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
325 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
326 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
327 (WINDOW_BOX_TEXT_HEIGHT): Renamed from
328 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
329 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
330 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
331 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
332 (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
333 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
334 (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
335 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
336 (window_from_coordinates): Update prototype.
337 (Fset_window_buffer): Update EXFUN.
338 (set_window_buffer): Update prototype.
9018a88e 339
0416870b 340 * dispextern.h (struct glyph_matrix): Rename members window_left_x
9018a88e 341 to window_left_col, window_top_y to window_top_line. All uses
0416870b
KS
342 changed.
343 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
344 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
345 internal_border_width is now set to 0 for non-window frames.
346 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
347 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
348 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
349 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
350 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
351 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
352 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
353 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
354 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
9018a88e 355 Move to window.h and renamed [see window.h changes].
0416870b
KS
356 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
357 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
9018a88e
SM
358 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
359 Use WINDOW_TOTAL_LINES.
0416870b
KS
360 (frame_update_line_height): Remove prototype.
361
362 * buffer.h (struct buffer): Rename members measured in columns:
363 left_margin_width to left_margin_cols, right_margin_width to
364 right_margin_cols. All uses changed.
365 New members left_fringe_width, right_fringe_width,
366 fringes_outside_margins for per-buffer fringe settings.
367 New members scroll_bar_width and vertical_scroll_bar_type for
368 per-buffer scroll bar settings.
369
370 * buffer.c (init_buffer_once): Set buffer_defaults and
371 buffer_local_flags for new buffer-local variables
372 left_fringe_width, right_fringe_width, fringes_outside_margins,
373 scroll_bar_width, and vertical_scroll_bar_type.
374 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
375 default-* variables for them.
376
377 * dispnew.c: Make (many) trivial substitutions for renamed and
378 new macros in dispextern.h, frame.h and window.h.
379 (mode_line_string): No need to adjust width for mode lines, as it
380 is already adjusted by the caller.
381 (marginal_area_string): Handle fringes inside/outside margins.
9018a88e 382
0416870b
KS
383 * frame.c: Make (many) trivial substitutions for renamed and
384 new macros in dispextern.h, frame.h and window.h.
385 (make_frame): Initialize left_fringe_width, right_fringe_width,
386 fringe_cols, scroll_bar_actual_width, border_width,
387 internal_border_width, column_width, line_height, x_pixels_diff,
388 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
389 members with values suitable for a non-window frames.
390
391 * gtkutil.c: Make (many) trivial substitutions for renamed and
392 new macros in dispextern.h, frame.h and window.h.
9018a88e 393
0416870b
KS
394 * indent.c: Make (few) trivial substitutions for renamed and
395 new macros in dispextern.h, frame.h and window.h.
396
397 * keyboard.c: Make (many) trivial substitutions for renamed and
398 new macros in dispextern.h, frame.h and window.h.
399 (make_lispy_event): Use window positions returned from
400 window_from_coordinates when constructing the lisp event for
401 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
402 (incorrect) values locally.
403 (make_lispy_movement): Use window positions returned from
404 window_from_coordinates when constructing the lisp event, rather
405 than calculating (incorrect) values locally.
406
407 * scroll.c: Make (some) trivial substitutions for renamed and
408 new macros in dispextern.h, frame.h and window.h.
409
410 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
411 scroll-bars.
412
413 * sysdep.c: Make (few) trivial substitutions for renamed and
414 new macros in dispextern.h, frame.h and window.h.
415
416 * term.c: Make (some) trivial substitutions for renamed and
417 new macros in dispextern.h, frame.h and window.h.
418
419 * widget.c: Make (few) trivial substitutions for renamed and
420 new macros in dispextern.h, frame.h and window.h.
421
422 * window.c: Make (many) trivial substitutions for renamed and
423 new macros in dispextern.h, frame.h and window.h.
424 (make_window): Initialize new members
425 left_margin_cols, right_margin_cols, left_fringe_width,
426 right_fringe_width, fringes_outside_margins, scroll_bar_width,
427 and vertical_scroll_bar_type.
428 (coordinates_in_window): Adapted to new fringe/margin positions
9018a88e 429 and per-window fringes and scroll-bars.
0416870b 430 Fix bug related to incorrectly adjusting coordinates by
9018a88e 431 frame's internal_border_width (the effect normally negible since
0416870b
KS
432 the internal_border_width is typically 0 or 1 pixel, but very
433 noticeable for an internal_border_width of e.g. 25 pixels).
434 Upon successful return (other than ON_NOTHING), the coordinates
435 are now always properly converted to window relative for the
436 given display element.
437 (window_from_coordinates): Add new parameters wx and wy to
438 return the window relative x and y position in the returned
439 window and part. A null arg means, don't return the position.
440 All callers changed.
441 (adjust_window_margins): New function which may reduce the width
442 of the display margins if a window's text area is too small after
443 resizing or splitting windows.
444 (size_window): Fix bug that did not account for display margin
445 widths when checking the minimum width of a window; use
446 adjust_window_margins.
447 (set_window_buffer): Call Fset_window_fringes and
448 Fset_window_scroll_bars to setup per-window elements.
449 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
450 existing display margin, fringe widths, and scroll bar settings
9018a88e
SM
451 (e.g. after splitting a window or resizing the frame).
452 All callers changed.
0416870b
KS
453 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
454 (Fsplit_window): Duplicate original window's display margin,
455 fringe, and scroll-bar settings; then call Fset_window_buffer with
456 KEEP_MARGINS non-nil. This fixes a bug which caused a split
457 window to only preserve the display margins in one of the windows.
c4b8aebc 458 When splitting horizontally, call adjust_window_margins on both
0416870b
KS
459 windows to ensure that the text area of the new windows is non too
460 narrow. This fixes a bug which could cause emacs to trap if the
461 width of the split window was less than the width of the display
462 margins.
9018a88e
SM
463 (window_box_text_cols): Renamed from window_internal_width.
464 All uses changed. Adapt to per-window fringes and scroll bars.
0416870b
KS
465 Fix bug that caused vertical separator to be subtracted also on
466 window frames. Fix another bug that did not reduce the returned
467 value by the columns used for display margins.
468 (window_scroll_line_based): Fix bug related to scrolling too much
469 when display margins are present (implicitly fixed by the fix to
470 window_box_text_cols).
471 (scroll_left, scroll_right): Fix bug related to scrolling too far
472 by default when display margins are present (implicitly fixed by
473 the fix to window_box_text_cols).
474 (struct saved_window): Rename members left to left_col, top to
475 top_line, width to total_cols, height to total_lines, orig_top to
476 orig_top_line, orig_height to orig_total_lines. All uses changed.
477 New members left_margin_cols, right_margin_cols,
478 left_fringe_width, right_fringe_width, fringes_outside_margins,
479 scroll_bar_width, and vertical_scroll_bar_type for saving
480 per-window display elements.
481 (Fset_window_configuration): Restore display margins, fringes,
482 and scroll bar settings. This fixes a bug which caused display
483 margins to be discarded when saving and restoring a window
484 configuration.
485 (save_window_save): Save display margins, fringes, and scroll bar
486 settings. This fixes a bug which caused display margins to be
487 discarded when saving and restoring a window configuration.
488 (Fset_window_margins): Do nothing if display margins are not
489 really changed. Otherwise, call adjust_window_margins to ensure
490 the text area doesn't get too narrow. This fixes a bug which
491 could cause emacs to trap if setting display margins wider than
492 the width of the window.
493 (Fset_window_fringes): New defun to allow user to specifically set
494 this window's fringe widths and position vs. display margins.
495 (Fwindow_fringes): New defun to return window's actual fringe
496 settings.
497 (Fset_window_scroll_bars): New defun to allow user to specifically
498 set this window's scroll bar width and position.
499 (Fwindow_scroll_bars): New defun to return window's actual scroll
500 bar settings.
501 (compare_window_configurations): Also compare display margins,
502 fringes, and scroll bar settings.
503 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
504
505 * xdisp.c: Make (many) trivial substitutions for renamed and
506 new macros in dispextern.h, frame.h and window.h.
507 (window_box_width): Adapt to per-window fringes and scroll bars,
508 and new fringe vs. display margin position. Note that returned
509 value is no longer guaranteed to be a whole multiple of the frame
510 column width, since per-window fringes may now be any width.
511 (window_box_left_offset): New function like window_box_left, but
512 value is relative to left border of window (rather than frame).
513 (window_box_right_offset): New function like window_box_right,
514 but value is relative to left border of window.
515 (window_box_left): Adapt to per-window fringes and scroll bars,
516 and new fringe vs. display margin position. Simplify by using
517 WINDOW_LEFT_EDGE_X and window_box_left_offset.
518 (window_box): Allow null args for unnecessary return values;
519 change/simplify relevant callers.
520 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
9018a88e
SM
521 and new fringe vs. display margin position.
522 Use window_box_left_offset and window_box_right_offset
0416870b 523 (get_glyph_string_clip_rect): Adapt to per-window fringes and
9018a88e
SM
524 scroll bars, and new fringe vs. display margin position.
525 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
0416870b
KS
526 (draw_fringe_bitmap): Rework to handle per-window fringes and new
527 fringe vs. display margin position.
528 (hscroll_window_tree): Use window_box_width instead of window_box.
529 (redisplay_window): Adapt to per-window scroll bars.
530 (draw_glyphs): Rework to handle per-window fringes and scroll
9018a88e
SM
531 bars, and new fringe vs. display margin position.
532 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
0416870b
KS
533 (x_clear_end_of_line): Adapt to per-window fringes and scroll
534 bars, and new fringe vs. display margin position. Fix bug which
535 increased total width of full_width rows by width of scroll bars
536 although window's total width already includes that.
537 (x_fix_overlapping_area): Simplify using window_box_left_offset.
538 (expose_area): Simplify using window_box_left_offset.
539 (x_draw_vertical_border): Handle per-window scroll bar settings,
540 mixing windows with left, right and no scroll bars.
541
542 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
543 where it's used in x_list_fonts (for clarity).
544 (frame_update_line_height): Remove unused function; functionality
545 is now done directly when setting the default font in x_set_font.
546
547 * xfns.c: Make (many) trivial substitutions for renamed and
548 new macros in dispextern.h, frame.h and window.h.
549
550 * xmenu.c: Make (some) trivial substitutions for renamed and
551 new macros in dispextern.h, frame.h and window.h.
552
553 * xterm.h (struct x_output): Move members left_pos, top_pos,
554 border_width, pixel_height, pixel_width, line_height,
555 internal_border_width, vertical_scroll_bar_extra,
556 left_fringe_width, right_fringe_width, fringe_cols,
557 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
558 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
559 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
560 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
561 (PIXEL_WIDTH, PIXEL_HEIGHT)
562 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
563 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
564 frame.h and renamed [see frame.h changes].
565 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
566 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
567 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
568 and renamed [see frame.h changes].
9018a88e 569
0416870b
KS
570 * xterm.c: Make (several) trivial substitutions for renamed and
571 new macros in dispextern.h, frame.h and window.h.
572 (x_draw_glyph_string_box): Adapt to per-window fringes and
573 scroll-bars.
574 (scroll_run): Adapt to new fringe position.
575 (glyph_rect): Use window coordinates returned from
576 window_from_coordinates rather than frame_to_window_pixel_xy.
577 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
578 scroll-bars.
579 (handle_one_xevent): Simplify a USE_GTK conditional.
580 (x_clip_to_row): Remove superfluous whole_line_p arg and code
581 (fringes are now inside margins, i.e. always in the clipping area).
582 All callers changed.
583 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
584 directly, then call compute_fringe_widths. Don't call
585 frame_update_line_height.
586
587 * w32term.h (struct w32_output): Move members left_pos, top_pos,
588 border_width, pixel_height, pixel_width, line_height,
589 internal_border_width, vertical_scroll_bar_extra,
590 left_fringe_width, right_fringe_width, fringe_cols,
591 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
592 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
593 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
594 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
595 (PIXEL_WIDTH, PIXEL_HEIGHT)
596 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
597 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
598 frame.h and renamed [see frame.h changes].
599 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
600 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
601 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
602 and renamed [see frame.h changes].
9018a88e 603
0416870b
KS
604 * w32term.c: Make (several) trivial substitutions for renamed and
605 new macros in dispextern.h, frame.h and window.h.
606 (x_draw_glyph_string_box): Adapt to per-window fringes and
607 scroll-bars.
608 (glyph_rect): Use window coordinates returned from
609 window_from_coordinates rather than frame_to_window_pixel_xy.
610 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
611 scroll-bars.
612 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
613 (fringes are now inside margins, i.e. always in the clipping area).
614 All callers changed.
615 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
616 directly, then call compute_fringe_widths. Don't call
617 frame_update_line_height.
618
619 * w32console.c: Make (few) trivial substitutions for renamed and
620 new macros in dispextern.h, frame.h and window.h.
621
622 * w32fns.c: Make (many) trivial substitutions for renamed and
623 new macros in dispextern.h, frame.h and window.h.
624
625 * w32menu.c: Make (few) trivial substitutions for renamed and
626 new macros in dispextern.h, frame.h and window.h.
627
628 * macterm.h (struct mac_output): Move members left_pos, top_pos,
629 border_width, pixel_height, pixel_width, line_height,
630 internal_border_width, vertical_scroll_bar_extra,
631 left_fringe_width, right_fringe_width, fringe_cols,
632 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
633 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
634 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
635 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
636 (PIXEL_WIDTH, PIXEL_HEIGHT)
637 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
638 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
639 frame.h and renamed [see frame.h changes].
640 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
641 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
642 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
643 and renamed [see frame.h changes].
9018a88e 644
0416870b
KS
645 * macterm.c: Make (several) trivial substitutions for renamed and
646 new macros in dispextern.h, frame.h and window.h.
647 (x_draw_glyph_string_box): Adapt to per-window fringes and
648 scroll-bars.
649 (glyph_rect): Use window coordinates returned from
650 window_from_coordinates rather than frame_to_window_pixel_xy.
651 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
652 scroll-bars.
653 (x_clip_to_row): Remove superfluous whole_line_p arg and code
654 (fringes are now inside margins, i.e. always in the clipping area).
655 All callers changed.
656 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
657 directly, then call compute_fringe_widths. Don't call
658 frame_update_line_height.
659
660 * macfns.c: Make (several) trivial substitutions for renamed and
661 new macros in dispextern.h, frame.h and window.h.
9018a88e 662 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
0416870b
KS
663
664 * macmenu.c: Make (few) trivial substitutions for renamed and
665 new macros in dispextern.h, frame.h and window.h.
666
667 * msdos.h (struct x_output): Remove members left_pos, top_pos,
668 and line_height, and use corresponding new members in struct
669 frame. All uses changed.
670 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
671 superseeded by corresponding macros in frame.h.
672
673 * msdos.c: Make (several) trivial substitutions for renamed and
674 new macros in dispextern.h, frame.h and window.h.
675 (IT_note_mouse_highlight): Use updated window coordinates returned
9018a88e 676 by window_from_coordinates, rather than adjusting them locally.
0416870b
KS
677 (internal_terminal_init): No need to initialize line_height here;
678 it now defaults to 1.
679
9018a88e
SM
6802003-05-24 Stefan Monnier <monnier@cs.yale.edu>
681
682 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
683 dropping `down' events.
684
016bd3c0
AS
6852003-05-24 Andreas Schwab <schwab@suse.de>
686
687 * coding.c (find_safe_codings): Fix last change.
688
4dacadcc
TTN
6892003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
690
691 * xfns.c (x_window): Fix typo from 2003-05-21 change.
692
319830ce
SM
6932003-05-23 Stefan Monnier <monnier@cs.yale.edu>
694
9018a88e
SM
695 * xdisp.c (display_mode_element): Increase max depth.
696 Simplify the error handling code. Use a different error string
697 for the case where we hit the depth limit.
698
319830ce
SM
699 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
700
701 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
702
7032003-05-21 Stefan Monnier <monnier@cs.yale.edu>
704
705 * intervals.c (get_local_map): Don't get char-property of previous
706 point any more: get_pos_property already does it and better.
707
c67de8ba
DL
7082003-05-21 Dave Love <fx@gnu.org>
709
710 [Merged from unicode branch.]
711
712 * xfns.c (x_window, x_window): Use use_xim.
713
714 * xterm.c (use_xim): Initialize.
715 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
716 (x_term_init): Maybe set use_xim.
717
718 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
719
edd3ff1d
JR
7202003-05-21 Jason Rumney <jasonr@gnu.org>
721
722 * unexw32.c (_start): Remove _fmode initialization.
723
724 * emacs.c (main) [WINDOWSNT]: Move it here.
725
463f55ee
DL
7262003-05-20 Dave Love <fx@gnu.org>
727
728 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
729
af253914
RS
7302003-05-19 Richard M. Stallman <rms@gnu.org>
731
732 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
733 as value for QCfont attribute.
734 (realize_default_face): lface should already exist; crash if not.
735 Specify 0 for FORCE_P when calling set_lface_from_font_name.
736
737 * frame.c (Fignore_event): Doc fix.
738
1d211019
KH
7392003-05-19 Kenichi Handa <handa@m17n.org>
740
741 * coding.c (decode_coding_string): Handle post-read-conversion
742 even if the coding doesn't require decoding.
743
4dd68254
RS
7442003-05-18 Richard M. Stallman <rms@gnu.org>
745
746 * callproc.c (Fcall_process_region): Doc fix.
747
14d87dc9
SM
7482003-05-17 Stefan Monnier <monnier@cs.yale.edu>
749
deca5d96
SM
750 * lread.c (Fload): Print a message if package is obsolete.
751
14d87dc9
SM
752 * window.c (Fselect_window): Add optional `norecord' arg.
753 (select_window_1): Fold into Fselect_window.
754 (select_window_norecord): New function.
755 (temp_output_buffer_show): Use it. Preserve current buffer.
756
757 * window.h (Fselect_window): Update declaration.
758
759 * window.c (delete_window, Fother_window, Fset_window_configuration):
760 * minibuf.c (read_minibuf):
761 * macterm.c (x_new_focus_frame):
762 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
763 * callint.c (Fcall_interactively):
764 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
765
766 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
767
78f52183
DK
7682003-05-17 David Kastrup <dak@gnu.org>
769
770 * process.c (read_process_output): Back out change from 2003-03-09.
771
14d87dc9
SM
7722003-05-17 Stefan Monnier <monnier@cs.yale.edu>
773
774 * editfns.c (get_pos_property): Don't assume that `object' = nil.
775
776 * textprop.c (text_property_stickiness): New arg `buffer'.
777
778 * intervals.h (text_property_stickiness): New arg `buffer'.
779 (get_pos_property): Declare.
780
781 * intervals.c (get_local_map): Use get_pos_property, to obey
782 stickiness and empty overlays.
783 (create_root_interval, graft_intervals_into_buffer): Use BEG.
784 (merge_properties, intervals_equal, merge_properties_sticky):
785 Use XCAR, XCDR.
786 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
787
1fd1cc2f
RS
7882003-05-17 Richard M. Stallman <rms@gnu.org>
789
4f9f637a
RS
790 * minibuf.c (read_minibuf): If buffer is empty, record the default
791 in the history.
792 (Fminibuffer_complete_word): When deleting the overlap, take account
793 of its real position.
794
795 * fns.c (map_char_table): Fix previous change.
796
1fd1cc2f
RS
797 * syntax.c (find_defun_start):
798 When open_paren_in_column_0_is_defun_start,
799 return beginning of buffer.
800
801 * lisp.h (map_char_table): Declare added arg.
802
803 * fns.c (map_char_table): New arg TABLE gets the master table.
804 All calls changed.
805 Process default and inheritance, resorting to Faref if necessary.
806
807 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
808 (Faccessible_keymaps): Pass new arg to map_char_table.
809
810 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
811
812 * casetab.c (set_case_table): Pass new arg to map_char_table.
813
814 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
815
816 * lisp.h (specbinding_func): New typedef.
817 (struct specbinding): Use specbinding_func, to put the `volatile'
818 in the right place.
819
820 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
821 to avoid GCC warning.
14d87dc9 822
b4bd27c5
RS
8232003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org> (tiny change)
824
14d87dc9 825 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
b4bd27c5 826
35fb885d
SM
8272003-05-15 Stefan Monnier <monnier@cs.yale.edu>
828
829 * keyboard.c (apply_modifiers): Don't fill the other cache.
830
9a274fbd
SM
8312003-05-14 Stefan Monnier <monnier@cs.yale.edu>
832
c55b5fad
SM
833 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
834
9a274fbd
SM
835 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
836 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
837 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
838 (Fset_window_configuration, Fcurrent_window_configuration)
839 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
840 (Fpos_visible_in_window_p, mark_window_cursors_off)
841 (window_internal_height, window_internal_width, Frecenter)
842 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
843 (replace_buffer_in_all_windows, init_window_once, init_window)
844 (syms_of_window, keys_of_window): Move from lisp.h.
845 * lisp.h: Move window.c declarations to window.h.
846
847 * bytecode.c: Include window.h.
848 * emacs.c: Include window.h.
849
14d87dc9 850 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
9a274fbd
SM
851 (keyremap): Add `parent' field.
852 (keyremap_step): Use it. Remove `parent' argument.
853 (read_key_sequence): Setup and use the new `parent' field.
854
fd93e331
SM
8552003-05-11 Stefan Monnier <monnier@cs.yale.edu>
856
857 * keyboard.c (adjust_point_for_property): Ensure termination.
858
1c4001a1
SM
8592003-05-10 Stefan Monnier <monnier@cs.yale.edu>
860
861 * keyboard.c (follow_key): Remove dead variable `did_meta'.
862 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
863 duplicated handling of function-key-map and key-translation-map
864 in read_key_sequence.
865 (read_key_sequence): Use them.
866
867 * keyboard.c (adjust_point_for_property): Try harder to move point
868 to the non-sticky end of an invisible property.
869
870 * xdisp.c (single_display_prop_intangible_p): Make `space' display
871 property intangible as well.
872
780379b1
AS
8732003-05-10 Andreas Schwab <schwab@suse.de>
874
875 * xmenu.c (single_menu_item): Change last parameter to void* to
876 avoid warning.
877
ca2de342
RS
8782003-05-09 Richard M. Stallman <rms@gnu.org>
879
880 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
881 Bind Qinhibit_modification_hooks to t so there will be no GC.
882 Rename local `tem' to `save_deactivate_mark'.
883
884 * eval.c (specpdl_ptr): Declare volatile.
885 (unbind_to): Copy the whole binding and decrement specpdl_ptr
886 before doing the work of unbinding it.
887
888 * lisp.h (struct specbinding): Declare elements volatile.
889 (specpdl_ptr): Declare volatile.
890
891 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
892
893 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
894 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
895
347003be
DL
8962003-05-08 Dave Love <fx@gnu.org>
897
898 * coding.c (Vlast_coding_system_used): Doc fix.
899
5adcec23
JR
9002003-05-07 Jason Rumney <jasonr@gnu.org>
901
902 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
903 when system does not support them.
904
5fe3b8a4
SM
9052003-05-05 Stefan Monnier <monnier@cs.yale.edu>
906
907 * fileio.c (Qwrite_region_annotate_functions): New var.
908 (build_annotations): Use it to process the global part of the hook.
909 (syms_of_fileio): Init and staticpro it.
910
911 * keyboard.c (safe_run_hooks_error): Display a message instead of
912 silently ignoring the error.
913
9142003-05-03 Stefan Monnier <monnier@cs.yale.edu>
915
916 * keyboard.c (input_available_signal): Mark static.
917 (menu_bar_items): Use map_keymap.
918 (menu_bar_one_keymap): Remove.
919 (menu_bar_item): Adjust arglist (for use in map_keymap).
920 Properly hide a second binding when not both are keymaps.
921
922 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
923 (single_keymap_panes): Use it and map_keymap.
924 (single_menu_item): Use skp as well.
925
926 * keymap.h (map_keymap_function_t): New type.
927 (map_keymap): Declare.
928
929 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
930 (map_keymap_call, Fmap_keymap): New functions.
931 (syms_of_keymap): Defsubr map-keymap.
932
4b1b4443
JD
9332003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
934
935 * gtkutil.c (create_dialog, make_widget_for_menu_item)
936 (make_menu_item, create_menus, xg_update_menu_item): Don't call
937 ..._with_mnemonic functions for menu items.
938
1f816871
KH
9392003-05-01 Kenichi Handa <handa@m17n.org>
940
941 * coding.c (coding_system_accept_latin_extra_p): Delete this
942 function.
943 (find_safe_codings): Pay attention to
944 the property tranlsation-table-for-encode of each codings.
945 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
946
5ed6ba5b
SM
9472003-05-01 Stefan Monnier <monnier@cs.yale.edu>
948
949 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
950
32c06229
SM
9512003-04-30 Stefan Monnier <monnier@cs.yale.edu>
952
953 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
954
955 * lisp.h (CHECK): Wrap args in parenthesis.
956 (specbind): Fix doc: symbol = Qnil is not supported any more.
957
958 * bytecode.c (Fbyte_code) <unwind-protect>:
959 Use Fprogn rather than 0 and Qnil.
960
961 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
962 `double', and `triple' modifiers as well.
963
ed3c3314
RS
9642003-04-30 Richard M. Stallman <rms@gnu.org>
965
966 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
967
968 * alloc.c (abort_on_gc): New variable.
969 (Fgarbage_collect): Abort if abort_on_gc is set.
970
971 * lisp.h (abort_on_gc): Add decl.
972
973 * eval.c (Fsignal): Clear abort_on_gc.
974
975 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
32c06229 976 Reinit FORMAT_START and END before second scan.
ed3c3314
RS
977
978 * xdisp.c (move_it_vertically_backward): Do the final big else
979 even if nlines is 0.
980
981 * xdisp.c (redisplay_internal): Finish the per-frame loop
982 even if redisplay is suspended by input.
983
0b325c12
AC
9842003-04-24 Andrew Choi <akochoi@shaw.ca>
985
986 * macterm.c (x_list_fonts): Return all fonts that match if
987 maxnames = -1.
988
4e837cd0
KH
9892003-04-25 Kenichi Handa <handa@m17n.org>
990
991 * syntax.c (skip_chars): Fix previous change.
992
9af7511a
KH
9932003-04-24 Kenichi Handa <handa@m17n.org>
994
995 * syntax.c (skip_chars): Make the code faster by using the common
996 technique of *p, *stop, and *endp.
997
e3b2c21f
JD
9982003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
999
1000 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
32c06229 1001 tool_bar_items so GTK tool bar expose callback does not access items
e3b2c21f
JD
1002 being updated.
1003
32c06229
SM
10042003-04-19 Stefan Monnier <monnier@cs.yale.edu>
1005
1006 * eval.c (Fapply): Undo last change and add a comment about why.
1007
c6464167
MB
10082003-04-18 Miles Bader <miles@gnu.org>
1009
1010 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
1011 pickier PARSE_MULTIBYTE_SEQ.
1012
e509f168
SM
10132003-04-17 Stefan Monnier <monnier@cs.yale.edu>
1014
1015 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
1016 Use XCDR, XCAR, CONSP.
1017 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
1018 (Fapply): Remove unnecessary GCPRO.
1019
1020 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
1021
1022 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
1023
1024 * buffer.h: Don't hardcode BEG==1.
1025
1026 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
1027
5ceea398
RS
10282003-04-16 Richard M. Stallman <rms@gnu.org>
1029
1030 * xdisp.c (try_window, try_window_reusing_current_matrix):
1031 When at end of window, set window_end_pos to Z-ZV.
1032
1033 * buffer.c (Foverlay_recenter): Doc fix.
1034
e509f168
SM
10352003-04-14 Stefan Monnier <monnier@cs.yale.edu>
1036
1037 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
1038
d243e605
AC
10392003-04-14 Andrew Choi <akochoi@shaw.ca>
1040
1041 * macterm.c (mac_check_for_quit_char): Don't check more often than
1042 once a second.
1043
6901b111
SM
10442003-04-11 Stefan Monnier <monnier@cs.yale.edu>
1045
1046 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
1047 specially, so that they can't hide an implicit switch-frame event.
1048 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
1049 (head_table): Use switch-frame as event_kind for select-window.
1050 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
1051
1052 * editfns.c (Fformat): Lisp_Object/int mixup.
1053 (format2): Remove unused var numargs.
1054
e301806f 10552003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 1056
6901b111 1057 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
1058 (Qafter_insert_file_set_coding): New variable.
1059 (syms_of_fileio): Initialize and staticpro it. Delete declaration
1060 for after-insert-file-adjust-coding-function.
1061 (Finsert_file_contents): Call Qafter_insert_file_set_coding
1062 instead of Vafter_insert_file_adjust_coding_function.
1063
38914424
KH
10642003-04-11 Kenichi Handa <handa@m17n.org>
1065
1066 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
1067
1068 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
1069 string. Callers changed.
1070
10712003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 1072
6901b111 1073 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 1074 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
1075 (Finsert_file_contents):
1076 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
1077 decode-format.
1078
f979dc05
JD
10792003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1080
1081 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
1082 get GtkAdjustment as widget now is a GtkRange.
1083
1084 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
1085 GtkRange to avoid memory leak.
1086
f8c6b4c2 10872003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 1088
50ebc53d
KH
1089 * xfaces.c (Vface_font_rescale_alist): New variable.
1090 (struct font_name): New member rescale_ratio.
1091 (font_rescale_ratio): New function.
6901b111 1092 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
1093 (better_font_p): On comparing point sized, pay attention to
1094 recale_ratio member of fonts.
1095 (build_scalable_font_name): Reflect font->rescale_ratio in the
1096 font name.
6901b111 1097 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 1098
cb98871c
KH
1099 * lread.c (read1): Before calling index, check if the 2nd
1100 arguemnt is in ASCII range.
1101
4773b8ca
RS
11022003-04-08 Richard M. Stallman <rms@gnu.org>
1103
b0ada147
RS
1104 * fileio.c (Ffile_symlink_p): Doc fix.
1105
1106 * editfns.c (Fformat): Translate positions of text properties
1107 in the format string to apply them to the result.
1108
4773b8ca
RS
1109 * fileio.c (Finsert_file_contents): Doc fix.
1110 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1111
11122003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 1113
4773b8ca
RS
1114 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
1115
e8f25745 11162003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 1117
e8f25745
ST
1118 * mac.c (init_mac_osx_environment): Switch libexec and bin so
1119 that self-contained application finds libexec files.
1120
f8c6b4c2 11212003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 1122
6901b111
SM
1123 * coding.c (code_convert_region_unwind):
1124 Set Vlast_coding_system_used to the argument.
2310d84c
KH
1125 (code_convert_region): If post-read-conversion function changed
1126 the value of last-coding-sytem, keep the new value in
1127 coding->symbol so that it won't be overridden.
1128 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
1129 (coding_system_accept_latin_extra_p): New function.
1130 (find_safe_codings): Pay attention to characters registered in
1131 latin-extra-code-table.
2310d84c 1132
39c9a034
TTN
11332003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
1134
1135 * Makefile.in (md5.o): Add missing dependency info.
1136
eb67c5d6
RS
11372003-04-06 Richard M. Stallman <rms@gnu.org>
1138
1139 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
1140
1141 * marker.c (verify_bytepos): New function.
1142
1143 * intervals.c (set_intervals_multibyte_1): When becoming
1144 multibyte, adjust right and left child sizes to a whole set of
1145 characters. If an interval gets zero total-length, delete it.
1146 If an interval consists of just its children, delete one of them.
1147
1148 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
1149 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 1150
eb67c5d6
RS
1151 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
1152 All calls deleted.
1153 (lisp_malloc): Do the work here directly.
1154
b1f81fc5
JB
11552003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
1156
1157 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
1158 char tables.
1159
11602003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
1161
1162 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
1163 destructively change "%S" to "%s".
1164
774666fb
MB
11652003-04-03 Miles Bader <miles@gnu.org>
1166
1167 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
1168 always set.
1169
19c37f01
DL
11702003-04-01 Dave Love <fx@gnu.org>
1171
1172 * xfns.c (xpm_lookup_color): Grok "opaque".
1173
2f4b24c3
AC
11742003-03-31 Andrew Choi <akochoi@shaw.ca>
1175
1176 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
1177 parent window ID.
1178
1179 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
1180
1181 * macterm.h (struct mac_output): Define x_pixels_diff and
1182 y_pixels_diff.
b1f81fc5 1183
9443fcf6
JB
11842003-03-31 Juanma Barranquero <lektu@terra.es>
1185
1186 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
1187 blockinput.h and files included from it.
1188
e072891b
KS
11892003-03-31 Kim F. Storm <storm@cua.dk>
1190
1191 The following changes consolidates the common code related to
1192 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
1193 files into frame.c.
9443fcf6 1194
e072891b
KS
1195 * frame.c: Include blockinput.h.
1196 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
1197 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
1198 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
1199 related vars here.
1200 (struct frame_parm_table, frame_parms): New table for describing
1201 frame parameters and their associated Q-variable.
1202 The order of the parameters corresponds to the sequence of the
1203 frame_parm_handlers table in redisplay_interface.
1204 (x_fullscreen_move, x_set_frame_parameters)
1205 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
1206 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
1207 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1208 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
1209 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
1210 Generic functions for processing of frame parameters.
1211 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
1212 (display_x_get_resource, x_get_resource_string): Functions for
1213 generic access to X resources.
1214 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1215 (x_default_parameter, Fx_parse_geometry): Functions for generic
1216 access to frame parameters.
6901b111
SM
1217 (x_figure_window_size): Generic calculation of frame size.
1218 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
1219 (syms_of_frame): Intern and staticpro frame parameter variables.
1220 Defvar_lisp Vx_resource_class and Vx_resource_name here.
1221 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 1222
e072891b
KS
1223 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
1224 parameter related vars defined in frame.c.
1225 (EMACS_CLASS): Define here.
1226 (enum FULLSCREEN_*): Define here.
1227 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
1228 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
1229 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
1230 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
1231 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
1232 (x_set_visibility, x_set_autoraise, x_set_autolower)
1233 (x_set_unsplittable, x_set_vertical_scroll_bars)
1234 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
1235 (x_figure_window_size): Add prototypes.
1236
1237 * dispextern.h (frame_parm_handler): New typedef.
1238 (struct redisplay_interface): New member frame_parm_handlers.
1239 (enum resource_types): Move declaration here.
1240 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1241 (x_default_parameter): Add prototypes.
1242
1243 * window.c: Remove extern decl for frame parameter vars.
1244 (change_window_heights): New generic function;
1245 replaces x_change_window_heights. All users changed.
1246
1247 * window.h (change_window_heights): Add prototype.
1248
1249 * xfaces.c: Remove extern decl for frame parameter vars.
1250
1251 * xterm.h (EMACS_CLASS): Remove. Use generic define.
1252 (struct w32_display_info): Fix type of xrdb member.
1253 (enum FULLSCREEN_*): Remove.
1254 Remove prototypes for generic functions (in frame.h).
1255
1256 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
1257 parameters now defined in frame.h and frame.c.
1258 (Vx_resource_name): Remove. Use generic var.
1259 (enum x_frame_parms): Remove (bogus, unused enum).
1260 (check_x_display_info): Make non-static (for frame.c).
1261 (struct x_frame_parm_table, x_frame_parms): Remove.
1262 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
1263 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
1264 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1265 (x_change_window_heights, x_set_autoraise, x_set_autolower)
1266 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
1267 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
1268 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
1269 Remove. Use generic functions instead.
1270 (enum resource_types): Remove.
1271 (x_set_scroll_bar_default_width): New global function (for frame.c).
1272 (Fx_create_frame): Depend on x_figure_window_size to add space for
1273 toolbar and setup size_hint_flags.
1274 (x_frame_parm_handlers): New table for redisplay_interface.
1275 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 1276
e072891b
KS
1277 * xterm.c: Remove unnecessary extern declarations.
1278 (x_fullscreen_adjust): Remove. Use generic instead.
1279 (x_redisplay_interface): Add x_frame_parm_handlers member.
1280
1281 * w32gui.h (XrmDatabase): New (dummy) typedef.
1282
1283 * w32term.h (EMACS_CLASS): Remove. Use generic define.
1284 (struct w32_display_info): Fix type of xrdb member.
1285 (enum FULLSCREEN_*): Remove.
1286 (x_fullscreen_adjust): Remove prototype.
1287
1288 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
1289 parameters now defined in frame.h and frame.c.
1290 (Vx_resource_name): Remove. Use generic var.
1291 (enum x_frame_parms): Remove (bogus, unused enum).
1292 (check_x_display_info): Make non-static (for frame.c).
1293 (struct x_frame_parm_table, x_frame_parms): Remove.
1294 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
1295 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
1296 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1297 (x_change_window_heights, x_set_autoraise, x_set_autolower)
1298 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
1299 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
1300 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
1301 Remove. Use generic functions instead.
1302 (enum resource_types): Remove.
1303 (x_set_scroll_bar_default_width): New global function (for frame.c).
1304 (Fx_create_frame): Depend on x_figure_window_size to add space for
1305 toolbar and setup size_hint_flags.
1306 (w32_frame_parm_handlers): New table for redisplay_interface.
1307 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 1308
e072891b
KS
1309 * w32term.c: Remove unnecessary extern declarations.
1310 (x_fullscreen_adjust): Remove. Use generic instead.
1311 (x_redisplay_interface): Add w32_frame_parm_handlers member.
1312
1313 * w32reg.c (x_get_string_resource): Use XrmDatabase.
1314
1315 * macgui.h (XrmDatabase): New (dummy) typedef.
1316
1317 * macterm.h (EMACS_CLASS): Remove.
1318 (struct mac_display_info): Add xrdb member.
1319 (struct mac_output): Add want_fullscreen member.
1320
1321 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
1322 parameters now defined in frame.h and frame.c.
1323 (Vx_resource_name): Remove. Use generic var.
1324 (check_x_display_info): Make non-static (for frame.c).
1325 (struct x_frame_parm_table, x_frame_parms): Remove.
1326 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
1327 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
1328 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1329 (x_change_window_heights, x_set_autoraise, x_set_autolower)
1330 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
1331 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
1332 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
1333 Remove. Use generic functions instead.
1334 (enum resource_types): Remove.
1335 (x_set_scroll_bar_default_width): New global function (for frame.c).
1336 (mac_frame_parm_handlers): New table for redisplay_interface.
1337 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 1338
e072891b
KS
1339 * macterm.c: Remove unnecessary extern declarations.
1340 (x_redisplay_interface): Add mac_frame_parm_handlers member.
1341
3e6a560b
KS
1342 * Makefile.in (frame.o): Add dependency on blockinput.h and files
1343 included from it (atimer.h and systime.h).
1344
7b7b454e
AS
13452003-03-30 Andreas Schwab <schwab@suse.de>
1346
1347 * xdisp.c (x_insert_glyphs): Fix swapped width and height
1348 parameters for shift_glyphs_for_insert.
1349
1350 * macterm.c (x_redisplay_interface): Add missing entry for
1351 draw_vertical_window_border.
1352
beb402de
KG
13532003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
1354
1355 * fileio.c (Fexpand_file_name): In the no-handler case, after
1356 expanding, look again for a handler and invoke it. This is needed
1357 for filenames like "/foo/../user@host:/bar/../baz" -- the first
1358 expansion produces "/user@host:/bar/../baz" which needs to be
1359 expanded again for the finame result "/user@host:/baz".
1360
b676f356
JD
13612003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1362
1363 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
1364 of area to be redrawn for better performance.
1365
3c671a56
SM
13662003-03-28 Stefan Monnier <monnier@cs.yale.edu>
1367
1368 * xterm.c (take_vertical_position_into_account): Remove.
1369 (xt_action_hook): Call set_vertical_scroll_bar if needed.
1370 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
1371 (xm_scroll_callback, x_create_toolkit_scroll_bar)
1372 (x_set_toolkit_scroll_bar_thumb): Simplify.
1373 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
1374 (XTread_socket): Remove unused var.
1375 (x_make_frame_invisible): Replace goto with else.
1376
1377 * xdisp.c (set_vertical_scroll_bar): New fun.
1378 (redisplay_window): Use it.
1379
84f2e615
RS
13802003-03-26 Richard M. Stallman <rms@gnu.org>
1381
1382 * xdisp.c (update_tool_bar): Recompute tool bar if
1383 update_mode_lines is set. Set w->update_mode_line
1384 only if the tool bar contents actually change.
1385 (update_menu_bar): Undo previous change.
1386
70b6104c
JD
13872003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1388
5fd6f727
JD
1389 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
1390 (xg_frame_set_char_size): Calculate scroll bar width before frame
1391 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
1392 (xg_separator_p): Check for all documented separator types.
1393 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
1394 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
1395
70b6104c
JD
1396 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
1397 so tool bar gets updated.
1398
d9b36d19
SM
13992003-03-26 Stefan Monnier <monnier@cs.yale.edu>
1400
1401 * data.c (store_symval_forwarding): Re-instate part of the code
1402 that was deleted with too much enthusiasm.
1403
14042003-03-25 Stefan Monnier <monnier@cs.yale.edu>
1405
1406 * data.c (store_symval_forwarding): Delete special read-only
1407 hack for type == -1, since we now use ->constant instead.
1408 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
1409
1410 * buffer.c (overlays_in): Declare static.
1411 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
1412 `constant' field rather than the variable's `type' field.
1413
365fa1b3
AC
14142003-03-24 Andrew Choi <akochoi@shaw.ca>
1415
1416 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
1417
1418 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
1419
1420 * fns.c [MAC_OSX]: Do not redefine vector.
1421
1422 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
1423
1424 * macgui.h: Remove definition of No_Cursor.
1425
d9b36d19 1426 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
1427
1428 * xdisp.c: Define No_Cursor.
1429 (x_write_glyphs, notice_overwritten_cursor)
1430 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
1431 (note_mouse_highlight): Remove Mac-specific code.
1432 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 1433
c0bcce6f
JPW
14342003-03-24 John Paul Wallington <jpw@gnu.org>
1435
1436 * xdisp.c (redisplay_window): If mini window's buffer is not
1437 empty, then redisplay it like other windows.
1438
a526b96c
KS
14392003-03-23 Kim F. Storm <storm@cua.dk>
1440
1441 * w32term.c (w32_draw_window_cursor): Fix last change.
1442
37ab321e
KH
14432003-03-23 Kenichi Handa <handa@m17n.org>
1444
a526b96c
KS
1445 * alloc.c (make_string_from_bytes, make_specified_string):
1446 Add `const' for the arg CONTENTS.
37ab321e
KH
1447
1448 * lisp.h (make_string_from_bytes, make_specified_string):
1449 Prototypes adjusted.
1450
7863d625
JD
14512003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1452
a526b96c 1453 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 1454
7863d625
JD
1455 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
1456 (XG_SB_RANGE): New define.
1457
1458 * gtkutil.c (xg_fixed_handle_expose): New function.
1459 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
1460 expose events.
1461 (xg_update_scrollbar_pos): Take two more arguments, left and width
1462 of scroll bar including borders.
1463 Clear left and right part outside scroll bar separately as some
1464 themes have bars that are not an even number of pixels.
d9b36d19 1465 Don't set reallocate_redraws, don't call
7863d625
JD
1466 gdk_window_process_all_updates.
1467 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
1468 so no need to change it. Calculate size and value with XG_SB_RANGE.
1469
d9b36d19
SM
1470 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
1471 Pass left and width of scroll bar including borders to
7863d625
JD
1472 xg_update_scrollbar_pos.
1473
af0ad939
TTN
14742003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
1475
1476 * Makefile.in: Make sure space precedes end-of-line backslashes.
1477
b22139fd
KS
14782003-03-22 Kim F. Storm <storm@cua.dk>
1479
1480 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
1481 Add generic versions here. Remove system specific versions
1482 defined elsewhere.
1483
1484 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
1485 Add prototypes.
1486
6e6410cf
KS
1487 * xterm.h (STORE_NATIVE_RECT): New macro.
1488
5c9cc435
KS
14892003-03-21 Kim F. Storm <storm@cua.dk>
1490
00c64fab
SM
1491 * xdisp.c (get_glyph_string_clip_rect):
1492 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
1493
1494 * dispextern.h (struct redisplay_interface): Add active_p
1495 argument to draw_window_cursor member. All uses changed.
1496
acd37560
KS
14972003-03-21 Kim F. Storm <storm@cua.dk>
1498
1499 The following changes consolidate code related to writing and
1500 inserting glyphs, exposing frame, the tool bar, the mouse face,
1501 the output cursor, and help echo from xterm.c, w32term.c and
1502 macterm.c into xdisp.c. It also generalizes the use of the
1503 window_part enum instead of using numeric values throughout.
af0ad939 1504
acd37560
KS
1505 * xdisp.c: Consolidate gui-independent code here.
1506 Include keymap.h.
1507 (Qhelp_echo): Import.
1508 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
1509 (help_echo_string, help_echo_window, help_echo_object)
1510 (previous_help_echo_string, help_echo_pos): Declare here.
1511 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
1512 (estimate_mode_line_height): Define here. Handle windowing
1513 systems directly (without using estimate_mode_line_height_hook).
1514 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
1515 (update_window_cursor, update_cursor_in_window_tree)
1516 (fast_find_position, fast_find_string_pos)
1517 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
1518 (expose_area, expose_line, expose_overlaps, expose_window)
1519 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
1520 declared static as they are only used locally in xdisp.c.
1521 (draw_glyphs): Rename from x_draw_glyphs and make static.
1522 (tool_bar_item_info, notice_overwritten_cursor): Make static.
1523 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
1524 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 1525 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
1526 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
1527 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
1528 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
1529 (note_mouse_highlight, x_clear_window_mouse_face)
1530 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
1531 (x_intersect_rectangles): New generic functions for use by xdisp.c
1532 and GUI front-ends.
1533 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
1534 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
1535
1536 * dispextern.h (Display_Info): Generic typedef for *_display_info.
1537 (NativeRectangle): Generic typedef for rectangle type.
1538 (enum window_part): Move here from window.c.
1539 (struct redisplay_interface): New members flush_display_optional,
1540 define_frame_cursor, clear_frame_area, draw_window_cursor,
1541 draw_vertical_window_border, shift_glyphs_for_insert.
1542 Rename member clear_mouse_face to clear_window_mouse_face.
1543 (estimate_mode_line_height_hook): Remove hook.
1544 (auto_raise_tool_bar_buttons_p): Don't declare extern.
1545 (tool_bar_item_info): Remove prototype.
1546 (help_echo_string, help_echo_window, help_echo_object)
1547 (previous_help_echo_string, help_echo_pos)
1548 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
1549 (x_stretch_cursor_p, output_cursor): Declare extern.
1550 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
1551 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
1552 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
1553 (display_and_set_cursor, set_output_cursor, x_cursor_to)
1554 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
1555 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
1556 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
1557 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
1558 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
1559 Add prototypes.
1560 (mode_line_string, marginal_area_string): Fix prototypes.
1561
1562 * window.c (enum window_part): Move to dispextern.h.
1563 (coordinates_in_window): Use enum window_part member names
1564 instead of numbers to describe return value.
1565 (struct check_window_data): Change part member to window_part.
1566 (check_window_containing): Return window_part unaltered.
1567 (window_from_coordinates): Change part arg from int to enum
1568 window_part. Allow part arg to be null. All users changed.
1569
1570 * window.h (window_from_coordinates): Fix prototype.
1571
1572 * term.c (estimate_mode_line_height): Move to xdisp.c.
1573
1574 * keyboard.c (make_lispy_event): Use enum window_part.
1575
1576 * dispnew.c (mode_line_string, marginal_area_string): Use enum
1577 window_part instead of int in arg list. Users changed.
1578
1579 * xterm.h (No_Cursor): Declare as None for X.
1580 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 1581
acd37560
KS
1582 * xterm.c: Remove consolidated defines and code.
1583 (BETWEEN): Remove unused macro.
1584 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
1585 (x_define_frame_cursor, x_clear_frame_area)
1586 (x_draw_window_cursor): New X-specific functions for RIF.
1587 (x_redisplay_interface): Add new members.
1588
1589 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
1590
1591 * w32term.h (struct w32_output): Remove cross_cursor member.
1592
1593 * w32term.c: Remove consolidated defines and code.
1594 (BETWEEN): Remove unused macro.
1595 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
1596 (w32_define_frame_cursor, w32_clear_frame_area)
1597 (w32_draw_window_cursor): New W32-specific functions for RIF.
1598 (w32_redisplay_interface): Add new members.
1599
1600 * w32gui.h (No_Cursor): Define as 0 for W32.
1601 (XRectangle): Add X compatible rectangle type.
1602 (NativeRectangle): Declare as RECT for W32.
1603 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
1604
1605 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
1606
1607 * w32console.c: Remove consolidated defines and code.
af0ad939 1608
acd37560
KS
1609 * msdos.h (Display_Info): Add generic typedef.
1610
1611 * msdos.c: Remove consolidated defines and code.
1612 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
1613
1614 * macterm.h (struct mac_output): Replace member cross_cursor by
1615 hand_cursor.
1616 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
1617
1618 * macterm.c: Remove consolidated defines and code.
1619 (BETWEEN): Remove unused macro.
1620 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
1621 (mac_define_frame_cursor, mac_clear_frame_area)
1622 (mac_draw_window_cursor): New Mac-specific functions for RIF.
1623 (x_redisplay_interface): Add new members.
1624
1625 * macgui.h (No_Cursor): Define as 0 for Mac.
1626 (XRectangle): Add X compatible rectangle type.
1627 (NativeRectangle): Declare as Rect for Mac.
1628 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
1629
204ccab1
KS
1630 * macfns.c (x_set_mouse_color): Setup hand_cursor.
1631 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 1632
9443fcf6 1633 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
1634 included from it. Add dependency on keymap.h.
1635
1636 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
1637
8ba01a70 16382003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
1639
1640 * fileio.c (Fexpand_file_name): Fix previous change.
1641
8ba01a70 16422003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
1643
1644 * fileio.c (Ffile_name_directory): Reconstruct file name by
1645 make_specified_string.
1646 (Ffile_name_nondirectory, Ffile_name_as_directory)
1647 (Fdirectory_file_name, Fexpand_file_name)
1648 (Fsubstitute_in_file_name): Likewise.
1649 (Fread_file_name): Compare decoded homedir with DIR and
1650 DEFAULT_FILENAME.
1651
1652 * alloc.c (make_specified_string): If NCHARS is negative, count
1653 the number of characters.
1654
19536747
JD
16552003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1656
de38ae5a
JD
1657 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
1658 all widgets.
1659
19536747
JD
1660 * gtkutil.h: Removed xg_ignore_next_thumb.
1661
37ab321e 16622003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
1663
1664 * coding.c (Vchar_coding_system_table): Remove this variable.
1665 (Vcoding_system_safe_chars): New variable.
1666 (intersection): Remove this function.
1667 (find_safe_codings): Don't use Vchar_coding_system_table, but try
1668 all codings in SAFE_CODINGS.
00c64fab 1669 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
1670 find_safe_codings. Get generic coding systems from
1671 Vcoding_system_safe_chars.
1672 (Fdefine_coding_system_internal): New function.
1673 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
1674 Initialize and staticpro Vcoding_system_safe_chars.
1675
17097258
JD
16762003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1677
2a2071c3
JD
1678 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
1679 equal old values before updating.
1680
17097258
JD
1681 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
1682
1683 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
1684
16852003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1686
1687 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
1688 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
1689 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
1690 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
1691 (xg_create_scroll_bar): Pass bar to button event callback.
1692 (xg_find_top_left_in_fixed): New function.
1693 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
1694 whole scroll bar area. Get old position with
1695 xg_find_top_left_in_fixed, calculate and only clear needed areas.
1696 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
1697 dragging is in progress. Calculate whole as for Motif.
1698 Remove code that saved last values. Call gtk_range functions to
1699 set scroll bar sizes.
1700
1701 * gtkutil.h: Removed xg_ignore_next_thumb.
1702
8cb9dfbf
JB
17032003-03-17 Juanma Barranquero <lektu@terra.es>
1704
1705 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
1706 and files included from it.
1707
00c64fab
SM
17082003-03-18 Stefan Monnier <monnier@cs.yale.edu>
1709
1710 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
1711 multiple occurrences of the same keymap under different prefixes.
1712 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
1713
c45bb3b2
JR
17142003-03-16 Jason Rumney <jasonr@gnu.org>
1715
1716 * w32gui.h: Use HDC for Display.
1717
1718 * w32term.c (w32_encode_char): Prevent double-byte chars from
1719 crashing Emacs.
1720
1721 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
1722 as binary.
1723
2a6d0874
JB
17242003-03-16 Juanma Barranquero <lektu@terra.es>
1725
1726 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
1727
03eb5fab
KS
17282003-03-16 Kim F. Storm <storm@cua.dk>
1729
1730 The following changes consolidate some of the gui-independent
1731 parts of the processing and drawing of "glyph strings" from
1732 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 1733
03eb5fab
KS
1734 * dispextern.h (struct glyph): Reduce face_id member from 22 to
1735 21 bits (this reduces number of faces from 4M to 2M).
1736 Replace W32 specific w32_font_type member (2 bits) by generic
1737 font_type member (3 bits) for portability.
1738 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
1739 (enum draw_glyphs_face): Define here.
1740 (struct glyph_string): Define here. Merge W32 and X versions.
1741 (struct redisplay_interface): New members per_char_metric,
1742 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
1743 (VCENTER_BASELINE_OFFSET): Define here.
1744 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
1745 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
1746
1747 * xdisp.c: Consolidate gui-independent "glyph string" code here.
1748 (dump_glyph_string): Moved here.
1749 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
1750 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
1751 (fill_composite_glyph_string, fill_glyph_string)
1752 (fill_image_glyph_string, fill_stretch_glyph_string)
1753 (left_overwritten, left_overwriting, right_overwritten)
1754 (right_overwriting, get_char_face_and_encoding)
1755 (set_glyph_string_background_width, compute_overhangs_and_x)
1756 (append_glyph, append_composite_glyph, produce_image_glyph)
1757 (take_vertical_position_into_account, append_stretch_glyph)
1758 (produce_stretch_glyph): New generic functions (based on X version).
1759 Call platform specific functions through rif.
1760 (INIT_GLYPH_STRING): New macro, hides W32 details.
1761 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
1762 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
1763 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
1764 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
1765 (notice_overwritten_cursor):
1766 Generic functions exported to platform modules. Users changed.
1767
1768 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
1769 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
1770 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 1771 New macros for consolidated code.
2a6d0874 1772
03eb5fab
KS
1773 * xterm.c: Remove consolidated defines and code.
1774 (x_per_char_metric, x_encode_char)
1775 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
1776 (x_redisplay_interface): Add new members.
1777
1778 * w32gui.h (Display): Add dummy typedef for consolidation.
1779 (XChar2b): Define alias for wchar_t for consolidation.
1780 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
1781
1782 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 1783 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
1784 New macros for consolidation.
1785
fad49844 1786 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
1787 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
1788 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
1789 (w32_per_char_metric): Change font_type arg to int for RIF.
1790 (w32_encode_char): Return int according to RIF requirements.
1791 (w32_compute_glyph_string_overhangs): Adapt to RIF.
1792 (w32_get_glyph_overhangs): New function for RIF. Uses generic
1793 x_get_glyph_overhangs.
1794 (w32_redisplay_interface): Add new members.
1795
1796 * macgui.h (XChar2b): Move typedef here for consolidation.
1797 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
1798
1799 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
1800 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
1801 consolidation.
1802
1803 * macterm.c: Remove consolidated defines and code.
1804 (mac_per_char_metric): New function for RIF.
00c64fab 1805 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
1806 (mac_compute_glyph_string_overhangs): Adapt for RIF.
1807 (x_redisplay_interface): Add new members.
1808
00c64fab
SM
18092003-03-15 Stefan Monnier <monnier@cs.yale.edu>
1810
1811 * keymap.c (Vmenu_events): New var.
1812 (syms_of_keymap): Initialize it.
1813 (where_is_internal): Check more carefully what is a menu event.
1814
225c7a07
RS
18152003-03-14 Richard M. Stallman <rms@gnu.org>
1816
1817 * lread.c (read1): After #!, exit loop on eof.
1818
cea9be54
JD
18192003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1820
9ea0e54d
JD
1821 * gtkutil.h: Add declaration for xg_frame_cleared.
1822
0cb35f4e
JD
1823 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
1824
cea9be54
JD
1825 * gtkutil.c (struct xg_last_sb_pos): New structure.
1826 (handle_fixed_child): New function.
1827 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
1828 and force a redraw on them.
1829 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
1830 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
1831 so we can avoid unneeded redraws.
1832 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
1833 and force a redraw on the scroll bar.
1834 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
1835 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 1836 (xg_frame_cleared): New function.
cea9be54 1837
20b853f3
KH
18382003-03-13 Kenichi Handa <handa@m17n.org>
1839
1840 * coding.c (Fdetect_coding_region): Fix docstring.
1841 (Fdetect_coding_string): Fix docstring.
1842
7a555aff
AS
18432003-03-13 Andreas Schwab <schwab@suse.de>
1844
25cc0080
AS
1845 * gtkutil.c: Add prototype for create_menus.
1846
30225431
AS
1847 * data.c (long_to_cons): Fix type of top.
1848
1849 * xselect.c (selection_data_to_lisp_data): Use int instead of
1850 long for an integer of size 4.
1851
7a555aff 1852 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 1853 (xg_tool_bar_help_callback): Likewise.
7a555aff 1854
a3e4741f
AS
18552003-03-12 Andreas Schwab <schwab@suse.de>
1856
1857 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
1858
9668be7c
KS
18592003-03-12 Kim F. Storm <storm@cua.dk>
1860
03eb5fab 1861 The following changes consolidate the fringe handling from
9668be7c 1862 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 1863
9668be7c
KS
1864 * xdisp.c: Consolidate fringe handling code here.
1865 (left_bits, right_bits, continued_bits, continuation_bits)
1866 (ov_bits, zv_bits): Define fringe bitmaps.
1867 (fringe_bitmaps): New array holding fringe bitmaps.
1868 (draw_fringe_bitmap): Draw a specific bitmap; call display
1869 specific drawing routine via rif->draw_fringe_bitmap.
1870 (draw_row_fringe_bitmaps): Generic replacement for
1871 x_draw_row_fringe_bitmaps; all callers changed.
1872 (compute_fringe_widths): Generic replacement for
1873 x_compute_fringe_widths; all callers changed.
1874
1875 * dispextern.h (enum fringe_bitmap_type): Define here.
1876 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
1877 (fringe_bitmaps): Declare extern.
1878 (struct redisplay_interface): New member draw_fringe_bitmap.
1879 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
1880
1881 * xterm.c: Remove generic fringe code.
1882 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
1883 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
1884
1885 * w32term.c: Remove generic fringe code.
1886 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
1887 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 1888
9668be7c
KS
1889 * macterm.c: Remove generic fringe code.
1890 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
1891 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
1892
00a88f32
SM
18932003-03-11 Stefan Monnier <monnier@cs.yale.edu>
1894
1895 * print.c (Fprin1_to_string): Return unibyte string if possible.
1896
1d1de695
DK
18972003-03-09 David Kastrup <dak@gnu.org>
1898
1899 * process.c (read_process_output): We have allocated enough space
1900 for readmax and carryover, so actually use the alloted space.
1901
257f40f2
JD
19022003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1903
1904 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
1905 toolkit scrollbar click.
1906
1907 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
1908 for USE_GTK.
1909 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
1910 also.
1911 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
1912 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 1913
257f40f2
JD
1914 * gtkutil.h: Declare xg_get_scroll_id_for_window.
1915
1916 * gtkutil.c (xg_get_scroll_id_for_window): New function.
1917 (xg_tool_bar_item_expose_callback): New function.
1918 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
1919 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
1920 on the tool bar widget.
1921 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
1922 to expose on the tool bar item widgets.
1923
15213141
JD
19242003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1925
26b74a0b 1926 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 1927 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
1928 deleted from the image cache).
1929
15213141
JD
1930 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
1931 the event isn't for a frame (i.e. for dialogs).
1932
20b853f3 19332003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
1934
1935 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
1936 composition components reaches the limit, terminate composing.
1937 (COMPOSITION_OK): New macro.
00a88f32 1938 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
1939 composition is found.
1940 (coding_restore_composition): Adjust the number of composition
1941 components if it is not sane.
1942
c9029fe5
JB
19432003-03-06 Juanma Barranquero <lektu@terra.es>
1944
1945 * w32term.h (struct w32_display_info): Add xrdb member to support
1946 passing resources via -xrm on Windows.
1947
1948 * w32term.c (w32_make_rdb): New function.
1949 (w32_term_init): Use it to initialize xrdb member of w32_display_info
1950 struct. Delete leftover code.
1951
1952 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
1953 for resources passed on the command line.
1954
1955 * w32reg.c (w32_get_rdb_resource): New function.
1956 (x_get_string_resource): Use it, so resources passed with -xrm
1957 supercede the ones in the registry.
1958
9d00001f
JD
19592003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1960
1961 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
1962 instead of x_top_window_to_frame.
1963
ca2417b9
JD
19642003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1965
1966 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
1967 when restarting Emacs.
1968
5b20caf0
RS
19692003-03-03 Richard M. Stallman <rms@gnu.org>
1970
1971 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
1972 to run kill-buffer-query-functions.
1973 (Qkill_buffer_query_functions): New var.
1974 (syms_of_buffer): Init and staticpro it.
1975
58e91b77
JD
19762003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1977
1978 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
1979
932357b4
KS
19802003-02-25 Kim F. Storm <storm@cua.dk>
1981
1982 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
1983 If centering point failed to make whole line visible and vscroll
1984 is non-zero, disable vscroll and try centering point again.
1985
1986 * lread.c (read1): Accept `single space' syntax like (? x).
1987
bb8db7e1
JD
19882003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1989
1990 * keyboard.c (cancel_hourglass_unwind): Surround with
1991 #ifdef HAVE_X_WINDOWS
1992
47d77aab
KH
19932003-02-25 Kenichi Handa <handa@m17n.org>
1994
1995 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
1996 process only when "subprocesses" is defined.
1997
6a097c0c
SM
19982003-02-24 Stefan Monnier <monnier@cs.yale.edu>
1999
2000 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
2001
0b063c27
JB
20022003-02-24 Juanma Barranquero <lektu@terra.es>
2003
d1135afc
JB
2004 * callint.c (fix_command): Declare as static void and move before
2005 Fcall_interactively.
2006
0b063c27
JB
2007 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
2008 (syms_of_xdisp): Don't initialize Qwhen.
2009
0af912f0
JD
20102003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2011
2012 * keyboard.c (cancel_hourglass_unwind): New function.
2013 (command_loop_1): Cancel hourglass with unwind-protect.
2014
120d0a23
RS
20152003-02-23 Richard M. Stallman <rms@gnu.org>
2016
2017 * callint.c (fix_command): New subroutine, from Fcall_interactively.
2018 Detect (when ... (region-beginning)) etc.
2019 (Fcall_interactively): Call fix_command.
2020 (Qif, Qwhen): New variables.
2021 (syms_of_callint): Init and staticpro them.
0b063c27 2022
120d0a23
RS
2023 * regex.c (print_partial_compiled_pattern): Output to stderr.
2024
4ece81a6
KG
20252003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
2026
2027 * dired.c (directory_files_internal): Don't expand directory.
2028 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
2029 instead. From Lars Hansen <larsh@math.ku.dk>.
2030
e52bd6b7
SM
20312003-02-22 Stefan Monnier <monnier@cs.yale.edu>
2032
2033 * fns.c (string_to_multibyte): Remove unused var i.
2034 (Flanginfo): Fix int/Lisp_Object mixup.
2035 (void_call2): New fun.
2036 (Fmap_char_table): Use it in place of call2.
2037
2038 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
2039
2040 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
2041
2042 * keymap.c (copy_keymap_1): Make it static.
2043
2044 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
2045
c33ef7c4
JB
20462003-02-22 David Ponce <david@dponce.com>
2047
2048 * lread.c (Fload): Don't check STRING_MULTIBYTE.
2049
16782258
JD
20502003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2051
2052 * process.h: Removed subtty field from struct Lisp_Process.
2053
2054 * process.c (create_process): Remove setting of subtty.
2055 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
2056 (Fprocess_running_child_p, process_send_signal):
2057 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
2058 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
2059
3abeca61
KG
20602003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
2061
2062 * keymap.c (Fdefine_key): Doc fix.
2063
92a8ce63
JB
20642003-02-21 Juanma Barranquero <lektu@terra.es>
2065
2066 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
2067
2068 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
2069 POLLING_PROBLEM_IN_SELECT.
2070
2071 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
2072 Delete #undef of POLLING_PROBLEM_IN_SELECT.
2073
2074 * s/hpux10-20.h: New file.
2075
e52bd6b7
SM
2076 * process.c (wait_reading_process_input):
2077 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 2078
20f1ef2e
KH
20792003-02-20 Kenichi Handa <handa@m17n.org>
2080
32d0a9dc
KH
2081 * fontset.c (check_fontset_name): If NAME is nil, return the
2082 default fontset.
2083 (override_font_info): New function.
e52bd6b7 2084 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
2085 (Ffontset_info): If FONTSET is not the default fontset, merge
2086 FONTSET onto the copy of the default fontset, and work on that
2087 copy. Document that NAME nil means the default fontset.
2088 (Ffontset_font): Document that NAME nil means the default fontset.
2089
20f1ef2e
KH
2090 * process.c (setup_process_coding_systems): If the process's
2091 in/out descriptor is -1, do nothing.
2092
77d1daf2
AS
20932003-02-19 Andreas Schwab <schwab@suse.de>
2094
e52bd6b7
SM
2095 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
2096 Add prototypes.
77d1daf2 2097
f9a45bb3
KH
20982003-02-19 Kenichi Handa <handa@m17n.org>
2099
2100 * xfaces.c (try_alternative_families): Try all scalable fonts if
2101 Vscalable_fonts_allowed is not Qt.
2102
72ecb43c
JD
21032003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2104
2105 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
2106
ee5be7c3
JD
21072003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2108
2109 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
2110 names.
2111
2112 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 2113 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
2114 x_face_list_fonts.
2115 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
2116 (Fx_list_fonts): Set maxnames to -1 to get all font names.
2117
4cd519a7
KS
21182003-02-18 Kim F. Storm <storm@cua.dk>
2119
068f9882
KS
2120 * lread.c (read1): Fix last change.
2121 "`" is not always special. Allow "?" after a character constant.
4cd519a7 2122
7290a344
AC
21232003-02-18 Andrew Choi <akochoi@shaw.ca>
2124
2125 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
2126
1f7fa69b
AS
21272003-02-18 Andreas Schwab <schwab@suse.de>
2128
2129 * window.c (window_scroll_pixel_based): Move outside a
2130 multi-glyph character before setting new window start.
2131
2132 * xdisp.c (in_display_vector_p): New function.
2133 * dispextern.h (in_display_vector_p): Declare.
2134
23e21195
KS
21352003-02-18 Kim F. Storm <storm@cua.dk>
2136
2137 * lread.c (read1): Fix and relax read syntax.
2138 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
2139 Only recognize "," after dotted-pair dot if inside backquote.
2140 Never include "`" or "," (inside backquote) in a symbol.
2141 Allow dotted-pair dot after a character constant.
2142 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 2143
f098b121
JD
21442003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2145
2146 * gtkutil.c (xg_tool_bar_expose_callback): New function.
2147 (xg_create_tool_bar): Force style of tool bar to be horizontal with
2148 icons. Set name of tool bar to emacs-toolbar.
2149 (update_frame_tool_bar): Connect expose event to
2150 xg_tool_bar_expose_callback.
2151
63020c46
RS
21522003-02-17 Richard M. Stallman <rms@gnu.org>
2153
2154 * keyboard.c (this_command_key_count_reset): New variable.
2155 Initiatize to 0 where this_command_key_count is set.
2156 (read_char): Save and restore this_command_key_count_reset
2157 around input method code.
2158 (read_char): If this_command_key_count_reset, echo reread commands.
2159 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
2160
fb4452cc
KH
21612003-02-17 Kenichi Handa <handa@m17n.org>
2162
2163 * fns.c (string_to_multibyte): Always return a multibyte string.
2164
bd11cc09
JR
21652003-02-16 Jason Rumney <jasonr@gnu.org>
2166
e52bd6b7
SM
2167 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
2168 Negative max_fonts parameter means list all.
bd11cc09 2169
4cdf4bde
DL
21702003-02-14 Dave Love <fx@gnu.org>
2171
2172 * fns.c (Flanginfo): Doc fix.
2173
023b93f6
KS
21742003-02-13 Kim F. Storm <storm@cua.dk>
2175
37cd4238
KS
2176 * lread.c (read_escape): Interpret \s as a SPACE character, except
2177 for \s-X in a character constant which still is the super modifier.
2178 (read1): Signal an `invalid read syntax' error if a character
2179 constant is immediately followed by a digit or symbol character.
2180
140a6b7e
KS
2181 * search.c (Fmatch_data): Doc fix. Explicitly state that
2182 match-data is undefined if last search failed.
2183
023b93f6
KS
2184 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
2185 All uses changed.
2186
7d5c86e5
JB
21872003-02-12 Juanma Barranquero <lektu@terra.es>
2188
2189 * eval.c (Fdefmacro): Fix typo.
2190
295fff2c
KS
21912003-02-12 Kim F. Storm <storm@cua.dk>
2192
2193 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
2194 macro is a string, convert meta modifiers in string when copying
2195 the string into a vector.
2196
60f3202d
KS
21972003-02-11 Kim F. Storm <storm@cua.dk>
2198
2199 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
2200
61cb0b53
KH
22012003-02-11 Kenichi Handa <handa@m17n.org>
2202
2203 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
2204
7392e23c
KS
22052003-02-10 Kim F. Storm <storm@cua.dk>
2206
2207 * process.c: Doc fixes.
2208 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
2209
ce4254bd
KH
22102003-02-10 Kenichi Handa <handa@m17n.org>
2211
9c7a329a
KH
2212 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
2213
ce4254bd
KH
2214 * process.c (QCfilter_multibyte): New variable.
2215 (setup_process_coding_systems): New function.
e52bd6b7
SM
2216 (Fset_process_buffer, Fset_process_filter):
2217 Call setup_process_coding_systems.
ce4254bd
KH
2218 (Fstart_process): Initialize the member `filter_multibyte' of
2219 struct Lisp_Process.
2220 (create_process): Call setup_process_coding_systems.
2221 (Fmake_network_process): New keyward `:filter-multibyte'.
2222 Initialize the member `filter_multibyte' of struct Lisp_Process.
2223 Call setup_process_coding_systems.
2224 (server_accept_connection): Call setup_process_coding_systems.
2225 (read_process_output): If the process has a filter, decide the
2226 multibyteness of a string to given to the filter by
2227 `filter_multibyte' member of the process. If the process doesn't
2228 have a filter and the result of conversion is unibyte, use
2229 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
2230 multibyte form.
2231 (Fset_process_coding_system): Call setup_process_coding_systems.
2232 (Fset_process_filter_multibyte): New function.
2233 (Fprocess_filter_multibyte_p): New function.
2234 (syms_of_process): Intern and staticpro QCfilter_multibyte.
2235 Defsubr Sset_process_filter_multibyte and
2236 Sprocess_filter_multibyte_p.
2237
2238 * process.h (struct Lisp_Process): New member filter_multibyte.
2239
2240 * lisp.h (setup_process_coding_systems): Add prototype.
2241
2242 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
2243 process, update coding systems for the process.
2244
b08d5f59
KH
22452003-02-09 Kenichi Handa <handa@m17n.org>
2246
2247 * fns.c (string_to_multibyte): New function.
2248 (Fstring_to_multibyte): New function.
2249 (syms_of_fns): Defsubr it.
2250
0dfd93c0
AS
22512003-02-08 Andreas Schwab <schwab@suse.de>
2252
2253 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
2254 instead of the substitution.
2255
7b76ca1c
JD
22562003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2257
2258 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
2259
2260 * xmenu.c (menu_position_func): Adjust menu popup position so that
2261 the menu is fully visible.
7b76ca1c 2262
2436a4e4
JD
22632003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2264
2265 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
2266 (x_make_frame_invisible, x_wm_set_icon_position):
2267 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
2268
2269 * xfns.c (x_set_name, x_set_title): Ditto.
2270
37d1e680
RS
22712003-02-04 Richard M. Stallman <rms@gnu.org>
2272
2273 * keyboard.c (echo_now): Update before_command_echo_length.
2274 (Freset_this_command_lengths): Reset this_command_key_count etc.
2275 immediately rather than arranging to do it later.
2276 (before_command_key_count_1, before_command_echo_length_1)
2277 (before_command_restore_flag): Vars deleted.
2278 (add_command_key): Don't handle before_command_restore_flag.
2279 (read_char, record_menu_key): Don't update before_command_key_count or
2280 before_command_echo_length.
2281 (read_char): Don't handle before_command_restore_flag.
2282
2283 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
2284 in direct-output clauses if it wouldn't be called in the ordinary case.
2285
578846a3
KS
22862003-02-04 Kim F. Storm <storm@cua.dk>
2287
2288 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
2289
49853a4d
JD
22902003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2291
2292 * gtkutil.c (remove_from_container): Copying list is not needed.
2293 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
2294 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
2295 on list returned from gtk_container_get_children to avoid memory leak.
2296
8b53dc06
JR
22972003-02-01 Jason Rumney <jasonr@gnu.org>
2298
5d54d177
JR
2299 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
2300 local malloc.
2301 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
2302 definitions in xpm.h.
2303 (init_xpm_functions): New function.
2304 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
2305 (init_external_image_libraries): Try to load libXpm.dll.
2306
8b53dc06
JR
2307 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
2308 timestamp.
2309
b222e415
DL
23102003-01-31 Dave Love <fx@gnu.org>
2311
2312 * syntax.c (Fskip_chars_forward)
2313 (open-paren-in-column-0-is-defun-start): Doc fix.
2314
c60ee5e7
JB
23152003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
2316
2317 * fileio.c: Support // at start of name for Cygwin (just added proper
2318 preprocessor tests).
2319
2320 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
2321
2322 * Makefile.in: Use @EXEEXT@ for Cygwin.
2323
2324 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
2325
2326 * s/cygwin.h: Added for Cygwin port.
2327
53b37591
JB
23282003-01-31 Juanma Barranquero <lektu@terra.es>
2329
2330 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
2331 when including gif_lib.h.
fe929957
JB
2332 (init_gif_functions, init_tiff_functions): New functions.
2333 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
2334 Windows. Disable color table lookups. Call library functions
53b37591 2335 through pointers determined at runtime.
fe929957
JB
2336 (init_external_image_libraries): Try to load libungif.dll and
2337 libtiff.dll.
53b37591 2338
45415a8f
KH
23392003-01-31 Kenichi Handa <handa@m17n.org>
2340
2341 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 2342 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 2343
a97e4138
JD
23442003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2345
e52bd6b7 2346 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 2347
6eed9bed
DL
23482003-01-30 Dave Love <fx@gnu.org>
2349
2350 * alloc.c (Vgc_elapsed, gcs_done): New variables.
2351 (Fgarbage_collect): Use them.
2352 (init_alloc, syms_of_alloc): Set them up.
2353
100dcd40
JB
23542003-01-30 Juanma Barranquero <lektu@terra.es>
2355
2356 * w32fns.c (init_external_image_libraries): Add missing operator.
2357
fbd852af
JR
23582003-01-29 Jason Rumney <jasonr@gnu.org>
2359
2360 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
2361 an alternative name for jpeg.dll.
2362
8a2d8020
KH
23632003-01-29 Kenichi Handa <handa@m17n.org>
2364
2365 * xdisp.c (set_cursor_from_row): Pay attention to string display
2366 properties.
2367
058c18c7
AC
23682003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
2369
2370 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
2371 <escape>.
2372 (keycode_to_xkeysym_table): Reformat and add more comments.
2373 (XTread_socket): Drop special case for backspace.
2374
385f11cf
AC
23752003-01-28 Andrew Choi <akochoi@shaw.ca>
2376
2377 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
2378 values in old-style RGB specs.
2379
c922a224
JB
23802003-01-27 Juanma Barranquero <lektu@terra.es>
2381
2382 * w32fns.c (init_external_image_libraries): Try alternate names for the
2383 jpeg dll.
2384
0a1d6de0
JD
23852003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2386
2387 * gtkutil.c (create_dialog, xg_separator_p)
2388 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
2389 before calling strcmp or strlen.
2390
a97e4138 23912003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
2392
2393 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
2394 and handle image load failure.
2395
28908312
JR
23962003-01-26 Jason Rumney <jasonr@gnu.org>
2397
2398 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
2399 New functions.
2400 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
2401 Disable color table lookups. Call jpeg library functions
2402 through pointers determined at runtime.
2403 (init_external_image_libraries): Try to load jpeg.dll.
2404
84e47416
RS
24052003-01-25 Richard M. Stallman <rms@gnu.org>
2406
2407 * lisp.h: Declare format2 instead of format1.
2408
2409 * fileio.c (barf_or_query_if_file_exists):
2410 Call format2 instead of format1.
2411
2412 * editfns.c (format2): New function, replaces format1
2413 but takes exactly two Lisp Objects as format args.
2414
2415 * buffer.c (Fkill_buffer): Call format2 instead of format1.
2416
a97e4138 24172003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
2418
2419 * xterm.h: Change to return value of x_dispatch_event to int.
2420
2421 * xterm.c (x_filter_event): New function.
2422 (event_handler_gdk, XTread_socket): Call x_filter_event.
2423 (x_dispatch_event): Change to return value of finish.
2424 (event_handler_gdk): Use return value from x_dispatch_event.
2425
2426 * xfns.c (x_window): Call create_frame_xic for GTK version to
2427 initialize input methods.
2428
2429 * gtkutil.h: Add (void) prototypes.
2430
2431 * gtkutil.c (create_menus): Remove code that puts the help menu to
2432 the right.
2433
54eefef1
JR
24342003-01-25 Jason Rumney <jasonr@gnu.org>
2435
2436 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
2437 [HAVE_PNG]: Sync with xfns.c version.
2438 (png_load): Adjust colors for Windows. Use Windows
2439 bitmaps. Disable color table lookups.
c262430d
JR
2440 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
2441 (init_png_functions): New function.
2442 (png_read_from_memory, png_load): Call png library functions
2443 through pointers determined at runtime.
2444 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
2445 (init_external_image_libraries): New function.
2446 (init_xfns): Call it.
54eefef1 2447
1a9e275b
AS
24482003-01-24 Andreas Schwab <schwab@suse.de>
2449
2450 * minibuf.c (Fminibuffer_message): Verify type of parameter.
2451
a97e4138 24522003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
2453
2454 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
2455 of static initializer.
2456
422eec7e
DL
24572003-01-24 Dave Love <fx@gnu.org>
2458
2459 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
2460 architectures.
2461
2462 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
2463 Use __alignof__.
2464
2a026b04
KH
24652003-01-24 Kenichi Handa <handa@m17n.org>
2466
2467 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 2468 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
2469 (command_loop_1): Call adjust_point_for_property with proper
2470 second arg.
2471
a18bb28d
JR
24722003-01-22 Jason Rumney <jasonr@gnu.org>
2473
2474 Sync changes with xterm.c and xfns.c.
2475
2476 * w32term.c (x_draw_glyph_string_foreground)
2477 (x_draw_composite_glyph_string_foreground): Implement overstriking.
2478
2479 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
2480 phys_cursor's hpos is overwritten. This is still not completely
2481 correct, as it doesn't really make sense to use hpos at all to
2482 get the cursor glyph (as that is relative to the width of the
2483 characters on the line, which may have changed during the update).
2484
2485 * w32term.c (notice_overwritten_cursor): Handle the special case
2486 of the cursor being in the first blank non-text line at the
2487 end of a window.
2488
2489 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
2490 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
2491 Compute from the x position returned by x_draw_glyphs.
2492
2493 (x_display_and_set_cursor): Don't set phys_cursor_width here,
2494 except for NO_CURSOR and system caret, to make phys_cursor_width
2495 contain what its name suggests.
2496 (notice_overwritten_cursor): Consider the cursor image erased if
2497 the output area intersects the cursor image in y-direction.
2498
6a097c0c
SM
2499 * w32term.c (note_mode_line_or_margin_highlight): Rename from
2500 note_mode_line_highlight and extend.
a18bb28d
JR
2501
2502 * w32term.c (last_window): New variable.
2503 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
2504 (note_mouse_movement): Remove reimplemented code in #if 0.
2505
2506 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
2507 not update_mode_lines, and always set it to 1.
2508
ac6e47ef
JR
25092003-01-21 Jason Rumney <jasonr@gnu.org>
2510
2511 * w32fns.c (IDC_HAND): Define it if system headers don't.
2512
25132003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
2514
2515 * w32term.h (struct w32_output): New member hand_cursor.
2516 (WM_EMACS_SETCURSOR): New message definition.
2517
2518 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
2519 function w32_define_cursor.
2520 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
2521 position, change member name output_data.x to output_data.w32 and
2522 add function w32_define_cursor.
2523 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
2524 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
2525 (w32_initialize_display_info):
2526 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
2527
2528 * w32fns.c (Vx_hand_shape): New variable.
2529 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
2530 WM_EMACS_SETCURSOR.
2531 (x-create-frame): Setup Cursor types.
2532
ceb39a17
JB
25332003-01-21 David Ponce <david@dponce.com>
2534
ac6e47ef
JR
2535 * w32term.c (w32_encode_char): For DIM=1 charset, set
2536 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
2537 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 2538 2002-09-30.)
ac6e47ef
JR
2539 (w32_draw_relief_rect): Declare all args.
2540 (w32_define_cursor): New.
2541
2542 * w32fns.c (w32_load_cursor): New function.
2543 (w32_init_class): Use it.
2544 (x_put_x_image): Declare all args.
2545
46cf0bed
JB
25462003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
2547
2548 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
2549
a97e4138 25502003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
2551
2552 * gtkutil.c: Must include stdio.h before termhooks.h
2553
83fc9c63
DL
25542003-01-21 Dave Love <fx@gnu.org>
2555
2556 * alloc.c (Fgc_status): Print zombie list.
2557 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
2558 Fix assignment of zombies.
2559 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
2560 Don't take car of non-cons.
2561
2562 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
2563
2564 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
2565
fe04b8c8
JR
25662003-01-20 David Ponce <david@dponce.com>
2567
2568 * w32menu.c (digest_single_submenu): Declare all args.
2569
2570 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
2571 changes in xmenu.c:
2572
2573 (parse_single_submenu): Use individual keymap's prompt
2574 string as pane name, if there is one.
2575 (set_frame_menubar): Save menu_items_n_panes from each call to
2576 parse_single_submenu and use it when calling digest_single_submenu.
2577
539e69a9
ST
25782003-01-20 Steven Tamm <steventamm@mac.com>
2579
2580 * macterm.c (XTread_socket): Checks for valid, visible window
2581 before sending a scroll-wheel event.
2582
675d000f
RS
25832003-01-20 Richard M. Stallman <rms@gnu.org>
2584
2585 * xdisp.c (redisplay_window): If mini window's buffer is not
2586 a minibuffer, then redisplay it like other windows.
2587
a97e4138 25882003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
2589
2590 * gtkutil.c (xg_create_frame_widgets): Check if there is an
2591 external tool bar before setting tool bar height.
2592
048addec
JD
25932003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2594
2595 * xterm.c (handle_one_xevent): Surround popup_activated
2596 with #ifdef:s for non-toolkit version.
2597
2598 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
2599 (gtkutil.o): New file.
2600 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
2601 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
2602
2603 * gtkutil.c: New file for GTK version.
2604
2605 * gtkutil.h: New file for GTK version.
2606
2607 * xterm.h: Add xt_or_gtk_widget.
2608 Include gtk files for USE_GTK.
2609 (struct x_output): Add toolbar_height.
2610 (struct x_output): Add GTK widgets and Gdk size_hints.
2611 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
2612 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
2613 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
2614
2615 * xterm.c: Include gtkutil.h for USE_GTK.
2616 Declare extern void free_frame_menubar for USE_GTK.
2617 (note_mouse_highlight): Check popup_activated for USE_GTK.
2618 (xt_action_hook): Don't compile if USE_GTK.
2619 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
2620 (xg_scroll_callback): New function.
2621 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
2622 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
2623 for USE_GTK.
2624 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
2625 xg_show_scroll_bar for USE_GTK.
2626 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
2627 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
2628 (event_handler_gdk): New function for USE_GTK.
2629 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
2630 (handle_one_xevent): Make sure widget is mapped before
2631 calling x_real_positions for USE_GTK.
2632 (XTread_socket): Add GTK event loop for USE_GTK.
2633 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
2634 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
2635 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
2636 (x_iconify_frame): Add code for USE_GTK.
2637 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
2638 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
2639 is in gtkutil.c.
2640 (x_term_init): Add initialization for GTK.
2641 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
2642
2643 * xmenu.c: Include gtkutil.h for USE_GTK.
2644 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
2645 (single_menu_item, single_menu_item, Fx_popup_dialog):
2646 Check for USE_GTK.
048addec
JD
2647 (popup_widget_loop): New function for USE_GTK.
2648 (x_activate_menubar): Add code for USE_GTK.
2649 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
2650 (menu_highlight_callback, menubar_selection_callback):
2651 Add USE_GTK versions.
048addec
JD
2652 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
2653 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
2654 (free_frame_menubar): Only compile if not USE_GTK. GTK version
2655 is in gtkutil.c.
2656 (popup_selection_callback): New version for USE_GTK.
2657 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 2658 one USE_X_TOOLKIT version.
048addec
JD
2659 (xmenu_show): Call create_and_show_popup_menu.
2660 (dialog_selection_callback): New version for USE_GTK.
2661 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 2662 one USE_X_TOOLKIT version.
048addec
JD
2663 (xdialog_show): Call create_and_show_dialog.
2664
2665 * xfns.c: Include gtkutil for USE_GTK.
2666 (x_window_to_frame, x_any_window_to_frame)
2667 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2668 (x_top_window_to_frame): Add code for USE_GTK.
2669 (x_set_background_color): Call xg_set_background_color for GTK.
2670 (x_set_menu_bar_lines): Check for USE_GTK.
2671 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
2672 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
2673 (x_window): Call xg_create_frame_widgets for USE_GTK.
2674 (Fx_create_frame): Check for USE_GTK
2675 (Fx_file_dialog): New implementation for USE_GTK.
2676
2677 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
2678 (update_menu_bar): Add check for USE_GTK.
2679 (update_tool_bar): Add check for USE_GTK and external tool bar.
2680 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
2681 (redisplay_internal): Add check for USE_GTK and popup_activated.
2682 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
2683 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
2684 (display_menu_bar): Add check for USE_GTK
2685
2686 * lisp.h: Declare Vx_resource_name extern.
2687
2688 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
2689 for USE_GTK.
2690 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
2691
2692 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
2693 (FRAME_EXTERNAL_TOOL_BAR): New macro.
2694 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
2695
2696 * fileio.c (Fread_file_name): Add check for USE_GTK.
2697
6bdb309a
SM
2698 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
2699 Add check for USE_GTK.
048addec
JD
2700
2701 * config.in: Added HAVE_GTK
2702
2703 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
2704
27052003-01-18 Stefan Monnier <monnier@cs.yale.edu>
2706
2707 * charset.h (Funibyte_char_to_multibyte): Export.
2708
27092003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2710
2711 * xmenu.c (mouse_position_for_popup): New function.
2712 (Fx_popup_menu): Call mouse_position_for_popup for X and
2713 mouse_position_hook for others.
2714
27152003-01-17 Kim F. Storm <storm@cua.dk>
2716
2717 * editfns.c (Finsert): Mention `string-make-multibyte' and
2718 `string-as-multibyte' in doc string.
2719
27202003-01-17 Kenichi Handa <handa@m17n.org>
2721
2722 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 2723
048addec
JD
2724 * editfns.c (Fformat): Convert an unibyte char argument that is
2725 formatted by "%c" to multibyte if the total result must be a
2726 multibyte string.
cd7df9c0 2727
048addec 27282003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 2729
048addec
JD
2730 * process.c (set-process-filter): Document unibyte/multibyte-ness
2731 of string argument.
56210ecd 2732
048addec 27332003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 2734
048addec 2735 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 2736
048addec
JD
2737 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
2738 (re_search_2): Likewise.
6df8b9fe 2739
048addec 27402003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 2741
048addec
JD
2742 * xdisp.c (message_dolog): Fix bug of the case that *Message*
2743 buffer is unibyte.
292ddc31 2744
048addec 27452003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 2746
048addec 2747 * fns.c (Fsubstring): Clarify doc string.
292ddc31 2748
048addec
JD
2749 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
2750 (Fprevious_char_property_change)
2751 (Fnext_single_char_property_change)
2752 (Fprevious_single_char_property_change, Fnext_property_change)
2753 (Fnext_single_property_change, Fprevious_property_change)
2754 (Fprevious_single_property_change, Fadd_text_properties)
2755 (Fput_text_property, Fset_text_properties)
2756 (Fremove_text_properties, Fremove_list_of_text_properties)
2757 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 2758
048addec 27592003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 2760
048addec
JD
2761 * process.h (struct Lisp_Process): New member plist replaces old
2762 member private_vars. All uses changed.
63e4e4c6 2763
048addec 2764 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 2765 (QCplist): Rename from QCvars. Change all uses.
048addec 2766 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 2767 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 2768 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 2769 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 2770
048addec 27712003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 2772
6bdb309a 2773 * m/delta.h: Remove (obsolete).
e833850f 2774
048addec 27752003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 2776
048addec
JD
2777 * fileio.c (Fdelete_directory, Fdelete_file): Document the
2778 behaviour in front of symlinks.
2779 (Fdelete_file): Raise an error on directories.
817cb127 2780
048addec 27812003-01-13 Dave Love <fx@gnu.org>
817cb127 2782
048addec 2783 * fns.c (Freverse): Use QUIT.
3e8cf2ea 2784
048addec 27852003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 2786
048addec
JD
2787 * minibuf.c (minibuffer_completion_contents):
2788 Error if point is inside prompt.
3e8cf2ea 2789
048addec
JD
2790 * keyboard.c (command_loop_1): Don't redisplay directly
2791 if there's a post-command-hook.
3e8cf2ea 2792
048addec
JD
2793 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
2794 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 2795
048addec 27962003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 2797
048addec 2798 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 2799
048addec
JD
2800 * process.c (QCvars): New variable.
2801 (syms_of_process): Intern and staticpro it.
2802 (Fset_process_contact): Removed function.
2803 (Fprocess_variable, Fset_process_variable): New functions.
2804 (syms_of_process): Defsubr them.
2805 (Fstart_process): Initialize private_vars plist to nil.
2806 (Fmake_network_process): New arg :vars to setup the private
2807 variables for new network process.
2808 (server_accept_connection): Copy server's private variables to
2809 client process.
2c10f029 2810
048addec
JD
2811 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
2812 crashes). Code rewritten and simplified. Now directly aligns the
2813 pointer and recalculates pure_bytes_used, rather than aligning the
2814 size and adjusting the pointer.
b8a76c6c 2815
048addec 28162003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 2817
048addec
JD
2818 * process.c (Fset_process_contact): New function.
2819 (syms_of_process): defsubr it.
2820 (make-network-process): Update doc.
3a8d0899 2821
048addec 28222003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 2823
048addec
JD
2824 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
2825 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 2826
048addec 28272003-01-10 Dave Love <fx@gnu.org>
4abc7470 2828
048addec 2829 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 2830
048addec 28312003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 2832
048addec
JD
2833 * process.c (Fmake_network_process): Convert new port number
2834 to host byte order for `:service t' case. From Mario Lang.
bf338245 2835
048addec 28362003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 2837
048addec
JD
2838 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
2839 instead of XtAppProcessEvent.
bf338245 2840
048addec
JD
2841 * xterm.c (handle_one_xevent): New function.
2842 (x_dispatch_event): New function.
2843 (XTread_socket): Call handle_one_xevent.
bf338245 2844
048addec 2845 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 2846
048addec
JD
2847 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
2848 call XQueryPointer to get coordinates.
2849 (popup_get_selection): Do not set popup_activated_flag to zero,
2850 let popup_deactivate_callback do that. Needed for Motif.
2851 Call x_dispatch_event instead of XtDispatchEvent.
2852 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 2853
048addec 28542003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 2855
6bdb309a 2856 * process.c (server_accept_connection): Fix recording of new
048addec
JD
2857 connection's local address in :local property of contact info.
2858 (Fmake_network_process): Record local network address for new
2859 client processes in :local property of contact info.
6bdb309a 2860 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 2861
048addec 28622003-01-07 Dave Love <fx@gnu.org>
00e3ab56 2863
048addec 2864 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 2865
048addec 28662003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 2867
048addec 2868 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 2869
048addec
JD
2870 * eval.c (Fuser_variable_p): Doc change. For custom variables,
2871 use the same test as for custom-variable-p.
8c6d74c6 2872
048addec 28732003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 2874
048addec
JD
2875 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
2876 Count LAST_LINE_MISFIT in scroll margin for end of window.
2877 Move label too_near_end before setting SCROLL_MARGIN_POS.
2878 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 2879
048addec
JD
2880 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
2881 scroll_conservatively case. If scrolling that much doesn't change
2882 STARTP, move it down one line.
e833850f 2883
048addec
JD
2884 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
2885 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 2886
048addec
JD
2887 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
2888 selected frame.
8c6d74c6 2889
048addec
JD
2890 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
2891 (syms_of_keymap): staticpro them.
2892 (Fapropos_internal): Initialize them and clear them out.
2893 Don't GCPRO them.
8c6d74c6 2894
048addec
JD
2895 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
2896 Doc fixes.
8c6d74c6 2897
048addec
JD
2898 * lisp.h: New misc type Lisp_Save_Value.
2899 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
2900 (XSAVE_VALUE): New macro.
2901 (struct Lisp_Save_Value): New data type.
2902 (union Lisp_Misc): Add u_save_value alternative.
2903 (make_save_value): Declared.
8c6d74c6 2904
048addec 2905 * alloc.c (make_save_value): New function.
8c6d74c6 2906
048addec
JD
2907 * xterm.c (x_catch_errors): Save dpy using make_save_value.
2908 (x_catch_errors_unwind): Call XSync.
8c6d74c6 2909
048addec 29102003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 2911
048addec 2912 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 2913
048addec
JD
2914 * keyboard.c (command_loop_1): Call adjust_point_for_property
2915 in direct action cases for Qforward_char and Qbackward_char.
2916 Set already_adjusted so it won't be done twice.
8c6d74c6 2917
048addec 29182002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 2919
048addec
JD
2920 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
2921 type definition of size_t.
8c609cff 2922
048addec 29232003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 2924
048addec
JD
2925 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
2926 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 2927
048addec 29282002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 2929
048addec
JD
2930 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
2931 to default to t.
fa634a5e 2932
048addec 29332002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 2934
048addec 2935 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 2936
048addec 29372002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 2938
048addec
JD
2939 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
2940 allow building in a different directory than source. Uses some
2941 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 2942
048addec 29432002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 2944
048addec
JD
2945 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
2946 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
2947 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
2948 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 2949
048addec 29502002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 2951
048addec
JD
2952 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
2953 <scroll-down-aggressively>: Doc fix.
2155ecf3 2954
048addec
JD
2955 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
2956 string as pane name, if there is one.
2957 (set_frame_menubar): Save menu_items_n_panes from each call to
2958 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 2959
048addec
JD
2960 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
2961 Don't try to make last line fully visible if it is past end of window.
61f1d295 2962
048addec 29632002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 2964
048addec
JD
2965 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
2966 (mac_menu_show): Add support for hierarchical popup menus.
2967 (add_menu_item): Remove indentation support.
2968 (fill_submenu, fill_menu): Create hierarchical menus
2969 instead of using indentation.
0b17a217 2970
048addec 29712002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 2972
048addec
JD
2973 * xdisp.c (try_cursor_movement): Don't call try_window here.
2974 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 2975
048addec 2976 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 2977
048addec 29782002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 2979
048addec
JD
2980 * macterm.c (XTread_socket): Call KeyTranslate for control and
2981 meta to deal correctly shifted non-alpha characters, like C-S-5
2982 being treated like C-%. Does not look for shift key to deal
2983 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 2984
048addec 29852002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 2986
048addec
JD
2987 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
2988 If it is non-nil, run timers. Use an unwind-protect to requeue
2989 the events that were read ahead.
2990 (popup_get_selection_unwind): New subroutine.
2991 (popup_get_selection_queue): File-scope variable now holds that queue.
2992 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
2993 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
2994 Use an unwind-protect to pop down the dialog box.
2995 (xdialog_show_unwind): New subroutine implements that.
f02cac82 2996
048addec
JD
2997 * xdisp.c (row_containing_pos): Change exit test using last_y.
2998 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 2999
048addec
JD
3000 * lread.c (load_error_handler): New function.
3001 (Fload): Handle errors in Fsubstitute_in_file_name.
3002 Don't expect Fsignal to return.
f02cac82 3003
048addec
JD
3004 * eval.c: Errors and throws work right with interrupt blocking.
3005 (struct catchtag): New elt interrupt_input_blocked.
3006 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
3007 (internal_catch, Fcondition_case, internal_condition_case)
3008 (internal_condition_case_1, internal_condition_case_2): Save it.
3009 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 3010
048addec 3011 * editfns.c (Fformat): Add parens.
f02cac82 3012
048addec
JD
3013 * dired.c (file_name_completion): Fix that change.
3014 Delete special quit-handling code; just use QUIT.
f02cac82 3015
048addec 30162002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 3017
048addec
JD
3018 * dired.c (file_name_completion): Close directory on error
3019 just as in directory_files_internal.
1a590729 3020
048addec 30212002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 3022
048addec
JD
3023 * window.c (Fset_window_configuration): Set old_point to correct
3024 value when new_current_buffer == current_buffer.
f02cac82 3025
048addec 30262002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 3027
048addec
JD
3028 Revisited my earlier fix for the following entry in etc/PROBLEMS:
3029 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
3030 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 3031
048addec
JD
3032 These changes were in part based upon suggestions made by Peter
3033 'Luna' Runestig [peter@runestig.com].
9785d95b 3034
048addec
JD
3035 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
3036 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 3037 g_b_init_get_sid_identifier_authority ): Add several static
048addec 3038 global variables.
9785d95b 3039
048addec
JD
3040 * w32.c (globals_of_w32): New function. Used to initialize those
3041 global variables that must always be initialized on startup even
3042 when the global variable initialized is non zero. Its primary
3043 purpose at this time is to set the global variables
3044 g_b_init_is_windows_9x, g_b_init_open_process_token,
3045 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
3046 g_b_init_get_sid_identifier_authority to 0 on startup.
3047 Called from main.
9785d95b 3048
048addec
JD
3049 * w32.c (is_windows_9x): Perform initialization only if
3050 g_b_init_is_windows_9x is equal to 0. On initialization set
3051 g_b_init_is_windows_9x equal to 1.
2308af15 3052
048addec
JD
3053 * w32.c (open_process_token): Perform initialization only if
3054 g_b_init_open_process_token is equal to 0. On initialization set
3055 g_b_init_open_process_token equal to 1.
2308af15 3056
048addec
JD
3057 * w32.c (get_token_information): Perform initialization only if
3058 g_b_init_get_token_information is equal to 0. On initialization
3059 set g_b_init_get_token_information equal to 1.
9785d95b 3060
048addec
JD
3061 * w32.c (lookup_account_sid): Perform initialization only if
3062 g_b_init_lookup_account_sid is equal to 0. On initialization
3063 set g_b_init_lookup_account_sid equal to 1.
9785d95b 3064
048addec
JD
3065 * w32.c (get_sid_identifier_authority): Perform initialization
3066 only if g_b_init_get_sid_identifier_authority is equal to 0.
3067 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 3068
048addec
JD
3069 * w32fns.c (globals_of_w32fns): New function. Used to initialize
3070 those global variables that must always be initialized on startup
3071 even when the global variable initialized is non zero.
3072 Its primary purpose at this time is to initialize the global variable
3073 track_mouse_event_fn.
9785d95b 3074
048addec
JD
3075 * w32fns.c (w32_wnd_proc): Remove initialization of
3076 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 3077
048addec 3078 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 3079
048addec
JD
3080 * w32menu.c (globals_of_w32menu): New function. Used to
3081 initialize those global variables that must always be initialized
3082 on startup even when the global variable initialized is non zero.
3083 Its primary purpose at this time is to initialize the global
3084 variables get_menu_item_info and set_menu_item_info.
9785d95b 3085
048addec
JD
3086 * w32menu.c (initialize_frame_menubar): Remove initialization of
3087 get_menu_item_info and set_menu_item_info.
9785d95b 3088
048addec 3089 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 3090
048addec
JD
3091 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
3092 Declare them.
9785d95b 3093
048addec
JD
3094 * emacs.c (main): Call globals_of_w32 prior to calling
3095 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
3096 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
3097 is defined.
9785d95b 3098
048addec
JD
3099 * w32term.c (x_update_window_begin): Fix Windows API error
3100 detected by BoundsChecker. Test to determine if
3101 w32_system_caret_hwnd is NULL prior to attempting to use
3102 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 3103
048addec
JD
3104 * w32term.c (x_update_window_end): Fix Windows API error
3105 detected by BoundsChecker. Test to determine if
3106 w32_system_caret_hwnd is NULL prior to attempting to use
3107 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 3108
048addec 31092002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 3110
048addec
JD
3111 * coding.c (coding_system_require_warning): New variable.
3112 (syms_of_coding): DEFVAR it.
b6da19ef 3113
048addec 3114 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 3115
048addec
JD
3116 * fileio.c (choose_write_coding_system): Even if
3117 Vcoding_system_for_write is non-nil, if
3118 coding_system_require_warning is nonzero, call
3119 Vselect_safe_coding_system_function.
bfcf6dbe 3120
048addec 31212002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 3122
048addec
JD
3123 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
3124 (lisp): Add font-core.
2c568af5 3125
048addec 31262002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 3127
048addec
JD
3128 * textprop.c (text_read_only): New arg `propval'.
3129 (get_char_property_and_overlay): Remove unused var `next_overlay'.
3130 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 3131
048addec 31322002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 3133
048addec 3134 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 3135
048addec 31362002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 3137
048addec
JD
3138 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
3139 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
3140 Be more careful about when help_events are generated.
96720f09 3141
048addec 31422002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 3143
048addec
JD
3144 * macterm.c (mac_check_for_quit_char): Correctly set the
3145 modifiers of the event to 0.
3146 * mac.c (sys_select): Duplicate rfds before calling select to
3147 ensure that rfds survive the while loop.
e5ae1c49 3148
048addec 31492002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 3150
048addec
JD
3151 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
3152 row_containing_pos returned NULL.
2eb46b2d 3153
048addec 31542002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 3155
6bdb309a 3156 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 3157 non-blocking.
6bdb309a 3158 (sys_select): Fix sys_select to not use a timeout larger than
048addec 3159 the one given.
b11f1d8a 3160
048addec 31612002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 3162
048addec 3163 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 3164
048addec 31652002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 3166
048addec
JD
3167 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
3168 as the last thing.
a4ac5b17 3169
048addec 31702002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 3171
048addec 3172 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 3173
048addec 31742002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 3175
048addec
JD
3176 * editfns.c (Fformat): Handle precision in string conversion
3177 specifiers like libc functions do (ie, print at most that many
3178 characters).
85cce843 3179
048addec 31802002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 3181
048addec
JD
3182 * xdisp.c (row_containing_pos): Check more carefully
3183 whether charpos is really in the row before returning it.
0d4d26a7 3184
048addec 31852002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 3186
048addec 3187 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 3188
048addec
JD
3189 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
3190 each stack frame. This may change as it could be time consuming.
0d4d26a7 3191
048addec
JD
3192 * macterm.c (mac_check_for_quit_char, quit_char_comp)
3193 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 3194 (mac_initialize): Add code to check for pressing of quit_char
048addec 3195 in the OS event queue.
b11f1d8a 3196
048addec
JD
3197 * mac.c (sys_select): Call mac_check_for_quit_char every second
3198 while blocking on select.
0d4d26a7 3199
048addec
JD
3200 * mac.c (sys_read): Use sys_select to test for input first
3201 before calling read, to allow C-g to break.
9252f7bc 3202
048addec 32032002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 3204
048addec 3205 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 3206
048addec 3207 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 3208
048addec 3209 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 3210
048addec
JD
3211 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
3212 autoload.
9252f7bc 3213
048addec 3214 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 3215
048addec 3216 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 3217
048addec 32182002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 3219
048addec 3220 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 3221
048addec 32222002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 3223
048addec 3224 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 3225
048addec 3226 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 3227
048addec 3228 * alloca.c: Don't use #error.
02d588e2 3229
048addec 32302002-12-03 Dave Love <fx@gnu.org>
02d588e2 3231
048addec
JD
3232 * buffer.c (Qucs_set_table_for_input): New.
3233 (Fget_buffer_create): Use it.
3234 (Qset_buffer_major_mode_hook): Deleted.
3235 (Fset_buffer_major_mode): Revert previous change.
3236 (init_buffer_once): Intern ucs-set-table-for-input.
3237 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
3238 Add &Qucs_set_table_for_input.
451e2697 3239
048addec 32402002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 3241
048addec
JD
3242 * callint.c (Fcall_interactively): Use next_event only if less
3243 than key_count.
72742a99 3244
048addec 32452002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 3246
048addec
JD
3247 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
3248 names to 255 characters.
72742a99 3249
048addec
JD
3250 * macterm.c (XTread_socket): If all frames have been collapsed,
3251 expand the first one before handling drag-and-drop events.
72742a99 3252
048addec
JD
3253 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
3254 which is detected by autoconf.
40e6ff95 3255
048addec 32562002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 3257
048addec
JD
3258 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
3259 offset in two hints table to allow prebinding to be redone and
3260 allow the executable to be stripped.
c02138c6 3261
048addec 32622002-11-29 Dave Love <fx@gnu.org>
c02138c6 3263
048addec
JD
3264 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
3265 already provided.
0e47bbf7 3266
048addec 32672002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 3268
048addec
JD
3269 * xdisp.c (start_display): Check more intelligently for
3270 whether the line is continued.
3271 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 3272
048addec 32732002-11-28 Dave Love <fx@gnu.org>
44129dcb 3274
048addec
JD
3275 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
3276 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 3277
048addec 32782002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 3279
048addec
JD
3280 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
3281 more descriptive error output from lread.c:Fload upon most require
3282 cycles during boostrapping.
1637fd2c 3283
048addec 32842002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 3285
048addec
JD
3286 * fileio.c (Finsert_file_contents): Give a more appropriate error
3287 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 3288
048addec
JD
3289 * dired.c (Ffile_attributes): Don't return negative file sizes for
3290 files bigger than 2Gb when off_t is 32 bit.
540c2788 3291
048addec 32922002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 3293
048addec 3294 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 3295
048addec
JD
3296 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
3297 Test GETPGRP_VOID instead.
3298 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 3299
048addec
JD
3300 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
3301 Don't define.
3302 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 3303
048addec 3304 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 3305
048addec 33062002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 3307
048addec
JD
3308 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
3309 supported.
4042a81a 3310
048addec 33112002-11-25 Dave Love <fx@gnu.org>
4042a81a 3312
048addec 3313 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 3314
048addec 3315 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 3316
048addec 33172002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 3318
048addec 3319 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 3320
048addec 33212002-11-24 Steven Tamm <steventamm@mac.com>
82122254 3322
048addec
JD
3323 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
3324 determine the size of pointers alloced in unexed space instead
3325 of using possibly invalid emacs_zone pointers. This fixes the
3326 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 3327
048addec 33282002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 3329
048addec 3330 * search.c (Fstring_match): Doc fix.
c1ee53bc 3331
048addec
JD
3332 * callint.c (Fcall_interactively): If a command fails because
3333 `*' detects a read-only buffer, but RECORD_FLAG is set,
3334 record it anyway if the args don't actually do tty input.
5598c32e 3335
048addec 33362002-11-22 Dave Love <fx@gnu.org>
5598c32e 3337
048addec 3338 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 3339
048addec
JD
3340 * keyboard.c (interrupt_signal): Provide forward declaration.
3341 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 3342
048addec 3343 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 3344
048addec 33452002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 3346
048addec
JD
3347 * eval.c (interactive_p): Skip any number of bytecode
3348 and special form frames, in any order.
516eea8e 3349
048addec 33502002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 3351
048addec
JD
3352 * w32fns.c (convert_mono_to_color_image): New function.
3353 (xbm_load, xbm_load_image): Use it when foreground or background
3354 is explicitly set.
04dbfa08 3355
048addec 33562002-11-19 Dave Love <fx@gnu.org>
04dbfa08 3357
048addec 3358 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 3359
048addec 33602002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 3361
048addec
JD
3362 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
3363 (XPutPixel): Swap blue and red.
3364 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
3365 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
3366 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
3367 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 3368
048addec 33692002-11-18 Dave Love <fx@gnu.org>
d824beee 3370
048addec 3371 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 3372
048addec 3373 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 3374
048addec 3375 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 3376
048addec
JD
3377 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
3378 malloc, realloc, calloc.
d824beee 3379
048addec
JD
3380 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
3381 (bcmp): Don't define.
d824beee 3382
048addec 3383 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 3384
048addec 3385 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 3386
048addec 3387 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 3388
048addec 3389 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 3390
048addec
JD
3391 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
3392 Don't include alloca.h.
d824beee 3393
048addec 3394 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 3395
048addec 3396 * regex.c (_GNU_SOURCE): Don't define.
1998560a 3397
048addec 3398 * process.c (_GNU_SOURCE): Don't define.
1998560a 3399
048addec 3400 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 3401
048addec 34022002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 3403
048addec 3404 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 3405
048addec 34062002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 3407
048addec
JD
3408 * dispextern.h (struct face): Add `overstrike' field.
3409 * xterm.c (x_draw_glyph_string_foreground)
3410 (x_draw_composite_glyph_string_foreground): Implement overstriking.
3411 * xfaces.c (load_face_font): Set `face->overstrike' based on
3412 result from choose_face_font.
3413 (best_matching_font, choose_face_font): Add `needs_overstrike'
3414 argument, and use it to return whether overstriking is desirable
3415 for this face/font combo.
3416 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 3417
048addec 34182002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 3419
048addec
JD
3420 This change is my fix for the following entry in etc/PROBLEMS:
3421 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
3422 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 3423
048addec
JD
3424 * w32.c: Added wrapper functions around the win32 API functions
3425 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
3426 GetSidIdentifierAuthority. These wrapper functions serve two
3427 purposes:
3428 1. They ensure that the wrapped function can never be called
3429 when Emacs is running on an operating system on which they are
3430 not supported (Microsoft Windows 95 / 98 / ME).
3431 2. They call the wrapped functions via function pointers rather
3432 than calling them directly. This avoids taking advantage of the
3433 undocumented fact that although these functions are not supported
3434 in the 9x branch of Microsoft Windows, the functions do exist in
3435 the version of advapi32.dll that is found in the 9x branch of
3436 Microsoft Windows.
f60ae425 3437
6bdb309a 3438 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
3439 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
3440 and GetSidIdentifierAuthority with calls to the newly added
3441 wrapper functions.
f60ae425 3442
048addec
JD
3443 * w32.h: Added extern declarations for the following functions:
3444 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
3445 syms_of_w32menu, and void syms_of_fontset.
f60ae425 3446
6bdb309a 3447 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
3448 function pointer track_mouse_event_fn in the handler for the
3449 WM_SETFOCUS message.
3582b6a3 3450
6bdb309a 3451 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
3452 reinitialize the function pointers set_menu_item_info and
3453 get_menu_item_info.
f60ae425 3454
048addec 34552002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 3456
048addec
JD
3457 * sound.c: Added a partial implementation of play-sound-internal
3458 for Microsoft Windows. Added various #ifdef / #else / #endif
3459 code blocks to separate the code that will compile under
3460 Microsoft Windows from the code that is specific to Gnu/Linux.
3461 Moved several blocks of code around to make this separation of code
3462 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 3463
048addec 3464 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 3465
048addec
JD
3466 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
3467 added support for play-sound-internal under Windows would be
3468 included in the build of Emacs.
517f42a0 3469
048addec 34702002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 3471
048addec 3472 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 3473
048addec 3474 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 3475
048addec 34762002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 3477
048addec
JD
3478 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
3479 (adjust_point_for_property): Move out of display and invisible even if
3480 we were already inside before (in case a property was added while
3481 we weren't looking). Be more careful when handling invisible props.
3482 Skip invisible text as if it really wasn't there at all.
aab83f91 3483
048addec 34842002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 3485
048addec
JD
3486 * w32term.c (x_draw_image_foreground)
3487 (w32_draw_image_foreground_1): Use standard copy and invert
3488 operations to draw images.
aab83f91 3489
048addec
JD
3490 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
3491 depth of 1.
3492 (xbm_read_bitmap_data): Invert bits as xbm is read in.
3493 (XPutPixel): Don't invert bits here.
a4478a76 3494
048addec 34952002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 3496
048addec
JD
3497 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
3498 (w32_draw_image_foreground_1): Handle image masks.
3499 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 3500
048addec
JD
3501 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
3502 (x_from_xcolors): Adjust RGB values for W32.
3503 (image_background, image_background_transparent)
3504 (postprocess_image, x_to_xcolors, x_disable_image)
3505 (x_build_heuristic_mask): Adapt for W32 and enable.
3506 (x_create_x_image_and_pixmap): Mark images with palettes as such.
3507 (xbm_load): Remove unused variable.
03670a65 3508
048addec 35092002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 3510
048addec 3511 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 3512
048addec 35132002-11-14 Dave Love <fx@gnu.org>
59daa29a 3514
048addec 3515 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 3516
048addec
JD
3517 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
3518 * xmenu.c (unuse_menu_items, digest_single_submenu):
3519 * xfns.c (x_put_x_image):
3520 * xdisp.c (message2_nolog, set_message):
3521 * undo.c (record_point):
3522 * terminfo.c (tparam):
3523 * syntax.c (scan_sexps_forward):
3524 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
3525 * composite.c (update_compositions):
3526 * cm.c (calccost, cmgoto):
3527 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 3528
048addec 3529 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 3530
048addec
JD
3531 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
3532 Don't declare.
59daa29a 3533
048addec 3534 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 3535
048addec
JD
3536 * fns.c (Fcopy_sequence): Doc fix.
3537 (Fmap_char_table): Cast `call2'.
3947677c 3538
048addec
JD
35392002-11-14 Francesco Potorti` <pot@gnu.org>
3540
3541 * s/sol2-8.h: New file.
3542
35432002-11-14 Kim F. Storm <storm@cua.dk>
3544
3545 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
3546 dependency on `risky-local-variable' and the :propertize form.
3547
35482002-11-12 Stefan Monnier <monnier@cs.yale.edu>
3549
3550 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
3551
3552 * syntax.c (scan_sexps_forward): Undo last patch.
3553 Use a more obvious fix: check eob before updating the syntax table.
3554
35552002-11-09 Stefan Monnier <monnier@cs.yale.edu>
3556
3557 * syntax.c (scan_sexps_forward): Update syntax table before reading
3558 a char rather than after so we don't update the table past eob.
3559
35602002-11-09 Dave Love <fx@gnu.org>
3561
3562 * buffer.c (Fset_buffer_major_mode): Fix last change.
3563
3564 * regex.c (regexec): Fix pmatch declaration.
3565
3566 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
3567
3568 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
3569 to self-inserting characters.
3570 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
3571
3572 * coding.c (Vtranslation_table_for_input): New.
3573 (syms_of_coding): DEFVAR it.
3574
35752002-11-08 Juanma Barranquero <lektu@terra.es>
3576
3577 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
3578 window.
3579
35802002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3581
6bdb309a 3582 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
3583 cp, and i.
3584
35852002-11-06 Dave Love <fx@gnu.org>
3586
3587 * buffer.c (Qset_buffer_major_mode_hook): New.
3588 (Fset_buffer_major_mode): Use it.
3589
35902002-11-06 Richard M. Stallman <rms@gnu.org>
3591
3592 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
3593 and stop_polling.
3594
3595 * process.c (wait_reading_process_input):
3596 Test POLLING_PROBLEM_IN_SELECT, not hpux.
3597 Avoid initialization for auto Lisp_Object var.
3598
3599 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
3600
3601 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
3602
36032002-11-05 Richard M. Stallman <rms@gnu.org>
3604
3605 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
3606
3607 * callint.c (Fcall_interactively): New local filter_specs.
3608 (Fcall_interactively): Check for progn as well as let.
3609 Add a gcpro.
3610 (Qprogn): New variable.
3611 (syms_of_callint): Staticpro and init Qprogn.
3612
36132002-11-04 John Paul Wallington <jpw@shootybangbang.com>
3614
3615 * lread.c (Feval_buffer): Doc fix.
3616
36172002-11-04 Dave Love <fx@gnu.org>
3618
3619 * keyboard.c (read_char): Always translate iff
3620 Vkeyboard_translate_table is a char table and c is valid.
3621
3622 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
3623 and fix C types.
3624
36252002-11-03 Stefan Monnier <monnier@cs.yale.edu>
3626
3627 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
3628
3629 * editfns.c (get_pos_property): Don't hardcode Qfield.
3630
3631 * keyboard.c (adjust_point_for_property): Handle `display' prop on
3632 overlays. Also handle `invisible' prop.
3633
36342002-11-02 Stefan Monnier <monnier@cs.yale.edu>
3635
3636 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
3637 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
3638
36392002-11-01 Andreas Schwab <schwab@suse.de>
3640
3641 * editfns.c (Fmessage): Revert last change to properly handle %%.
3642
36432002-11-01 Stefan Monnier <monnier@cs.yale.edu>
3644
3645 * xmenu.c (unuse_menu_items): New fun.
3646 (menu_items_inuse): New var.
3647 (syms_of_xmenu): Initialize it.
3648 (init_menu_items): Use it to detect re-entrance.
3649 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
3650 (Fx_popup_menu): Remove spurious XSETFRAME.
3651
3652 * editfns.c (find_field): Make an exception for nil fields.
3653
36542002-11-01 Dave Love <fx@gnu.org>
3655
3656 * m/gec63.h: Deleted.
3657
36582002-10-31 Dave Love <fx@gnu.org>
3659
3660 * xterm.c (XTread_socket): Fix last change.
3661 (xaw_scroll_callback): Cast call_data to long to avoid warning.
3662
36632002-10-31 Stefan Monnier <monnier@cs.yale.edu>
3664
3665 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
3666
36672002-10-30 Stefan Monnier <monnier@cs.yale.edu>
3668
3669 * editfns.c (overlays_around, get_pos_property): New funs.
3670 (find_field): Use them.
3671 Also be careful not to modify POS before its last use.
3672 (Fmessage): Don't Fformat if there's nothing to format.
3673
36742002-10-30 Dave Love <fx@gnu.org>
3675
3676 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
3677 [HAVE_PTY_H]; Include pty.h.
3678
3679 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
3680
3681 * xterm.c (Qeql): Declare.
3682 (Vx_keysym_table): New.
3683 (syms_of_xterm): Initialize it.
3684 (XTread_socket): Use it. Deal with ASCII keysyms.
3685 (XSetIMValues) [HAVE_X11R6]: Prototype.
3686
3687 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
3688 (lispy_kana_keys): Comment out.
3689 (make_lispy_event) [XK_kana_A]: Comment out.
3690 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
3691 Fix sprintf call.
3692
3693 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
3694 regexp.h change).
3695 (TERMINFO, LIBS_TERMCAP): Define.
3696
3697 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
3698 (bcmp): Define conditional on HAVE_BCMP.
3699 (NO_SIOCTL_H): Don't define.
3700 (TIOCSIGSEND): Don't make conditional on IRIX6.
3701
3702 * s/sol2-5.h: Don't include strings.h.
3703 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
3704
3705 * s/irix6-0.h (IRIX6): Don't define.
3706 (bcopy, bcmp, bzero): Don't undef.
3707
3708 * s/irix6-5.h: Don't include strings.h.
3709 (IRIX6): Don't define.
3710 (bcopy, bcmp, bzero): Don't undef.
3711
3712 * syntax.c (Fforward_comment): Doc fix.
3713
37142002-10-29 Kim F. Storm <storm@cua.dk>
3715
3716 * process.c (Fsignal_process): Allow PROCESS to be specified by
3717 name in addition to pid (as integer or string).
3718
37192002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
3720
3721 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
3722 environments.
3723
37242002-10-27 Kim F. Storm <storm@cua.dk>
3725
3726 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
3727
3728 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
3729
3730 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
3731
3732 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
3733
37342002-10-26 Richard M. Stallman <rms@gnu.org>
3735
3736 * editfns.c (Fformat): Detect invalid format letters for floats.
3737
37382002-10-25 Kenichi Handa <handa@m17n.org>
3739
3740 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
3741 (x_set_title): Likewise.
3742
37432002-10-25 Juanma Barranquero <lektu@terra.es>
3744
3745 * macgui.h:
3746 * w32gui.h: Remove definition of XColor.
3747
3748 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
3749
37502002-10-24 Kim F. Storm <storm@cua.dk>
3751
3752 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
3753 Callers changed (supply dummy arg).
3754
3755 * lisp.h (get_window_cursor_type): Update prototype.
3756
3757 * w32term.c (x_display_and_set_cursor): Get active_cursor from
3758 get_window_cursor_type to track system caret.
3759
37602002-10-24 Kim F. Storm <storm@cua.dk>
3761
3762 * process.c (Fformat_network_address): New function.
3763 (syms_of_process): Defsubr it.
3764 (list_processes_1): Use it to format :local/:remote address if
3765 service/host is not set; before emacs would crash in that case.
3766 (Fmake_network_process): Don't use Ffind_operation_coding_system
3767 to setup coding system if host or service is not set.
3768
37692002-10-23 Juanma Barranquero <lektu@terra.es>
3770
3771 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
3772
3773 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
3774 COLORREF.
3775
3776 * macgui.h:
3777 * w32gui.h: Add definition of XColor.
3778
3779 * macfns.c:
3780 * w32fns.c:
3781 * xfaces.c: Remove definition of XColor.
3782
37832002-10-22 Stefan Monnier <monnier@cs.yale.edu>
3784
3785 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
3786
3787 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
3788 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
3789 window if it is dedicated.
3790 (Fshrink_window): Add preserve_before as was done for enlarge_window.
3791 (Vspecial_display_function): Update docstring.
3792
3793 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
3794 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
3795 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
3796
37972002-10-21 Stefan Monnier <monnier@cs.yale.edu>
3798
3799 * casefiddle.c (casify_region): Don't treat a prefix char as part
3800 of a word when at the beginning.
3801
38022002-10-17 Juanma Barranquero <lektu@terra.es>
3803
3804 * lread.c (syms_of_lread): Fix typos.
3805
38062002-10-17 Dave Love <fx@gnu.org>
3807
3808 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
3809
38102002-10-16 Richard M. Stallman <rms@gnu.org>
3811
3812 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
3813
38142002-10-14 Juanma Barranquero <lektu@terra.es>
3815
3816 * w16select.c (syms_of_win16select): Fix docstring for
3817 `selection-coding-system'.
3818
3819 * w32select.c (syms_of_w32select): Likewise.
3820
38212002-10-14 Stefan Monnier <monnier@cs.yale.edu>
3822
3823 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
3824 a backslash-quoted char.
3825 (scan_lists, scan_sexps_forward): Pacify the compiler.
3826
38272002-10-13 Richard M. Stallman <rms@gnu.org>
3828
3829 * window.c (window_scroll): Set immediate_quit.
3830
3831 * print.c (print): When backquote form is the car of a list,
3832 output in old style. Use old_backquote_output to output all
3833 comma forms inside it in old style too.
3834
3835 * buffer.h (struct buffer): Move `undo_list' down below `name'.
3836
38372002-10-11 Markus Rost <rost@math.ohio-state.edu>
3838
3839 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
3840 batch mode).
3841
3842 * lread.c (Fload): Doc fix (load-suffixes).
3843
38442002-10-10 Steven Tamm <steventamm@mac.com>
3845
3846 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
3847 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
3848 Also switch the default to Qnil from Qt.
3849
38502002-10-08 Kenichi Handa <handa@m17n.org>
3851
3852 * coding.c (code_convert_region): When we need more GAP for
3853 conversion, pay attention to the case that coding->produced is not
3854 greater than coding->consumed.
3855
38562002-10-07 Richard M. Stallman <rms@gnu.org>
3857
3858 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
3859
38602002-10-06 Andrew Choi <akochoi@shaw.ca>
3861
3862 * macmenu.c (mac_menu_show): Add j to count menu items; match
3863 menu_item_selection to it to find selected item.
3864
38652002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3866
3867 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
3868 cases. The correct fix is to pass ReparentNotify to Xt.
3869 The shell widget interprets ConfigureNotify differently depending
3870 on if it has been reparented or not.
3871
38722002-10-05 Markus Rost <rost@math.ohio-state.edu>
3873
3874 * editfns.c (Fformat_time_string): Doc fix.
3875
38762002-10-05 John Paul Wallington <jpw@shootybangbang.com>
3877
3878 * fns.c (Flength): Doc fix.
3879
38802002-10-04 Stefan Monnier <monnier@cs.yale.edu>
3881
3882 * keyboard.c (keyremap): New struct.
3883 (read_key_sequence): Use it: globally replace keytran_foo with
3884 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
3885 keytran_next and fkey_next to just `next'.
3886
38872002-10-04 Steven Tamm <steventamm@mac.com>
3888
3889 * macterm.c (keycode_to_xkeysym_table): Change return to be
3890 treated like an X keysym.
3891
38922002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3893
3894 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
3895 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
3896 This is to also handle x/y changes that occur because of a resize.
3897
38982002-10-02 John Paul Wallington <jpw@shootybangbang.com>
3899
3900 * frame.c (Vdelete_frame_functions): New variable.
3901 (syms_of_frame): Initialize and defvar it.
3902 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
3903 it when frame's `tooltip' parameter is non-nil.
3904
3905 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
3906
3907 * w32fns.c (x_create_tip_frame): Likewise.
3908
3909 * macfns.c (x_create_tip_frame): Likewise.
3910
39112002-09-30 Kenichi Handa <handa@m17n.org>
3912
3913 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
3914 -1 before calling ccl_driver.
3915
3916 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
3917 Only when it is non-nil, handle composition sequence.
3918 (setup_coding_system) <0>: Don't force composition handling.
3919
3920 * Makefile.in (lisp, shortlisp): Add utf-16.elc
3921
39222002-09-29 Richard M. Stallman <rms@gnu.org>
3923
3924 * search.c (Freplace_match): Adjust match data for the substitution
3925 just made in the buffer.
3926
3927 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
3928 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
3929
39302002-09-27 Richard M. Stallman <rms@gnu.org>
3931
3932 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
3933 (read_char): Use them. Do all exits thru the end of the function.
3934
39352002-09-27 Kenichi Handa <handa@etl.go.jp>
3936
3937 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
3938 is nil.
3939
39402002-09-26 Richard M. Stallman <rms@gnu.org>
3941
3942 * regex.h (__restrict_arr): Don't define if already defined.
3943
3944 * coding.c (run_pre_post_conversion_on_str):
3945 Save and restore Vdeactivate_mark.
3946
39472002-09-26 John Paul Wallington <jpw@shootybangbang.com>
3948
3949 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
3950
39512002-09-26 Kenichi Handa <handa@etl.go.jp>
3952
3953 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
3954 nonzero, try face's family at first. Otherwise try FAMILY at first.
3955 (choose_face_font): If C is a single byte char or latin-1, call
3956 try_font_list with PREFER_FACE_FAMILY 1.
3957
39582002-09-21 Richard M. Stallman <rms@gnu.org>
3959
3960 * window.c (select_window_1): Don't select frame.
3961 Set frame's selected window only when frame itself is selected.
3962 (Fselect_window): Doc fix.
3963
39642002-09-18 Kim F. Storm <storm@cua.dk>
3965
3966 * process.c (make-network-process): Doc fix (there is no
3967 network-server-log-function hook).
3968
39692002-09-18 Richard M. Stallman <rms@gnu.org>
3970
3971 * print.c (print): Clear out the unused parts of Vprint_number_table.
3972 (syms_of_print): Doc fix for `print-number-table'.
3973
3974 * unexelf.c (unexec): Undo previous change.
3975
39762002-09-17 Andreas Schwab <schwab@suse.de>
3977
3978 * m/alpha.h [LINUX]: Don't define DATA_START.
3979
39802002-09-16 Dave Love <fx@gnu.org>
3981
3982 * unexelf.c (unexec): Deal with .got, reinstating change from
3983 25-08-1999.
3984
39852002-09-13 Richard M. Stallman <rms@gnu.org>
3986
3987 * s/sol2-6.h (UNEXEC): Comment out definition.
3988
3989 * unexsol.c (unexec): Don't downcase first letter of error msg.
3990
3991 * xfaces.c (Fcolor_supported_p): Just one arg is required.
3992
39932002-09-12 Markus Rost <rost@math.ohio-state.edu>
3994
3995 * unexsol.c: Include buffer.h, charset.h, coding.h.
3996
39972002-09-11 Richard M. Stallman <rms@gnu.org>
3998
3999 * unexsol.c: Don't use report_file_error; do it by hand
4000 using dlerror.
4001
4002 * process.c (wait_reading_process_input, both versions):
4003 Before calling turn_on_atimers, call stop_polling.
4004
4005 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
4006
4007 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
4008 we go to too_near_end, call clear_glyph_matrix.
4009 (redisplay_window): After make_cursor_line_fully_visible,
4010 call clear_glyph_matrix and bypass `goto done'.
4011
4012 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
4013 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
4014
40152002-09-10 Richard M. Stallman <rms@gnu.org>
4016
4017 * fileio.c (Fdo_auto_save): Catch error making directory.
4018 Only call push_message if we need to.
4019 At the same time, make an unwind-protect to pop it.
4020 Rename local message_p to old_message_p.
4021 (do_auto_save_make_dir, do_auto_save_eh): New functions.
4022 (do_auto_save_unwind): Don't call pop_message.
4023
4024 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
4025
4026 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
4027
4028 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
4029
4030 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
4031
40322002-09-10 Stefan Monnier <monnier@cs.yale.edu>
4033
4034 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
4035 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
4036 (re_match_2_internal): Be more careful with infinite loops.
4037
40382002-09-10 Kim F. Storm <storm@cua.dk>
4039
4040 * macros.c (end_kbd_macro): New function.
4041 (Fend_kbd_macro): Use it.
4042
4043 * macros.h (end_kbd_macro): Declare extern.
4044
4045 * keyboard.c (Fdiscard_input): If defining keyboard macro,
4046 end and save it instead of discarding it.
4047
40482002-09-09 Markus Rost <rost@math.ohio-state.edu>
4049
4050 * s/sol2-6.h: Fix typo. Add comment.
4051
40522002-09-09 Richard M. Stallman <rms@gnu.org>
4053
4054 * regex.c (regnum_t): Use signed int, not unsigned int.
4055
4056 * s/sol2-6.h: New file.
4057
4058 * s/sol2-5.h (UNEXEC): Definition deleted.
4059
40602002-09-08 Kim F. Storm <storm@cua.dk>
4061
4062 * macros.c (executing_macro_index): Change type to EMACS_INT.
4063 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
4064
4065 * macros.h (executing_macro_index): Change type to EMACS_INT.
4066
40672002-09-06 Richard M. Stallman <rms@gnu.org>
4068
4069 * casetab.c (set_case_table): Make canon table point to eqv table.
4070
40712002-09-06 Juanma Barranquero <lektu@terra.es>
4072
4073 * coding.c (syms_of_coding): Fix spacing.
4074
4075 * composite.c (Fcompose_region_internal)
4076 (Fcompose_string_internal): Likewise.
4077
4078 * data.c (Flsh): Likewise.
4079
4080 * fontset.c (Fset_fontset_font): Likewise.
4081
4082 * macfns.c (Fx_server_max_request_size): Likewise.
4083
4084 * w16select.c (syms_of_win16select): Likewise.
4085
4086 * w32select.c (syms_of_w32select): Likewise.
4087
4088 * xselect.c (syms_of_xselect): Likewise.
4089
40902002-09-05 Richard M. Stallman <rms@gnu.org>
4091
4092 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
4093 call EXTEND_RANGE_TABLE and return a proper value.
4094 (set_image_of_range): Don't call set_image_of_range_1
4095 if no TRANSLATE or if range includes all of Latin-1.
4096 Only call it for the Latin-1 part of the range.
4097 For other cases, make two separate ranges,
4098 one for the original specified characters and one for
4099 their case-conversions.
4100
41012002-09-04 Richard M. Stallman <rms@gnu.org>
4102
4103 * s/sol2-5.h (UNEXEC): Use unexsol.o.
4104
4105 * window.c (displayed_window_lines): Correct for one-off bug
4106 in HEIGHT on non-window displays.
4107
4108 * regex.c (set_image_of_range_1): New function.
4109 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
4110 Return a value to indicate running out of memory.
4111 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
4112 (extend_range_table_work_area): New subroutine.
4113 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
4114 Different calling conventions, and used from set_image_of_range{,_1}.
4115 (IMMEDIATE_QUIT_CHECK): Definitions moved.
4116
41172002-09-04 Juanma Barranquero <lektu@terra.es>
4118
4119 * makefile.w32-in: All dependencies updated.
4120
41212002-09-01 Richard M. Stallman <rms@gnu.org>
4122
4123 * unexsol.c: New file.
4124
4125 * xfns.c (Qbox): Declare external, don't define.
4126
4127 * xdisp.c (redisplay_window) <force-start case>:
4128 If point is on semi-visible last line, reposition
4129 it at previous line.
4130
4131 * alloc.c (display_malloc_warning): Use display-warning.
4132 (malloc_warning_1): Function deleted.
4133
4134 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
4135
4136 * lread.c (read1): Handle #! by skipping the line.
4137
41382002-08-31 Richard M. Stallman <rms@gnu.org>
4139
4140 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
4141 Don't include LDFLAGS.
4142 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
4143
41442002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
4145
4146 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
4147 member of x_display_info unless we compile for some window system.
4148
41492002-08-31 Kim F. Storm <storm@cua.dk>
4150
4151 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
4152 (get_window_cursor_type): Don't use them.
4153 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
4154
41552002-08-30 Kenichi Handa <handa@etl.go.jp>
4156
4157 * xdisp.c (get_next_display_element): Fix previous change.
4158
41592002-08-30 Andrew Choi <akochoi@shaw.ca>
4160
4161 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
4162 (expose_window): Use it to fix the display of overlapping
4163 rows (merge code from xterm.c).
4164
4165 * macfns.c (Qbox): Add extern declaration.
4166
41672002-08-30 Juanma Barranquero <lektu@terra.es>
4168
4169 * w32fns.c (Qbox): Make extern.
4170 (syms_of_w32fns): Remove initialization of Qbox.
4171
41722002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
4173
4174 * xfns.c (Fx_open_connection): Fix error message.
4175
41762002-08-30 Kim F. Storm <storm@cua.dk>
4177
4178 The following changes consolidates the handling of the cursor
4179 type in xdisp.c, moving duplicate code and functionality from
4180 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
4181
4182 * frame.h (enum text_cursor_kinds): Consolidated here.
4183 Added DEFAULT_CURSOR value.
4184 (struct frame) <desired_cursor, cursor_width>
4185 <blink_off_cursor, blink_off_cursor_width>: New fields.
4186 Consolidated from output_x, output_w32 and output_mac structs.
4187 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4188 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
4189
4190 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
4191 Variables consolidated here.
4192 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
4193 (Vcursor_in_non_selected_windows): Renamed from
4194 cursor_in_non_selected_windows and changed to Lisp_Object.
4195 (syms_of_xdisp): Define and staticpro new and moved variables.
4196 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
4197 consolidated here. Recognize Qhollow setting.
4198 (set_frame_cursor_types): New function to set frame cursor types
4199 based on the frame parameters.
4200 (get_window_cursor_type): New function to calculate new cursor
4201 type and width for the specified window. Based on duplicated
4202 code consolidated here.
4203 Enhancements: cursor-in-non-selected-windows may be a cursor type,
4204 check buffer-local alternate-cursor-type and blink-cursor-alist
4205 before using built-in blink off methods.
4206
4207 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
4208
4209 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
4210 (get_specified_cursor_type, get_window_cursor_type)
4211 (set_frame_cursor_types): Added prototypes.
4212
4213 * macfns.c (x_specified_cursor_type): Removed.
4214 (x_set_cursor_type): Use set_frame_cursor_types.
4215 (Qbar, Qbox): Removed.
4216 (syms_of_macfns): Don't intern or staticpro them.
4217
4218 * macterm.c (x_specified_cursor_type): Remove prototype.
4219 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
4220 (x_display_and_set_cursor): Use get_window_cursor_type.
4221 Remove unused local variables cursor_non_selected, active_cursor.
4222 Redraw cursor if hbar cursor width changes.
4223 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
4224
4225 * macterm.h (enum text_cursor_kinds): Removed.
4226 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
4227 <blink_off_cursor, blink_off_cursor_width>: Members removed.
4228 (FRAME_DESIRED_CURSOR): Macro removed.
4229
4230 * w32fns.c (Vblink_cursor_alist): Removed.
4231 (Qbar, Qhbar, Qbox, Qhollow): Removed.
4232 (syms_of_w32fns): Don't intern, staticpro, or define them.
4233 (x_specified_cursor_type): Removed.
4234 (x_set_cursor_type): Use set_frame_cursor_types.
4235
4236 * w32term.c (x_specified_cursor_type): Remove prototype.
4237 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
4238 (x_display_and_set_cursor): Use get_window_cursor_type.
4239 Remove unused local variables cursor_off_state.
4240 Redraw cursor if hbar cursor width changes.
4241 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
4242
4243 * w32term.h (enum text_cursor_kinds): Removed.
4244 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
4245 <blink_off_cursor, blink_off_cursor_width>: Members removed.
4246 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4247 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
4248 (struct w32_display_info) <x_highlight_frame>: Renamed member from
4249 w32_highlight_frame.
4250
4251 * xfns.c (Vblink_cursor_alist): Removed.
4252 (Qbar, Qhbar, Qbox, Qhollow): Removed.
4253 (syms_of_xfns): Don't intern, staticpro, or define them.
4254 (x_specified_cursor_type): Removed.
4255 (x_set_cursor_type): Use set_frame_cursor_types.
4256
4257 * xterm.c (x_specified_cursor_type): Remove prototype.
4258 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
4259 (x_display_and_set_cursor): Use get_window_cursor_type.
4260 Remove unused local variables cursor_off_state.
4261 Redraw cursor if hbar cursor width changes.
4262
4263 * xterm.h (enum text_cursor_kinds): Removed.
4264 (struct output_x) <current_cursor, desired_cursor, cursor_width>
4265 <blink_off_cursor, blink_off_cursor_width>: Members removed.
4266 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4267 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
4268 (x_specified_cursor_type): Remove prototype.
4269
42702002-08-28 Richard M. Stallman <rms@gnu.org>
4271
4272 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
4273 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
4274 (Vblink_cursor_alist): New variable.
4275 (syms_of_w32fns): Initialize and defvar it.
4276 (x_specified_cursor_type): Recognize Qbox for filled box.
4277 Exceptions are hollow boxes.
4278 (Qbox, Qhollow): New variables.
4279 (syms_of_w32fns): Initialize and staticpro them.
4280
4281 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
4282 New macros.
4283 (struct w32_output): New fields blink_off_cursor,
4284 blink_off_cursor_width.
4285 (FRAME_CURSOR_WIDTH): New macro.
4286
4287 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
4288 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
4289
4290 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
4291 for bar cursor.
4292
4293 * w32term.c (expose_overlaps): New function.
4294 (expose_window): Use it to fix the display of overlapping rows.
4295
42962002-08-28 Simon Josefsson <jas@extundo.com>
4297
4298 * xfns.c (Fx_open_connection): Improve help when X connection
4299 fails, xhost is insecure and xauth is better.
4300
43012002-08-28 Juanma Barranquero <lektu@terra.es>
4302
4303 * makefile.w32-in: Add missing dependencies on w32term.h and
4304 composite.h.
4305
4306 * emacs.c (USAGE1): Add missing newline.
4307
43082002-08-27 Andrew Choi <akochoi@shaw.ca>
4309
4310 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
4311
43122002-08-27 Richard M. Stallman <rms@gnu.org>
4313
4314 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
4315 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
4316 (Vblink_cursor_alist): New variable.
4317 (syms_of_xfns): Initialize and defvar it.
4318 (x_specified_cursor_type): Recognize Qbox for filled box.
4319 Exceptions are hollow boxes.
4320 (Qbox, Qhollow): New variables.
4321 (syms_of_xfns): Initialize and staticpro them.
4322
4323 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
4324 New macros.
4325 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
4326
4327 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
4328 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
4329
4330 * emacs.c (main): Handle --script.
4331 (USAGE1): Mention --script.
4332 (standard_args): Define sort order for --script.
4333
43342002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
4335
4336 * xdisp.c (redisplay_updating_p): Variable removed.
4337 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
4338 New variables.
4339 (init_iterator): Don't free realized faces if
4340 inhibit_free_realized_faces is set.
4341 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
4342 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
4343 initialize Qinhibit_free_realized_faces.
4344
4345 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
4346 when iterator is adding glyphs to a glyph matrix.
4347
43482002-08-27 Kenichi Handa <handa@etl.go.jp>
4349
4350 * xdisp.c (get_next_display_element): In unibyte case, don't use
4351 octal form for such eight-bit characters that can be converted to
4352 multibyte char.
4353
43542002-08-26 Kim F. Storm <storm@cua.dk>
4355
4356 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
4357 and background colors. From Joe Buehler (tiny change).
4358
43592002-08-26 Miles Bader <miles@gnu.org>
4360
4361 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
4362
43632002-08-25 Andrew Choi <akochoi@shaw.ca>
4364
4365 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
4366 defined instead of MAC_OSX.
4367
4368 * s/darwin.h (select): Define select to sys_select only if
4369 HAVE_CARBON is defined.
4370 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
4371 (DONT_REOPEN_PTY): #def it.
4372
4373 * macterm.c (XTread_socket): Remove code to call
4374 SendEventToEventTarget for keys with command modifiers when
4375 mac_command_key_is_meta is nil.
4376
43772002-08-24 Andreas Schwab <schwab@suse.de>
4378
4379 * eval.c (Fdefvar): Fix last change.
4380
43812002-08-23 Richard M. Stallman <rms@gnu.org>
4382
4383 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
4384 Record variables in load history as (defvar . VAR).
4385 (Fdefvar): Don't record in load history if no initial value.
4386 (Qdefvar): New variable.
4387 (syms_of_eval): Init and staticpro it.
4388
4389 * lread.c (syms_of_lread): Doc fix.
4390 (build_load_history): Use Fmember to see if a definition
4391 is already in the Vload_history element.
4392
4393 * process.c (Fstart_process): Remove /: from program name.
4394
4395 * emacs.c (decode_env_path): Don't add /: if file name handler
4396 has a `safe-magic' property.
4397
4398 * callproc.c (Fcall_process): Remove /: from program name.
4399
44002002-08-23 Stefan Monnier <monnier@cs.yale.edu>
4401
4402 * regex.c (PATFETCH): Remove the translating fetch.
4403 (PATFETCH_RAW): Rename to PATFETCH.
4404 (set_image_of_range): New fun.
4405 (SET_RANGE_TABLE_WORK_AREA): Use it.
4406 (regex_compile): Don't translate the pattern chars so eagerly.
4407 Only do it when inserting an `exactn' bytecode or when handling
4408 a char-range.
4409 (mutually_exclusive_p): Avoid empty statement.
4410
44112002-08-22 Kim F. Storm <storm@cua.dk>
4412
4413 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
4414 end up on a partially visible line; this reverts a specific part
4415 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
4416 display error which has been reported several times now.
4417 However it introduces the problem that changes was supposed to fix.
4418 See my comments in the source if you want to debug this further.
4419
44202002-08-20 Kenichi Handa <handa@etl.go.jp>
4421
4422 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
4423
44242002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
4425
4426 * msdos.c (croak): Add `void' to definition.
4427
4428 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
4429 Don't define them, they are defined in msdos.c.
4430
4431 * mem-limits.h [MSDOS]: Declare etext.
4432
4433 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
4434 `const' since CORRECT_DIR_SEPS modifies its target.
4435
44362002-08-19 Kim F. Storm <storm@cua.dk>
4437
4438 * keyboard.c (Fclear_this_command_keys): Added optional arg
4439 KEEP-RECORD to avoid clearing lossage when we just want to clear
4440 the current key sequence (kmacro needs this).
4441
44422002-08-19 Kenichi Handa <handa@localhost>
4443
4444 * composite.c (run_composition_function): Call FUNC if it is fboundp.
4445
4446 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
4447 cons, return Qnil.
4448
44492002-08-17 Richard M. Stallman <rms@gnu.org>
4450
4451 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
4452
4453 * sysdep.c [!VMS]: Include sys/files.h.
4454
4455 * editfns.c (save_restriction_restore): Defend from unchained marker.
4456
4457 * buffer.c (overlays_at): Handle extending vec uniformly.
4458 (overlays_in): Handle extending vec from length 0 as in overlays_at.
4459
44602002-08-15 Andrew Choi <akochoi@shaw.ca>
4461
4462 * mac.c (init_mac_osx_environment): New function.
4463
4464 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
4465
44662002-08-14 Kim F. Storm <storm@cua.dk>
4467
4468 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
4469 executing macro before appending to it (when used from Lisp).
4470 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
4471 which is called prior to each iteration of macro (for kmacro.el).
4472 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
4473
4474 * lisp.h (Fexecute_kbd_macro): Update prototype.
4475
4476 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
4477
44782002-08-14 Kenichi Handa <handa@etl.go.jp>
4479
4480 * xselect.c (QUTF8_STRING): New variable.
4481 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
4482 (x_atom_to_symbol): Likewise.
4483 (x_get_local_selection): New argument local_request. If it is
4484 nonzero, call handler_fn with the second arg nil.
4485 (x_handle_selection_request): Call x_get_local_selection with
4486 local_request 0.
4487 (lisp_data_to_selection_data): Don't encode the string here.
4488 (Fx_get_selection_internal): Call x_get_local_selection with
4489 local_request 1.
4490 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
4491
4492 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
4493
4494 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
4495
44962002-08-13 Richard M. Stallman <rms@gnu.org>
4497
4498 * minibuf.c (Fminibufferp): New function.
4499 (syms_of_minibuf): Defsubr it.
4500 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
4501
45022002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
4503
4504 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
4505
45062002-08-12 Richard M. Stallman <rms@gnu.org>
4507
4508 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
4509 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
4510 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
4511 already.
4512
4513 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
4514
45152002-08-11 Andrew Choi <akochoi@shaw.ca>
4516
4517 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
4518 (Vmac_pass_command_to_system): New variable.
4519 (Vmac_pass_control_to_system): New variable.
4520 (do_mouse_moved): Check wp with is_emacs_window.
4521 (XTread_socket): Check window_ptr with is_emacs_window.
4522 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
4523 events back to Mac Toolbox for processing, depending on values of
4524 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
4525 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
4526 Vmac_pass_control_to_system.
4527
45282002-08-10 Kenichi Handa <handa@etl.go.jp>
4529
4530 * coding.c (unencodable_char_position): New function.
4531 (Funencodable_char_position): New function.
4532 (syms_of_coding): Defsubr Funencodable_char_position.
4533
45342002-08-10 Andrew Choi <akochoi@shaw.ca>
4535
4536 * mac.c (sys_select) [MAC_OSX]: New function.
4537
4538 * macterm.c (MakeMeTheFrontProcess): New function.
4539 (mac_initialize): Call MakeMeTheFrontProcess.
4540
4541 * s/darwin.h: Define select to sys_select.
4542
45432002-08-09 Richard M. Stallman <rms@gnu.org>
4544
4545 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
4546
45472002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
4548
4549 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
4550 end of the buffer.
4551
45522002-08-08 Ken Raeburn <raeburn@mit.edu>
4553
4554 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
4555
4556 * puresize.h (BASE_PURESIZE): Increase to 910000.
4557
45582002-08-08 Kenichi Handa <handa@etl.go.jp>
4559
4560 * coding.c (Ffind_operation_coding_system): For write-region, if
4561 VISIT is a filename, make it the target.
4562
45632002-08-07 Richard M. Stallman <rms@gnu.org>
4564
4565 * alloc.c (mark_object): Detect long lists for debugging.
4566 (mark_object_loop_halt): New variable.
4567
4568 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
4569
4570 * data.c (Fmake_variable_frame_local): Doc fix.
4571
45722002-08-01 David Ponce <david@dponce.com>
4573
4574 * w32menu.c (local_heap, local_alloc, local_free): New macros.
4575 (malloc_widget_value, free_widget_value)
4576 (w32_free_submenu_strings): Use them.
4577
4578 (push_submenu_start, push_submenu_end, push_left_right_boundary)
4579 (push_menu_pane, push_menu_item, single_keymap_panes)
4580 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
4581 (single_submenu, set_frame_menubar)
4582 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
4583
4584 (Fx_popup_menu): Don't show pop up menu until preceding one is
4585 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
4586
4587 * w32menu.c: Changes adapted from xmenu.c
4588 (set_frame_menubar): First parse all submenus,
4589 then make widget_value trees from them.
4590 Don't allocate any widget_value objects
4591 until we are done with the parsing.
4592 (parse_single_submenu): New function.
4593 (digest_single_submenu): New function.
4594 (single_submenu): Function deleted, replaced by those two.
4595
45962002-08-04 Andrew Choi <akochoi@shaw.ca>
4597
4598 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
4599 returns a valid window pointer before proceeding for keyDown and
4600 autoKey events.
4601
46022002-08-03 Andrew Choi <akochoi@shaw.ca>
4603
4604 * macterm.c (USE_CARBON_EVENTS): New macro.
4605 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
4606 (x_iconify_frame): Call CollapseWindow.
4607 (Vmac_reverse_ctrl_meta): New variable.
4608 (Vmac_wheel_button_is_mouse_2): New variable.
4609 (init_mac_drag_n_drop): New function.
4610 (mac_do_receive_drag): New function.
4611 (mac_handle_service_event): New function.
4612 (init_service_handler): New function.
4613 (mac_to_emacs_modifiers): New function.
4614 (mac_event_to_emacs_modifiers): New function.
4615 (mac_get_mouse_btn): New function.
4616 (mac_convert_event_ref): New function.
4617 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
4618 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
4619 mac_get_mouse_btn.
4620 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
4621
4622 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
4623 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
4624 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
4625 TOOL_BAR_EVENT for MAC_OS as well.
4626 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
4627 as for WINDOWS_NT.
4628 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
4629
4630 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
4631
46322002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
4633
4634 * xdisp.c (forward_to_next_line_start): Fix a condition that
4635 lead to a newline being skipped.
4636
46372002-08-02 Andrew Choi <akochoi@shaw.ca>
4638
4639 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
4640
46412002-08-01 Richard M. Stallman <rms@gnu.org>
4642
4643 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
4644
46452002-07-31 Andrew Choi <akochoi@shaw.ca>
4646
4647 * macfns.c: #undef init_process before #define-ing it.
4648
4649 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
4650 HAVE_CARBON is defined.
4651
46522002-07-31 Richard M. Stallman <rms@gnu.org>
4653
4654 * xmenu.c (set_frame_menubar): First parse all submenus,
4655 then make widget_value trees from them.
4656 Don't allocate any widget_value objects
4657 until we are done with the parsing.
4658 (parse_single_submenu): New function.
4659 (digest_single_submenu): New function.
4660 (single_submenu): Function deleted, replaced by those two.
4661
46622002-07-30 Juanma Barranquero <lektu@terra.es>
4663
4664 * w32proc.c (syms_of_ntproc): Fix docstring of
4665 `w32-get-true-file-attributes'.
4666
46672002-07-28 Richard M. Stallman <rms@gnu.org>
4668
4669 * s/hpux8.h (HPUX8): Define this before including hpux.h.
4670 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
4671
4672 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
4673
4674 * keyboard.c (make_lispy_event):
4675 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
4676 Explicitly clear up_modifier in event->modifiers.
4677
46782002-07-27 Richard M. Stallman <rms@gnu.org>
4679
4680 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
4681
4682 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
4683 for bar cursor.
4684
46852002-07-26 Kenichi Handa <handa@etl.go.jp>
4686
4687 * coding.c (detect_coding_iso2022): While checking a byte sequence
4688 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
4689 it in the normal loop.
4690
46912002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
4692
4693 * xterm.c (expose_overlaps): New function.
4694 (expose_window): Use it to fix the display of overlapping rows.
4695
4696 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
4697
46982002-07-23 Ken Raeburn <raeburn@gnu.org>
4699
4700 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
4701 since it only depends on XUINT.
4702
4703 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
4704 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
4705 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
4706 Macros deleted.
3947677c 4707
77d1daf2
AS
4708 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
4709 its value over other approaches.
4710 * sysdep.c (start_of_data): Don't define the function if a macro
4711 form has been defined.
8a8e19a3 4712
048addec
JD
47132002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
4714
4715 * xdisp.c (redisplay_updating_p): New variable.
4716 (init_iterator): Don't free realized faces when
4717 redisplay_updating_p is set.
4718 (redisplay_internal): Set redisplay_updating_p while updating
4719 the display.
4720
47212002-07-23 Richard M. Stallman <rms@gnu.org>
4722
4723 * editfns.c (Fmessage): Treat "" like nil.
4724
47252002-07-23 Kenichi Handa <handa@etl.go.jp>
4726
4727 * xdisp.c (face_before_or_after_it_pos):
4728 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
4729
47302002-07-22 Juanma Barranquero <lektu@terra.es>
4731
4732 * callproc.c (init_callproc) [DOS_NT]:
4733 Initialize Vshared_game_score_directory to nil.
4734 (syms_of_callproc) [DOS_NT]: Likewise.
4735
47362002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
4737
4738 * xdisp.c (display_line): Replace an abort with xassert.
4739
47402002-07-21 Richard M. Stallman <rms@gnu.org>
4741
4742 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
4743 and END_UNCHANGED when setting buffer_unchanged_p.
4744 Use current_matrix_up_to_date_p to decide whether to use
4745 try_cursor_movement.
4746
4747 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
4748
4749 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
4750
4751 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
4752 Set to nil if dir does not exist.
4753 (syms_of_callproc): Init unconditionally and simply.
4754
4755 * buffer.c (Fbuffer_list): Doc fix.
4756
47572002-07-21 Ken Raeburn <raeburn@gnu.org>
4758
4759 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
4760
4761 * buffer.c (mmap_realloc): When shrinking, make sure number of
4762 pages to unmap is rounded towards zero.
4763
4764 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
4765 (XSETINT): Deleted.
4766
4767 * m/att3b.h (XINT): Don't define.
4768 (VALBITS, VALMASK, XTYPE): Deleted.
4769 (DATA_SEG_BITS): Define.
4770 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
4771 ARRAY_MARK_FLAG): Deleted.
4772 (DATA_SEG_BITS): Define.
4773 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
4774 (DATA_SEG_BITS): Define.
4775
47762002-07-20 Richard M. Stallman <rms@gnu.org>
4777
4778 * print.c (print_error_message): New args CONTEXT and CALLER.
4779 Calls changed.
4780
4781 * lisp.h (print_error_message): Declare new args.
4782
4783 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
4784 and CONTEXT to print_error_message, don't print them here.
4785 For a Quit, don't use Vsignaling_function.
4786 Call message_log_maybe_newline.
4787
4788 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
4789
47902002-07-20 Kim F. Storm <storm@cua.dk>
4791
4792 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
4793
47942002-07-19 Ken Raeburn <raeburn@gnu.org>
4795
4796 * bytecode.c (struct byte_stack): Pointers into byte string now
4797 point to const.
4798 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
4799 const.
4800 * charset.h (BCOPY_SHORT): Source pointer now points to const.
4801 * coding.c (encode_eol, detect_coding, detect_eol):
4802 (decode_coding, encode_coding, detect_coding_system):
4803 Source strings now treated as const.
4804 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
4805 modify Lisp string contents.
4806 * coding.h (decode_coding, encode_coding, detect_coding,
4807 detect_eol): Declarations updated.
4808 * composite.c (compose_chars_in_text): Treat Lisp string contents
4809 as const.
4810 * dispnew.c (safe_bcopy): Source pointer now points to const.
4811 * lisp.h (STRING_COPYIN): New macro.
4812 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
4813 (internal_with_output_to_temp_buffer): Declarations updated.
4814 * print.c (temp_output_buffer_setup):
4815 (internal_with_output_to_temp_buffer): Buffer name argument is now
4816 pointer to const.
4817 * sound.c (struct sound_device): Function pointer field "write"
4818 buffer argument now points to const.
4819 (vox_write): Buffer argument points to const.
4820 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
4821 contents as const.
4822 * sysdep.c (emacs_write): Buffer pointer now const.
4823 * term.c (encode_terminal_code): Buffer pointer now const.
4824 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
4825 (x_face_list_fonts, x_update_menu_appearance):
4826 (hash_string_case_insensitive): Treat Lisp string contents as const.
4827
48282002-07-19 Juanma Barranquero <lektu@terra.es>
4829
4830 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
4831 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
4832
4833 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
4834
4835 * fileio.c (syms_of_fileio): Likewise.
4836
48372002-07-18 Richard M. Stallman <rms@gnu.org>
4838
4839 * data.c (Fdefalias): Doc fix.
4840
48412002-07-17 Dave Love <fx@gnu.org>
4842
4843 * intervals.h (text_property_stickiness): Use P_.
4844
4845 * ccl.c: Remove `emacs' conditionals.
4846 (ccl_backtrace_table): Fix size spec.
4847 (ccl_driver): Fix type errors.
4848
48492002-07-16 Ken Raeburn <raeburn@gnu.org>
4850
4851 * alloc.c (xstrdup, make_string, make_unibyte_string)
4852 (make_multibyte_string, build_string): String pointer args now
4853 point to const.
4854 * charset.c (find_charset_in_text, c_string_width):
4855 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
4856 * fileio.c (report_file_error):
4857 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
4858 (count_combining_before, count_combining_after, insert_1_both):
4859 (insert, insert_and_inherit, insert_string):
4860 (insert_before_markers, insert_before_markers_and_inherit):
4861 * lread.c (intern, oblookup, hash_string):
4862 * minibuf.c (temp_echo_area_glyphs):
4863 * search.c (fast_c_string_match_ignore_case):
4864 * sysdep.c (emacs_open, set_file_times):
4865 * xfaces.c (xstricmp):
4866 * xdisp.c (store_frame_title, string_char_and_length):
4867 (message_dolog, message2, message2_nolog, set_message): Likewise.
4868 (set_message_1): Cast message string argument to const pointer.
4869 * editfns.c (general_insert_function): Insertion function now
4870 takes pointer to const for input data.
4871 * charset.h (find_charset_in_text, c_string_width):
4872 (parse_str_as_multibyte): Declarations updated.
4873 * dispextern.h (xstricmp): Declaration updated.
4874 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
4875 (count_size_as_multibyte, count_combining_before):
4876 (count_combining_after, insert_1, insert_1_both, message_dolog):
4877 (insert, insert_and_inherit, insert_before_markers)
4878 (insert_before_markers_and_inherit, set_message, message2):
4879 (message2_dolog, build_string, make_string, make_unibyte_string):
4880 (make_multibyte_string, intern, oblookup, report_file_error):
4881 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
4882 (emacs_open, xstrdup): Declarations updated.
4883 * systime.h (set_file_times): Declaration updated.
4884
4885 * charset.c (find_charset_in_text, lisp_string_width): Use const
4886 for pointer to lisp string data.
4887 * charset.h (FETCH_STRING_CHAR_ADVANCE):
4888 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
4889 * coding.c (Ffind_coding_systems_region_interval):
4890 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
4891 (Fmake_directory_internal, Fdelete_directory):
4892 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
4893 * fontset.c (font_family_registry, fs_query_fontset):
4894 (list_fontsets):
4895 * frame.c (Fframe_parameter):
4896 * keyboard.c (cmd_error_internal):
4897 * keymap.c (Fdescribe_buffer_bindings):
4898 * lread.c (complete_filename_p, openp):
4899 * minibuf.c (Fminibuffer_complete_word):
4900 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
4901 (face_before_or_after_it_pos, next_element_from_string):
4902 (get_overlay_arrow_glyph_row, display_mode_element):
4903 (decode_mode_spec_coding):
4904 * xterm.c (same_x_server): Likewise.
4905
4906 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
4907 settings of non-existent fields.
4908
4909 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
4910 copy a lisp value.
4911
4912 * lread.c (Fintern_soft): Use string macros instead of
4913 Lisp_String fields.
4914 * keyboard.c (echo_char, parse_modifiers_uncached):
4915 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
4916 * textprop.c (validate_interval_range, interval_of): Likewise.
4917
4918 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
4919
4920 * charset.h (FETCH_STRING_CHAR_ADVANCE)
4921 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
4922 XSTRING()->size_byte.
4923
4924 * lisp.h (SDATA, SREF): Produce rvalue.
4925 (SSET): New macro.
4926 * alloc.c (make_event_array): Use SSET for storing into a string.
4927 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
4928 a string.
4929 * casefiddle.c (casify_object): Use SSET.
4930 * charset.h (FETCH_STRING_CHAR_ADVANCE)
4931 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
4932 address of string contents.
4933 * data.c (Faref): Use SDATA.
4934 (Faset): Use SDATA, SSET.
4935 * dired.c (directory_files_internal): Use SSET.
4936 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
4937 (Fread_file_name): Use SREF, SSET.
4938 * fns.c (concat): Use SSET.
4939 (concat, Fdelete): Use SDATA.
4940 * insdel.c (insert_from_string_1): Use SDATA.
4941 * keyboard.c (Fevent_convert_list): Use SREF.
4942 * lread.c (Fload): Use SDATA, SSET.
4943 * macfns.c (validate_x_resource_name): Use SSET.
4944 * process.c (status_message): Use SSET.
4945 * search.c (wordify): Use SDATA.
4946 (Freplace_match): Use SREF.
4947 * w32fns.c (validate_x_resource_name): Use SSET.
4948 * xfns.c (validate_x_resource_name): Use SSET.
4949 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
4950
49512002-07-16 Richard M. Stallman <rms@gnu.org>
4952
4953 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
4954
4955 * xdisp.c (reconsider_clip_changes):
4956 Don't test prevent_redisplay_optimizations_p.
4957 (redisplay_internal): Test prevent_redisplay_optimizations_p
4958 along with clip_changed in some cases.
4959 (try_window_id): Likewise.
4960 (redisplay_window): New local var buffer_unchanged_p.
4961
4962 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
4963
4964 * process.c (create_process): Test USG_SUBTTY_WORKS.
4965 (process_send_signal): Clean up handling of GID.
4966 Detect errors in ioctls meant to set GID.
4967
4968 * window.c (temp_output_buffer_show):
4969 Don't set prevent_redisplay_optimizations_p.
4970
49712002-07-15 Juanma Barranquero <lektu@terra.es>
4972
4973 * eval.c (Fdefvaralias): Add docstring argument.
4974
49752002-07-15 Ken Raeburn <raeburn@gnu.org>
4976
4977 * lisp.h (STRING_INTERVALS): Produce rvalue.
4978 (STRING_SET_INTERVALS): New macro.
4979 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
4980 * fns.c (Fstring_as_multibyte): Likewise.
4981 * intervals.c (balance_possible_root_interval, delete_interval)
4982 (create_root_interval, copy_intervals_to_string): Likewise.
4983 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
4984 instead of 0.
4985
49862002-07-14 Ken Raeburn <raeburn@gnu.org>
4987
4988 * lisp.h (STRING_SET_CHARS): New macro.
4989 (SCHARS, SBYTES): Produce rvalues.
4990 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
4991 * fns.c (concat): Likewise.
4992 * lread.c (read_vector): Likewise.
4993
4994 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
4995 (STRING_SET_UNIBYTE): New macro.
4996 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
4997 length of -1) changed to use STRING_SET_UNIBYTE.
4998 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
4999 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
5000 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
5001 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
5002 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
5003 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
5004 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
5005 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
5006 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
5007 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
5008 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
5009 STRING_BYTES or indirection changed to SCHARS, SBYTES,
5010 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
5011 unchanged for now.
5012
50132002-07-13 Kim F. Storm <storm@cua.dk>
5014
5015 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
5016
50172002-07-12 Richard M. Stallman <rms@gnu.org>
5018
5019 * fileio.c (Fwrite_region): Doc fix.
5020
5021 * print.c (print_error_message): Don't handle Vsignaling_function here.
5022
5023 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
5024 (command_loop_1): Avoid certain actions after memory-full error.
5025
5026 * eval.c (Fsignal): Don't call cancel_hourglass.
5027 For a memory-full error, don't call Vsignal_hook_function
5028 and don't set Vsignaling_function.
5029
5030 * process.c (process_send_signal): Add abort call.
5031
50322002-07-11 Markus Rost <rost@math.ohio-state.edu>
5033
5034 * keymap.c (Fkey_binding): Fix typo.
5035
50362002-07-11 Richard M. Stallman <rms@gnu.org>
5037
5038 * alloc.c (Vmemory_full): New variable.
5039 (Vmemory_signal_data): Renamed from memory_signal_data.
5040 Uses changed.
5041 (syms_of_alloc): Defvar them.
5042 (memory_full, buffer_memory_full): Set Vmemory_full.
5043
5044 * lisp.h (Vmemory_full): Add declaration.
5045 (current_column, indented_beyond_p): Change declaration.
5046
5047 * indent.c (last_known_column): Declare as double, not float.
5048 (current_column, current_column_1, string_display_width)
5049 (position_indentation): Return `double'.
5050 (indented_beyond_p): Arg `column' is `double'. Callers changed.
5051
5052 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
5053 (back_to_previous_visible_line_start)
5054 (reseat_at_next_visible_line_start, next_element_from_buffer):
5055 Use `double', not `float', when calling indented_beyond_p.
5056
5057 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
5058
5059 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
5060
50612002-07-11 Juanma Barranquero <lektu@terra.es>
5062
5063 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
5064 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
5065 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
5066 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
5067 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
5068 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
5069
50702002-07-10 Juanma Barranquero <lektu@terra.es>
5071
5072 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
5073 changed.
5074
50752002-07-09 Stefan Monnier <monnier@cs.yale.edu>
5076
5077 * data.c (Fdefalias): Add an optional `docstring' argument.
5078 (set_internal, Fsetq_default): Use XCAR/XCDR.
5079
5080 * composite.c (HASH_VALUE, HASH_KEY):
5081 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
5082
50832002-07-09 Kenichi Handa <handa@etl.go.jp>
5084
5085 * callproc.c (Fcall_process): Fix previous change.
5086
50872002-07-07 Stefan Monnier <monnier@cs.yale.edu>
5088
5089 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5090 Add support for hash-tables.
5091 (Ftry_completion): Return t even if the string appears multiple times.
5092
5093 * fns.c (Fnconc): Use XCDR.
5094 (Fprovide): Use CONSP and XCDR.
5095 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
5096 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
5097 (Fmake_hash_table): Accept `:size nil'.
5098 (Fmakehash): Delete: moved to subr.el.
5099 (syms_of_fns): Don't defsubr makehash.
5100
5101 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
5102 (HASH_TABLE_SIZE): Move from fns.c.
5103
51042002-07-07 Richard M. Stallman <rms@gnu.org>
5105
5106 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
5107 Instead just return 0 when there is something to be done.
5108 (try_scrolling): If make_cursor_line_fully_visible returns 0,
5109 retry scrolling as if cursor were off the bottom.
5110 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
5111 return CURSOR_MOVEMENT_MUST_SCROLL.
5112 (redisplay_window): If make_cursor_line_fully_visible returns 0,
5113 go to try_to_scroll.
5114
5115 * buffer.c (Fbuffer_local_value): Store current value into its binding
5116 so we get the up-to-date value for the binding that is loaded.
5117
5118 * eval.c (Fdefmacro): Doc fix.
5119
51202002-07-05 Dave Love <fx@gnu.org>
5121
5122 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
5123 correctly.
5124
5125 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
5126 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
5127 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
5128 CCL_LookupCharConstTbl.
5129 (syms_of_ccl): Defvar translation-hash-table-vector.
5130
51312002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5132
5133 * xdisp.c: Remove unused variable `face'.
5134
51352002-07-04 Juanma Barranquero <lektu@terra.es>
5136
5137 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
5138 obsolescence information.
5139
51402002-07-03 Andrew Choi <akochoi@shaw.ca>
5141
5142 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
5143 pattern. Search cache first.
5144 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
5145 for Japanese font.
5146 (XLoadQueryFont): Use it.
5147
51482002-07-02 Richard M. Stallman <rms@gnu.org>
5149
5150 * keymap.c (Fdefine_key): Doc fix.
5151
5152 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
5153
51542002-07-02 Juanma Barranquero <lektu@terra.es>
5155
5156 * keymap.c (syms_of_keymap): Fix typo.
5157
51582002-07-01 Andrew Choi <akochoi@shaw.ca>
5159
5160 * s/darwin.h: Define POSIX_SIGNALS.
5161
5162 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
5163 and FSRefMakePath to convert FSSpec returned with Apple Event to
5164 Posix pathname.
5165 (mac_initialize) [TARGET_API_MAC_CARBON]:
5166 Call init_required_apple_events and disable the `Quit' menu item
5167 provided automatically by the Carbon Toolbox.
5168
51692002-07-01 Dave Love <fx@gnu.org>
5170
5171 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
5172 for K&R.
5173
5174 * xterm.c: Fix prototype for K&R.
5175
5176 * term.c (costs_set): Declare static, non-initialized for pcc.
5177
51782002-07-01 Richard M. Stallman <rms@gnu.org>
5179
5180 * keyboard.c (timer_last_idleness_start_time): New variable.
5181 (timer_start_idle): Set that.
5182 (read_key_sequence): Use that to reset timer_idleness_start_time
5183 to previous value.
5184
5185 * window.c (Frecenter): With arg, set optional_new_start.
5186
5187 * xdisp.c (redisplay_internal): Make optional_new_start really work.
5188
5189 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
5190 buffer for completion.
5191
51922002-06-29 Ken Raeburn <raeburn@gnu.org>
5193
5194 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
5195
51962002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5197
5198 * keyboard.c (readable_filtered_events): New function that filters
5199 FOCUS_IN_EVENT depending on parameter.
5200 (readable_events): Calls readable_filtered_events, not filtering
5201 FOCUS_IN_EVENT.
5202 (get_filtered_input_pending): New function, filtering parameter passed
5203 to readable_filtered_events.
5204 (get_input_pending): Calls get_filtered_input_pending, not filtering
5205 FOCUS_IN_EVENT.
5206 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
5207 FOCUS_IN_EVENT.
5208
5209 * xterm.h (struct x_output): Add focus_state.
5210
5211 * xterm.c (x_focus_changed): New function.
5212 (x_detect_focus_change): New function.
5213 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
5214 EnterNotify and LeaveNotify to track X focus changes.
5215
52162002-06-28 Andreas Schwab <schwab@suse.de>
5217
5218 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
5219
52202002-06-27 Kim F. Storm <storm@cua.dk>
5221
5222 * xdisp.c: (mode_line_string_list, mode_line_string_face)
5223 (mode_line_string_face_prop): New variables.
5224 (store_mode_line_string): New function.
5225 (display_mode_element): Use store_mode_line_string to
5226 add mode-line string elements to mode_line_string_list
5227 when mode_line_string_list is non-nil.
5228 (Fformat_mode_line): Now returns propertized string by
5229 default. New arg NO-PROPS to ignore properties.
5230 (decode_mode_spec): Only add two dashes for %- in propertized
5231 mode-line string.
5232 (syms_of_xdisp): Init and staticpro mode_line_string_list.
5233
52342002-06-27 Stefan Monnier <monnier@cs.yale.edu>
5235
5236 * minibuf.c (minibuffer_completion_contents): Add return type.
5237
52382002-06-27 Juanma Barranquero <lektu@terra.es>
5239
5240 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
5241
52422002-06-26 Juanma Barranquero <lektu@terra.es>
5243
5244 * fileio.c (read_file_name_cleanup): Add missing return.
5245
52462002-06-26 Richard M. Stallman <rms@gnu.org>
5247
5248 * window.c (Frecenter): Don't set force_start flag.
5249
5250 * minibuf.c (do_completion, Fminibuffer_complete_word)
5251 (Fminibuffer_completion_help): Complete just the text before point.
5252 (minibuffer_completion_contents): New function.
5253
5254 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
5255
5256 * frame.c (frames_bury_buffer): Function deleted.
5257
52582002-06-25 Miles Bader <miles@gnu.org>
5259
5260 * callint.c (Fcall_interactively): When checking to see if doprnt hit
5261 the end of callint_message, allow for a terminating '\0'.
5262
52632002-06-24 Juanma Barranquero <lektu@terra.es>
5264
5265 * w32select.c: Include composite.h
5266
5267 * w16select.c: Likewise.
5268
52692002-06-24 Kenichi Handa <handa@etl.go.jp>
5270
5271 * callproc.c (Fcall_process): If code detection is necessary,
5272 call detect_coding directly here.
5273
5274 * coding.c (detect_eol): Preserve coding->cmp_data.
5275
5276 * w16select.c (Fw16_get_clipboard_data):
5277 * w32fns.c (w32_to_x_font):
5278 * w32select.c (Fw32_get_clipboard_data):
5279 * xselect.c (selection_data_to_lisp_data):
5280 * xterm.c (XTread_socket): Disable composition handling.
5281
52822002-06-24 Stefan Monnier <monnier@cs.yale.edu>
5283
5284 * print.c (temp_output_buffer_setup): Kill all local variables.
5285
52862002-06-22 Stefan Monnier <monnier@cs.yale.edu>
5287
5288 * lread.c (Fread): Remove redundant and imprecise declaration.
5289
5290 * xfns.c (check_x_display_info): Use check_x_frame.
5291
5292 * .gdbinit (xprintsym): Use the new `xname' field.
5293 (xsymbol): Use it.
5294
52952002-06-22 Jason Rumney <jasonr@gnu.org>
5296
5297 * w32fns.c (file_dialog_callback): New function.
5298 (Fx_file_dialog): Allow selecting directories as well as files.
5299
53002002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5301
5302 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
5303 OpenBSD. Add support for mipseb-*-netbsd* machines.
5304
53052002-06-17 Andrew Choi <akochoi@shaw.ca>
5306
5307 * macterm.c (mac_scroll_area): Set foreground and backcolor to
5308 black and white before scrolling. Restore frame background and
5309 foreground color after scrolling.
5310 (do_window_update): Call XClearWindow before calling expose_frame.
5311 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
5312 FRAME_FOREGROUND_PIXEL of frame.
5313
5314 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
5315 test Mac command key as <ALT> key.
5316
53172002-06-17 Stefan Monnier <monnier@cs.yale.edu>
5318
5319 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
5320
5321 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
5322 Lookup keys in function-key-map immediately so that key-translation-map
5323 can be applied earlier.
5324 Remove function_key_possible and key_translation_possible, replaced
5325 by checking `keytran_start < t'.
5326
5327 * .gdbinit (xsymbol): Use the new `xname' field.
5328
53292002-06-17 Andrew Choi <akochoi@shaw.ca>
5330
5331 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
5332 test Mac command key as <ALT> key.
5333
5334 * mac.c (do_applescript): Call initialize_applescript if necessary
5335 when first called. Dispose of result_desc only when there is no error.
5336 (Fdo_applescript): Use %d format specifier instead of %ld.
5337
53382002-06-16 Andrew Choi <akochoi@shaw.ca>
5339
5340 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
5341 of FrontWindow for cases keyDown and autoKey.
5342
5343 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
5344 Vdefault_fontset to Monaco with mac-roman coding.
5345
5346 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
5347 init_process before and after inclusion of Carbon/Carbon.h, resp.
5348
5349 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
5350 cursor_gc.
5351 (add_font_name_table_entry): New function.
5352 (init_font_name_table): Use add_font_name_table_entry; add italic,
5353 bold, and bold-italic entries for truetype fonts.
5354
5355 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
5356 for Mac too.
5357 (try_font_list) [MAC_OS]: If no font matches given registry, try
5358 fonts with any registry matching face_family.
5359 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
5360
5361 * s/darwin.h: If autoconf detects the Ncurses library, define
5362 LIBS_TERMCAP to -lncurses to use it.
5363
53642002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
5365
5366 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
5367
53682002-06-15 Richard M. Stallman <rms@gnu.org>
5369
5370 * window.c (Fset_window_configuration): Explicitly preserve
5371 the point value that new_current_buffer had at the start.
5372
53732002-06-14 Juanma Barranquero <lektu@terra.es>
5374
5375 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
5376 Fix typos.
5377
53782002-06-14 Kim F. Storm <storm@cua.dk>
5379
5380 * insdel.c (insert_1_both, insert_from_string_1)
5381 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
5382 insert happened in the end_unchanged region. Otherwise, the
5383 redisplay may be confused and duplicate the last line in the
5384 buffer [seen after save-buffer when require-final-newline==t].
5385
53862002-06-13 Jason Rumney <jasonr@gnu.org>
5387
5388 * w32.c (init_environment): Remove EMACSLOCKDIR.
5389 (stat): Swap _S_IFDIR and _S_IFREG.
5390
53912002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5392
5393 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
5394 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
5395 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
5396 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
5397 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
5398 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
5399 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
5400 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
5401 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
5402 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
5403 SELECTION_REQUEST_EVENT, selection_clear_event to
5404 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
5405 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
5406 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
5407 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
5408 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
5409 no_event to NO_EVENT.
5410
54112002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5412
5413 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
5414
54152002-06-12 Stefan Monnier <monnier@cs.yale.edu>
5416
5417 * intervals.c (textget): Don't forget to `return'.
5418 (lookup_char_property): Use XCAR/XCDR.
5419
54202002-06-12 Juanma Barranquero <lektu@terra.es>
5421
5422 * xdisp.c (Fformat_mode_line): Fix typo.
5423
54242002-06-12 Kim F. Storm <storm@cua.dk>
5425
5426 * xdisp.c (Fformat_mode_line): New function.
5427 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
5428 (store_frame_title_char, store_frame_title): Use unconditionally.
5429 (init_xdisp): Defsubr Fformat_mode_line.
5430 Initialize frame_title_buf etc. unconditionally.
5431
54322002-06-11 Stefan Monnier <monnier@cs.yale.edu>
5433
5434 * keyboard.c (read_key_sequence):
5435 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
5436 things through those maps after downcasing events.
5437 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
5438 applies after function-key-map.
5439 Make sure that keytran can be done in the middle in the sequence.
5440 Be careful not to throw away events past the one we downcase.
5441
5442 * lread.c (read_integer): Remove unused var `tem'.
5443 (read1): Fix int/Lisp_Object mixup.
5444
5445 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
5446
54472002-06-11 Richard M. Stallman <rms@gnu.org>
5448
5449 * keyboard.c (readable_events): Ignore any number of
5450 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
5451
54522002-06-09 Miles Bader <miles@gnu.org>
5453
5454 * xfaces.c (Ftty_supports_face_attributes_p): New function.
5455 (parse_rgb_list, tty_lookup_color): New functions.
5456 (tty_defined_color): Use `tty_lookup_color' to do all the work.
5457 (color_distance, Fcolor_distance): New functions.
5458 (TTY_SAME_COLOR_THRESHOLD): New macro.
5459 (Qtty_color_standard_values): New variable.
5460 (syms_of_xfaces): Initialize new vars & functions.
5461
54622002-06-08 Colin Walters <walters@verbum.org>
5463
5464 * textprop.c (Vchar_property_alias_alist): New variable.
5465 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
5466
5467 * intervals.c (lookup_char_property): New function for looking up
5468 overlay and text properties, created from textget.
5469 (textget): Use it.
5470
5471 * intervals.h (lookup_char_property): Declare.
5472 (Vchar_property_alias_alist): Declare.
5473
5474 * buffer.c (Foverlay_get): Use lookup_char_property.
5475
54762002-06-07 Sam Steingold <sds@gnu.org>
5477
5478 * xselect.c (lisp_data_to_selection_data): Fix last change:
5479 *data_ret is not a Lisp string, while unibyte_string is.
5480
54812002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
5482
5483 * xselect.c (lisp_data_to_selection_data): Fix last change:
5484 set size_ret.
5485
54862002-06-07 Andreas Schwab <schwab@suse.de>
5487
5488 * m/amdx86-64.h: New file.
5489
54902002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
5491
5492 * fns.c (Fstring_make_unibyte): Doc fix.
5493
5494 * xselect.c (lisp_data_to_selection_data): If the requested type
5495 is STRING, call string_make_unibyte to encode the selected text
5496 as a string.
5497
5498 * window.c (Fset_window_hscroll): Doc fix.
5499
55002002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5501
5502 * fileio.c (choose_write_coding_system):
5503 Call select-safe-coding-system properly.
5504
55052002-06-03 Richard M. Stallman <rms@gnu.org>
5506
5507 * xdisp.c (message_with_string): Error if STRING is not a string.
5508
5509 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
5510
5511 * fileio.c (choose_write_coding_system): Pass FILE arg to
5512 Vselect_safe_coding_system_function.
5513
55142002-06-03 Ken Raeburn <raeburn@gnu.org>
5515
5516 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
5517
55182002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
5519
5520 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
5521 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
5522 * keymap.c (describe_command): Likewise.
5523 * minibuf.c (read_minibuf): Likewise.
5524
5525 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
5526 Cast `current_column' return value to int.
5527 (back_to_previous_visible_line_start)
5528 (reseat_at_next_visible_line_start, next_element_from_buffer):
5529 Cast `indented_beyond_p' 3rd arg to float.
5530
5531 * indent.c (last_known_column): Now a float.
5532 (current_column_1, position_indentation, current_column)
5533 (string_display_width): Return float.
5534 (Fcurrent_column): Cast `current_column' return value to int.
5535 (Fcurrent_indentation): Cast `position_indentation' retval to int.
5536 (indented_beyond_p): Third arg now a float.
5537 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
5538
5539 * lisp.h (current_column): Now returns float.
5540 (indented_beyond_p): 3rd arg now a float.
5541
55422002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
5543
5544 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
5545 is Qcompound_text_with_extensions.
5546
5547 * xselect.c (lisp_data_to_selection_data): Always set selection
5548 type as string if x_encode_text returns streingp non-NULL.
5549
5550 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
5551
55522002-05-30 Richard M. Stallman <rms@gnu.org>
5553
5554 * window.c (Fset_window_configuration): Correct the handling
5555 of point in current buffer, to work with multiple windows.
5556
55572002-05-29 Colin Walters <walters@verbum.org>
5558
5559 * lread.c (Fread_from_string): Don't depend on order of evaluation
5560 for C function parameters.
5561
55622002-05-28 Richard M. Stallman <rms@gnu.org>
5563
5564 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
5565 way for blinked-off state and for a nonselected window.
5566
5567 * window.c (window_scroll_pixel_based): Don't call Fbolp;
5568 instead, see if the new start pos is at beginning of line.
5569
5570 * fileio.c (Fwrite_region): If START is a string, don't
5571 make any annotations.
5572
5573 * eval.c (syms_of_eval): Doc fix.
5574
55752002-05-28 Colin Walters <walters@debian.org>
5576
5577 * emacs.c (USAGE1): Add --no-splash.
5578 (standard_args): Ditto.
5579
55802002-05-28 Colin Walters <walters@gnu.org>
5581
5582 * lread.c (readchar_count): New variable.
5583 (readchar): Increment it.
5584 (unreadchar): Decrement it.
5585 (read_multibyte): Decrement it.
5586 (Vread_with_symbol_positions): New variable.
5587 (Vread_symbol_positions_list): New variable.
5588 (read_internal_start): New function, created from Fread and
5589 Fread_from_string. Handle Vread_symbol_positions_list and
5590 Vread_with_symbol_positions.
5591 (readevalloop, Fread, Fread_from_string): Use it.
5592 (read1): Use readchar_count to add symbol positions to
5593 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
5594 (syms_of_lread): DEFVAR_LISP and initialize them.
5595
5596 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
5597 (substitute_object_recurse, substitute_object_in_subtree)
5598 (substitute_in_interval): Prototype.
5599 (read_multibyte): Return c if it's less than zero.
5600
56012002-05-28 Kim F. Storm <storm@cua.dk>
5602
5603 * fileio.c (Fread_file_name_internal): Added brute-force
5604 speed up for using predicate file-directory-p.
5605
56062002-05-28 Kim F. Storm <storm@cua.dk>
5607
5608 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
5609 New variables.
5610 (syms_of_fileio): DEFVAR_LISP them.
5611 (read_file_name_cleanup): New unwind function.
5612 (Fread_file_name_internal): Only return completions satifying
5613 Vread_file_name_predicate. Temporarily unwind protect and rebind
5614 default-directory while checking completions against the predicate.
5615 (Fread_file_name): Added PREDICATE argument. Specbind it to
5616 Vread_file_name_predicate during completion.
5617 Call Vread_file_name_function to read the file name if non-nil.
5618
5619 * lisp.h (Fread_file_name): Now has 6 args.
5620
5621 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
5622 predicate for Fread_file_name when reading directory name.
5623 Supply Qnil for predicate in other calls to Fread_file_name.
5624
56252002-05-26 Miles Bader <miles@gnu.org>
5626
5627 * term.c (tty_capable_p): New function.
5628 * dispextern.h (tty_capable_p): New function declaration.
5629 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
5630 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
5631
56322002-05-23 Stefan Monnier <monnier@cs.yale.edu>
5633
5634 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
5635 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
5636 (Vwrite_region_annotate_functions): Docstring fix.
5637
56382002-05-23 Kim F. Storm <storm@cua.dk>
5639
5640 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
5641 phys_cursor's hpos is overwritten. This is still not completely
5642 correct, as it doesn't really make sense to use hpos at all to
5643 get the cursor glyph (as that is relative to the width of the
5644 characters on the line, which may have changed during the update).
5645
56462002-05-22 Jason Rumney <jasonr@gnu.org>
5647
5648 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
5649 Lisp_Object.
5650 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
5651 Use modified enumfont_t struct.
5652
5653 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
5654
5655 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
5656 Handle the `hbar' cursor type.
5657 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
5658
5659 * w32fns.c (Qhbar): New variable.
5660 (x_specified_cursor_type): Use it.
5661
56622002-05-21 Ken Raeburn <raeburn@gnu.org>
5663
5664 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
5665 now, when the address is needed.
5666
56672002-05-21 Colin Walters <walters@gnu.org>
5668
5669 * Makefile.in (shortlisp): Add font-core.el.
5670
56712002-05-20 Richard M. Stallman <rms@gnu.org>
5672
5673 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5674
5675 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
5676 equivalent key bindings here.
5677
56782002-05-20 Ken Raeburn <raeburn@gnu.org>
5679
5680 Change symbol structure to contain a lisp object for the symbol
5681 name:
5682 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
5683 object field named "xname".
5684 (SYMBOL_NAME): New macro.
5685 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
5686 name field.
5687 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
5688 (mark_object, gc_sweep): Use symbol xname field and XSTRING
5689 instead of name field.
5690 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
5691 SYMBOL_NAME instead of XSYMBOL and name field.
5692 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
5693 instead of XSYMBOL and name field.
5694 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
5695 and SYMBOL_NAME instead of XSYMBOL and name field.
5696 * coding.c (Fread_coding_system, code_convert_region1)
5697 (code_convert_string1, code_convert_string_norecord)
5698 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
5699 XSYMBOL and name field.
5700 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
5701 (Fmake_variable_buffer_local, Fmake_local_variable)
5702 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
5703 of XSYMBOL and name field.
5704 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
5705 XSYMBOL and name field.
5706 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
5707 instead of XSYMBOL and name field.
5708 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
5709 XSYMBOL and name field.
5710 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
5711 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
5712 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
5713 instead of XSYMBOL and name field.
5714 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
5715 (parse_modifiers, apply_modifiers, Fevent_convert_list)
5716 (parse_solitary_modifier, Fexecute_extended_command):
5717 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
5718 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
5719 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
5720 of XSYMBOL and name field.
5721 (describe_command, describe_translation): Use SYMBOL_NAME and
5722 assignment instead of XSYMBOL and name field and XSETSTRING.
5723 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
5724 instead of XSYMBOL and name field.
5725 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
5726 name field and XSETSTRING.
5727 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
5728 of XSYMBOL and name field.
5729 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
5730 assignment instead of XSYMBOL and name field and XSETSTRING.
5731 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
5732 XSTRING instead of XSYMBOL and name field.
5733 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
5734 and XSTRING instead of XSYMBOL and name field.
5735 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
5736 and XSTRING instead of XSYMBOL and name field.
5737 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
5738 XSTRING instead of XSYMBOL and name field.
5739 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
5740 of XSYMBOL and name field.
5741 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
5742 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
5743
57442002-05-19 Ken Raeburn <raeburn@gnu.org>
5745
5746 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
5747 and XCDR real rvalues in most configurations.
5748
5749 * buffer.c (fix_overlays_in_range, fix_overlays_before):
5750 Don't take the address of the cdr part of a cons cell; instead, track
5751 the parent cell and call XSETCDR, or set the variable for the head
5752 of the list if we haven't started down the list yet.
5753
57542002-05-19 Richard M. Stallman <rms@gnu.org>
5755
5756 * doc.c (reread_doc_file): Don't ask for confirmation.
5757
57582002-05-18 Jason Rumney <jasonr@gnu.org>
5759
5760 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
5761 (xbm_load_image): Use it.
5762 (xbm_load): Ditto.
5763 (xbm_read_bitmap_data): Reverted to xfns.c version.
5764 From David Ponce <david@dponce.com>.
5765
57662002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
5767
5768 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
5769 2.02 and later.
5770
57712002-05-16 Juanma Barranquero <lektu@terra.es>
5772
5773 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
5774
57752002-05-15 Stefan Monnier <monnier@cs.yale.edu>
5776
5777 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
5778 meaningful test.
5779 (read_char_minibuf_menu_prompt): Fix typo.
5780
57812002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
5782
5783 * eval.c (Fcommandp): Doc fix.
5784
57852002-05-13 Stefan Monnier <monnier@cs.yale.edu>
5786
5787 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
5788 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
5789 (Fset_keymap_parent): Gcpro a bit more.
5790 (access_keymap): Gcpro around meta_map call and around the main loop.
5791 (get_keyelt): Gcpro when following indirect references.
5792 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
5793 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
5794 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
5795 Remove useless ad-hoc remap code.
5796
57972002-05-13 Richard M. Stallman <rms@gnu.org>
5798
5799 * search.c (search_buffer): Give up boyer moore search if inverse
5800 translation change charset_base.
5801
58022002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
5803
5804 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
5805 characters is carried over from the previous block of text, adjust
5806 coding->produced to account for the extra character.
5807
58082002-05-11 Andreas Schwab <schwab@suse.de>
5809
5810 * coding.c (intersection): Keep the elements of the returned list
5811 in the same order as in the first list.
5812
58132002-05-11 Kim F. Storm <storm@cua.dk>
5814
5815 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
5816 only update cmm_size if realloc actually succeeds.
5817 Testing with initial size of 2 elements revealed that using
5818 realloc on GNU/Linux would cause a random trap in xmalloc
5819 later on, so I rewrote the code to use malloc/bcopy/free instead
5820 of realloc.
5821
58222002-05-10 Jason Rumney <jasonr@gnu.org>
5823
5824 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
5825
58262002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
5827
5828 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
5829 parens, to ensure correct evaluation order.
5830
58312002-05-10 Kim F. Storm <storm@cua.dk>
5832
5833 * keymap.c (Vemulation_mode_map_alists): New variable.
5834 (syms_of_keymap): DEFVAR_LISP it.
5835 (current_minor_maps): Process keymap alists in that list before
5836 minor-mode-overriding-map-alist and minor-mode-map-alist.
5837
58382002-05-09 Richard M. Stallman <rms@gnu.org>
5839
5840 * search.c (Freplace_match): Doc fix.
5841
58422002-05-09 Kim F. Storm <storm@cua.dk>
5843
5844 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
5845 Enlarge cursor rectangle drawn around image with non-zero relief.
5846
5847 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
5848 Enlarge cursor rectangle drawn around image with non-zero relief.
5849
5850 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
5851 Enlarge cursor rectangle drawn around image with non-zero relief.
5852
58532002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
5854
5855 * xselect.c (lisp_data_to_selection_data): Don't set selection
5856 type if comes from the Lisp object's car. If the selection
5857 contains a pure ASCII text, always return QSTRING as its type.
5858
58592002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5860
5861 * mac.c (mac-cut-function): Doc fix.
5862
58632002-05-05 Richard M. Stallman <rms@gnu.org>
5864
5865 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
5866
58672002-05-04 Jason Rumney <jasonr@gnu.org>
5868
5869 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
5870 for event-click-count.
5871
5872 * process.c (init_process): Only add server subfeature if we can
5873 use non-blocking I/O.
5874
58752002-05-04 Andrew Choi <akochoi@shaw.ca>
5876
5877 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
5878 repeatedly.
5879
58802002-05-03 Jason Rumney <jasonr@gnu.org>
5881
5882 * process.c (Fmake_network_process): Only support server sockets
5883 when we can make them non-blocking.
5884
5885 * s/ms-w32.h (HAVE_SELECT): Define.
5886
5887 * w32.h (FILE_NDELAY): New flag.
5888
5889 * w32.c (sys_getpeername, fcntl): New functions.
5890 (_sys_read_ahead): Temporarily block on non-blocking sockets.
5891
5892 * w32proc.c: include sys/file.h.
5893
58942002-05-03 Colin Walters <walters@verbum.org>
5895
5896 * callproc.c (Vgame_score_directory): Renamed to
5897 Vshared_game_score_directory.
5898
58992002-04-30 Richard M. Stallman <rms@gnu.org>
5900
5901 * s/gnu.h [emacs]: Include stdio.h.
5902 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
5903
5904 * eval.c (do_autoload): Error if called while preparing to dump.
5905
5906 * fns.c (Frequire): Error if need to load while preparing to dump.
5907
59082002-04-28 Colin Walters <walters@verbum.org>
5909
5910 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
5911 Default to "~/.emacs.d/games".
5912
59132002-04-29 Stefan Monnier <monnier@cs.yale.edu>
5914
5915 * lread.c (openp): Change arg exec_only to predicate.
5916 (build_load_history): Use XCAR/XCDR.
5917 (Flocate_file_internal): New fun.
5918 (syms_of_lread): Defsubr it.
5919 (Fload): Update call to openp.
5920
5921 * lisp.h (openp): Update prototype.
5922
5923 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
5924 * w32proc.c (sys_spawnve):
5925 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
5926 * w32.c (check_windows_init_file):
5927 * sound.c (Fplay_sound_internal):
5928 * process.c (Fstart_process):
5929 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
5930 * mac.c (run_mac_command):
5931 * emacs.c (init_cmdargs):
5932 * callproc.c (Fcall_process): Update call to openp.
5933
5934 * textprop.c (remove_properties): Don't use XCAR without CONSP.
5935
5936 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
5937
59382002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5939
5940 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
5941 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
5942
59432002-04-28 Richard M. Stallman <rms@gnu.org>
5944
5945 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
5946
5947 * eval.c (Fcommandp): New arg for_call_interactively.
5948 * lisp.h (Fcommandp): Declare new arg.
5949
59502002-04-28 Jason Rumney <jasonr@gnu.org>
5951
5952 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
5953
5954 * w32.c (stat, fstat): Use file index information to generate
5955 inodes for directories where available.
5956
59572002-04-26 Andrew Choi <akochoi@shaw.ca>
5958
5959 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
5960 [HAVE_CARBON]: Include Mac object files.
5961
5962 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
5963 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
5964 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
5965 MAC_OSX, and MAC_OS instead of macintosh.
5966
5967 * editfns.c [MAC_OS8]: Include stdio.h.
5968
5969 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
5970
5971 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
5972 Apple Monaco.
5973
5974 * process.c: Declare QCfamily and QCfilter as extern.
5975 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
5976 calling select.
5977
5978 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
5979
5980 * tparam.c [MAC_OSX]: Don't define BC and UP.
5981
5982 * config.in [HAVE_CARBON]: Add.
5983
5984 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
5985 Move here from mac/src and mac/inc.
5986
5987 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
5988
59892002-04-26 Gerd Moellmann <gerd@gnu.org>
5990
5991 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
5992 Compute phys_cursor_width from the x position returned
5993 by x_draw_glyhs, which is cheaper.
5994 (x_display_and_set_cursor): Compute the buffer-local value
5995 of `cursor-in-non-selected-windows' only when needed.
5996
59972002-04-25 Gerd Moellmann <gerd@gnu.org>
5998
5999 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
6000 cursor on a stretch glyph has a width that depends on
6001 x_stretch_cursor_p.
6002
60032002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6004
6005 * abbrev.c (abbrev-start-location): Doc fix.
6006
6007 * indent.c (Fvertical_motion): Fix last change.
6008
60092002-04-25 Gerd Moellmann <gerd@gnu.org>
6010
6011 * indent.c (Fvertical_motion): Move to the start of the line
6012 containing PT before moving up or down.
6013
60142002-04-24 Gerd Moellmann <gerd@gnu.org>
6015
6016 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
6017 case of writing a whole row, more or less analogous to the case of
6018 writing only parts of a row.
6019
6020 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
6021 0 for NO_CURSOR.
6022
6023 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
6024
60252002-04-23 Colin Walters <walters@verbum.org>
6026
6027 * buffer.c (syms_of_buffer): Doc fix.
6028
60292002-04-23 Gerd Moellmann <gerd@gnu.org>
6030
6031 * xterm.c (notice_overwritten_cursor): Handle the special case
6032 of the cursor being in the first blank non-text line at the
6033 end of a window.
6034
6035 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6036 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6037 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
6038 bar cursors only, to make phys_cursor_width contain what its name
6039 suggests.
6040 (notice_overwritten_cursor): Consider the cursor image erased if
6041 the output area intersects the cursor image in y-direction.
6042
60432002-04-23 Simon Marshall <simon@gnu.org>
6044
6045 * xfns.c (x_set_mouse_color): Change default for cross_cursor
6046 to XC_hand2.
6047
60482002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6049
6050 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
6051
60522002-04-22 Kim F. Storm <storm@cua.dk>
6053
6054 * textprop.c (remove_properties): Fixed trap for malformed plist.
6055
60562002-04-22 Richard M. Stallman <rms@gnu.org>
6057
6058 * cmds.c (Fend_of_line): Handle intangible text in mid line.
6059
6060 * window.c (make_window): Initialize height_fixed_p,
6061 last_cursor_off_p, and p->cursor_off_p slots.
6062
60632002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6064
6065 * fns.c (use-dialog-box): Doc fix.
6066
60672002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6068
6069 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
6070 variables `row', `i' and `area'.
6071 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
6072 toolkit library.
6073
60742002-04-19 Stefan Monnier <monnier@cs.yale.edu>
6075
6076 * xfaces.c (clear_font_table): Don't free the default font of
6077 a frame even if it's on another display.
6078 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
6079 that could be Qt.
6080
60812002-04-19 Juanma Barranquero <lektu@terra.es>
6082
6083 * indent.c (Fmove_to_column): Remove unused local variable
6084 `next_boundary_byte'.
6085 (current_column_1): Likewise.
6086
60872002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6088
6089 * msdos.c (Qhbar): New variable.
6090 (syms_of_msdos): Intern and staticpro it.
6091 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
6092 cursor type.
6093
60942002-04-19 Dave Lambert <dlambert@acm.org>
6095
6096 Theses change implement an underscore-like (`hbar') cursor.
6097
6098 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
6099
6100 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
6101 Handle the `hbar' cursor type.
6102 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
6103
6104 * xfns.c (Qhbar): New variable.
6105 (syms_of_xfns): Intern and staticpro it.
6106 (x_specified_cursor_type): Handle `hbar' cursor.
6107
6108 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
6109 not defined.
6110
61112002-04-18 Richard M. Stallman <rms@gnu.org>
6112
6113 * textprop.c (remove_properties): New arg LIST allows scanning
6114 either a list or a plist.
6115 (interval_has_some_properties_list): New function, like
6116 interval_has_some_properties using list instead of plist.
6117 All callers changed.
6118 (Fremove_list_of_text_properties): New function.
6119 (syms_of_textprop): Defsubr it.
6120
61212002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
6122
6123 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
6124
61252002-04-17 Juanma Barranquero <lektu@terra.es>
6126
6127 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
6128
61292002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
6130
6131 * window.c (coordinates_in_window): Don't report on margin area
6132 if its width is zero.
6133
61342002-04-16 Jason Rumney <jasonr@gnu.org>
6135
6136 * w32fns.c (Fx_file_dialog): Decode file name before using.
6137
6138 * w32term.c (construct_drag_n_drop): Likewise.
6139
61402002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
6141
6142 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
6143 store load-history in pure space.
6144
6145 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
6146
61472002-04-16 Stefan Monnier <monnier@cs.yale.edu>
6148
6149 * xterm.c (Qlatin_1, Qutf_8): New vars.
6150 (syms_of_xterm): Initialize them.
6151 (XTread_socket): Eliminate incorrect optimization that tried to avoid
6152 decoding the output of X*LookupString.
6153 Always use latin-1 to decode the output of XLookupString.
6154 Try Xutf8LookupString if XmbLookupString failed.
6155
6156 * region-cache.c (new_region_cache): Use BEG.
6157
61582002-04-16 Gerd Moellmann <gerd@gnu.org>
6159
6160 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
6161 configuration files.
6162 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
6163 returns 0.
6164
61652002-04-15 Andreas Schwab <schwab@suse.de>
6166
6167 * config.in: Regenerated using autoheader.
6168
6169 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
6170 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
6171 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
6172 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
6173 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
6174 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
6175 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
6176 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
6177 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
6178 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
6179 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
6180 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
6181 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
6182 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
6183 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
6184 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
6185 STACK_DIRECTION, now set by autoconf.
6186
61872002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6188
6189 * dispnew.c (marginal_area_string): Sort arguments.
6190
6191 * dispextern.h (marginal_area_string): Add prototype.
6192
61932002-04-13 Richard M. Stallman <rms@gnu.org>
6194
6195 * fileio.c (Finsert_file_contents):
6196 Don't call temp_output_buffer_setup--do just part, by hand.
6197
6198 * coding.c (run_pre_post_conversion_on_str):
6199 Don't call temp_output_buffer_setup--do just part, by hand.
6200
6201 * keyboard.c (command_loop_1): Don't call start_hourglass
6202 or cancel_hourglass when executing a macro.
6203
6204 * marker.c (count_markers): New function.
6205
6206 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
6207 grow without limit. Move recently used elements to the front.
6208
62092002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
6210
6211 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
6212
62132002-04-12 Gerd Moellmann <gerd@gnu.org>
6214
6215 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
6216 rows marginal areas.
6217 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
6218 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
6219
6220 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
6221
62222002-04-12 Dave Love <fx@gnu.org>
6223
6224 * dispnew.c (marginal_area_string): New.
6225
6226 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
6227 (Qleft_margin, Qright_margin): Declare.
6228 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
6229
6230 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
6231 note_mode_line_highlight and extended.
6232
6233 * keyboard.c (Qleft_margin, Qright_margin): Declare.
6234 (make_lispy_event): Deal with mouse events in margins.
6235
62362002-04-12 Stefan Monnier <monnier@cs.yale.edu>
6237
6238 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
6239
6240 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
6241 than deactivating the mark if tmm is set to `lambda'.
6242 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
6243 Use a single event for HELP_EVENT.
6244 (Fexecute_extended_command): Save last_point_position.
6245
62462002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6247
6248 * lisp.h (Fpropertize): Add prototype.
6249
6250 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
6251
62522002-04-10 Colin Walters <walters@verbum.org>
6253
6254 * config.in: Add HAVE_SHARED_GAME_DIR.
6255
6256 * callproc.c: (Vgame_score_directory): New variable.
6257 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
6258
62592002-04-10 Richard M. Stallman <rms@gnu.org>
6260
6261 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
6262
62632002-04-09 Stefan Monnier <monnier@cs.yale.edu>
6264
6265 * minibuf.c (read_minibuf): Use empty_string.
6266 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
6267 Short-circuit the search as soon as it "failed".
6268 (Fall_completions): Allow lambda forms and lists of strings for alist.
6269 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
6270 when require_match is nil.
6271 (Ftest_completion): Rename from `test_completion' and export to elisp.
6272 Call the predicate also when alist is a list.
6273 Obey Vcompletion_regexp_list.
6274 (do_completion, Fminibuffer_complete_and_exit): Use it.
6275 (Fassoc_string): Rename from `assoc_for_completion'.
6276 Allow list of strings as well and export to elisp.
6277
62782002-04-08 Stefan Monnier <monnier@cs.yale.edu>
6279
6280 * puresize.h (BASE_PURESIZE): Increase to 900KB.
6281
62822002-04-08 Juanma Barranquero <lektu@terra.es>
6283
6284 * w32.c (sys_accept): Don't hide variable `s'.
6285
62862002-04-05 Gerd Moellmann <gerd@gnu.org>
6287
6288 * callint.c (Fcall_interactively): Use INTEGERP instead of
6289 NUMBERP for checking Vhistory_length.
6290
62912002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6292
6293 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
6294 Doc fix to reflect it.
6295
62962002-04-04 Richard M. Stallman <rms@gnu.org>
6297
6298 * xdisp.c (display_mode_element): New arg RISKY.
6299 Disregard text props found or specified within a variable
6300 that isn't marked risky-local-variable.
6301 (Qrisky_local_variable): New variable.
6302 (syms_of_xdisp): Init and staticpro it.
6303
63042002-04-04 Stefan Monnier <monnier@cs.yale.edu>
6305
6306 * undo.c (record_point): New fun.
6307 (record_delete, record_insert): Use it.
6308
63092002-04-03 Juanma Barranquero <lektu@terra.es>
6310
6311 * doc.c (Fdocumentation): Add missing parentheses.
6312 (Fdocumentation_property): Likewise.
6313
63142002-04-03 Stefan Monnier <monnier@cs.yale.edu>
6315
6316 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
6317 data is 0, just return nil.
6318
63192002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
6320
6321 * msdos.c (syms_of_msdos): Fix last change with
6322 mouse_autoselect_window.
6323
63242002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6325
6326 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
6327 mouse_autoselect_window.
6328
63292002-04-02 Stefan Monnier <monnier@cs.yale.edu>
6330
6331 * keyboard.c (make_lispy_event): Handle unknown keysyms together
6332 with system-specific keysyms. Use it also for unknown function keys.
6333
6334 * doc.c (reread_doc_file): Return whether reload was attempted.
6335 (Fdocumentation, Fdocumentation_property): Don't try to reload
6336 if the doc is 0 and only ask once.
6337
6338 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
6339
63402002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
6341
6342 * keyboard.c (read_char): If the event was Qselect_window,
6343 restore timer_idleness_start_time to its previous value.
6344
6345 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
6346
63472002-04-01 Stefan Monnier <monnier@cs.yale.edu>
6348
6349 * region-cache.c (new_region_cache): Use BEG.
6350
6351 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
6352 Use BEG and BEG_BYTE.
6353
6354 * doc.c (get_doc_string): Return nil if the location is wrong.
6355 (reread_doc_file): New fun.
6356 (Fdocumentation, Fdocumentation_property):
6357 Call it if get_doc_string fails.
6358 (Fsnarf_documentation): Make it work for a dumped Emacs.
6359
6360 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
6361 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
6362
6363 * charset.c (Fstring): Allow 0 arguments.
6364
6365 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
6366
6367 * process.c (DATAGRAM_CONN_P, list_processes_1)
6368 (Fprocess_datagram_address, Fset_process_datagram_address)
6369 (Fset_network_process_options, server_accept_connection):
6370 Fix some int/Lisp_Object confusions (thank you union types).
6371
63722002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6373
6374 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
6375
6376 * w32term.c: Likewise.
6377 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
6378
6379 * keyboard.c (Qselect_window): New symbol.
6380 (head_table): Use it.
6381 (keys_of_keyboard): Bound select-window event to handle-select-window.
6382 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
6383
6384 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
6385 (last_window): New variable.
6386 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
6387 (note_mouse_movement): Remove reimplemented code in #if 0.
6388 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
6389 Emacs windows.
6390
6391 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
6392
63932002-03-31 Gerd Moellmann <gerd@gnu.org>
6394
6395 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
6396 Callers changed.
6397
63982002-03-30 Richard M. Stallman <rms@gnu.org>
6399
6400 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
6401 loop whenever it stops making progress.
6402
6403 * widget.c (set_frame_size): Don't call change_frame_size.
6404
64052002-03-30 Gerd Moellmann <gerd@gnu.org>
6406
6407 * dispnew.c (direct_output_for_insert):
6408 Call mark_window_display_accurate.
6409
64102002-03-29 Jason Rumney <jasonr@gnu.org>
6411
6412 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
6413
64142002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
6415
6416 * Makefile.in (lread.o): Depend on coding.h.
6417
6418 * lread.c (openp, Fload): Encode the file name before passing it
6419 to `stat', `access', and `emacs_open'.
6420 (openp): GCPRO the encoded file name. Don't recompute Lisp
6421 strings unnecessarily.
6422
64232002-03-29 Kim F. Storm <storm@cua.dk>
6424
6425 * fns.c (Flax_plist_put): Doc fix.
6426
64272002-03-28 Miles Bader <miles@gnu.org>
6428
6429 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
6430
64312002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6432
6433 * process.c (set-network-process-options): Add usage.
6434 (make-network-process): Doc fix.
6435
64362002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
6437
6438 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
6439
64402002-03-26 Richard M. Stallman <rms@gnu.org>
6441
6442 * fns.c (Fsubstring_no_properties): New function.
6443 (Flax_plist_get, Flax_plist_put): New functions.
6444 (syms_of_fns): defsubr them.
6445
6446 * xdisp.c (update_menu_bar): Test only update_mode_lines;
6447 don't test or alter w->update_mode_line.
6448
6449 * window.c (Fdisplay_buffer): Doc fix.
6450
64512002-03-24 Richard M. Stallman <rms@gnu.org>
6452
6453 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
6454
64552002-03-24 Gerd Moellmann <gerd@gnu.org>
6456
6457 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
6458 (Fdefmacro): Handle `(declare ...)'.
6459 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
6460 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
6461
64622002-03-24 Jason Rumney <jasonr@gnu.org>
6463
6464 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
6465 (xbm_file_p): Add prototypes.
6466 (xbm_format, xbm_image_p): Sync with xfns.c.
6467 (reflect_byte): New function.
6468 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
6469 (xbm_load_image): Create bitmaps with a depth of 1.
6470 (init_xfns): Enable XBM images.
6471
64722002-03-23 Jason Rumney <jasonr@gnu.org>
6473
6474 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
6475 correctly. Do not pass up_modifier to keyboard buffer.
6476
6477 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
6478
64792002-03-22 Stefan Monnier <monnier@cs.yale.edu>
6480
6481 * Makefile.in (bootstrapclean): New target.
6482 (bootstrap-temacs, bootstrap-doc): Remove.
6483 (bootstrap-emacs): Use a bog-standard `temacs'.
6484 Don't bother to build a DOC file.
6485
6486 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
6487
6488 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
6489 in temacs even if !CANNOT_DUMP.
6490 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
6491
6492 * alloc.c (check_pure_size): Only output a warning.
6493
64942002-03-22 Jason Rumney <jasonr@gnu.org>
6495
6496 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
6497 supported.
6498
6499 * w32term.c (zv_bits): Declare as short, for word alignment.
6500 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
6501 (syms_of_w32term): Define x-use-underline-position-properties.
6502
6503 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
6504 (clear_image_cache): Block input, fix logic, clear matrices in
6505 all frames that share this cache.
6506
65072002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
6508
6509 * emacs.c (main): Update the Copyright year in the blurb printed
6510 by "emacs --version".
6511
6512 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
6513
6514 * xterm.c (XTread_socket): If XK_ISO_Lock and
6515 XK_ISO_Last_Group_Lock are defined, handle keysyms between
6516 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
6517
65182002-03-21 Kim F. Storm <storm@cua.dk>
6519
6520 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
6521 menu-bar bindings in keymap and local-map properties _are_ used.
6522 But try keymap property first in accordance with 2002-01-03 patch.
6523 Added comment describing why this is not always reliable.
6524 (tool_bar_items): Ditto for tool-bar.
6525
65262002-03-21 Jason Rumney <jasonr@gnu.org>
6527
6528 * w32fns.c (x_clear_image_1): Disable color table code.
6529
65302002-03-21 Kim F. Storm <storm@cua.dk>
6531
6532 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
6533 removed the wrong version of the DEFUN macro; fixed it.
6534
6535 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
6536 Fmember rather than Fmemq).
6537 (Fprovide): Check that subfeatures is a list.
6538
6539 * process.c (QCfeature, QCdatagram): Removed variables.
6540 (QCtype, Qdatagram): New variables.
6541 (network_process_featurep): Removed function.
6542 (Fmake_network_process): Removed :feature check.
6543 Use :type 'datagram instead of :datagram t to create a datagram
6544 socket. This allows us to add other connection types (e.g. raw
6545 sockets) later in a consistent manner.
6546 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
6547 supported subfeatures for feature make-network-process.
6548 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
6549 Intern and staticpro QCtype and Qdatagram.
6550 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
6551
6552 * xfns.c: (QCtype): Remove duplicate declaration and
6553 initialization (is now declared in process.c).
6554
6555 * w32fns.c: (QCtype): Remove duplicate declaration and
6556 initialization (is now declared in process.c).
6557
65582002-03-21 Richard M. Stallman <rms@gnu.org>
6559
6560 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
6561 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
6562 when jumping to `fail' to avoid undoing reg changes in the
6563 last iteration of the loop.
6564 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
6565
6566 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
6567 Depend on process.h.
6568
65692002-03-20 Jason Rumney <jasonr@gnu.org>
6570
6571 Most of the following changes are still conditional on HAVE_IMAGES
6572 which is not set by default on Windows.
6573
6574 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
6575
6576 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
6577 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
6578 (four_corners_best, x_clear_image_1, x_clear_image)
6579 (x_alloc_image_color, postprocess_image)
6580 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
6581 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
6582 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
6583
6584 * w32gui.h (struct XImage): Define.
6585
6586 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
6587 extract mouse co-ordinates.
6588
65892002-03-20 Jason Rumney <jasonr@gnu.org>
6590
6591 * w32.c (init_winsock): Dynamically load new server and UDP
6592 socket functions.
6593 (socket_to_fd): New function.
6594 (sys_socket): Use it.
6595 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
6596 (sys_recvfrom, sys_sendto): New wrapper functions.
6597
6598 * process.c (QCfamily, QCfilter): Remove duplicate declaration
6599 and initialization.
6600
6601 * makefile.w32-in (LIBS): Remove $(WSOCK32).
6602
66032002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
6604
6605 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
6606 Don't use "sun" as a variable, it's a predefined constant on Sun
6607 machines.
6608
66092002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6610
6611 * bytecode.c (Fbyte_code): Revert last change.
6612
66132002-03-19 Kim F. Storm <storm@cua.dk>
6614
6615 * makefile.w32-in (LIBS): Add $(WSOCK32).
6616 From David Ponce <dponce@voila.fr>.
6617
66182002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6619
6620 * process.c (wait_reading_process_input): Move variables `pname'
6621 and `pnamelen' down where they are used.
6622
6623 * bytecode.c (Fbyte_code): Discard unused computed value to
6624 prevent gcc warning.
6625
6626 * lisp.h (Fplist_member): Add prototype.
6627
66282002-03-18 Kim F. Storm <storm@cua.dk>
6629
6630 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
6631 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
6632
6633 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
6634 Remove explicit GNU_LINUX settings for datagram support.
6635
66362002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6637
6638 * process.c (Fmake_network_process): Remove unused variable `sa'.
6639 Doc fix. Add usage:.
6640 (set_socket_options): Remove unused variables `optnum' and `opttype'.
6641
66422002-03-17 Richard M. Stallman <rms@gnu.org>
6643
6644 * xdisp.c (cursor_type_changed): New variable.
6645 (redisplay_internal): Redisplay all windows if cursor_type_changed.
6646 Clear it when clearing windows_or_buffers_changed.
6647 (try_cursor_movement, redisplay_window, try_window_id)
6648 (try_window_reusing_current_matrix): Test cursor_type_changed
6649 along with windows_or_buffers_changed.
6650
6651 * window.h (cursor_type_changed): New variable.
6652
6653 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
6654 not update_mode_lines, and always set it to 1.
6655
6656 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
6657 if no frames needed redrawing.
6658
66592002-03-17 Kim F. Storm <storm@cua.dk>
6660
6661 The following changes add support for network server processes,
6662 datagram connections, and local (unix) sockets.
6663
6664 * process.h (struct Lisp_Process): New member log.
6665 Doc fix: Member command used to indicate stopped network process.
6666 Doc fix: Member childp contains plist for network process.
6667 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
6668
6669 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
6670 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
6671 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
6672 New variables.
6673 (NETCONN1_P): New macro.
6674 (DATAGRAM_SOCKETS): New conditional symbol.
6675 (datagram_address): New array.
6676 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
6677 (status_message): Use concat3.
6678 (Fprocess_status): Add `listen' status to doc string. Return `stop'
6679 for a stopped network process.
6680 (Fset_process_buffer): Update contact plist for network process.
6681 (Fset_process_filter): Ditto. Don't enable input for stopped
6682 network processes. Server must listen, even if filter is t.
6683 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
6684 New functions.
6685 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
6686 (Fprocess_contact): Added KEY argument. Handle datagrams.
6687 (list_processes_1): Optionally show only processes with the query
6688 on exit flag set. Dynamically adjust column widths. Omit tty
6689 column if not needed. Report stopped network processes.
6690 Identify server and datagram network processes.
6691 (Flist_processes): New optional arg `query-only'.
6692 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
6693 (conv_lisp_to_sockaddr, set_socket_options)
6694 (network_process_featurep, unwind_request_sigio): New helper functions.
6695 (Fprocess_datagram_address, Fset_process_datagram_address):
6696 (Fset_network_process_options): New lisp functions.
6697 (Fopen_network_stream): Removed. Now defined in simple.el.
6698 (Fmake_network_process): New lisp function. Code is based on previous
6699 Fopen_network_stream, but heavily reworked with new property list based
6700 argument list, support for datagrams, server processes, and local
6701 sockets in addition to old client-only functionality.
6702 (server_accept_connection): New function.
6703 (wait_reading_process_input): Use it to handle incoming connects.
6704 Do not enable input on a new connection if process is stopped.
6705 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
6706 (send_process): Handle datagram sockets.
6707 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
6708 network process is indicated by setting command field to t .
6709 (Fprocess_send_eof): No-op if datagram connection.
6710 (Fstatus_notify): Don't read input for a stream server socket or a
6711 stopped network process.
6712 (init_process): Initialize datagram_address array.
6713 (syms_of_process): Intern and staticpro new variables, defsubr new
6714 functions.
6715
67162002-03-16 Jason Rumney <jasonr@gnu.org>
6717
6718 * w32fns.c (w32_to_all_x_charsets): Return correct type in
6719 startup case.
6720
67212002-03-16 Richard M. Stallman <rms@gnu.org>
6722
6723 * xdisp.c (redisplay_internal, redisplay_windows):
6724 Use list_of_error to call internal_condition_case_1.
6725 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
6726 so as to catch all errors with no possibility of debugger redisplay.
6727 (list_of_error): New variable.
6728 (syms_of_xdisp): Init and staticpro it.
6729
6730 * print.c (print_object): Delete `\ ' from printed rep of frame.
6731
67322002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
6733
6734 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
6735 until its implementation is fixed.
6736
67372002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6738
6739 * xfns.c (png_load): Remove unused variable `gamma_str'.
6740
67412002-03-14 Richard M. Stallman <rms@gnu.org>
6742
6743 * xfns.c (x_real_positions): Handle failure in XQueryTree.
6744
67452002-03-14 Miles Bader <miles@gnu.org>
6746
6747 * intervals.c (adjust_for_invis_intang): New function.
6748 (set_point_both): Use `adjust_for_invis_intang' to do most of the
6749 work for dealing with invisible+intangible regions. Do so before
6750 and after both forward and backward movements, to handle both
6751 front-sticky and rear-sticky cases.
6752 * textprop.c (text_property_stickiness): Function moved here from
6753 `editfns.c'.
6754 * intervals.h (text_property_stickiness): New declaration.
6755 * editfns.c (char_property_eq): Function removed.
6756 (text_property_stickiness): Function moved to `textprop.c'.
6757
67582002-03-13 Jason Rumney <jasonr@gnu.org>
6759
6760 * config.in: Add STRFTIME_NO_POSIX2.
6761
6762 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
6763 and %OX when underlying strftime does not.
6764
67652002-03-13 Stefan Monnier <monnier@cs.yale.edu>
6766
6767 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
6768 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
6769 line) to avoid annoying flicker.
6770 (xm_scroll_callback): Get rid of the now unnecessary kludge.
6771 (XTread_socket): Mark it static.
6772
6773 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
6774
67752002-03-13 Kim F. Storm <storm@cua.dk>
6776
6777 * puresize.h (BASE_PURESIZE): Increase to 775000.
6778
67792002-03-12 Juanma Barranquero <lektu@terra.es>
6780
6781 * editfns.c (syms_of_editfns): Fix typo.
6782
67832002-03-12 Gerd Moellmann <gerd@gnu.org>
6784
6785 * xsmfns.c: Include stdio.h because termhooks.h needs it.
6786 Include termopt.h for interrupt_input.
6787
67882002-03-11 Andreas Schwab <schwab@suse.de>
6789
6790 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
6791
67922002-03-11 Gerd Moellmann <gerd@gnu.org>
6793
6794 * xterm.c (note_mouse_movement): Put code for
6795 x_autoselect_window_p in #if 0.
6796
6797 * lread.c (Fload): Don't assume that message_with_string uses the
6798 string it is given like a C string.
6799
68002002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6801
6802 * xterm.h (x_session_check_input, x_session_initialize): Declared.
6803
6804 * xterm.c: (XTread_socket): Add call to x_session_check_input and
6805 x_session_have_connection.
6806 (x_initialize): Add call to x_session_initialize.
6807
6808 * termhooks.h (enum event_kind): Add save_session_event.
6809
6810 * keyboard.c: Add Emacs event save_session_event.
6811
6812 * emacs.c (main): Add call to syms_of_xsmfns.
6813
6814 * lisp.h: Declare syms_of_xsmfns as extern.
6815
6816 * config.in: Add HAVE_X_SM.
6817
6818 * Makefile.in (LIBXT): Add -lSM -lICE
6819 if HAVE_X_SM and not USE_X_TOOLKIT.
6820 (XOBJ): New file xsmfns.c added.
6821
6822 * xsmfns.c: New file for X session management.
6823
68242002-03-09 Jason Rumney <jasonr@gnu.org>
6825
6826 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
6827 read-only when setting modified time.
6828
68292002-03-08 Gerd Moellmann <gerd@gnu.org>
6830
6831 * xdisp.c (move_it_vertically_backward): At the end of the function,
6832 when moving forward by lines, treat terminal frames specially.
6833
6834 * keyboard.c (echo_char): Make sure to add a separator between
6835 keys even if echo_dash hasn't been called.
6836
6837 * xdisp.c: Use new string macros.
6838 (update_echo_area): Pass number of bytes to message3 instead of
6839 number of chars.
6840 (set_message_1): Don't access a string's size_byte directly.
6841 (decode_mode_spec_coding): Use number of bytes of eoltype string
6842 instead number of chars.
6843
6844 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
6845
68462002-03-08 Juanma Barranquero <lektu@terra.es>
6847
6848 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
6849 24-bit.
6850
68512002-03-06 Jason Rumney <jasonr@gnu.org>
6852
6853 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
6854
68552002-03-06 Gerd Moellmann <gerd@gnu.org>
6856
6857 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
6858 (cancel_echoing, echo_length, echo_truncate): Changed to
6859 work with new kboard definition.
6860 (echo_now): Use message3_nolog instead of message2_nolog.
6861
6862 * alloc.c (mark_kboards): Mark echo_string.
6863
6864 * keyboard.h (ECHOBUFSIZE): Removed.
6865 (struct kboard): Member echoptr removed, member echobuf renamed
6866 to echo_string.
6867
6868 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
6869 message3 instead of message2 to display the message using STRING's
6870 text properties.
6871
68722002-03-05 Andreas Schwab <schwab@suse.de>
6873
6874 * xdisp.c (hscroll_margin): Change to EMACS_INT.
6875
68762002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
6877
6878 * frame.c (default-frame-alist): Explain that setting it doesn't
6879 affect existing frames.
6880
68812002-03-05 Stefan Monnier <monnier@cs.yale.edu>
6882
6883 * indent.c (skip_invisible): Fix my brain fart.
6884
6885 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
6886
68872002-03-04 Stefan Monnier <monnier@cs.yale.edu>
6888
6889 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
6890 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
6891 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
6892 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
6893 and variables to use EMACS_INT instead of just int.
6894
6895 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
6896
68972002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
6898
6899 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
6900 environment, pass it down with corrected value.
6901
69022002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6903
6904 * lread.c (read_filtered_event): Do not call start_hourglass
6905 before returning.
6906
69072002-03-04 Juanma Barranquero <lektu@terra.es>
6908
6909 * w32term.c (x_display_and_set_cursor): Fix typo.
6910
69112002-03-03 Richard M. Stallman <rms@gnu.org>
6912
6913 * fileio.c (Fmake_temp_name): Doc fix.
6914
69152002-03-03 Gary Wong <gtw@gnu.org>
6916
6917 * termcap.c [!emacs]: Replace ospeed for building standalone
6918 libtermcap, for binary compatibility.
6919
6920 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
6921
69222002-03-03 Richard M. Stallman <rms@gnu.org>
6923
6924 * xrdb.c (file_p): Rename arg `path' to `filename'.
6925
6926 * abbrev.c (Fexpand_abbrev): Increment plist as use count
6927 only if it is an integer.
6928
6929 * xfns.c (png_load): Set screen_gamma based on f->gamma.
6930 If png_get_sRGB gives an answer, call png_set_gamma
6931 using the default image gamma value.
6932
6933 * lread.c (read1): When reading from a file, default string to
6934 multibyte only if it has some multibyte characters.
6935
6936 * print.c (print_object): Output multibyte chars 128...255
6937 using \x even if ! print_escape_multibyte.
6938
6939 * xdisp.c (display_mode_element): Move the places where
6940 bytepos, charpos, this, and lisp_string are set.
6941 Use lisp_string to set bytepos.
6942
6943 * xdisp.c (redisplay_internal):
6944 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
6945
6946 * xdisp.c (display_mode_element): Merge properties specified with
6947 :propertize onto those that come with the string.
6948
69492002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
6950
6951 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
6952 automatic-hscrolling. Users changed.
6953 <hscroll-margin>: Renamed from automatic-hscroll-margin.
6954 Users changed.
6955 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
6956
69572002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
6958
6959 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
6960
69612002-03-02 Kim F. Storm <storm@cua.dk>
6962
6963 * window.c (Fminibuffer_selected_window): New function.
6964 (syms_of_window): Defsubr it.
6965
69662002-03-01 Kim F. Storm <storm@cua.dk>
6967
6968 * window.h (struct window): New member phys_cursor_width.
6969
6970 * window.c (make_window, replace_window): Init phys_cursor_width.
6971
6972 * xterm.c (x_display_and_set_cursor): Blink box cursor using
6973 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
6974
6975 * w32term.c (x_display_and_set_cursor): Blink box cursor using
6976 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
6977
6978 * lisp.h (GCPRO6): New macro.
6979
6980 * process.c (Fopen_network_stream): Use GCPRO6.
6981
69822002-03-01 Kim F. Storm <storm@cua.dk>
6983
6984 * process.c (Qconnect, Qfailed): New variables.
6985 (syms_of_process): Intern and staticpro them.
6986 (Fprocess_status): Document connect and failed return values.
6987 [NON_BLOCKING_CONNECT]: New conditional.
6988 (connect_wait_mask, num_pending_connects): New variables.
6989 (status_message): Convert Qfailed status.
6990 (Fopen_network_stream): Added support for non-blocking connect.
6991 New optional args: filter, sentinel, non_blocking. Doc updated.
6992 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
6993 (deactivate_process): Handle pending non-blocking connect.
6994 (wait_reading_process_input): Poll for status of non-blocking
6995 connects. Exec sentinel directly when connect succeeds.
6996 (status_notify): Don't read process output if not yet connected.
6997
69982002-02-28 Kim F. Storm <storm@cua.dk>
6999
7000 * window.c: (minibuf_selected_window): Renamed from
7001 Vminibuf_selected_window. Users changed.
7002 (syms_of_window): Staticpro it.
7003
70042002-02-26 Kim F. Storm <storm@cua.dk>
7005
7006 The following changes add a new Vminibuf_selected_window variable
7007 which is similar to Vminibuf_scroll_window, but which is only set
7008 on entry to the minibuffer (from a non-minibuffer window):
7009
7010 * window.c: (Vminibuf_selected_window): New variable.
7011 (struct save_window_data): New member minibuf_selected_window.
7012 (Fset_window_configuration): Restore Vminibuf_selected_window.
7013 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
7014 Set minibuf_scroll_window member to nil if minibuf_level is 0.
7015 (compare_window_configurations): Compare minibuf_selected_window.
7016
7017 * window.h: (Vminibuf_selected_window): Declare extern.
7018
7019 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
7020 entry to minibuffer or on entry from a non-minibuffer window.
7021
7022 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
7023 Vminibuf_selected_window instead of Vminibuf_scroll_window.
7024
7025 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
7026 instead of Vminibuf_scroll_window when deciding in which window
7027 the region should be highlighted. Consequently, the region remains
7028 highlighteded even when a completion buffer is also displayed.
7029
70302002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
7031
7032 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
7033
7034 * xselect.c (Qcompound_text_with_extensions): Renamed from
7035 Qcompound_text_no_extensions.
7036 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
7037
70382002-02-26 Juanma Barranquero <lektu@terra.es>
7039
7040 * w32proc.c (syms_of_ntproc): Doc fix.
7041
70422002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7043
7044 * intervals.h: Include "dispextern.h" unconditionally.
7045
70462002-02-24 Jason Rumney <jasonr@gnu.org>
7047
7048 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
7049 and disp-table.elc.
7050 (lisp): Add emacs-lisp/backquote.elc.
7051
70522002-02-24 Kim F. Storm <storm@cua.dk>
7053
7054 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
7055 The validation of the event type was too strict as it didn't
7056 allow string events; buffer names are used in bindings for
7057 menu-bar-select-buffer (see `menu-bar-update-buffers').
7058
70592002-02-23 Kim F. Storm <storm@cua.dk>
7060
7061 The following changes rework my patch of 2002-02-06 which
7062 added command remapping by entering the commands directly into
7063 the keymaps. Now, command remapping uses an explicit `remap'
7064 prefix in the keymaps, i.e. [remap COMMAND].
7065
7066 * keymap.c (Qremap, remap_command_vector): New variables.
7067 (is_command_symbol): Removed function.
7068 (Fdefine_key): No longer accept a symbol for KEY.
7069 Added validation of [remap COMMAND] argument for KEY.
7070 The DEF is no longer required to be a symbol when remapping a command.
7071 (Fremap_command): New function to remap command through keymaps.
7072 (Flookup_key): Perform command remapping initiated by
7073 Fremap_command directly for speed.
7074 (Fkey_binding): Use Fremap_command for command remapping.
7075 (where_is_internal): Handle new command remapping representation.
7076 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
7077 staticpro them. Defsubr Fremap_command.
7078
7079 * keymap.h (Fremap_command): Declare extern.
7080 (is_command_symbol): Remove extern.
7081
7082 * keyboard.c (command_loop_1): Use Fremap_command for command
7083 remapping; now try command remapping for all symbols.
7084
70852002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
7086
7087 * coding.h (run_pre_post_conversion_on_str): Add prototype.
7088
70892002-02-23 Jason Rumney <jasonr@gnu.org>
7090
7091 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
7092 on the string before encoding it.
7093 (Fw32_get_clipboard_data): Run post-read-conversion on the string
7094 after decoding it.
7095
7096 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
7097
70982002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7099
7100 * w32term.c (enter_timestamp): Remove unused static variable to
7101 prevent warning.
7102
7103 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
7104
71052002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
7106
7107 * w16select.c (Fw16_get_clipboard_data): Fix last change.
7108
7109 * xselect.c (selection_data_to_lisp_data): Fix last change.
7110
71112002-02-22 Jason Rumney <jasonr@gnu.org>
7112
7113 * w32term.h (struct w32_output): New member menu_command_in_progress.
7114
7115 * w32menu.c (menubar_selection_callback): Free the menu and
7116 clear the menu_command_in_progress flag.
7117
7118 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
7119 (menu_free_timer): New variable.
7120 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
7121 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
7122 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
7123 menu command is in progress.
7124 <WM_COMMAND>: Set the menu_command_in_progress flag.
7125 Kill any menu_free_timer that is running.
7126
7127 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
7128 Call ExtTextOutA rather than ExtTextOut.
7129
71302002-02-22 Eli Zaretskii <eliz@gnu.org>
7131
7132 * puresize.h (BASE_PURESIZE): Increase to 755000.
7133
71342002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
7135
7136 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
7137 on the string before encoding it.
7138 (Fw16_get_clipboard_data): Run post-read-conversion on the string
7139 after decoding it.
7140
71412002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
7142
7143 Support for ICCCM Extended Segments in X selections:
7144
7145 * xselect.c <Qcompound_text_no_extensions>: New variable.
7146 (syms_of_xselect): Intern and staticpro it.
7147 (selection_data_to_lisp_data): Run post-read-conversion on decoded
7148 selection text.
7149 (lisp_data_to_selection_data): If next-selection-coding-system is
7150 compound-text-no-extensions, set the type of selection to be
7151 compound-text.
7152
7153 * xterm.h (x_encode_text): Update prototype.
7154
7155 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
7156 callers changed. If SELECTIONP is non-zero, run the
7157 pre-write-conversion function before encoding the selection text.
7158
71592002-02-21 Kim F. Storm <storm@cua.dk>
7160
7161 * frame.c (syms_of_frame): Change mouse-highlight default to t.
7162
7163 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
7164 Correct composing of language-change event.
7165
71662002-02-20 Kim F. Storm <storm@cua.dk>
7167
7168 * keyboard.c (menu_bar_items): Don't include keymap or local-map
7169 bindings at PT when building menu (the menu is not updated often
7170 enough for this to work reliable).
7171 (tool_bar_items): Likewise.
7172 (current_active_maps): Removed unused (and buggy) function.
7173
71742002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7175
7176 * xfns.c (gif_load): Use correct width and height for GIF images.
7177
71782002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
7179
7180 * floatfns.c (Fatan): Accept an optional second arg and call
7181 atan2 if passed 2 args.
7182
71832002-02-18 Jason Rumney <jasonr@gnu.org>
7184
7185 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
7186
71872002-02-17 Jason Rumney <jasonr@gnu.org>
7188
7189 * w32term.c (x_autoselect_window_p): New variable.
7190 (syms_of_w32term): DEFVAR_BOOL and initialize it.
7191 (note_mouse_movement): Use it.
7192
7193 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
7194
7195 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
7196
7197 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
7198 New variables.
7199 (syms_of_w32fns): Intern and staticpro them.
7200 (x_frame_parms) <"fullscreen">: New parameter.
7201 (x_fullscreen_move, x_set_fullscreen): New functions.
7202 (x_set_frame_parameters): Support Qfullscreen.
7203 (x_real_positions): Save x/y_pixels_diff frame params.
7204 (x_figure_window_size): Support full-screen frames.
7205 (Fx_create_frame): Default the fullscreen parameter.
7206
7207 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
7208 (x_fullscreen_adjust): New functions.
7209 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
7210 fullscreen. Call x_check_fullscreen_move, and set the
7211 want_fullscreen member of output_data.w32
7212 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
7213
7214 * w32term.h: New enum for FULLSCREEN_* constants.
7215 (struct w32_output): New members want_fullscreen, x_pixels_diff,
7216 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
7217 (x-fullscreen-adjust): New prototype.
7218
72192002-02-17 Kim F. Storm <storm@cua.dk>
7220
7221 * frame.c: (Vmouse_highlight): New variable.
7222 (syms_of_frame): DEFVAR_LISP it.
7223
7224 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 7225
048addec 7226 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 7227
048addec
JD
7228 * xterm.c (disable_mouse_highlight): Removed variable.
7229 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
7230 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
7231 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
7232 and on after keyboard input.
7233 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 7234
048addec 7235 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 7236
048addec
JD
7237 * msdos.c (disable_mouse_highlight): Removed variable.
7238 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
7239 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
7240 (internal_terminal_init): Initialize mouse_face_hidden.
7241 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
7242 and on after keyboard input.
4f1b1854 7243
048addec 7244 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 7245
048addec
JD
7246 * w32term.c (disable_mouse_highlight): Removed variable.
7247 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
7248 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
7249 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
7250 and on after keyboard input.
7251 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 7252
048addec 72532002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 7254
048addec
JD
7255 * msdos.c (last_mouse_window): New variable.
7256 (dos_rawgetc): Fix last change--if the mouse is in the same window
7257 as recorded in last_mouse_window, don't select this window.
5cb6905d 7258
048addec 7259 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 7260
048addec
JD
7261 * msdos.c (x_autoselect_window_p): New variable.
7262 (syms_of_msdos): Defvar it.
7263 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
7264 which the last mouse movement occured, unless it is already selected.
437dfb9f 7265
048addec
JD
7266 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
7267 New variables.
7268 (syms_of_xdisp): DEVFAR them.
7269 (hscroll_window_tree): Use automatic_hscroll_margin and
7270 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 7271
048addec 72722002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 7273
048addec
JD
7274 * xterm.c (x-autoselect-window): New variable.
7275 (note_mouse_movement): Use it.
9f696a00 7276
048addec 7277 * keyboard.c: Do not include "systime.h" twice.
d57966d7 7278
048addec 72792002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 7280
048addec 7281 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 7282
048addec 7283 * alloc.c (NSTATICS): Increase to 1280.
74779f52 7284
048addec 72852002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 7286
048addec 7287 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 7288
048addec
JD
7289 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
7290 (Vx_super_keysym): New variables.
7291 (syms_of_xterm): DEFVAR_LISP them.
7292 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
7293 variables to determine which keys to use for the various modifiers.
a474d59c 7294
048addec 72952002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 7296
048addec
JD
7297 * window.c: (Vmode_line_in_non_selected_windows): Removed.
7298 (mode_line_in_non_selected_windows): New variable.
7299 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 7300
048addec
JD
7301 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
7302 Use mode_line_in_non_selected_windows.
7303 (mode_line_in_non_selected_windows): Declare extern.
7304 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 7305
048addec 73062002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 7307
048addec
JD
7308 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
7309 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
7310 (Fclear_this_command_keys): Doc fixes.
2d10309f 7311
048addec
JD
7312 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
7313 (update_face_from_frame_parameter): Increment face_change_count
7314 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 7315
048addec
JD
7316 * xdisp.c (QCpropertize): New variable.
7317 (mode_line_proptrans_alist): New variable.
7318 (display_mode_element): New arg PROPS; all calls changed.
7319 Implement this, for strings.
7320 Handle literal output of strings by sharing the
7321 main-line code for strings, using local var `literal'.
7322 Handle :propertize feature.
7323 (syms_of_xdisp): Initialze and staticpro QCpropertize and
7324 mode_line_proptrans_alist.
0b1e6b54 7325
048addec 73262002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 7327
048addec
JD
7328 * window.c: (Vmode_line_in_non_selected_windows): New variable.
7329 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 7330
048addec
JD
7331 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
7332 (CURRENT_MODE_LINE_FACE_ID): Use it.
7333 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 7334
048addec
JD
7335 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
7336 to get mode line face.
e17144de 7337
048addec 73382002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 7339
048addec
JD
7340 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
7341 variables; cus-start.el doesn't need them anymore.
44368f8f 7342
048addec 73432002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 7344
048addec
JD
7345 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
7346 reduction. This fixes a display problem where stray newlines were
7347 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 7348
048addec 73492002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 7350
048addec 7351 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 7352
048addec 7353 * xdisp.c (display_mode_lines): Fix last change.
453c5510 7354
048addec 73552002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 7356
048addec
JD
7357 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
7358 match each other.
7359 (w32_load_system_font): Prevent Cleartype fonts from loading.
7360 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 7361
048addec 73622002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 7363
048addec
JD
7364 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
7365 (CURRENT_MODE_LINE_HEIGHT): Use it.
7366 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 7367
048addec
JD
7368 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
7369 (pos_visible_p, handle_face_prop): Likewise.
7370 (display_mode_lines): Likewise, but for the real selected window.
7371 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 7372
048addec
JD
7373 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
7374 in non-selected windows.
7375 (realize_basic_faces): Realize it.
7376 (syms_of_term): Intern and staticpro it.
308dd672 7377
048addec 73782002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 7379
048addec
JD
7380 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
7381 Changed mail addresses to emacs-devel@gnu.org.
308dd672 7382
048addec 73832002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 7384
048addec
JD
7385 * fileio.c (Fsubstitute_in_file_name): If the file name includes
7386 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 7387
048addec 7388 * floatfns.c (Fround): Doc fix.
3c1e6b46 7389
048addec 73902002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 7391
048addec 7392 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 7393
048addec 73942002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 7395
048addec 7396 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 7397
048addec 73982002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 7399
048addec
JD
7400 * keymap.c (where_is_internal): Only check whether definition is
7401 remapped if it fulfills is_command_symbol.
0065bb74 7402
048addec 74032002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 7404
048addec 7405 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 7406
048addec 7407 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 7408
048addec 74092002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 7410
048addec
JD
7411 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
7412 defining command remapping. Doc updated.
7413 (Flookup_key): Remap command through keymap if KEY is a symbol.
7414 (is_command_symbol): New function.
7415 (Fkey_binding): Use it. New optional argument NO-REMAP.
7416 Doc updated. Callers changed. Perform command remapping via
7417 recursive call unless that arg is non-nil.
7418 (where_is_internal): New argument no_remap. Callers changed.
7419 Call recursively to find original key bindings for a remapped
7420 comand unless that arg is non-nil.
7421 (Fwhere_is_internal): New optional argument NO-REMAP.
7422 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 7423
048addec
JD
7424 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
7425 (is_command_symbol): Added prototype.
0d8466cc 7426
048addec
JD
7427 * keyboard.c (Vthis_original_command): New variable.
7428 (syms_of_keyboard): DEFVAR_LISP it.
7429 (command_loop_1): Set it, and perform command remapping.
15fff01d 7430
048addec 74312002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 7432
048addec 7433 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 7434
048addec 74352002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 7436
048addec 7437 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 7438
048addec 74392002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 7440
048addec 7441 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 7442
048addec 74432002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 7444
048addec 7445 * filelock.c (S_ISLNK): Define if not defined.
3a232704 7446
048addec 74472002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 7448
048addec 7449 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 7450
048addec
JD
7451 * lread.c (read1): Redesign strategy for force_multibyte and
7452 force_singlebyte. Now is_multibyte records whether read_buffer
7453 is multibyte. Encountering any multibyte character makes it so.
4e02881b 7454
048addec 74552002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 7456
048addec
JD
7457 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
7458 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 7459
048addec 74602002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 7461
048addec
JD
7462 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
7463 latter never being defined on GNU/Linux.
749f499f 7464
048addec 74652002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 7466
048addec
JD
7467 * xfaces.c (realize_default_face): Don't set the weight and slant of
7468 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 7469
048addec 74702002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 7471
048addec
JD
7472 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
7473 Call cancel_hourglass unconditionally.
d0fd26dd 7474
048addec
JD
7475 * eval.c (Fsignal): Remove duplicated declaration of
7476 the variable `display_hourglass_p'.
b4c45162 7477
048addec 74782002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 7479
048addec 7480 * editfns.c (region_limit): Nicer error message.
c95eaa61 7481
048addec
JD
7482 * coding.c (decode_composition_emacs_mule):
7483 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 7484
048addec
JD
7485 * callint.c (check_mark): New arg to specify clearer error message.
7486 Callers changed.
c95eaa61 7487
048addec 74882002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 7489
048addec 7490 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 7491
048addec 74922002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 7493
048addec
JD
7494 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
7495 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
7496 Fix doc-strings.
c95eaa61 7497
048addec 74982002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 7499
048addec 7500 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 7501
048addec
JD
7502 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
7503 and scroll_up_aggressively.
c95eaa61 7504
048addec 75052002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 7506
048addec 7507 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 7508
048addec 75092002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 7510
048addec
JD
7511 * textprop.c (Fnext_property_change, Fnext_single_property_change)
7512 (Fprevious_property_change, Fprevious_single_property_change):
7513 Stay within the narrowed-buffer boundaries.
e2c3786a 7514
048addec 75152002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 7516
048addec
JD
7517 * term.c (Ftty_display_color_cells): New function.
7518 (syms_of_term): Defsubr it.
7519 (Ftty_display_color_cells, Ftty_display_color_p): Change the
7520 argument name to DISPLAY. Doc fix.
bf794306 7521
048addec
JD
7522 * dispextern.h: Add prototype for set_tty_color_mode and
7523 tty_setup_colors.
bf794306 7524
048addec 75252002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 7526
048addec
JD
7527 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
7528 If region left to draw is not what was expected, mark the frame as
7529 garbaged.
62582985 7530
048addec
JD
7531 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
7532 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 7533
048addec 75342002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 7535
048addec
JD
7536 * w32term.c (x_update_window_begin): Only hide caret if
7537 w32_use_visible_system_caret is set.
7538 (x_update_window_end): Only show caret if
7539 w32_use_visible_system_caret is set.
7540 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 7541
048addec 7542 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 7543
048addec 75442002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 7545
048addec
JD
7546 * unexelf.c (unexec): Define n so as to cause compilation error
7547 for the code where people have often written n instead of nn.
1e9a6186 7548
048addec 7549 * .gdbinit (hookpost-run): Defined.
1e9a6186 7550
048addec 75512002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 7552
048addec 7553 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 7554
048addec 75552002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 7556
048addec
JD
7557 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
7558 if fullscreen is being set.
7c75be36 7559
048addec 75602002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 7561
048addec
JD
7562 * minibuf.c (Fminibuffer_contents)
7563 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
7564 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 7565
048addec 75662002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 7567
048addec 7568 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 7569
048addec 75702002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 7571
048addec
JD
7572 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
7573 height before comparison.
7574 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 7575
048addec 75762002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 7577
048addec
JD
7578 * w32term.c (w32_system_caret_width): Remove.
7579 (w32_use_visible_system_caret): New user flag.
7580 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
7581 Windows reports a screen reader running.
7582 (x_update_window_begin): Hide the system caret.
7583 (x_update_window_end): Show the system caret.
7584 (x_display_and_set_cursor): Don't draw a cursor when
7585 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 7586
048addec
JD
7587 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
7588 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
7589 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
7590 the user requests it. Use system default width when creating.
7591 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 7592
048addec
JD
7593 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
7594 New window messages.
905cc05a 7595
048addec 75962002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 7597
048addec 7598 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 7599
048addec 76002002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 7601
048addec 7602 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 7603
048addec 76042002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 7605
048addec 7606 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 7607
048addec 76082002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 7609
048addec
JD
7610 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
7611 that Windows returns. If a double check fails, try to guess how
7612 ExtTextOut is going to act.
4d0fa4f3 7613
048addec
JD
7614 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
7615 in place of stricmp.
7616 (w32_list_synthesized_fonts): Removed.
7617 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
7618 (struct enumfont_t): New element; list.
7619 (enum_font_cb2): List all style and charset variations of a font.
7620 (Fw32_select_font): New optional argument; include_proportional.
7621 Exclude vertical fonts. Exclude proportional fonts unless
7622 include_proportional is non-nil.
7623 (w32_enable_synthesized_fonts): Change to a boolean.
7624 (Fw32_send_sys_command): Doc fix.
493faf20 7625
048addec 76262002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 7627
048addec
JD
7628 * dispnew.c (update_frame): Move the variable `tem' to the block
7629 where it is used.
4971e491 7630
048addec 76312002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 7632
048addec
JD
7633 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
7634 call to face-set-after-frame-default.
4971e491 7635
048addec 76362002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 7637
048addec
JD
7638 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
7639 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 7640
048addec 76412002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 7642
048addec
JD
7643 * window.c (enlarge_window): When exceeding size of parent,
7644 directly delete all the siblings instead of trying to resize it.
201c831a 7645
048addec 76462002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 7647
048addec 7648 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 7649
048addec 76502002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 7651
048addec 7652 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 7653
048addec 76542002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 7655
048addec
JD
7656 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
7657 is invisible. This can happen if cursor is on top line of a
7658 window, and we switch to a buffer with a header line.
d77fbc16 7659
048addec 7660 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 7661
048addec 76622002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 7663
048addec
JD
7664 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
7665 `dont_resize' only when used.
61e3b944 7666
048addec 7667 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 7668
048addec 76692002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 7670
048addec
JD
7671 * xdisp.c (display_mode_element): When computing charpos, depend
7672 on multibyteness of elt, not the text in field.
8af01033 7673
048addec 76742002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 7675
048addec
JD
7676 * buffer.c (Fkill_all_local_variables):
7677 Increment `update_mode_lines' only once.
7363986a 7678
048addec 76792002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 7680
048addec
JD
7681 * lisp.h (adjust_after_replace_noundo)
7682 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 7683
048addec 7684 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 7685
048addec 76862002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 7687
048addec
JD
7688 Support for the --color command-line argument and tty-color-mode
7689 frame parameter:
f1a85b89 7690
048addec
JD
7691 * term.c (tty_default_color_capabilities, tty_setup_colors)
7692 (set_tty_color_mode): New functions.
7693 (term_init): Call tty_default_color_capabilities.
7694 (Qtty_color_mode_alist): New variable.
7695 (syms_of_term): Intern and staticpro it.
f1a85b89 7696
048addec
JD
7697 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
7698 frames.
7699 (do_switch_frame): For termcap frames, switch the tty
7700 color mode as specified by the frame's parameters.
7701 (Qtty_color_mode): New variable.
7702 (syms_of_frame): Intern and staticpro it.
3a62677f 7703
048addec
JD
7704 * emacs.c (USAGE2): Add the --color option.
7705 (standard_args): Ditto.
72244db2 7706
048addec
JD
77072002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7708
7709 * xterm.h (struct x_output): New members want_fullscreen,
7710 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
7711 y_pixels_outer_diff.
7712 New enum for FULLSCREEN_* constants.
7713 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
7714 is NULL.
7715 (x_fullscreen_adjust): Add prototype.
3a62677f 7716
048addec
JD
7717 * emacs.c (USAGE2): Add the new full-screen arguments.
7718 (standard_args): Ditto.
3a62677f 7719
048addec
JD
7720 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
7721 New variables.
7722 (syms_of_xfns): Intern and staticpro them.
7723 (x_frame_parms) <"fullscreen">: New parameter.
7724 (x_fullscreen_move, x_set_fullscreen): New functions.
7725 (x_set_frame_parameters): Support for Qfullscreen.
7726 (x_real_positions): More accurate computation of the frame position.
7727 (x_figure_window_size): Support full-screen frames.
7728 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 7729
048addec
JD
7730 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
7731 (XTread_socket) <Expose>: Call x_check_fullscreen.
7732 <ConfigureNotify>: Don't resize to fullscreen.
7733 Call x_check_fullscreen_move, and set the want_fullscreen member of
7734 output_data.x.
3a62677f 7735
048addec 77362002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 7737
048addec
JD
7738 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
7739 for mice with more than 3 buttons.
b8523839 7740
048addec
JD
7741 * w32term.c (parse_button): New parameter xbutton. Callers changed.
7742 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 7743
048addec
JD
7744 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
7745 (syms_of_w32fns): DEFVAR_BOOL it.
7746 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 7747
048addec 77482002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 7749
048addec 7750 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 7751
048addec 77522002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 7753
048addec 7754 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 7755
048addec 77562002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 7757
048addec
JD
7758 * .gdbinit (xbuffer): Remove address operator since data is now a
7759 pointer.
c93674bb 7760
048addec 77612002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 7762
048addec 7763 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 7764
048addec 7765 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 7766
048addec 77672002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 7768
048addec
JD
7769 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
7770 when checking for multiple frames.
91175673 7771
048addec 77722002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 7773
048addec
JD
7774 * window.c (delete_window): Rewrite the code for changing the
7775 selected window to handle the case where WINDOW is not a leaf.
91175673 7776
048addec 77772002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 7778
048addec
JD
7779 * process.c (send_process): Set src_multibyte to 1 after the call
7780 top setup_coding_system, not before the call.
e0fead5d 7781
048addec 77822002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 7783
048addec
JD
7784 * xmenu.c (set_frame_menubar, xmenu_show):
7785 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 7786
048addec
JD
7787 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
7788 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 7789
048addec 77902002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 7791
048addec 7792 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 7793
048addec 7794 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 7795
048addec 7796 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 7797
048addec 77982002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 7799
048addec
JD
7800 * insdel.c (make_gap_larger): Make sure buffer size does not
7801 overflow range of int.
62854fe2 7802
048addec 78032002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 7804
048addec
JD
7805 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
7806 OVERLAPS_P.
656f46bb 7807
048addec 7808 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 7809
048addec
JD
7810 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
7811 to the left or to the right of the pointer, put it against
7812 the left screen edge.
7813 (x_frame_parms): Add missing braces around initializer.
036e218d 7814
048addec
JD
7815 * w32term.c (x_setup_relief_colors): Don't compute an image's
7816 background color if it doesn't have a Pixmap.
7817 (notice_overwritten_cursor): Don't depend on
7818 output_cursor and updated_area. Compare pixel coordinates with
7819 window's cursor pixel coordinates.
7820 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
7821 Call notice_overwritten_cursor with new arg list.
7822 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
7823 unconditionally.
7824 (x_draw_image_relief): Use predefined macro instead of
7825 constant when the value of `tool_bar_button_relief' is negative.
036e218d 7826
048addec 7827 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 7828
048addec 78292002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 7830
048addec 7831 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 7832
048addec 78332002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 7834
048addec
JD
7835 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
7836 (Fkey_binding): Try the `keymap' property map first.
7837 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
7838 minor mode bindings.
90647b07 7839
048addec 78402002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 7841
048addec 7842 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 7843
048addec 78442002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 7845
048addec
JD
7846 * keyboard.c (read_key_sequence): Handle the keymap property
7847 before minor mode maps.
9fbc32aa 7848
048addec
JD
7849 * editfns.c (Fformat): Update thissize from field_width
7850 based on the actual width, in the string case.
036e218d 7851
048addec 78522002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 7853
048addec
JD
7854 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
7855 when used as truth value to prevent gcc warnings.
9fbc32aa 7856
048addec
JD
7857 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
7858 * w32proc.c: Include <config.h>.
9fbc32aa 7859
048addec 78602002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 7861
048addec
JD
7862 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
7863 not EMACS_INT, to make them compatible with DEFVAR_INT.
7864 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 7865
048addec 78662002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 7867
048addec
JD
7868 * print.c (print_object): Test print_escape_nonascii only for
7869 unibyte strings.
7870 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
7871 when outputting to a multibyte buffer.
9fbc32aa 7872
048addec 78732001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 7874
048addec
JD
7875 * print.c (print_object): In multibyte string, use hex escapes.
7876 Use octal only for unibyte strings.
7877 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 7878
048addec
JD
7879 * lread.c (read_escape): New arg BYTEREP for reporting whether
7880 escape forces unibyte or multibyte.
7881 (read1): When reading a string, take note of that info.
0142178a 7882
048addec 78832001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 7884
048addec
JD
7885 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
7886 comparison to test lisp value returned by Fget.
d4824a5d 7887
048addec 78882001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 7889
048addec 7890 * lisp.h (max_specpdl_size): Add declaration.
b1356234 7891
048addec 7892 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 7893
048addec
JD
7894 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
7895 Handle modifier bits. Correct typo in error message.
99e380ee 7896
048addec 78972001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 7898
048addec
JD
7899 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
7900 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
7901 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
7902 Update calls to Fdefine_abbrev.
7903 (write_abbrev): Update for changed data format.
7904 Don't list "system" abbrevs.
7905 (Fexpand_abbrev): Update use count with new data format.
7906 (describe_abbrev): Update for changed data format.
7907 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 7908
048addec 7909 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 7910
048addec 7911 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 7912
048addec
JD
7913 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
7914 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 7915
048addec
JD
7916 * keymap.c (Flookup_key): Error message if key has wrong data type.
7917 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
7918 (exclude_key): New variable.
59a86c99 7919
048addec 79202001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 7921
048addec
JD
7922 * xterm.c (x_setup_relief_colors): Don't compute an image's
7923 background color if it doesn't have a Pixmap.
eb77a5f4 7924
048addec
JD
7925 * xterm.c (notice_overwritten_cursor): Don't depend on
7926 output_cursor and updated_area. Compare pixel coordinates with
7927 window's cursor pixel coordinates.
7928 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
7929 Call notice_overwritten_cursor with new arg list.
7930 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
7931 unconditionally.
eb77a5f4 7932
048addec
JD
7933 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
7934 height of the cursor line to the amount to scroll.
eb77a5f4 7935
048addec 79362001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 7937
048addec
JD
7938 * intervals.c (set_point_both): The position after an invisible,
7939 intangible character is not an acceptable stopping point.
bb313871 7940
048addec 79412001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 7942
048addec
JD
7943 * window.c (enlarge_window): In new preserve_before code, convert
7944 CURBEG from lisp object to integer before doing arithmetic.
6052529b 7945
048addec 79462001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 7947
048addec 7948 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 7949
048addec 79502001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 7951
048addec
JD
7952 * keyboard.c (record_char): Ignore duplicate help-echo events only
7953 separated by mouse-movement. When tracking mouse, only record
7954 first and last mouse-movement event in same window.
7955 Don't record mouse-movement events in keyboard macros.
3ce081f5 7956
048addec 79572001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 7958
048addec
JD
7959 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
7960 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 7961
048addec
JD
7962 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
7963 instead of Fstring_as_unibyte.
9fabb2f5 7964
048addec 79652001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 7966
048addec 7967 The following changes remove mocklisp support:
9fabb2f5 7968
048addec 7969 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 7970
048addec
JD
7971 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
7972 `Qmocklisp' and `Qmocklisp_arguments'.
7973 Remove prototype of syms_of_mocklisp.
2fa0eedf 7974
048addec 7975 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 7976
048addec
JD
7977 * callint.c: Do not include mocklisp.h.
7978 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 7979
048addec
JD
7980 * eval.c: Remove variables `Qmocklisp_arguments',
7981 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
7982 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
7983 Do not test for mocklisp case.
7984 (Fwhile): Remove unused variable `tem'.
7985 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 7986
048addec 7987 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 7988
048addec 7989 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 7990
048addec 7991 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 7992
048addec 79932001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 7994
048addec
JD
7995 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
7996 to the left or to the right of the pointer, put it against
7997 the left screen edge.
6108b49c 7998
048addec 79992001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 8000
048addec
JD
8001 * Makefile.in (distclean): Remove .gdbinit if we are building
8002 outside the source tree.
5eea19a4 8003
048addec 80042001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 8005
048addec 8006 * w32.c (emacs_root_dir): New function.
5eea19a4 8007
048addec 8008 * msdos.c (emacs_root_dir): New function.
5eea19a4 8009
048addec
JD
8010 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
8011 of the current drive as the fallback for default_directory.
438e57dd 8012
048addec
JD
8013 * dired.c (file_name_completion): Run the elements of
8014 completion-ignored-extensions through ENCODE_FILE.
438e57dd 8015
048addec
JD
8016 * lisp.h (scmp): Remove prototype, since it's now a static
8017 function private to dired.c.
c88e5347 8018
048addec 80192001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 8020
048addec
JD
8021 * dired.c (scmp): Function moved from minibuf.c.
8022 Delete multibyte handling--used only on encoded strings.
59ce1461 8023
048addec 8024 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 8025
048addec 8026 * fns.c (merge): Add QUIT call.
59ce1461 8027
048addec 80282001-12-18 Dave Love <fx@gnu.org>
8727d588 8029
048addec
JD
8030 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
8031 language/georgian.el.
8727d588 8032
048addec 80332001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 8034
048addec
JD
8035 * Makefile.in (lisp, shortlisp): Synchronize with changes to
8036 lisp/Makefile.in:DONTCOMPILE.
cc63037e 8037
048addec 80382001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 8039
048addec
JD
8040 * xdisp.c (window_box_height): Do not return negative values.
8041 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 8042
048addec 8043 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 8044
048addec 8045 * term.c (keys): Likewise.
deece6f5 8046
048addec 8047 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 8048
048addec 80492001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 8050
048addec
JD
8051 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
8052 patch (COMPOSING_P, not COMPOSING).
28ff4293 8053
048addec 80542001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 8055
048addec 8056 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 8057
048addec
JD
8058 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
8059 before calling decode_coding.
9b46de40 8060
048addec 8061 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 8062
048addec
JD
8063 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
8064 instead of only for COMPOSITION_DISABLED.
9b46de40 8065
048addec 80662001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 8067
048addec 8068 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 8069
048addec 8070 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 8071
048addec
JD
8072 * buffer.h (struct buffer): New field `display_error_modiff'.
8073 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 8074
048addec 8075 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 8076
048addec
JD
8077 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
8078 Call redisplay_window, but not if display_error_modiff field says no.
8079 (redisplay_window_error): New function.
8080 (displayed_buffer): New variable.
8081 (redisplay_internal, redisplay_windows): Call the new functions
8082 instead of redisplay_window directly.
2cd23960 8083
048addec 80842001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 8085
048addec 8086 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 8087
048addec 80882001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 8089
048addec
JD
8090 * makefile.w32-in (EMACSLOADPATH): Define.
8091 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
8092 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 8093
048addec 80942001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 8095
048addec
JD
8096 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
8097 parameter have a numeric value all the time.
f6fa0866 8098
048addec 8099 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 8100
048addec 81012001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 8102
048addec 8103 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 8104
048addec
JD
8105 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
8106 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 8107
048addec 81082001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 8109
048addec
JD
8110 * xdisp.c (move_it_vertically_backward): Change heuristic
8111 for the case that we didn't move far enough initially.
91c153e2 8112
048addec
JD
8113 * window.c (Frecenter): Simplify computation in the case of window
8114 system frames and ARG < 0; use window_box_height.
65b7d3e7 8115
048addec 81162001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 8117
048addec
JD
8118 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
8119 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 8120
048addec 81212001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 8122
048addec
JD
8123 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
8124 arg is negative.
be676094 8125
048addec 81262001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 8127
048addec
JD
8128 * m/hp800.h: Split the __hpux conditional into the parts
8129 that are right for GNU/Linux too and the parts that are not.
8130 Use the former if GNU_LINUX.
8131 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 8132
048addec 8133 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 8134
048addec 81352001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 8136
048addec
JD
8137 * macros.c, msdos.c, w16select.c: Change doc-string comments to
8138 `new style' [w/`doc:' keyword].
032a857d 8139
048addec 81402001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 8141
048addec
JD
8142 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
8143 before using.
b6270150 8144
048addec 81452001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 8146
048addec
JD
8147 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
8148 keyword].
98cbb9fa 8149
048addec 81502001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 8151
048addec 8152 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 8153
048addec 8154 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 8155
048addec 81562001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 8157
048addec
JD
8158 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
8159 Add comment to explain where the struct came from.
8160 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
8161 (add_menu_item): Process pop-up menus first to avoid memory leak.
8162 (add_menu_item, w32_menu_display_help): Use `help' field as
8163 Lisp_Object.
8164 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 8165
048addec 81662001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 8167
048addec 8168 * COPYING: Moved back.
fa336b91 8169
048addec
JD
8170 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
8171 Add parentheses around && within ||.
077907d4 8172
048addec 8173 * indent.c (compute_motion): Likewise.
aa2af83a 8174
048addec 8175 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 8176
048addec
JD
8177 * coding.c (setup_coding_system, shrink_encoding_region)
8178 (Fdecode_sjis_char): Likewise.
60a653f1 8179
048addec 81802001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 8181
048addec
JD
8182 * xdisp.c (display_mode_element): Don't read past end of string if
8183 it ends with '%'.
60a653f1 8184
048addec
JD
8185 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
8186 can hold.
60a653f1 8187
048addec
JD
8188 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
8189 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
8190 type changed to Lisp_Object.
8191 (syms_of_data): DEFVAR_LISP them.
60a653f1 8192
048addec 81932001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 8194
048addec
JD
8195 * callproc.c (init_callproc): Set Vdata_directory based on the source
8196 location whenever Emacs was run uninstalled.
60a653f1 8197
048addec 81982001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 8199
048addec
JD
8200 * config.in (HAVE_WORKING_VFORK): New #undefs.
8201 * process.c (create_process):
8202 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
8203 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
8204 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
8205 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
8206 * m/intel386.h (HAVE_VFORK): Likewise.
8207 * m/mips-siemens.h (HAVE_VFORK): Likewise.
8208 * m/mips.h (HAVE_VFORK): Likewise.
8209 * s/freebsd.h (vfork): Remove #define.
8210 * s/lynxos.h (HAVE_VFORK): Remove #undef.
8211 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 8212
048addec 82132001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 8214
048addec
JD
8215 * s/hpux10.h (random): Add undef.
8216 (HAVE_RANDOM): Define it just once.
60a653f1 8217
048addec 82182001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8219
048addec 8220 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 8221
048addec 82222001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 8223
048addec
JD
8224 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
8225 scroll bars of the frame before deleting the frame itself. If the
8226 frame has a widget, delete the frame with XtDestroyWidget, and do
8227 not call XDestroyWindow before that.
60a653f1 8228
048addec 82292001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 8230
048addec 8231 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 8232
048addec 8233 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 8234
048addec 82352001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 8236
048addec
JD
8237 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
8238 excessively large.
60a653f1 8239
048addec
JD
8240 * insdel.c (make_gap_larger): New function.
8241 (make_gap_smaller): New function.
8242 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
8243 Call make_gap_smaller if arg is negative.
60a653f1 8244
048addec 82452001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8246
048addec
JD
8247 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
8248 Pass a dummy argument when calling interrupt_signal.
8249 (parse_menu_item): Mark disabled items before checking for empty def.
8250 (read_char_minibuf_menu_prompt): Make safety more visible.
8251 (read_key_sequence): Add a `first_unbound' variable.
8252 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
8253 unbound prefix as soon as we can detect it.
60a653f1 8254
048addec
JD
8255 * doc.c (Fsnarf_documentation): Add prototype.
8256 (get_doc_string): Handle negative arguments.
8257 (Fdocumentation): Use AREF and ASIZE.
8258 Move the calls to get_doc_string to a single place.
8259 Don't confuse an interactive-spec for a docstring reference.
8260 (Fdocumentation_property): Take advantage of the fact that
8261 get_doc_string now ignores the sign of the docstring position.
60a653f1 8262
048addec 8263 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 8264
048addec 82652001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8266
048addec 8267 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 8268
048addec 82692001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8270
048addec
JD
8271 * xterm.c (x_draw_image_relief): Use predefined macro instead of
8272 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 8273
048addec 82742001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 8275
048addec
JD
8276 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
8277 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 8278
048addec 8279 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 8280
048addec 82812001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8282
048addec 8283 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 8284
048addec 82852001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 8286
048addec 8287 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 8288
048addec 82892001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 8290
048addec 8291 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 8292
048addec
JD
8293 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
8294 [!WM_MOUSELEAVE]: Define.
60a653f1 8295
048addec
JD
8296 * w32menu.c (current_popup_menu, get_menu_item_info):
8297 (set_menu_item_info): New vars.
8298 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
8299 (w32_menu_show): Set current_popup_menu.
8300 (add_menu_item): Allocate new strings for owner-drawn menu items
8301 and help strings.
8302 Use owner-draw for disabled menu items again.
8303 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
8304 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 8305
048addec
JD
8306 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
8307 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
8308 <WM_EXITMENULOOP>: Free menu strings.
8309 <WM_MOUSELEAVE>: Stop tracking mouse.
8310 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 8311
048addec
JD
8312 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
8313 and mouse face.
60a653f1 8314
048addec 83152001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 8316
048addec
JD
8317 The following changes add left-fringe and right-fringe
8318 frame parameters to adjust fringe widths, or remove one or
8319 both fringes.
60a653f1 8320
048addec
JD
8321 * frame.h (struct frame): Remove trunc_area_pixel_width and
8322 trunc_area_cols fields.
8323 (Qleft_fringe, Qright_fringe): Declare.
8324 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 8325
048addec
JD
8326 * frame.c (Qleft_fringe, Qright_fringe): New vars.
8327 (syms_of_frame): Initialize them.
60a653f1 8328
048addec
JD
8329 * window.c (coordinates_in_window): Handle separate left and right
8330 fringe widths.
60a653f1 8331
048addec
JD
8332 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
8333 and fringe_cols fields.
8334 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
8335 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
8336 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
8337 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
8338 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
8339 (x_compute_fringe_widths): Add prototype.
60a653f1 8340
048addec
JD
8341 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
8342 fill fringe evenly with small dashes.
8343 (x_draw_fringe_bitmap): Clear background if necessary. Align and
8344 clip the new ZV bitmap to avoid jitter between rows.
8345 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
8346 background. Don't draw fringe bitmaps if fringe width is zero.
8347 (x_compute_fringe_widths): New function.
8348 (x_new_font, x_set_window_size_1): Use it.
60a653f1 8349
048addec
JD
8350 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
8351 (x_set_frame_parameters): Process `font' parameter before other
8352 parameters as fringe widths depend on it.
8353 (x_set_fringe_width): New function.
8354 (x_figure_window_size): Use x_compute_fringe_widths.
8355 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
8356 parameters.
60a653f1 8357
048addec
JD
8358 * widget.c (set_frame_size): Use x_compute_fringe_widths.
8359 (EmacsFrameSetCharSize): Ditto.
60a653f1 8360
048addec
JD
8361 * w32term.h: Merged changes from xterm.h.
8362 * w32term.c: Merged changes from xterm.c.
8363 * w32fns.c: Merged changes from xfns.c.
60a653f1 8364
048addec 83652001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8366
048addec 8367 * COPYING: Removed.
60a653f1 8368
048addec 83692001-11-29 Dave Love <fx@gnu.org>
60a653f1 8370
048addec
JD
8371 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
8372 extra extra slot.
8373 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 8374
048addec 83752001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8376
048addec
JD
8377 * fileio.c (file-name-coding-system)
8378 (default-file-name-coding-system): Doc fix (links to referenced
8379 variables added).
60a653f1 8380
048addec 83812001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8382
048addec
JD
8383 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
8384 Add dummy uses of gcproN variables.
60a653f1 8385
048addec
JD
8386 * category.c (describe_category, describe_category_1)
8387 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
8388 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 8389
048addec 83902001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 8391
048addec 8392 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 8393
048addec
JD
8394 * Makefile.in (lispdir): New variable, referring to build dir.
8395 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 8396
048addec 83972001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 8398
048addec
JD
8399 * w32menu.c (w32_menu_display_help): Actually add the new argument
8400 OWNER.
60a653f1 8401
048addec 84022001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 8403
048addec
JD
8404 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
8405 menu items. From David Ponce <dponce@wanadoo.fr>.
8406 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
8407 conditionally.
8408 (w32_menu_display_help): New argument OWNER. Rewritten to store a
8409 help event in the owner frame's keyboard buffer.
60a653f1 8410
048addec
JD
8411 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
8412 (Fx_show_tip): Don't subtract last width from row width.
8413
8414 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
8415 (w32_read_socket): Use EQ to compare frames.
60a653f1 8416
048addec 84172001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 8418
048addec
JD
8419 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
8420 OVERLAPS_P.
60a653f1 8421
048addec 84222001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8423
048addec
JD
8424 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
8425 `gcpro3' and `gcpro4'.
60a653f1 8426
048addec 8427 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 8428
048addec 84292001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8430
048addec 8431 * ccl.c: Use AREF and ASIZE.
60a653f1 8432
048addec 84332001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8434
048addec
JD
8435 * lisp.h (run_hook_list_with_args): Remove.
8436 (LIST_END_P): Fix call to wrong_type_argument.
8437 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 8438
048addec 84392001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8440
048addec
JD
8441 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
8442 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 8443
048addec
JD
8444 * eval.c: Use AREF and ASIZE.
8445 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 8446
048addec
JD
8447 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
8448 which match the end of the file-name.
8449 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
8450 is not a valid env var, but leave it as is instead.
60a653f1 8451
048addec
JD
8452 * keymap.c (access_keymap): Handle t bindings like nil bindings.
8453 Make nil bindings in char-tables transparent.
8454 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 8455
048addec 84562001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 8457
048addec
JD
8458 * textprop.c (set_text_properties_1): Allow START, END in either order.
8459 Do nothing if range is empty.
60a653f1 8460
048addec 8461 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 8462
048addec
JD
8463 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
8464 (clean): Not here.
60a653f1 8465
048addec 84662001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8467
048addec
JD
8468 * textprop.c (set_text_properties_1): Clearly mark that the
8469 interval should not be empty.
60a653f1 8470
048addec
JD
8471 * intervals.c (graft_intervals_into_buffer):
8472 Don't call set_text_properties_1 on an empty interval.
60a653f1 8473
048addec 84742001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 8475
048addec 8476 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 8477
048addec
JD
8478 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
8479 don't lose the data in it.
60a653f1 8480
048addec 84812001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 8482
048addec 8483 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 8484
048addec 8485 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 8486
048addec 8487 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 8488
048addec 84892001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8490
048addec 8491 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 8492
048addec 84932001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 8494
048addec
JD
8495 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
8496 Niemitalo <kon@iki.fi>.
60a653f1 8497
048addec 84982001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 8499
048addec 8500 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 8501
048addec
JD
8502 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
8503 (Fx_show_tip): Block input during frame creation.
8504 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 8505
048addec 85062001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 8507
048addec
JD
8508 * lread.c (Fload): Detect recursive load error for more than 3
8509 nestings of the same file.
8510 (Vrecursive_load_depth_limit): Variable deleted.
8511 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 8512
048addec 85132001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 8514
048addec
JD
8515 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
8516 mouse position if either left or top is not specified.
60a653f1 8517
048addec
JD
8518 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
8519 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
8520 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
8521 (my_create_tip_window): Assign tip_window.
8522 (x_create_tip_frame): Use same defaults as X.
8523 (compute_tip_xy): Remove unused variable. Use full screen width.
8524 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 8525
048addec
JD
8526 * w32term.c (x_after_update_window_line): Doc fix.
8527 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
8528 frames.
8529 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 8530
048addec
JD
8531 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
8532 for all Windowed systems.
60a653f1 8533
048addec 85342001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 8535
048addec
JD
8536 * msdos.c (IT_clear_screen): If the frame's faces are not yet
8537 realized, use the initial screen colors to clear the screen.
60a653f1 8538
048addec 85392001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8540
048addec
JD
8541 * textprop.c (Fset_text_properties): Remove unused variables
8542 `unchanged', `prev_changed', `s' and `len'.
60a653f1 8543
048addec
JD
8544 * search.c (Freplace_match): Remove unused variable `inslen'.
8545
8546 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
8547
85482001-11-22 Jason Rumney <jasonr@gnu.org>
8549
8550 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
8551 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
8552 (my_create_tip_window): New function.
8553 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
8554 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
8555
85562001-11-20 Jason Rumney <jasonr@gnu.org>
8557
8558 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
8559 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
8560
8561 * w32fns.c (Vw32_system_coding_system): Remove.
8562 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
8563
85642001-11-19 Stefan Monnier <monnier@cs.yale.edu>
8565
8566 * fileio.c (Fwrite_region): Move choose_write_coding_system to
8567 after build_annotations.
8568
8569 * syntax.c (describe_syntax): Add dummy arg.
8570 (describe_syntax_1): Update call to describe_vector.
8571
8572 * category.c (describe_category): Add dummy arg.
8573 (describe_category_1): Update call to describe_vector.
8574
8575 * keymap.c (Fdescribe_vector): Add `describer' parameter.
8576 (describe_command, describe_translation): Add dummy second param.
8577 (describe_map): Call elt_describer with two arguments.
8578 (describe_vector_princ): Add `fun' parameter.
8579 Call it instead of the hardcoded `princ'.
8580 (describe_vector): Add arg `args'.
8581 Pass it as a new second argument to elt_describer.
60a653f1 8582
048addec 8583 * keymap.h (describe_vector): Update prototype.
60a653f1 8584
048addec
JD
8585 * frame.c: Don't include keymap.h any more.
8586 (keys_of_frame): Remove.
60a653f1 8587
048addec 8588 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 8589
048addec 8590 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 8591
048addec 85922001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 8593
048addec
JD
8594 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
8595 if defined, 0 otherwise.
8596 (MAP_FAILED): Define if not defined and use it to test mmap failure.
8597 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 8598
048addec 85992001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 8600
048addec 8601 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 8602
048addec 86032001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 8604
048addec
JD
8605 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
8606 (x_draw_bar_cursor): If the background color of the glyph under
8607 the cursor equals the frame's cursor color, use the glyph's
8608 foreground color for drawing the bar cursor.
8609 (x_after_update_window_line): Clear internal border in different
8610 circumstances.
8611 (w32_set_vertical_scroll_bar): Check for width and height > 0.
8612 (w32_draw_relief_rect): Correct relief by 1 pixel.
8613 (x_set_glyph_string_background_width):
8614 Set extends_to_end_of_line_p if the row's fill_line_p is set and
8615 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
8616 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
8617 if cursor_in_non_selected_windows is false.
8618 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
8619 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
8620 Notice if cursor gets overwritten.
8621 (notice_overwritten_cursor): Renamed from
8622 note_overwritten_text_cursor. Rewritten to take glyph widths
8623 into account, and to take X positions as parameters.
8624 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
8625 around call to x_draw_glyphs.
8626 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
8627 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
8628 color to use for image glyph reliefs.
8629 (x_draw_image_relief): Accept zero tool_bar_button_relief.
8630 (glyph_rect): Remove unused variable `area'.
60a653f1 8631
048addec
JD
8632 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
8633 some items.
8634 (x_set_internal_border_width): Set frame garbaged when window
8635 doesn't exist yet.
8636 (Fx_create_frame): Accept zero tool_bar_button_relief.
8637 (x_clear_image_1, four_corners_best, image_background)
8638 (image_background_transparent): New functions.
8639 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
8640 (gs_format): Add `:background' entry.
8641 (lookup_image): Set IMG's background color if specified.
8642 (pbm_load, xbm_load_image, png_load): Set IMG's background field
8643 when appropriate.
8644 (x_clear_image_1): Reset `background_valid' and
8645 `background_transparent_valid' fields.
8646 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
8647 calculating it here. Set IMG's background_transparent field.
8648 (enum xpm_keyword_index): Add XPM_BACKGROUND.
8649 (enum png_keyword_index): Add PNG_BACKGROUND.
8650 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
8651 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
8652 (enum gif_keyword_index): Add GIF_BACKGROUND.
8653 (enum gs_keyword_index): Add GS_BACKGROUND.
8654 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
8655 Pre-calculate image background color where necessary.
8656 (x_create_x_image_and_pixmap, xbm_load, gs_load):
8657 Use display info's n_cbits entry for screen depth.
8658 (Fx_show_tip): Remove unused variables `buffer', `top',
8659 `left', `max_width' and `max_height'.
60a653f1 8660
048addec 8661 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 8662
048addec 86632001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 8664
048addec 8665 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 8666
048addec 86672001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 8668
048addec 8669 * frame.c (Fframe_live_p): Doc fix.
60a653f1 8670
048addec 86712001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 8672
048addec
JD
8673 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
8674 (message_dolog_marker3): New static variables hold three markers.
8675 (syms_of_xdisp): Initialize and staticpro them.
8676 (message_dolog): Use message_dolog_marker1..3 instead of
8677 allocating markers each time. Unchain them when done.
60a653f1 8678
048addec 86792001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 8680
048addec 8681 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 8682
048addec 86832001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 8684
048addec 8685 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 8686
048addec 86872001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 8688
048addec 8689 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 8690
048addec 86912001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 8692
048addec 8693 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 8694
048addec 86952001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 8696
048addec
JD
8697 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
8698 with invalid position.
60a653f1 8699
048addec 87002001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 8701
048addec 8702 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 8703
048addec
JD
8704 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
8705 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
8706 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 8707
048addec 8708 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 8709
048addec 87102001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 8711
048addec
JD
8712 * fileio.c (build_annotations): Split off the tail.
8713 (build_annotations_2): New fun. Extracted from build_annotations.
8714 (Fwrite_region): Split the call to build_annotations into two
8715 calls to build_annotations and build_annotations_2.
077907d4 8716
048addec 87172001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 8718
048addec
JD
8719 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
8720 clear_waiting_for_input with argument.
1756e2fb 8721
048addec 8722 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 8723
048addec 8724 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 8725
048addec 8726 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 8727
048addec 8728 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 8729
048addec 87302001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 8731
048addec
JD
8732 * fileio.c (choose_write_coding_system): New fun, extracted
8733 from Fwrite_region.
8734 (Fwrite_region): Use it.
fa336b91 8735
048addec
JD
8736 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
8737 (funcall_lambda, run_hook_with_args): Make static and add prototype.
8738 (ml_apply, find_handler_clause): Add prototype.
fa336b91 8739
048addec 87402001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 8741
048addec 8742 * config.in: Add #undef HAVE_COFF_H.
fa336b91 8743
048addec
JD
8744 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
8745 Required for ISC 4.1.
fa336b91 8746
048addec 87472001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 8748
048addec
JD
8749 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
8750 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 8751
048addec 87522001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 8753
048addec
JD
8754 The following changes are made to clean up the various internal
8755 references to the fringes to actually use the term `fringe' for
8756 them. Previously, they were called `flags areas', `bitmap areas',
8757 `left/right side of windows', or implicitly as `flags' or
8758 `bitmaps':
fa336b91 8759
048addec
JD
8760 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
8761 Comments fixed. Use renamed symbols.
06e8f738 8762
048addec 8763 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 8764
048addec
JD
8765 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
8766 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
8767 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 8768
048addec 8769 * msdos.c: Comment fix.
9ce647f4 8770
048addec 8771 * w32fns.c: Use renamed symbols.
9b784ab8 8772
048addec
JD
8773 * w32term.c: Comment fixes. Use renamed symbols.
8774 (fringe_bitmap_type): Renamed from bitmap_type.
8775 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
8776 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
8777 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 8778
048addec
JD
8779 * w32term.h: Comment fixes. Use renamed symbols.
8780 (fringes_extra): Renamed from flags_areas_extra.
8781 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
8782 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
8783 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
8784 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
8785 (FRAME_X_LEFT_FRINGE_WIDTH):
8786 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
8787 (FRAME_X_RIGHT_FRINGE_WIDTH):
8788 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 8789
048addec 8790 * widget.c: Use renamed symbols.
9f7e52b4 8791
048addec
JD
8792 * window.c: Comment fixes. Use renamed symbols.
8793 (coordinates-in-window-p): Doc fix.
fa336b91 8794
048addec 8795 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 8796
048addec 8797 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 8798
048addec 8799 * xfns.c: Use renamed symbols.
89512fcd 8800
048addec
JD
8801 * xterm.c: Comment fixes. Use renamed symbols.
8802 (fringe_bitmap_type): Renamed from bitmap_type.
8803 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
8804 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
8805 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 8806
048addec
JD
8807 * xterm.h: Comment fixes. Use renamed symbols.
8808 (fringes_extra): Renamed from flags_areas_extra.
8809 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
8810 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
8811 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
8812 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
8813 (FRAME_X_LEFT_FRINGE_WIDTH):
8814 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
8815 (FRAME_X_RIGHT_FRINGE_WIDTH):
8816 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
8817
88182001-11-15 Jason Rumney <jasonr@gnu.org>
8819
8820 * w32menu.c (add-menu-item): Make help_echo and radio buttons
8821 work for most menu items. From David Ponce
8822 <david.ponce@wanadoo.fr>.
8823
88242001-11-15 Gerd Moellmann <gerd@gnu.org>
8825
8826 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
8827 Some x_set_* function expect to be called even if old and new
8828 value are equal.
8829
8830 * xdisp.c (build_desired_tool_bar_string): Accept zero
8831 tool_bar_button_relief.
8832
8833 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
8834
8835 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
8836
8837 * xterm.c (x_draw_bar_cursor): If the background color of the
8838 glyph under the cursor equals the frame's cursor color, use
8839 the glyph's foreground color for drawing the bar cursor.
8840
8841 * dispnew.c (direct_output_forward_char): Fix character/byte
8842 position comparison.
7d18891d 8843
048addec 88442001-11-15 Miles Bader <miles@gnu.org>
d2936d21 8845
048addec
JD
8846 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
8847 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
8848 Update arguments to find_field.
8849 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
8850 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
8851 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
8852 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 8853
048addec 88542001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 8855
048addec 8856 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 8857
048addec
JD
8858 * dispextern.h (image_background, image_background_transparent):
8859 Conditionalize on HAVE_X_WINDOWS.
7d18891d 8860
048addec 88612001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 8862
048addec 8863 * print.c (Fprin1_to_string): Doc fix.
7d18891d 8864
048addec 8865 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 8866
048addec 8867 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 8868
048addec 8869 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 8870
048addec 8871 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 8872
048addec 8873 * eval.c (syms_of_eval): Doc fix.
7d18891d 8874
048addec 8875 * coding.c (syms_of_coding): Doc fix.
7d18891d 8876
048addec 8877 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 8878
048addec 8879 * dispnew.c (syms_of_display): Doc fix.
9474c847 8880
048addec 8881 * category.c (Fget_unused_category): Doc fix.
9474c847 8882
048addec 8883 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 8884
048addec 88852001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 8886
048addec 8887 * print.c (prin1, print): Doc fix.
e3059a5d 8888
048addec 88892001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 8890
048addec
JD
8891 * fontset.h: Remove declarations of variables
8892 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 8893
048addec
JD
8894 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
8895 `Vclip_large_size_font'.
eae936e2 8896
048addec 88972001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 8898
048addec 8899 * w32fns.c: Doc fix.
ddb67bdc 8900
048addec 89012001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 8902
048addec 8903 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 8904
048addec 8905 * fns.c: Doc fix.
6e1b91d7 8906
048addec 8907 * emacs.c: Doc fix.
1c1d3d69 8908
048addec 8909 * coding.c: Doc fix.
1c1d3d69 8910
048addec
JD
8911 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
8912 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
8913 `new style' [w/`doc:' keyword].
b6f4c7ba 8914
048addec 89152001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 8916
048addec
JD
8917 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
8918 LeaveNotify events. Only FocusIn and FocusOut do that now.
8919 (x_display_and_set_cursor): Do display hollow cursors in active
8920 minibuffer windows when they are not selected.
b6f4c7ba 8921
048addec 89222001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 8923
048addec
JD
8924 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
8925 * w32term.c: Change doc-string comments to `new style'.
8926 [w/`doc:' keyword]. Doc fixes.
a89f435d 8927
048addec
JD
8928 * w32fns.c: Don't define max.
8929 (Fx_open_connection): Only execute once.
a4cd0cd7 8930
048addec 89312001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 8932
048addec
JD
8933 * ccl.c: Change macros to use do-while block instead of if-else.
8934 Use braces to follow GNU Coding Standards.
eafb659a 8935
048addec 89362001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 8937
048addec 8938 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 8939
048addec 8940 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 8941
048addec
JD
8942 * insdel.c (replace_range): Use adjust_markers_for_replace
8943 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 8944
048addec 8945 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 8946
048addec
JD
8947 * textprop.c (set_text_properties_1): New subroutine
8948 broken out of set_text_properties.
8949 (set_text_properties): Use set_text_properties_1.
91823618 8950
048addec
JD
8951 * intervals.c (graft_intervals_into_buffer):
8952 Use set_text_properties_1 to clear out properties.
91823618 8953
048addec
JD
8954 * search.c (Freplace_match): Use replace_range to insert
8955 and delete. Don't request property inheritance from
8956 surrounding text.
86928dfb 8957
048addec 89582001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 8959
048addec
JD
8960 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
8961 vertical fonts. Allow them if face name is explicitly specified.
8962 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 8963
048addec 89642001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 8965
048addec
JD
8966 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
8967 instead of malloc/free.
a78e0303 8968
048addec 89692001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 8970
048addec
JD
8971 * xfaces.c (merge_face_vectors): Use braces to follow GNU
8972 Coding Standards.
8973 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 8974
048addec 8975 * buffer.c (Fbury_buffer): Likewise.
0c99b139 8976
048addec 8977 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 8978
048addec
JD
8979 * coding.c (encode_coding): Use precomputed value of `src'.
8980 (encode_coding): Remove unused variable `src_end'.
8981 (code_convert_region): Remove unused variables `count'.
830ddd77 8982
048addec 89832001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 8984
048addec
JD
8985 * w32term.c (x_display_and_set_cursor): Do not move system caret
8986 if cursor_glyph is NULL.
55c6d645 8987
048addec 89882001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 8989
048addec 8990 * keymap.c (access_keymap): Fix compilation error.
5de38842 8991
048addec 89922001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 8993
048addec 8994 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 8995
048addec 89962001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 8997
048addec
JD
8998 * intervals.c (graft_intervals_into_buffer):
8999 Remove #ifdef'd-out code.
9000 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 9001
048addec
JD
9002 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
9003 code (eval-current-buffer).
9004 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 9005
048addec 90062001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 9007
048addec 9008 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 9009
048addec 90102001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 9011
048addec 9012 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 9013
048addec
JD
9014 * keyboard.c (make_lispy_event): Check integerness and fix
9015 Lisp_Object/int mixup.
17893c65 9016
048addec 90172001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 9018
048addec 9019 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 9020
048addec
JD
9021 * fontset.c (fontset_font_pattern): Remove unused variable
9022 `family_registry'.
d5360cc7 9023
048addec 9024 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 9025
048addec 90262001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 9027
048addec 9028 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 9029
048addec
JD
9030 * buffer.c (Fkill_buffer): Don't delete auto save file
9031 if buffer is modified.
d9d54213 9032
048addec 90332001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 9034
048addec
JD
9035 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
9036 CHECK_NUMBER_CDR.
b116830b 9037
048addec 90382001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 9039
048addec 9040 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 9041
048addec 90422001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 9043
048addec 9044 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 9045
048addec 90462001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 9047
048addec 9048 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 9049
048addec 90502001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 9051
048addec
JD
9052 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
9053 the program image directly.
982f6c7e 9054
048addec 90552001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 9056
048addec 9057 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 9058
048addec 90592001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 9060
048addec
JD
9061 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
9062 and CHECK_BUFFER.
d31053f9 9063
048addec
JD
9064 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
9065 (record_char): Likewise.
d31053f9 9066
048addec
JD
9067 * keyboard.c (make_lispy_event): Don't insist a drag event must
9068 move to a different buffer position. Instead, check for moving at
9069 least double_click_fuzz.
982f6c7e 9070
048addec 9071 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 9072
048addec 9073 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 9074
048addec
JD
9075 * indent.c (current_column_1, Fmove_to_column): Separate the code
9076 for display-table glyphs from the code for buffer text, to fix
9077 bugs in the former.
830047fd 9078
048addec 90792001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 9080
048addec
JD
9081 * buffer.c (Fbuffer_local_value): New function.
9082 (syms_of_buffer): Defsubr it.
2df5238c 9083
048addec
JD
9084 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
9085 value of `cursor-in-non-selected-windows'.
4e397688 9086
048addec
JD
9087 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
9088 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
9089 (syms_of_xdisp): Initialize it.
48b0f3ae 9090
048addec 90912001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 9092
048addec 9093 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 9094
048addec
JD
9095 * coding.c: Change doc-string comments to `new style' [w/`doc:'
9096 keyword].
3ecaf7e5 9097
048addec
JD
9098 * eval.c (top_level_value, top_level_set): Remove commented and
9099 #ifdef'd-out code.
9100 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 9101
048addec 91022001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 9103
048addec 9104 * xfns.c: Include unistd.h, if it exists.
8db2e33b 9105
048addec 9106 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 9107
048addec 9108 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 9109
048addec 91102001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 9111
048addec
JD
9112 * lisp.h (CHECK_STRING_CAR): New macro.
9113 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
9114 treating XCAR and XCDR as lvalues.
9115 (openp): Use CHECK_STRING_CAR.
9116 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 9117
048addec 91182001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 9119
048addec
JD
9120 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
9121 (SIGMASKTYPE): Define.
1b1acc13 9122
048addec 9123 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 9124
048addec 91252001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 9126
048addec
JD
9127 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
9128 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
9129 Fix typos in comments.
6cb16f95 9130
048addec
JD
9131 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
9132 and #ifdef'd-out code.
9133 Fix and reindent comments.
6cb16f95 9134
048addec 9135 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 9136
048addec
JD
9137 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
9138 argument `i' in macros.
6cb16f95 9139
048addec
JD
9140 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
9141 `i' in macros.
7e9d3c2f 9142
048addec
JD
9143 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
9144 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
9145 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
9146 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
9147 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
9148 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
9149 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
9150 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
9151 in macros.
7e9d3c2f 9152
048addec
JD
9153 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9154 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
9155 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
9156 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
9157 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
9158 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
9159 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
9160 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
9161 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
9162 (remove unused second argument).
7e9d3c2f 9163
048addec 91642001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 9165
048addec
JD
9166 * syntax.c (describe_syntax): New wrapper.
9167 (Finternal_describe_syntax_value): Rename from describe_syntax.
9168 Don't insert space at front and \n at the end.
9169 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 9170
048addec
JD
9171 * regex.c (re_wctype): Try to fix some warnings.
9172 (regcomp, regexec): Don't forget the __restrict.
9ba48103 9173
048addec 91742001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 9175
048addec 9176 * textprop.c (Fget_char_property): Doc fix.
9ba48103 9177
048addec 91782001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 9179
048addec 9180 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 9181
048addec 9182 * data.c (Fsetq_default): Ditto.
c22e59e1 9183
048addec 9184 * callint.c (Finteractive): Ditto.
9271ed2c 9185
048addec 91862001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 9187
048addec
JD
9188 * macros.c: Don't include keymap.h any more.
9189
91902001-11-01 Richard M. Stallman <rms@gnu.org>
9191
9192 * data.c (Fmake_local_variable): Doc fix.
9193
9194 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
9195 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 9196
048addec 9197 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
9198 bindings along with or instead of the buffer local map.
9199 Make the overriding maps override what they should.
9200
f00691a3 92012001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
9202
9203 * window.c (grow_mini_window): Fix typo in comment.
9204
27188d11
GM
92052001-11-01 Gerd Moellmann <gerd@gnu.org>
9206
7b49b9d2
GM
9207 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
9208 (XTset_vertical_scroll_bar): Likewise.
9209
43f7c3ea
GM
9210 * xfns.c (x_build_heuristic_mask): Use four_corners_best
9211 instead of IMAGE_BACKGROUND.
c22e59e1 9212
b350c2e5
GM
9213 * xfns.c (four_corners_best): Reindent.
9214
c22e59e1 9215 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
9216 Handle :box so that it is possible to specify sexprs.
9217
bf00d461
EZ
92182001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
9219
9220 * s/hpux11.h: New file.
9221
f00691a3 92222001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 9223
2b209b97
PJ
9224 * emacs.c (USAGE1): Show command line option --no-window-system
9225 instead of --no-windows in usage.
9226 (standard_args): Rename --no-windows to --no-window-system.
9227 (bug_reporting_address): Follow Emacs coding conventions.
9228
9dbc9081
PJ
9229 * eval.c (Fcommandp): Doc fix.
9230 Change doc-string comments to `new style' [w/`doc:' keyword].
9231
4e10df59
PJ
9232 * frame.c (Fframe_live_p): Doc fix.
9233
9234 * buffer.c (selective-display-ellipses): Doc fix.
9235
dd387b25
GM
92362001-10-31 Gerd Moellmann <gerd@gnu.org>
9237
fe957e65
GM
9238 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
9239
dd387b25
GM
9240 * xfaces.c (realize_x_face): If C is not a single-byte character,
9241 set the face's colors_copied_bitwise_p instead of the defaulted_p
9242 members which have a different meaning.
9243 (free_face_colors): Do nothing for a face whose colors have been
9244 copied bitwise.
9245
c22e59e1 9246 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 9247
f00691a3 92482001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 9249
687784e8
PJ
9250 * marker.c, mocklisp.c: Change doc-string comments to `new style'
9251 [w/`doc:' keyword].
2e1280f8 9252
b9d9a9b9
GM
92532001-10-31 Gerd Moellmann <gerd@gnu.org>
9254
9255 * fns.c (require_unwind): Return Lisp_Object.
9256
f00691a3 92572001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 9258
fa1361cb
PJ
9259 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
9260 (last-input-char): Revert doc-string to be the same as the
9261 doc-string of `last-input-event'.
9262
6c465a15 9263 * xdisp.c: Fix typos in comments.
48400103 9264
eafa3196
GM
92652001-10-31 Gerd Moellmann <gerd@gnu.org>
9266
9267 * window.c (grow_mini_window): Handle case that the root
9268 window is already smaller than the nominal mininum height.
9269
747d3f2a
SM
92702001-10-30 Stefan Monnier <monnier@cs.yale.edu>
9271
bf9bb76f
SM
9272 * emacs.c (main): Don't call keys_of_macros any more.
9273
9274 * lisp.h (keys_of_macros): Remove.
9275
9276 * macros.c (keys_of_macros): Remove.
9277
747d3f2a
SM
9278 * xfaces.c (Fface_attribute_relative_p): Declare args.
9279
5e905a57
JR
92802001-10-30 Jason Rumney <jasonr@gnu.org>
9281
9282 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
9283 (enum_font_cb2): Ignore fonts with vertical orientation.
9284
3a426197
RS
92852001-10-30 Richard M. Stallman <rms@gnu.org>
9286
9287 * keyboard.c (Finput_pending_p): Doc fix.
9288
a742d646
GM
92892001-10-30 Gerd Moellmann <gerd@gnu.org>
9290
259cf6bc
GM
9291 * xterm.c (x_after_update_window_line): Don't run the code
9292 clearing in borders for rows whose visible height is 0.
9293
3f99f948
GM
9294 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
9295 resized_p flag is set. If not set, use the much less flickering
9296 method previously used.
9297
9298 * dispnew.c (change_frame_size_1): Set frame's resized_p.
9299
9300 * frame.h (struct frame) <resized_p>: New member.
9301
b4a3be43
GM
9302 * lread.c (to_multibyte): Ensure read_buffer is at least twice
9303 as large as the number of bytes to convert.
747d3f2a 9304
a742d646
GM
9305 * lread.c (to_multibyte): New function.
9306 (read1): Use it.
9307
cacbb9e9
EZ
93082001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
9309
9310 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
9311
99cb6b2f
GM
93122001-10-30 Gerd Moellmann <gerd@gnu.org>
9313
327f42ee 9314 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
9315 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
9316 if the row's fill_line_p is set and drawing the last glyph with
9317 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 9318
99cb6b2f
GM
9319 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
9320
8e8223e2
SM
93212001-10-29 Stefan Monnier <monnier@cs.yale.edu>
9322
9323 * xmenu.c: Include coding.h and charset.h.
9324 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
9325 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
9326 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
9327 Explicitly set wv->help. Use `TRUE' rather than `True'.
9328 (menu_help_callback): Use empty_string.
9329
9330 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
9331 (Fx_popup_dialog): Explicitly init f.
9332 (w32_menu_display_help): Use empty_string.
9333
4d083a8f
RS
93342001-10-29 Richard M. Stallman <rms@gnu.org>
9335
b2304472
RS
9336 * fns.c (Frequire): Detect recursive try to require the same
9337 feature 3 or more levels deep, and get error.
9338 (require_unwind): New subroutine.
9339 (require_nesting_list): New variable.
9340 (syms_of_fns): Init and staticpro it.
9341
4d083a8f
RS
9342 * print.c (print_object): Clarify indication of insertion type.
9343
2fe41216
EZ
93442001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
9345
90480000
EZ
9346 * coding.c (syms_of_coding): Document that locale-coding-system is
9347 used for decoding input on X.
9348
2fe41216
EZ
9349 * window.c (Fscroll_left, Fscroll_right): Doc fix.
9350
f00691a3 93512001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
9352
9353 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
9354 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
9355
60ebcfe8
GM
93562001-10-29 Gerd Moellmann <gerd@gnu.org>
9357
9a7bdceb
GM
9358 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
9359 use NO_CURSOR if cursor_in_non_selected_windows is false.
9360
3f08fcd2
GM
9361 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
9362 the slant attribute if FRAME is t.
9363
0ccfdad2
GM
9364 * xfns.c (x_set_internal_border_width): Set frame garbaged
9365 when X window doesn't exist yet.
9366
ef253080
GM
9367 * xterm.c (x_after_update_window_line): Clear internal border
9368 in different circumstances.
b116830b 9369
60ebcfe8
GM
9370 * xterm.c (XTread_socket) <KeyPress>: Don't use
9371 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
9372 <handa@etl.go.jp>.
9373
73d25f9c
EZ
93742001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
9375
9376 * m/ibms390.h: New file. From Adam Thornton
9377 <athornton@sinenomine.net>.
9378
cac1daf0
GM
93792001-10-28 Gerd Moellmann <gerd@gnu.org>
9380
053b3256 9381 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 9382
cac1daf0
GM
9383 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
9384 a loop counter.
9385
f00691a3 93862001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 9387
186486eb
PJ
9388 * emacs.c: Use argv[0] instead of emacs when -t was specified.
9389
4707d2d0
PJ
9390 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
9391 keyword].
9392 Fix typos in comments.
b116830b 9393
d883731c
PJ
9394 * emacs.c (bug_reporting_address): New function.
9395 Use it when displaying usage message.
9396
04012254
PJ
9397 * minibuf.c (read_minibuf): Remove unused external declaration of
9398 variable `Qread_only'.
9399
13b1a09c
PJ
9400 * keymap.c (access_keymap): Remove unused variable `charset'.
9401
5bbf4378
MB
94022001-10-28 Miles Bader <miles@gnu.org>
9403
9404 * xfaces.c (merge_face_heights): Handle TO being relative as well.
9405 Remove #ifdef'd-out code.
9406 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
9407 (syms_of_xfaces): Initialize them.
9408
1ce1e4ee
JR
94092001-10-27 Jason Rumney <jasonr@gnu.org>
9410
9411 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
9412 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
9413 position using the system caret.
9414
9415 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
9416 (w32_system_caret_height, w32_system_caret_x)
9417 (w32_system_caret_y): New variables for tracking system caret.
9418 (w32_initialize): Initialize them.
c2d53558 9419 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 9420
c2d53558
SM
9421 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
9422 New messages types.
1ce1e4ee
JR
9423
9424 * w32term.c (note_mouse_highlight): Clear old help_echo.
9425
f00691a3 94262001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 9427
bb4600a4
PJ
9428 * xterm.c: Fix typo in a comment.
9429
7db35a48
PJ
9430 * emacs.c: Fix typos in comments.
9431 Remove unnecessary spaces.
9432 Change doc-string comments to `new style' [w/`doc:' keyword].
9433 (USAGE2): Fix typos in usage string.
9434
a7248e4f
PJ
9435 * xterm.c: Fix typo in a comment.
9436
4e30ce42
PJ
9437 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
9438 emacs.c.
9439
62725a92
GM
94402001-10-27 Gerd Moellmann <gerd@gnu.org>
9441
798dbe1f 9442 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 9443 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
9444 farther backward when target_y was not reached.
9445
62725a92
GM
9446 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
9447 Display errno only if non-zero.
9448 (sound_warning): New function.
9449 (vox_configure): Don't treat failing to set sample rate as error.
9450 (various places): Improve error messages.
9451
d4e34d24
EZ
94522001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
9453
944e6f60
EZ
9454 * fileio.c (Faccess_file): Run the argument filename through
9455 Fexpand_file_name, before using it.
9456
d4e34d24
EZ
9457 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
9458 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
9459
38d2af0c
GM
94602001-10-26 Gerd Moellmann <gerd@gnu.org>
9461
da80a8d5
GM
9462 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
9463
38d2af0c
GM
9464 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
9465 Fix clearing in the case of scroll bars on the right.
c2d53558 9466
45de4a6f 94672001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
9468
9469 * w32gui.h (XImage): Add a dummy typedef.
9470
fbd5ceb2
GM
94712001-10-26 Gerd Moellmann <gerd@gnu.org>
9472
c2d53558 9473 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 9474
b23236fb
EZ
94752001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
9476
9477 * frame.c (Fframe_parameter): Fix last change.
9478
5d991fc4
EZ
9479 * fileio.c: Revert last change (which removed old commented-out
9480 version of expand-file-name). Add a comment that explains why
9481 this old version should not be removed.
9482
879eadc3
GM
94832001-10-25 Gerd Moellmann <gerd@gnu.org>
9484
75700ff2
GM
9485 * frame.c (Fframe_parameter): Fix a bug whereby some
9486 ``artificial'' frame parameters, like `minibuffer' were not
9487 obtained by calling Fframe_parameters.
9488
dfe92a6a
GM
9489 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
9490 cursor differently.
9491
879eadc3
GM
9492 * xdisp.c (move_it_vertically_backward): Compute line height
9493 differently. Add heuristic to try to be more compatible to 20.x.
9494
e1010ebe
SM
94952001-10-25 Stefan Monnier <monnier@cs.yale.edu>
9496
d73a471b
SM
9497 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
9498
d6da5a06
GM
9499 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
9500 boolean.
e1010ebe 9501
f66bd220
MB
95022001-10-25 Miles Bader <miles@gnu.org>
9503
9504 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
9505 BG is a pointer to a structure, not a structure.
9506 (gif_format, png_format): Add missing commas.
9507
d436d538
RS
95082001-10-24 Richard M. Stallman <rms@gnu.org>
9509
9510 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 9511 (syms_of_xfaces): Defsubr it.
d436d538 9512
f00691a3 95132001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
9514
9515 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
9516 variable `area'.
9517
f00691a3 95182001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 9519
c2d53558 9520 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 9521
e2a57b34
MB
95222001-10-25 Miles Bader <miles@gnu.org>
9523
9524 * dispextern.h (struct image): Add `background',
9525 `background_valid', and `background_transparent' fields.
9526 (image_background, image_background_transparent): New declarations.
9527 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
9528 * xfns.c (image_background, image_background_transparent)
9529 (four_corners_best): New functions.
c2d53558 9530 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
9531 (gs_format): Add `:background' entry.
9532 (lookup_image): Set IMG's background color if specified.
9533 (pbm_load, xbm_load_image, png_load): Set IMG's background field
9534 when appropriate.
9535 (x_clear_image_1): Reset `background_valid' and
9536 `background_transparent_valid' fields.
9537 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
9538 calculating it here. Set IMG's background_transparent field.
9539 (enum xpm_keyword_index): Add XPM_BACKGROUND.
9540 (enum png_keyword_index): Add PNG_BACKGROUND.
9541 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
9542 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
9543 (enum gif_keyword_index): Add GIF_BACKGROUND.
9544 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 9545 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
9546 Pre-calculate image background color where necessary.
9547 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
9548 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
9549 color to use for image glyph reliefs.
9550
b547b6e8
GM
95512001-10-24 Gerd Moellmann <gerd@gnu.org>
9552
d9e3b8c6
GM
9553 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
9554 in full-width rows.
c2d53558 9555
b547b6e8
GM
9556 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
9557 Fix clearing of area not covered by scroll bar.
9558
f00691a3 95592001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
9560
9561 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
9562 and `real_start'.
c2d53558 9563 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
9564 (glyph_rect): Remove unused variable `area'.
9565
76cb5e06
GM
95662001-10-24 Gerd Moellmann <gerd@gnu.org>
9567
bdbdebff 9568 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
9569
9570 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
9571 (row_containing_pos): Take additional argument DY.
9572 Treat rows ending in middle of char differently.
62e33982
GM
9573 (display_line): Handle tabs on window systems differently.
9574
9575 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
9576 with additional argument.
9577
9578 * dispextern.h (row_containing_pos): Adjust prototype.
9579
76cb5e06
GM
9580 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
9581 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
9582 (try_window_id, try_window_reusing_current_matrix)
9583 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 9584 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 9585
f00691a3 95862001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 9587
c9e60620
PJ
9588 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
9589 gnuemacs).
9590 (HAVE_BOXES): Fix typo in comment.
9591 (push_menu_pane): Fix typo in comment.
9592
3b552d56
PJ
9593 * xdisp.c: (display_prop_string_p): Remove unused local declaration
9594 of `Qwhen'.
9595 (single_display_prop_string_p): Remove unused local declarations
9596 of `Qwhen' and `Qmargin'.
9597 (string_buffer_position): Remove unused variable `around'.
9598 (store_frame_title): Remove unused variable `width'.
9599
15c565ac
PJ
9600 * window.c: Don't define max.
9601 (coordinates_in_window): Remove unused variable `uy'.
9602
a8818eb9
PJ
9603 * widget.c: Don't define max.
9604
996fee11
PJ
9605 * process.c: Don't define max.
9606 (create_process): Remove unused variable `buffer'.
9607
496e1a5b
GM
96082001-10-23 Gerd Moellmann <gerd@gnu.org>
9609
c2d53558 9610 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 9611
5905ae8b
EZ
96122001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
9613
9614 * xfaces.c (Finternal_set_lisp_face_attribute)
9615 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
9616 frame is on a windowed display.
9617
24db49fb
GM
96182001-10-23 Gerd Moellmann <gerd@gnu.org>
9619
c2d53558
SM
9620 * dispnew.c (sync_window_with_frame_matrix_rows):
9621 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
9622 of marginal areas.
9623
c2d53558 9624 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 9625
f0487f05
EZ
96262001-10-23 Andreas Schwab <schwab@suse.de>
9627
9628 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
9629 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
9630
f0a48a01
GM
96312001-10-23 Gerd Moellmann <gerd@gnu.org>
9632
c2d53558 9633 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
9634 REAL_END. Notice if cursor gets overwritten.
9635 (notice_overwritten_cursor): Take X positions as parameters.
9636 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
9637 around call to x_draw_glyphs.
9638
f00691a3 96392001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 9640
fc11dff0
PJ
9641 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
9642 instead of C) and usage.
a50a10a0 9643
fc11dff0
PJ
9644 * editfns.c (char-to-string): Fix argument names (use CHAR instead
9645 of C) and usage.
a50a10a0
PJ
9646
9647 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
9648 `left', `max_width' and `max_height'.
9649
8738febd
GM
96502001-10-23 Gerd Moellmann <gerd@gnu.org>
9651
9652 * xdisp.c (display_line): For a tab continued to the next line,
9653 set row's ends_in_middle_of_char_p.
9654
653c329b
GM
96552001-10-22 Gerd Moellmann <gerd@gnu.org>
9656
9657 * xdisp.c (display_line): Fix computation of continuation lines
9658 width for TABs.
9659
f00691a3 96602001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 9661
7ba51063
PJ
9662 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
9663 `Qlaplace'.
9664
f958c5ac
PJ
9665 * fileio.c: Remove unused code.
9666
eb360291
MB
96672001-10-22 Miles Bader <miles@gnu.org>
9668
9669 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
9670 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
9671 Remove `DOC_STRINGS_IN_COMMENTS' cases.
9672
98515cf0
JR
96732001-10-21 Jason Rumney <jasonr@gnu.org>
9674
9675 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
9676
93026d88
EZ
96772001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9678
9679 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
9680 (Finsert_string): Avoid the multi-line string literals warning.
9681
c9a95b79
MB
96822001-10-22 Miles Bader <miles@gnu.org>
9683
9684 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
9685 (Fdocumentation): Don't use it.
9686 (syms_of_doc): Don't initialize it.
9687
9688 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
9689 * print.c (Fwith_output_to_temp_buffer): Likewise.
9690 * window.c (Fsave_window_excursion): Likewise.
c2d53558 9691 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 9692 (Fsave_restriction): Likewise.
c2d53558
SM
9693 * eval.c (Frun_hooks, Frun_hook_with_args)
9694 (Frun_hook_with_args_until_failure)
9695 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
9696 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
9697 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
9698 (Funwind_protect, Fcondition_case): Likewise.
9699 * coding.c (Ffind_operation_coding_system): Likewise.
9700 * keyboard.c (Ftrack_mouse): Likewise.
9701
a3b10252
MB
97022001-10-21 Miles Bader <miles@gnu.org>
9703
c2d53558 9704 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
9705 (Fmake_hash_table): Add usage: string to doc string.
9706 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 9707 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
9708 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
9709 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
9710 (Fml_prefix_argument_loop): Likewise.
9711
f00691a3 97122001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 9713
c2d53558 9714 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 9715
c6f73eec
PJ
9716 * sysdep.c (init_sys_modes): Change doc-string comments to `new
9717 style' [w/`doc:' keyword].
9718
9719 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
9720 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
9721 comments to `new style' [w/`doc:' keyword].
9722
3cf3436e
JR
97232001-10-21 Jason Rumney <jasonr@gnu.org>
9724
9725 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
9726
c169b8f1
JR
9727 * w32term.c (remember_mouse_glyph): New function.
9728 (w32_mouse_position): Use it.
9729 (note_mouse_movement): If the mouse moved off the glyph, remember
9730 its new position.
c2d53558 9731
4fdd691b
JR
9732 * w32term.h (struct w32_output): Correct spelling of x_compatible.
9733 (w32_display_info): Add mouse_face_overlay.
9734
c169b8f1
JR
9735 * w32term.c (notice_overwritten_cursor): Renamed from
9736 note_overwritten_text_cursor. Rewritten to take glyph widths into
9737 account.
9738 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
9739 (fast_find_string_pos): New function.
9740 (fast_find_position): Return the correct vpos. Add parameter
9741 STOP. In the final row, stop before glyphs having STOP as object.
9742 Don't consider glyphs that are not from a buffer.
9743 (fast_find_position) [0]: Add a presumably more correct version
9744 for after 21.1.
9745 (expose_window_tree, expose_frame): Don't compute intersections here.
9746 (expose_window): Do it here instead.
9747 (expose_window_tree, expose_window, expose_line): Return 1 when
9748 overwriting mouse-face.
9749 (expose_window): If W is the window currently being updated, mark
9750 the frame garbaged.
9751 (expose_frame): If mouse-face was overwritten, redo it.
9752 (x_use_underline_position_properties): New variable.
9753 (syms_of_xterm): DEFVAR_BOOL it.
9754 (x_draw_glyph_string): Add comment to use it in future.
9755 (x_draw_glyph_string): Restore clipping after drawing box.
9756 Fix a computation of the underline position.
9757 (w32_get_glyph_string_clip_rect): Minor cleanup.
9758 (x_fill_stretch_glyph_string): Remove an assertion.
9759 (x_produce_glyphs): Don't convert multibyte characters
9760 to unibyte characters in unibyte buffers.
9761 (cursor_in_mouse_face_p): New function.
9762 (x_draw_stretch_glyph_string): Use it to choose a different GC
9763 when drawing a cursor within highlighted text. Don't draw
9764 background again if it has already been drawn.
9765 (x_draw_glyph_string_box): Don't draw a full-width
9766 box just because the glyph row's full_width_p flag is set.
9767 (x_draw_glyphs): Fix computation of rightmost x for
9768 full-width rows.
9769 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
9770 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
9771 change bottom shadow accordingly. Some cleanup.
9772 (x_update_window_end): Handle overwritten mouse face
9773 also for tool bar windows.
9774 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
9775 DRAW is DRAW_IMAGE_RAISED.
9776 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
9777 actually redrawn. Make the function static.
9778 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
9779 optimize away highlighting if we pass over that same overlay again.
9780 (note_mouse_highlight): Call mouse_face_overlay_overlaps
9781 to detect a case where we have to highlight a different region
9782 despite not having left the currently highlighted region.
9783 Set mouse_face_overlay in the x_display_info. Avoid changing the
9784 mouse pointer shape when show_mouse_face has already done it, or
9785 there is no need. Handle mouse-face and help-echo in strings.
9786 (glyph_rect): New function.
9787 (w32_mouse_position): Use it to raise the threshold for mouse
9788 movement event generation.
9789 (w32_initialize_display_info): Initialize the x_display_info's
9790 mouse_face_overlay.
9791 (w32_set_vertical_scroll_bar): Don't clear a zero height
9792 or width area.
9793 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
9794 a widget to zero height.
9795
3cf3436e 9796 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 9797 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
9798 equivalents in menu_items.
9799 (w32_menu_show): Don't overwrite an item's name with its key
9800 description in case the description is a multibyte string.
9801 (single_submenu): Some cleanup.
9802
9803 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
9804 (postprocess_image): New function.
9805 (lookup_image): Call it for all image types except PostScript.
9806 (x_kill_gs_process): Call postprocess_image.
9807 (tiff_error_handler, tiff_warning_handler): New functions.
9808 (tiff_load): Install them as handlers.
9809 (x_kill_gs_process): Recognize if someone has cleared the image
9810 cache under us.
9811 (valid_image_p): Protect better against invalid image
9812 specifications. Previous code could signal an error.
9813 (Fx_hide_tip, Fshow_tip): Doc fix.
9814 (Fv_max_tooltip_size): New variable.
9815 (syns_of_xfns): DEFVAR_LISP it.
9816 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
9817 window buffer to *tip* right after creating the frame. Set frame's
9818 window_width. Use a maximum tooltip size specified by
9819 Vx_max_tooltip_size, if that has valid contents.
9820 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
9821 Make sure the tooltip is completely visible.
9822 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
9823 (Fx_create_frame): Adjust the frame's height for presence
9824 of the tool bar before calling x_figure_window_size.
9825 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
9826 when the window gets smaller.
9827 (x_set_foreground_color): Set frame's cursor_pixel.
9828 (x_set_foreground_color, x_set_background_color): Cleaned up.
9829 (x_set_font): Handle case of x_new_fontset returning the same name
9830 as before, although there was a change in fontsets.
9831
386ca361
MB
98322001-10-21 Miles Bader <miles@gnu.org>
9833
c2d53558 9834 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
9835 (Flogxor): Add usage: string to doc string.
9836 * charset.c (Fstring): Likewise.
9837 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
9838 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
9839
f00691a3 98402001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 9841
03be2694
PJ
9842 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
9843
9844 * alloc.c: Reindent DEFUNs with doc: keywords.
9845
9846 * abbrev.c (Finsert_abbrev_table_description): Reindent.
9847
14ff1ee0
PJ
9848 * frame.c: Change doc-string comments to `new style' [w/`doc:'
9849 keyword].
9850
2f147815 9851See ChangeLog.9 for earlier changes.
6922b018
KH
9852
9853;; Local Variables:
49b3bd82 9854;; coding: iso-2022-7bit
6922b018 9855;; End:
2a34a036 9856
2f147815 9857 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
9858 Copying and distribution of this file, with or without modification,
9859 are permitted provided the copyright notice and this notice are preserved.