(Fsubstitute_command_keys): Remove spurious casts.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5ceea398
RS
12003-04-16 Richard M. Stallman <rms@gnu.org>
2
3 * xdisp.c (try_window, try_window_reusing_current_matrix):
4 When at end of window, set window_end_pos to Z-ZV.
5
6 * buffer.c (Foverlay_recenter): Doc fix.
7
d243e605
AC
82003-04-14 Andrew Choi <akochoi@shaw.ca>
9
10 * macterm.c (mac_check_for_quit_char): Don't check more often than
11 once a second.
12
6901b111
SM
132003-04-11 Stefan Monnier <monnier@cs.yale.edu>
14
15 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
16 specially, so that they can't hide an implicit switch-frame event.
17 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
18 (head_table): Use switch-frame as event_kind for select-window.
19 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
20
21 * editfns.c (Fformat): Lisp_Object/int mixup.
22 (format2): Remove unused var numargs.
23
e301806f 242003-04-11 Kenichi Handa <handa@m17n.org>
aa95b710 25
6901b111 26 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
aa95b710
KH
27 (Qafter_insert_file_set_coding): New variable.
28 (syms_of_fileio): Initialize and staticpro it. Delete declaration
29 for after-insert-file-adjust-coding-function.
30 (Finsert_file_contents): Call Qafter_insert_file_set_coding
31 instead of Vafter_insert_file_adjust_coding_function.
32
38914424
KH
332003-04-11 Kenichi Handa <handa@m17n.org>
34
35 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
36
37 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
38 string. Callers changed.
39
402003-04-10 Kenichi Handa <handa@m17n.org>
a288d979 41
6901b111 42 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
a288d979 43 (syms_of_fileio): Declare it as a lisp variable.
6901b111
SM
44 (Finsert_file_contents):
45 Call Vafter_insert_file_adjust_coding_function before calling
a288d979
KH
46 decode-format.
47
f979dc05
JD
482003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
49
50 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
51 get GtkAdjustment as widget now is a GtkRange.
52
53 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
54 GtkRange to avoid memory leak.
55
f8c6b4c2 562003-04-09 Kenichi Handa <handa@m17n.org>
cb98871c 57
50ebc53d
KH
58 * xfaces.c (Vface_font_rescale_alist): New variable.
59 (struct font_name): New member rescale_ratio.
60 (font_rescale_ratio): New function.
6901b111 61 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
50ebc53d
KH
62 (better_font_p): On comparing point sized, pay attention to
63 recale_ratio member of fonts.
64 (build_scalable_font_name): Reflect font->rescale_ratio in the
65 font name.
6901b111 66 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
50ebc53d 67
cb98871c
KH
68 * lread.c (read1): Before calling index, check if the 2nd
69 arguemnt is in ASCII range.
70
4773b8ca
RS
712003-04-08 Richard M. Stallman <rms@gnu.org>
72
b0ada147
RS
73 * fileio.c (Ffile_symlink_p): Doc fix.
74
75 * editfns.c (Fformat): Translate positions of text properties
76 in the format string to apply them to the result.
77
4773b8ca
RS
78 * fileio.c (Finsert_file_contents): Doc fix.
79 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
80
812003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
6901b111 82
4773b8ca
RS
83 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
84
e8f25745 852003-04-08 Steven Tamm <steventamm@mac.com>
b0ada147 86
e8f25745
ST
87 * mac.c (init_mac_osx_environment): Switch libexec and bin so
88 that self-contained application finds libexec files.
89
f8c6b4c2 902003-04-08 Kenichi Handa <handa@m17n.org>
2310d84c 91
6901b111
SM
92 * coding.c (code_convert_region_unwind):
93 Set Vlast_coding_system_used to the argument.
2310d84c
KH
94 (code_convert_region): If post-read-conversion function changed
95 the value of last-coding-sytem, keep the new value in
96 coding->symbol so that it won't be overridden.
97 (run_pre_post_conversion_on_str): Likewise.
7c086845
KH
98 (coding_system_accept_latin_extra_p): New function.
99 (find_safe_codings): Pay attention to characters registered in
100 latin-extra-code-table.
2310d84c 101
39c9a034
TTN
1022003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
103
104 * Makefile.in (md5.o): Add missing dependency info.
105
eb67c5d6
RS
1062003-04-06 Richard M. Stallman <rms@gnu.org>
107
108 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
109
110 * marker.c (verify_bytepos): New function.
111
112 * intervals.c (set_intervals_multibyte_1): When becoming
113 multibyte, adjust right and left child sizes to a whole set of
114 characters. If an interval gets zero total-length, delete it.
115 If an interval consists of just its children, delete one of them.
116
117 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
118 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
39c9a034 119
eb67c5d6
RS
120 * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
121 All calls deleted.
122 (lisp_malloc): Do the work here directly.
123
b1f81fc5
JB
1242003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
125
126 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
127 char tables.
128
1292003-04-04 Kenichi Handa <handa@m17n.org>
aa8b70ae
KH
130
131 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
132 destructively change "%S" to "%s".
133
774666fb
MB
1342003-04-03 Miles Bader <miles@gnu.org>
135
136 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
137 always set.
138
19c37f01
DL
1392003-04-01 Dave Love <fx@gnu.org>
140
141 * xfns.c (xpm_lookup_color): Grok "opaque".
142
2f4b24c3
AC
1432003-03-31 Andrew Choi <akochoi@shaw.ca>
144
145 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
146 parent window ID.
147
148 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
149
150 * macterm.h (struct mac_output): Define x_pixels_diff and
151 y_pixels_diff.
b1f81fc5 152
9443fcf6
JB
1532003-03-31 Juanma Barranquero <lektu@terra.es>
154
155 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
156 blockinput.h and files included from it.
157
e072891b
KS
1582003-03-31 Kim F. Storm <storm@cua.dk>
159
160 The following changes consolidates the common code related to
161 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
162 files into frame.c.
9443fcf6 163
e072891b
KS
164 * frame.c: Include blockinput.h.
165 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
166 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
167 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
168 related vars here.
169 (struct frame_parm_table, frame_parms): New table for describing
170 frame parameters and their associated Q-variable.
171 The order of the parameters corresponds to the sequence of the
172 frame_parm_handlers table in redisplay_interface.
173 (x_fullscreen_move, x_set_frame_parameters)
174 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
175 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
176 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
177 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
178 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
179 Generic functions for processing of frame parameters.
180 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
181 (display_x_get_resource, x_get_resource_string): Functions for
182 generic access to X resources.
183 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
184 (x_default_parameter, Fx_parse_geometry): Functions for generic
185 access to frame parameters.
6901b111
SM
186 (x_figure_window_size): Generic calculation of frame size.
187 Fixed to add space needed for tool bar. Also setup size_hint_flags.
e072891b
KS
188 (syms_of_frame): Intern and staticpro frame parameter variables.
189 Defvar_lisp Vx_resource_class and Vx_resource_name here.
190 Defsubr Sx_get_resource and Sx_parse_geometry.
9443fcf6 191
e072891b
KS
192 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
193 parameter related vars defined in frame.c.
194 (EMACS_CLASS): Define here.
195 (enum FULLSCREEN_*): Define here.
196 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
197 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
198 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
199 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
200 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
201 (x_set_visibility, x_set_autoraise, x_set_autolower)
202 (x_set_unsplittable, x_set_vertical_scroll_bars)
203 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
204 (x_figure_window_size): Add prototypes.
205
206 * dispextern.h (frame_parm_handler): New typedef.
207 (struct redisplay_interface): New member frame_parm_handlers.
208 (enum resource_types): Move declaration here.
209 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
210 (x_default_parameter): Add prototypes.
211
212 * window.c: Remove extern decl for frame parameter vars.
213 (change_window_heights): New generic function;
214 replaces x_change_window_heights. All users changed.
215
216 * window.h (change_window_heights): Add prototype.
217
218 * xfaces.c: Remove extern decl for frame parameter vars.
219
220 * xterm.h (EMACS_CLASS): Remove. Use generic define.
221 (struct w32_display_info): Fix type of xrdb member.
222 (enum FULLSCREEN_*): Remove.
223 Remove prototypes for generic functions (in frame.h).
224
225 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
226 parameters now defined in frame.h and frame.c.
227 (Vx_resource_name): Remove. Use generic var.
228 (enum x_frame_parms): Remove (bogus, unused enum).
229 (check_x_display_info): Make non-static (for frame.c).
230 (struct x_frame_parm_table, x_frame_parms): Remove.
231 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
232 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
233 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
234 (x_change_window_heights, x_set_autoraise, x_set_autolower)
235 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
236 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
237 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
238 Remove. Use generic functions instead.
239 (enum resource_types): Remove.
240 (x_set_scroll_bar_default_width): New global function (for frame.c).
241 (Fx_create_frame): Depend on x_figure_window_size to add space for
242 toolbar and setup size_hint_flags.
243 (x_frame_parm_handlers): New table for redisplay_interface.
244 (syms_of_xfns): Don't intern/staticpro removed vars.
9443fcf6 245
e072891b
KS
246 * xterm.c: Remove unnecessary extern declarations.
247 (x_fullscreen_adjust): Remove. Use generic instead.
248 (x_redisplay_interface): Add x_frame_parm_handlers member.
249
250 * w32gui.h (XrmDatabase): New (dummy) typedef.
251
252 * w32term.h (EMACS_CLASS): Remove. Use generic define.
253 (struct w32_display_info): Fix type of xrdb member.
254 (enum FULLSCREEN_*): Remove.
255 (x_fullscreen_adjust): Remove prototype.
256
257 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
258 parameters now defined in frame.h and frame.c.
259 (Vx_resource_name): Remove. Use generic var.
260 (enum x_frame_parms): Remove (bogus, unused enum).
261 (check_x_display_info): Make non-static (for frame.c).
262 (struct x_frame_parm_table, x_frame_parms): Remove.
263 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
264 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
265 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
266 (x_change_window_heights, x_set_autoraise, x_set_autolower)
267 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
268 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
269 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
270 Remove. Use generic functions instead.
271 (enum resource_types): Remove.
272 (x_set_scroll_bar_default_width): New global function (for frame.c).
273 (Fx_create_frame): Depend on x_figure_window_size to add space for
274 toolbar and setup size_hint_flags.
275 (w32_frame_parm_handlers): New table for redisplay_interface.
276 (syms_of_w32fns): Don't intern/staticpro removed vars.
9443fcf6 277
e072891b
KS
278 * w32term.c: Remove unnecessary extern declarations.
279 (x_fullscreen_adjust): Remove. Use generic instead.
280 (x_redisplay_interface): Add w32_frame_parm_handlers member.
281
282 * w32reg.c (x_get_string_resource): Use XrmDatabase.
283
284 * macgui.h (XrmDatabase): New (dummy) typedef.
285
286 * macterm.h (EMACS_CLASS): Remove.
287 (struct mac_display_info): Add xrdb member.
288 (struct mac_output): Add want_fullscreen member.
289
290 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
291 parameters now defined in frame.h and frame.c.
292 (Vx_resource_name): Remove. Use generic var.
293 (check_x_display_info): Make non-static (for frame.c).
294 (struct x_frame_parm_table, x_frame_parms): Remove.
295 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
296 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
297 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
298 (x_change_window_heights, x_set_autoraise, x_set_autolower)
299 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
300 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
301 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
302 Remove. Use generic functions instead.
303 (enum resource_types): Remove.
304 (x_set_scroll_bar_default_width): New global function (for frame.c).
305 (mac_frame_parm_handlers): New table for redisplay_interface.
306 (syms_of_macfns): Don't intern/staticpro removed vars.
9443fcf6 307
e072891b
KS
308 * macterm.c: Remove unnecessary extern declarations.
309 (x_redisplay_interface): Add mac_frame_parm_handlers member.
310
3e6a560b
KS
311 * Makefile.in (frame.o): Add dependency on blockinput.h and files
312 included from it (atimer.h and systime.h).
313
7b7b454e
AS
3142003-03-30 Andreas Schwab <schwab@suse.de>
315
316 * xdisp.c (x_insert_glyphs): Fix swapped width and height
317 parameters for shift_glyphs_for_insert.
318
319 * macterm.c (x_redisplay_interface): Add missing entry for
320 draw_vertical_window_border.
321
beb402de
KG
3222003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
323
324 * fileio.c (Fexpand_file_name): In the no-handler case, after
325 expanding, look again for a handler and invoke it. This is needed
326 for filenames like "/foo/../user@host:/bar/../baz" -- the first
327 expansion produces "/user@host:/bar/../baz" which needs to be
328 expanded again for the finame result "/user@host:/baz".
329
b676f356
JD
3302003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
331
332 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
333 of area to be redrawn for better performance.
334
3c671a56
SM
3352003-03-28 Stefan Monnier <monnier@cs.yale.edu>
336
337 * xterm.c (take_vertical_position_into_account): Remove.
338 (xt_action_hook): Call set_vertical_scroll_bar if needed.
339 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
340 (xm_scroll_callback, x_create_toolkit_scroll_bar)
341 (x_set_toolkit_scroll_bar_thumb): Simplify.
342 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
343 (XTread_socket): Remove unused var.
344 (x_make_frame_invisible): Replace goto with else.
345
346 * xdisp.c (set_vertical_scroll_bar): New fun.
347 (redisplay_window): Use it.
348
84f2e615
RS
3492003-03-26 Richard M. Stallman <rms@gnu.org>
350
351 * xdisp.c (update_tool_bar): Recompute tool bar if
352 update_mode_lines is set. Set w->update_mode_line
353 only if the tool bar contents actually change.
354 (update_menu_bar): Undo previous change.
355
70b6104c
JD
3562003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
357
5fd6f727
JD
358 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
359 (xg_frame_set_char_size): Calculate scroll bar width before frame
360 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
361 (xg_separator_p): Check for all documented separator types.
362 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
363 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
364
70b6104c
JD
365 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
366 so tool bar gets updated.
367
d9b36d19
SM
3682003-03-26 Stefan Monnier <monnier@cs.yale.edu>
369
370 * data.c (store_symval_forwarding): Re-instate part of the code
371 that was deleted with too much enthusiasm.
372
3732003-03-25 Stefan Monnier <monnier@cs.yale.edu>
374
375 * data.c (store_symval_forwarding): Delete special read-only
376 hack for type == -1, since we now use ->constant instead.
377 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
378
379 * buffer.c (overlays_in): Declare static.
380 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
381 `constant' field rather than the variable's `type' field.
382
365fa1b3
AC
3832003-03-24 Andrew Choi <akochoi@shaw.ca>
384
385 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
386
387 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
388
389 * fns.c [MAC_OSX]: Do not redefine vector.
390
391 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
392
393 * macgui.h: Remove definition of No_Cursor.
394
d9b36d19 395 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
365fa1b3
AC
396
397 * xdisp.c: Define No_Cursor.
398 (x_write_glyphs, notice_overwritten_cursor)
399 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
400 (note_mouse_highlight): Remove Mac-specific code.
401 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
d9b36d19 402
c0bcce6f
JPW
4032003-03-24 John Paul Wallington <jpw@gnu.org>
404
405 * xdisp.c (redisplay_window): If mini window's buffer is not
406 empty, then redisplay it like other windows.
407
a526b96c
KS
4082003-03-23 Kim F. Storm <storm@cua.dk>
409
410 * w32term.c (w32_draw_window_cursor): Fix last change.
411
37ab321e
KH
4122003-03-23 Kenichi Handa <handa@m17n.org>
413
a526b96c
KS
414 * alloc.c (make_string_from_bytes, make_specified_string):
415 Add `const' for the arg CONTENTS.
37ab321e
KH
416
417 * lisp.h (make_string_from_bytes, make_specified_string):
418 Prototypes adjusted.
419
7863d625
JD
4202003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
421
a526b96c 422 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
fd4c9408 423
7863d625
JD
424 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
425 (XG_SB_RANGE): New define.
426
427 * gtkutil.c (xg_fixed_handle_expose): New function.
428 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
429 expose events.
430 (xg_update_scrollbar_pos): Take two more arguments, left and width
431 of scroll bar including borders.
432 Clear left and right part outside scroll bar separately as some
433 themes have bars that are not an even number of pixels.
d9b36d19 434 Don't set reallocate_redraws, don't call
7863d625
JD
435 gdk_window_process_all_updates.
436 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
437 so no need to change it. Calculate size and value with XG_SB_RANGE.
438
d9b36d19
SM
439 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
440 Pass left and width of scroll bar including borders to
7863d625
JD
441 xg_update_scrollbar_pos.
442
af0ad939
TTN
4432003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
444
445 * Makefile.in: Make sure space precedes end-of-line backslashes.
446
b22139fd
KS
4472003-03-22 Kim F. Storm <storm@cua.dk>
448
449 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
450 Add generic versions here. Remove system specific versions
451 defined elsewhere.
452
453 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
454 Add prototypes.
455
6e6410cf
KS
456 * xterm.h (STORE_NATIVE_RECT): New macro.
457
5c9cc435
KS
4582003-03-21 Kim F. Storm <storm@cua.dk>
459
00c64fab
SM
460 * xdisp.c (get_glyph_string_clip_rect):
461 Use FRAME_INTERNAL_BORDER_WIDTH.
5c9cc435
KS
462
463 * dispextern.h (struct redisplay_interface): Add active_p
464 argument to draw_window_cursor member. All uses changed.
465
acd37560
KS
4662003-03-21 Kim F. Storm <storm@cua.dk>
467
468 The following changes consolidate code related to writing and
469 inserting glyphs, exposing frame, the tool bar, the mouse face,
470 the output cursor, and help echo from xterm.c, w32term.c and
471 macterm.c into xdisp.c. It also generalizes the use of the
472 window_part enum instead of using numeric values throughout.
af0ad939 473
acd37560
KS
474 * xdisp.c: Consolidate gui-independent code here.
475 Include keymap.h.
476 (Qhelp_echo): Import.
477 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
478 (help_echo_string, help_echo_window, help_echo_object)
479 (previous_help_echo_string, help_echo_pos): Declare here.
480 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
481 (estimate_mode_line_height): Define here. Handle windowing
482 systems directly (without using estimate_mode_line_height_hook).
483 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
484 (update_window_cursor, update_cursor_in_window_tree)
485 (fast_find_position, fast_find_string_pos)
486 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
487 (expose_area, expose_line, expose_overlaps, expose_window)
488 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
489 declared static as they are only used locally in xdisp.c.
490 (draw_glyphs): Rename from x_draw_glyphs and make static.
491 (tool_bar_item_info, notice_overwritten_cursor): Make static.
492 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
493 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
af0ad939 494 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
acd37560
KS
495 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
496 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
497 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
498 (note_mouse_highlight, x_clear_window_mouse_face)
499 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
500 (x_intersect_rectangles): New generic functions for use by xdisp.c
501 and GUI front-ends.
502 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
503 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
504
505 * dispextern.h (Display_Info): Generic typedef for *_display_info.
506 (NativeRectangle): Generic typedef for rectangle type.
507 (enum window_part): Move here from window.c.
508 (struct redisplay_interface): New members flush_display_optional,
509 define_frame_cursor, clear_frame_area, draw_window_cursor,
510 draw_vertical_window_border, shift_glyphs_for_insert.
511 Rename member clear_mouse_face to clear_window_mouse_face.
512 (estimate_mode_line_height_hook): Remove hook.
513 (auto_raise_tool_bar_buttons_p): Don't declare extern.
514 (tool_bar_item_info): Remove prototype.
515 (help_echo_string, help_echo_window, help_echo_object)
516 (previous_help_echo_string, help_echo_pos)
517 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
518 (x_stretch_cursor_p, output_cursor): Declare extern.
519 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
520 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
521 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
522 (display_and_set_cursor, set_output_cursor, x_cursor_to)
523 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
524 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
525 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
526 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
527 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
528 Add prototypes.
529 (mode_line_string, marginal_area_string): Fix prototypes.
530
531 * window.c (enum window_part): Move to dispextern.h.
532 (coordinates_in_window): Use enum window_part member names
533 instead of numbers to describe return value.
534 (struct check_window_data): Change part member to window_part.
535 (check_window_containing): Return window_part unaltered.
536 (window_from_coordinates): Change part arg from int to enum
537 window_part. Allow part arg to be null. All users changed.
538
539 * window.h (window_from_coordinates): Fix prototype.
540
541 * term.c (estimate_mode_line_height): Move to xdisp.c.
542
543 * keyboard.c (make_lispy_event): Use enum window_part.
544
545 * dispnew.c (mode_line_string, marginal_area_string): Use enum
546 window_part instead of int in arg list. Users changed.
547
548 * xterm.h (No_Cursor): Declare as None for X.
549 (struct mac_output): Replace member cross_cursor by hand_cursor.
af0ad939 550
acd37560
KS
551 * xterm.c: Remove consolidated defines and code.
552 (BETWEEN): Remove unused macro.
553 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
554 (x_define_frame_cursor, x_clear_frame_area)
555 (x_draw_window_cursor): New X-specific functions for RIF.
556 (x_redisplay_interface): Add new members.
557
558 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
559
560 * w32term.h (struct w32_output): Remove cross_cursor member.
561
562 * w32term.c: Remove consolidated defines and code.
563 (BETWEEN): Remove unused macro.
564 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
565 (w32_define_frame_cursor, w32_clear_frame_area)
566 (w32_draw_window_cursor): New W32-specific functions for RIF.
567 (w32_redisplay_interface): Add new members.
568
569 * w32gui.h (No_Cursor): Define as 0 for W32.
570 (XRectangle): Add X compatible rectangle type.
571 (NativeRectangle): Declare as RECT for W32.
572 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
573
574 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
575
576 * w32console.c: Remove consolidated defines and code.
af0ad939 577
acd37560
KS
578 * msdos.h (Display_Info): Add generic typedef.
579
580 * msdos.c: Remove consolidated defines and code.
581 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
582
583 * macterm.h (struct mac_output): Replace member cross_cursor by
584 hand_cursor.
585 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
586
587 * macterm.c: Remove consolidated defines and code.
588 (BETWEEN): Remove unused macro.
589 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
590 (mac_define_frame_cursor, mac_clear_frame_area)
591 (mac_draw_window_cursor): New Mac-specific functions for RIF.
592 (x_redisplay_interface): Add new members.
593
594 * macgui.h (No_Cursor): Define as 0 for Mac.
595 (XRectangle): Add X compatible rectangle type.
596 (NativeRectangle): Declare as Rect for Mac.
597 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
598
204ccab1
KS
599 * macfns.c (x_set_mouse_color): Setup hand_cursor.
600 (x_set_cursor_color): Use x_display_and_set_cursor.
acd37560 601
9443fcf6 602 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
acd37560
KS
603 included from it. Add dependency on keymap.h.
604
605 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
606
8ba01a70 6072003-03-21 Kenichi Handa <handa@m17n.org>
3f817c73
KH
608
609 * fileio.c (Fexpand_file_name): Fix previous change.
610
8ba01a70 6112003-03-19 Kenichi Handa <handa@m17n.org>
4f497b0a
KH
612
613 * fileio.c (Ffile_name_directory): Reconstruct file name by
614 make_specified_string.
615 (Ffile_name_nondirectory, Ffile_name_as_directory)
616 (Fdirectory_file_name, Fexpand_file_name)
617 (Fsubstitute_in_file_name): Likewise.
618 (Fread_file_name): Compare decoded homedir with DIR and
619 DEFAULT_FILENAME.
620
621 * alloc.c (make_specified_string): If NCHARS is negative, count
622 the number of characters.
623
19536747
JD
6242003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
625
de38ae5a
JD
626 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
627 all widgets.
628
19536747
JD
629 * gtkutil.h: Removed xg_ignore_next_thumb.
630
37ab321e 6312003-03-18 Kenichi Handa <handa@m17n.org>
cb0d4562
KH
632
633 * coding.c (Vchar_coding_system_table): Remove this variable.
634 (Vcoding_system_safe_chars): New variable.
635 (intersection): Remove this function.
636 (find_safe_codings): Don't use Vchar_coding_system_table, but try
637 all codings in SAFE_CODINGS.
00c64fab 638 (Ffind_coding_systems_region_internal): Adjust for the change of
cb0d4562
KH
639 find_safe_codings. Get generic coding systems from
640 Vcoding_system_safe_chars.
641 (Fdefine_coding_system_internal): New function.
642 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
643 Initialize and staticpro Vcoding_system_safe_chars.
644
17097258
JD
6452003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
646
2a2071c3
JD
647 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
648 equal old values before updating.
649
17097258
JD
650 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
651
652 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
653
6542003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
655
656 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
657 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
658 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
659 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
660 (xg_create_scroll_bar): Pass bar to button event callback.
661 (xg_find_top_left_in_fixed): New function.
662 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
663 whole scroll bar area. Get old position with
664 xg_find_top_left_in_fixed, calculate and only clear needed areas.
665 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
666 dragging is in progress. Calculate whole as for Motif.
667 Remove code that saved last values. Call gtk_range functions to
668 set scroll bar sizes.
669
670 * gtkutil.h: Removed xg_ignore_next_thumb.
671
8cb9dfbf
JB
6722003-03-17 Juanma Barranquero <lektu@terra.es>
673
674 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
675 and files included from it.
676
00c64fab
SM
6772003-03-18 Stefan Monnier <monnier@cs.yale.edu>
678
679 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
680 multiple occurrences of the same keymap under different prefixes.
681 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
682
c45bb3b2
JR
6832003-03-16 Jason Rumney <jasonr@gnu.org>
684
685 * w32gui.h: Use HDC for Display.
686
687 * w32term.c (w32_encode_char): Prevent double-byte chars from
688 crashing Emacs.
689
690 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
691 as binary.
692
2a6d0874
JB
6932003-03-16 Juanma Barranquero <lektu@terra.es>
694
695 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
696
03eb5fab
KS
6972003-03-16 Kim F. Storm <storm@cua.dk>
698
699 The following changes consolidate some of the gui-independent
700 parts of the processing and drawing of "glyph strings" from
701 xterm.c, w32term.c, and macterm.c into xdisp.c.
2a6d0874 702
03eb5fab
KS
703 * dispextern.h (struct glyph): Reduce face_id member from 22 to
704 21 bits (this reduces number of faces from 4M to 2M).
705 Replace W32 specific w32_font_type member (2 bits) by generic
706 font_type member (3 bits) for portability.
707 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
708 (enum draw_glyphs_face): Define here.
709 (struct glyph_string): Define here. Merge W32 and X versions.
710 (struct redisplay_interface): New members per_char_metric,
711 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
712 (VCENTER_BASELINE_OFFSET): Define here.
713 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
714 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
715
716 * xdisp.c: Consolidate gui-independent "glyph string" code here.
717 (dump_glyph_string): Moved here.
718 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
719 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
720 (fill_composite_glyph_string, fill_glyph_string)
721 (fill_image_glyph_string, fill_stretch_glyph_string)
722 (left_overwritten, left_overwriting, right_overwritten)
723 (right_overwriting, get_char_face_and_encoding)
724 (set_glyph_string_background_width, compute_overhangs_and_x)
725 (append_glyph, append_composite_glyph, produce_image_glyph)
726 (take_vertical_position_into_account, append_stretch_glyph)
727 (produce_stretch_glyph): New generic functions (based on X version).
728 Call platform specific functions through rif.
729 (INIT_GLYPH_STRING): New macro, hides W32 details.
730 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
731 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
732 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
733 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
734 (notice_overwritten_cursor):
735 Generic functions exported to platform modules. Users changed.
736
737 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
738 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
739 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
fad49844 740 New macros for consolidated code.
2a6d0874 741
03eb5fab
KS
742 * xterm.c: Remove consolidated defines and code.
743 (x_per_char_metric, x_encode_char)
744 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
745 (x_redisplay_interface): Add new members.
746
747 * w32gui.h (Display): Add dummy typedef for consolidation.
748 (XChar2b): Define alias for wchar_t for consolidation.
749 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
750
751 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
2a6d0874 752 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
03eb5fab
KS
753 New macros for consolidation.
754
fad49844 755 * w32term.c: Remove consolidated defines and code.
03eb5fab
KS
756 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
757 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
758 (w32_per_char_metric): Change font_type arg to int for RIF.
759 (w32_encode_char): Return int according to RIF requirements.
760 (w32_compute_glyph_string_overhangs): Adapt to RIF.
761 (w32_get_glyph_overhangs): New function for RIF. Uses generic
762 x_get_glyph_overhangs.
763 (w32_redisplay_interface): Add new members.
764
765 * macgui.h (XChar2b): Move typedef here for consolidation.
766 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
767
768 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
769 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
770 consolidation.
771
772 * macterm.c: Remove consolidated defines and code.
773 (mac_per_char_metric): New function for RIF.
00c64fab 774 (mac_encode_char): Adapt to new RIF requirements.
03eb5fab
KS
775 (mac_compute_glyph_string_overhangs): Adapt for RIF.
776 (x_redisplay_interface): Add new members.
777
00c64fab
SM
7782003-03-15 Stefan Monnier <monnier@cs.yale.edu>
779
780 * keymap.c (Vmenu_events): New var.
781 (syms_of_keymap): Initialize it.
782 (where_is_internal): Check more carefully what is a menu event.
783
225c7a07
RS
7842003-03-14 Richard M. Stallman <rms@gnu.org>
785
786 * lread.c (read1): After #!, exit loop on eof.
787
cea9be54
JD
7882003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
789
9ea0e54d
JD
790 * gtkutil.h: Add declaration for xg_frame_cleared.
791
0cb35f4e
JD
792 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
793
cea9be54
JD
794 * gtkutil.c (struct xg_last_sb_pos): New structure.
795 (handle_fixed_child): New function.
796 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
797 and force a redraw on them.
798 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
799 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
800 so we can avoid unneeded redraws.
801 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
802 and force a redraw on the scroll bar.
803 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
804 if xg_last_sb_pos shows the positions are up to date.
0cb35f4e 805 (xg_frame_cleared): New function.
cea9be54 806
20b853f3
KH
8072003-03-13 Kenichi Handa <handa@m17n.org>
808
809 * coding.c (Fdetect_coding_region): Fix docstring.
810 (Fdetect_coding_string): Fix docstring.
811
7a555aff
AS
8122003-03-13 Andreas Schwab <schwab@suse.de>
813
25cc0080
AS
814 * gtkutil.c: Add prototype for create_menus.
815
30225431
AS
816 * data.c (long_to_cons): Fix type of top.
817
818 * xselect.c (selection_data_to_lisp_data): Use int instead of
819 long for an integer of size 4.
820
7a555aff 821 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
30225431 822 (xg_tool_bar_help_callback): Likewise.
7a555aff 823
a3e4741f
AS
8242003-03-12 Andreas Schwab <schwab@suse.de>
825
826 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
827
9668be7c
KS
8282003-03-12 Kim F. Storm <storm@cua.dk>
829
03eb5fab 830 The following changes consolidate the fringe handling from
9668be7c 831 xterm.c, w32term.c, and macterm.c into xdisp.c.
00a88f32 832
9668be7c
KS
833 * xdisp.c: Consolidate fringe handling code here.
834 (left_bits, right_bits, continued_bits, continuation_bits)
835 (ov_bits, zv_bits): Define fringe bitmaps.
836 (fringe_bitmaps): New array holding fringe bitmaps.
837 (draw_fringe_bitmap): Draw a specific bitmap; call display
838 specific drawing routine via rif->draw_fringe_bitmap.
839 (draw_row_fringe_bitmaps): Generic replacement for
840 x_draw_row_fringe_bitmaps; all callers changed.
841 (compute_fringe_widths): Generic replacement for
842 x_compute_fringe_widths; all callers changed.
843
844 * dispextern.h (enum fringe_bitmap_type): Define here.
845 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
846 (fringe_bitmaps): Declare extern.
847 (struct redisplay_interface): New member draw_fringe_bitmap.
848 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
849
850 * xterm.c: Remove generic fringe code.
851 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
852 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
853
854 * w32term.c: Remove generic fringe code.
855 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
856 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
00a88f32 857
9668be7c
KS
858 * macterm.c: Remove generic fringe code.
859 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
860 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
861
00a88f32
SM
8622003-03-11 Stefan Monnier <monnier@cs.yale.edu>
863
864 * print.c (Fprin1_to_string): Return unibyte string if possible.
865
1d1de695
DK
8662003-03-09 David Kastrup <dak@gnu.org>
867
868 * process.c (read_process_output): We have allocated enough space
869 for readmax and carryover, so actually use the alloted space.
870
257f40f2
JD
8712003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
872
873 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
874 toolkit scrollbar click.
875
876 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
877 for USE_GTK.
878 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
879 also.
880 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
881 scrollbar and control is pressed, call x_scroll_bar_handle_click.
00a88f32 882
257f40f2
JD
883 * gtkutil.h: Declare xg_get_scroll_id_for_window.
884
885 * gtkutil.c (xg_get_scroll_id_for_window): New function.
886 (xg_tool_bar_item_expose_callback): New function.
887 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
888 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
889 on the tool bar widget.
890 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
891 to expose on the tool bar item widgets.
892
15213141
JD
8932003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
894
26b74a0b 895 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
00a88f32 896 struct image* when deciding to update (struct image* may have been
26b74a0b
JD
897 deleted from the image cache).
898
15213141
JD
899 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
900 the event isn't for a frame (i.e. for dialogs).
901
20b853f3 9022003-03-07 Kenichi Handa <handa@m17n.org>
cb681b34
KH
903
904 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
905 composition components reaches the limit, terminate composing.
906 (COMPOSITION_OK): New macro.
00a88f32 907 (detect_coding_iso2022): Use it if an escape sequence for
cb681b34
KH
908 composition is found.
909 (coding_restore_composition): Adjust the number of composition
910 components if it is not sane.
911
c9029fe5
JB
9122003-03-06 Juanma Barranquero <lektu@terra.es>
913
914 * w32term.h (struct w32_display_info): Add xrdb member to support
915 passing resources via -xrm on Windows.
916
917 * w32term.c (w32_make_rdb): New function.
918 (w32_term_init): Use it to initialize xrdb member of w32_display_info
919 struct. Delete leftover code.
920
921 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
922 for resources passed on the command line.
923
924 * w32reg.c (w32_get_rdb_resource): New function.
925 (x_get_string_resource): Use it, so resources passed with -xrm
926 supercede the ones in the registry.
927
9d00001f
JD
9282003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
929
930 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
931 instead of x_top_window_to_frame.
932
ca2417b9
JD
9332003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
934
935 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
936 when restarting Emacs.
937
5b20caf0
RS
9382003-03-03 Richard M. Stallman <rms@gnu.org>
939
940 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
941 to run kill-buffer-query-functions.
942 (Qkill_buffer_query_functions): New var.
943 (syms_of_buffer): Init and staticpro it.
944
58e91b77
JD
9452003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
946
947 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
948
932357b4
KS
9492003-02-25 Kim F. Storm <storm@cua.dk>
950
951 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
952 If centering point failed to make whole line visible and vscroll
953 is non-zero, disable vscroll and try centering point again.
954
955 * lread.c (read1): Accept `single space' syntax like (? x).
956
bb8db7e1
JD
9572003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
958
959 * keyboard.c (cancel_hourglass_unwind): Surround with
960 #ifdef HAVE_X_WINDOWS
961
47d77aab
KH
9622003-02-25 Kenichi Handa <handa@m17n.org>
963
964 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
965 process only when "subprocesses" is defined.
966
6a097c0c
SM
9672003-02-24 Stefan Monnier <monnier@cs.yale.edu>
968
969 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
970
0b063c27
JB
9712003-02-24 Juanma Barranquero <lektu@terra.es>
972
d1135afc
JB
973 * callint.c (fix_command): Declare as static void and move before
974 Fcall_interactively.
975
0b063c27
JB
976 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
977 (syms_of_xdisp): Don't initialize Qwhen.
978
0af912f0
JD
9792003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
980
981 * keyboard.c (cancel_hourglass_unwind): New function.
982 (command_loop_1): Cancel hourglass with unwind-protect.
983
120d0a23
RS
9842003-02-23 Richard M. Stallman <rms@gnu.org>
985
986 * callint.c (fix_command): New subroutine, from Fcall_interactively.
987 Detect (when ... (region-beginning)) etc.
988 (Fcall_interactively): Call fix_command.
989 (Qif, Qwhen): New variables.
990 (syms_of_callint): Init and staticpro them.
0b063c27 991
120d0a23
RS
992 * regex.c (print_partial_compiled_pattern): Output to stderr.
993
4ece81a6
KG
9942003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
995
996 * dired.c (directory_files_internal): Don't expand directory.
997 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
998 instead. From Lars Hansen <larsh@math.ku.dk>.
999
e52bd6b7
SM
10002003-02-22 Stefan Monnier <monnier@cs.yale.edu>
1001
1002 * fns.c (string_to_multibyte): Remove unused var i.
1003 (Flanginfo): Fix int/Lisp_Object mixup.
1004 (void_call2): New fun.
1005 (Fmap_char_table): Use it in place of call2.
1006
1007 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
1008
1009 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
1010
1011 * keymap.c (copy_keymap_1): Make it static.
1012
1013 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
1014
c33ef7c4
JB
10152003-02-22 David Ponce <david@dponce.com>
1016
1017 * lread.c (Fload): Don't check STRING_MULTIBYTE.
1018
16782258
JD
10192003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1020
1021 * process.h: Removed subtty field from struct Lisp_Process.
1022
1023 * process.c (create_process): Remove setting of subtty.
1024 (emacs_get_tty_pgrp): New function.
e52bd6b7
SM
1025 (Fprocess_running_child_p, process_send_signal):
1026 Call emacs_get_tty_pgrp instead of ioctl.
16782258
JD
1027 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
1028
3abeca61
KG
10292003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
1030
1031 * keymap.c (Fdefine_key): Doc fix.
1032
92a8ce63
JB
10332003-02-21 Juanma Barranquero <lektu@terra.es>
1034
1035 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
1036
1037 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
1038 POLLING_PROBLEM_IN_SELECT.
1039
1040 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
1041 Delete #undef of POLLING_PROBLEM_IN_SELECT.
1042
1043 * s/hpux10-20.h: New file.
1044
e52bd6b7
SM
1045 * process.c (wait_reading_process_input):
1046 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
92a8ce63 1047
20f1ef2e
KH
10482003-02-20 Kenichi Handa <handa@m17n.org>
1049
32d0a9dc
KH
1050 * fontset.c (check_fontset_name): If NAME is nil, return the
1051 default fontset.
1052 (override_font_info): New function.
e52bd6b7 1053 (Fset_fontset_font): Document that NAME nil means the default fontset.
32d0a9dc
KH
1054 (Ffontset_info): If FONTSET is not the default fontset, merge
1055 FONTSET onto the copy of the default fontset, and work on that
1056 copy. Document that NAME nil means the default fontset.
1057 (Ffontset_font): Document that NAME nil means the default fontset.
1058
20f1ef2e
KH
1059 * process.c (setup_process_coding_systems): If the process's
1060 in/out descriptor is -1, do nothing.
1061
77d1daf2
AS
10622003-02-19 Andreas Schwab <schwab@suse.de>
1063
e52bd6b7
SM
1064 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
1065 Add prototypes.
77d1daf2 1066
f9a45bb3
KH
10672003-02-19 Kenichi Handa <handa@m17n.org>
1068
1069 * xfaces.c (try_alternative_families): Try all scalable fonts if
1070 Vscalable_fonts_allowed is not Qt.
1071
72ecb43c
JD
10722003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1073
1074 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
1075
ee5be7c3
JD
10762003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1077
1078 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
1079 names.
1080
1081 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
e52bd6b7 1082 (sorted_font_list): Move allocation of struct font_name to
ee5be7c3
JD
1083 x_face_list_fonts.
1084 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
1085 (Fx_list_fonts): Set maxnames to -1 to get all font names.
1086
4cd519a7
KS
10872003-02-18 Kim F. Storm <storm@cua.dk>
1088
068f9882
KS
1089 * lread.c (read1): Fix last change.
1090 "`" is not always special. Allow "?" after a character constant.
4cd519a7 1091
7290a344
AC
10922003-02-18 Andrew Choi <akochoi@shaw.ca>
1093
1094 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
1095
1f7fa69b
AS
10962003-02-18 Andreas Schwab <schwab@suse.de>
1097
1098 * window.c (window_scroll_pixel_based): Move outside a
1099 multi-glyph character before setting new window start.
1100
1101 * xdisp.c (in_display_vector_p): New function.
1102 * dispextern.h (in_display_vector_p): Declare.
1103
23e21195
KS
11042003-02-18 Kim F. Storm <storm@cua.dk>
1105
1106 * lread.c (read1): Fix and relax read syntax.
1107 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
1108 Only recognize "," after dotted-pair dot if inside backquote.
1109 Never include "`" or "," (inside backquote) in a symbol.
1110 Allow dotted-pair dot after a character constant.
1111 Allow "`" and "," (inside backquote) after a character constant.
92a8ce63 1112
f098b121
JD
11132003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1114
1115 * gtkutil.c (xg_tool_bar_expose_callback): New function.
1116 (xg_create_tool_bar): Force style of tool bar to be horizontal with
1117 icons. Set name of tool bar to emacs-toolbar.
1118 (update_frame_tool_bar): Connect expose event to
1119 xg_tool_bar_expose_callback.
1120
63020c46
RS
11212003-02-17 Richard M. Stallman <rms@gnu.org>
1122
1123 * keyboard.c (this_command_key_count_reset): New variable.
1124 Initiatize to 0 where this_command_key_count is set.
1125 (read_char): Save and restore this_command_key_count_reset
1126 around input method code.
1127 (read_char): If this_command_key_count_reset, echo reread commands.
1128 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
1129
fb4452cc
KH
11302003-02-17 Kenichi Handa <handa@m17n.org>
1131
1132 * fns.c (string_to_multibyte): Always return a multibyte string.
1133
bd11cc09
JR
11342003-02-16 Jason Rumney <jasonr@gnu.org>
1135
e52bd6b7
SM
1136 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
1137 Negative max_fonts parameter means list all.
bd11cc09 1138
4cdf4bde
DL
11392003-02-14 Dave Love <fx@gnu.org>
1140
1141 * fns.c (Flanginfo): Doc fix.
1142
023b93f6
KS
11432003-02-13 Kim F. Storm <storm@cua.dk>
1144
37cd4238
KS
1145 * lread.c (read_escape): Interpret \s as a SPACE character, except
1146 for \s-X in a character constant which still is the super modifier.
1147 (read1): Signal an `invalid read syntax' error if a character
1148 constant is immediately followed by a digit or symbol character.
1149
140a6b7e
KS
1150 * search.c (Fmatch_data): Doc fix. Explicitly state that
1151 match-data is undefined if last search failed.
1152
023b93f6
KS
1153 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
1154 All uses changed.
1155
7d5c86e5
JB
11562003-02-12 Juanma Barranquero <lektu@terra.es>
1157
1158 * eval.c (Fdefmacro): Fix typo.
1159
295fff2c
KS
11602003-02-12 Kim F. Storm <storm@cua.dk>
1161
1162 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
1163 macro is a string, convert meta modifiers in string when copying
1164 the string into a vector.
1165
60f3202d
KS
11662003-02-11 Kim F. Storm <storm@cua.dk>
1167
1168 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
1169
61cb0b53
KH
11702003-02-11 Kenichi Handa <handa@m17n.org>
1171
1172 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
1173
7392e23c
KS
11742003-02-10 Kim F. Storm <storm@cua.dk>
1175
1176 * process.c: Doc fixes.
1177 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
1178
ce4254bd
KH
11792003-02-10 Kenichi Handa <handa@m17n.org>
1180
9c7a329a
KH
1181 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
1182
ce4254bd
KH
1183 * process.c (QCfilter_multibyte): New variable.
1184 (setup_process_coding_systems): New function.
e52bd6b7
SM
1185 (Fset_process_buffer, Fset_process_filter):
1186 Call setup_process_coding_systems.
ce4254bd
KH
1187 (Fstart_process): Initialize the member `filter_multibyte' of
1188 struct Lisp_Process.
1189 (create_process): Call setup_process_coding_systems.
1190 (Fmake_network_process): New keyward `:filter-multibyte'.
1191 Initialize the member `filter_multibyte' of struct Lisp_Process.
1192 Call setup_process_coding_systems.
1193 (server_accept_connection): Call setup_process_coding_systems.
1194 (read_process_output): If the process has a filter, decide the
1195 multibyteness of a string to given to the filter by
1196 `filter_multibyte' member of the process. If the process doesn't
1197 have a filter and the result of conversion is unibyte, use
1198 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
1199 multibyte form.
1200 (Fset_process_coding_system): Call setup_process_coding_systems.
1201 (Fset_process_filter_multibyte): New function.
1202 (Fprocess_filter_multibyte_p): New function.
1203 (syms_of_process): Intern and staticpro QCfilter_multibyte.
1204 Defsubr Sset_process_filter_multibyte and
1205 Sprocess_filter_multibyte_p.
1206
1207 * process.h (struct Lisp_Process): New member filter_multibyte.
1208
1209 * lisp.h (setup_process_coding_systems): Add prototype.
1210
1211 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
1212 process, update coding systems for the process.
1213
b08d5f59
KH
12142003-02-09 Kenichi Handa <handa@m17n.org>
1215
1216 * fns.c (string_to_multibyte): New function.
1217 (Fstring_to_multibyte): New function.
1218 (syms_of_fns): Defsubr it.
1219
0dfd93c0
AS
12202003-02-08 Andreas Schwab <schwab@suse.de>
1221
1222 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
1223 instead of the substitution.
1224
7b76ca1c
JD
12252003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1226
1227 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
1228
1229 * xmenu.c (menu_position_func): Adjust menu popup position so that
1230 the menu is fully visible.
7b76ca1c 1231
2436a4e4
JD
12322003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1233
1234 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
e52bd6b7
SM
1235 (x_make_frame_invisible, x_wm_set_icon_position):
1236 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2436a4e4
JD
1237
1238 * xfns.c (x_set_name, x_set_title): Ditto.
1239
37d1e680
RS
12402003-02-04 Richard M. Stallman <rms@gnu.org>
1241
1242 * keyboard.c (echo_now): Update before_command_echo_length.
1243 (Freset_this_command_lengths): Reset this_command_key_count etc.
1244 immediately rather than arranging to do it later.
1245 (before_command_key_count_1, before_command_echo_length_1)
1246 (before_command_restore_flag): Vars deleted.
1247 (add_command_key): Don't handle before_command_restore_flag.
1248 (read_char, record_menu_key): Don't update before_command_key_count or
1249 before_command_echo_length.
1250 (read_char): Don't handle before_command_restore_flag.
1251
1252 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
1253 in direct-output clauses if it wouldn't be called in the ordinary case.
1254
578846a3
KS
12552003-02-04 Kim F. Storm <storm@cua.dk>
1256
1257 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
1258
49853a4d
JD
12592003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1260
1261 * gtkutil.c (remove_from_container): Copying list is not needed.
1262 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
1263 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
1264 on list returned from gtk_container_get_children to avoid memory leak.
1265
8b53dc06
JR
12662003-02-01 Jason Rumney <jasonr@gnu.org>
1267
5d54d177
JR
1268 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
1269 local malloc.
1270 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
1271 definitions in xpm.h.
1272 (init_xpm_functions): New function.
1273 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
1274 (init_external_image_libraries): Try to load libXpm.dll.
1275
8b53dc06
JR
1276 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
1277 timestamp.
1278
b222e415
DL
12792003-01-31 Dave Love <fx@gnu.org>
1280
1281 * syntax.c (Fskip_chars_forward)
1282 (open-paren-in-column-0-is-defun-start): Doc fix.
1283
c60ee5e7
JB
12842003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
1285
1286 * fileio.c: Support // at start of name for Cygwin (just added proper
1287 preprocessor tests).
1288
1289 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
1290
1291 * Makefile.in: Use @EXEEXT@ for Cygwin.
1292
1293 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
1294
1295 * s/cygwin.h: Added for Cygwin port.
1296
53b37591
JB
12972003-01-31 Juanma Barranquero <lektu@terra.es>
1298
1299 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
1300 when including gif_lib.h.
fe929957
JB
1301 (init_gif_functions, init_tiff_functions): New functions.
1302 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
1303 Windows. Disable color table lookups. Call library functions
53b37591 1304 through pointers determined at runtime.
fe929957
JB
1305 (init_external_image_libraries): Try to load libungif.dll and
1306 libtiff.dll.
53b37591 1307
45415a8f
KH
13082003-01-31 Kenichi Handa <handa@m17n.org>
1309
1310 * xdisp.c (SKIP_GLYPHS): New macro.
e52bd6b7 1311 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
45415a8f 1312
a97e4138
JD
13132003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1314
e52bd6b7 1315 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
a97e4138 1316
6eed9bed
DL
13172003-01-30 Dave Love <fx@gnu.org>
1318
1319 * alloc.c (Vgc_elapsed, gcs_done): New variables.
1320 (Fgarbage_collect): Use them.
1321 (init_alloc, syms_of_alloc): Set them up.
1322
100dcd40
JB
13232003-01-30 Juanma Barranquero <lektu@terra.es>
1324
1325 * w32fns.c (init_external_image_libraries): Add missing operator.
1326
fbd852af
JR
13272003-01-29 Jason Rumney <jasonr@gnu.org>
1328
1329 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
1330 an alternative name for jpeg.dll.
1331
8a2d8020
KH
13322003-01-29 Kenichi Handa <handa@m17n.org>
1333
1334 * xdisp.c (set_cursor_from_row): Pay attention to string display
1335 properties.
1336
058c18c7
AC
13372003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
1338
1339 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
1340 <escape>.
1341 (keycode_to_xkeysym_table): Reformat and add more comments.
1342 (XTread_socket): Drop special case for backspace.
1343
385f11cf
AC
13442003-01-28 Andrew Choi <akochoi@shaw.ca>
1345
1346 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
1347 values in old-style RGB specs.
1348
c922a224
JB
13492003-01-27 Juanma Barranquero <lektu@terra.es>
1350
1351 * w32fns.c (init_external_image_libraries): Try alternate names for the
1352 jpeg dll.
1353
0a1d6de0
JD
13542003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1355
1356 * gtkutil.c (create_dialog, xg_separator_p)
1357 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
1358 before calling strcmp or strlen.
1359
a97e4138 13602003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
1361
1362 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
1363 and handle image load failure.
1364
28908312
JR
13652003-01-26 Jason Rumney <jasonr@gnu.org>
1366
1367 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
1368 New functions.
1369 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
1370 Disable color table lookups. Call jpeg library functions
1371 through pointers determined at runtime.
1372 (init_external_image_libraries): Try to load jpeg.dll.
1373
84e47416
RS
13742003-01-25 Richard M. Stallman <rms@gnu.org>
1375
1376 * lisp.h: Declare format2 instead of format1.
1377
1378 * fileio.c (barf_or_query_if_file_exists):
1379 Call format2 instead of format1.
1380
1381 * editfns.c (format2): New function, replaces format1
1382 but takes exactly two Lisp Objects as format args.
1383
1384 * buffer.c (Fkill_buffer): Call format2 instead of format1.
1385
a97e4138 13862003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
1387
1388 * xterm.h: Change to return value of x_dispatch_event to int.
1389
1390 * xterm.c (x_filter_event): New function.
1391 (event_handler_gdk, XTread_socket): Call x_filter_event.
1392 (x_dispatch_event): Change to return value of finish.
1393 (event_handler_gdk): Use return value from x_dispatch_event.
1394
1395 * xfns.c (x_window): Call create_frame_xic for GTK version to
1396 initialize input methods.
1397
1398 * gtkutil.h: Add (void) prototypes.
1399
1400 * gtkutil.c (create_menus): Remove code that puts the help menu to
1401 the right.
1402
54eefef1
JR
14032003-01-25 Jason Rumney <jasonr@gnu.org>
1404
1405 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
1406 [HAVE_PNG]: Sync with xfns.c version.
1407 (png_load): Adjust colors for Windows. Use Windows
1408 bitmaps. Disable color table lookups.
c262430d
JR
1409 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
1410 (init_png_functions): New function.
1411 (png_read_from_memory, png_load): Call png library functions
1412 through pointers determined at runtime.
1413 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
1414 (init_external_image_libraries): New function.
1415 (init_xfns): Call it.
54eefef1 1416
1a9e275b
AS
14172003-01-24 Andreas Schwab <schwab@suse.de>
1418
1419 * minibuf.c (Fminibuffer_message): Verify type of parameter.
1420
a97e4138 14212003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
1422
1423 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
1424 of static initializer.
1425
422eec7e
DL
14262003-01-24 Dave Love <fx@gnu.org>
1427
1428 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
1429 architectures.
1430
1431 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
1432 Use __alignof__.
1433
2a026b04
KH
14342003-01-24 Kenichi Handa <handa@m17n.org>
1435
1436 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
e52bd6b7 1437 It it is nonzero, don't pretend that an invisible area doesn't exist.
2a026b04
KH
1438 (command_loop_1): Call adjust_point_for_property with proper
1439 second arg.
1440
a18bb28d
JR
14412003-01-22 Jason Rumney <jasonr@gnu.org>
1442
1443 Sync changes with xterm.c and xfns.c.
1444
1445 * w32term.c (x_draw_glyph_string_foreground)
1446 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1447
1448 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
1449 phys_cursor's hpos is overwritten. This is still not completely
1450 correct, as it doesn't really make sense to use hpos at all to
1451 get the cursor glyph (as that is relative to the width of the
1452 characters on the line, which may have changed during the update).
1453
1454 * w32term.c (notice_overwritten_cursor): Handle the special case
1455 of the cursor being in the first blank non-text line at the
1456 end of a window.
1457
1458 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
1459 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
1460 Compute from the x position returned by x_draw_glyphs.
1461
1462 (x_display_and_set_cursor): Don't set phys_cursor_width here,
1463 except for NO_CURSOR and system caret, to make phys_cursor_width
1464 contain what its name suggests.
1465 (notice_overwritten_cursor): Consider the cursor image erased if
1466 the output area intersects the cursor image in y-direction.
1467
6a097c0c
SM
1468 * w32term.c (note_mode_line_or_margin_highlight): Rename from
1469 note_mode_line_highlight and extend.
a18bb28d
JR
1470
1471 * w32term.c (last_window): New variable.
1472 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
1473 (note_mouse_movement): Remove reimplemented code in #if 0.
1474
1475 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
1476 not update_mode_lines, and always set it to 1.
1477
ac6e47ef
JR
14782003-01-21 Jason Rumney <jasonr@gnu.org>
1479
1480 * w32fns.c (IDC_HAND): Define it if system headers don't.
1481
14822003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
1483
1484 * w32term.h (struct w32_output): New member hand_cursor.
1485 (WM_EMACS_SETCURSOR): New message definition.
1486
1487 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
1488 function w32_define_cursor.
1489 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
1490 position, change member name output_data.x to output_data.w32 and
1491 add function w32_define_cursor.
1492 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
1493 and change member name output_data.x to output_data.w32.
e52bd6b7
SM
1494 (w32_initialize_display_info):
1495 Setup dpyinfo->vertical_scroll_bar_cursor.
ac6e47ef
JR
1496
1497 * w32fns.c (Vx_hand_shape): New variable.
1498 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
1499 WM_EMACS_SETCURSOR.
1500 (x-create-frame): Setup Cursor types.
1501
ceb39a17
JB
15022003-01-21 David Ponce <david@dponce.com>
1503
ac6e47ef
JR
1504 * w32term.c (w32_encode_char): For DIM=1 charset, set
1505 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
1506 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 1507 2002-09-30.)
ac6e47ef
JR
1508 (w32_draw_relief_rect): Declare all args.
1509 (w32_define_cursor): New.
1510
1511 * w32fns.c (w32_load_cursor): New function.
1512 (w32_init_class): Use it.
1513 (x_put_x_image): Declare all args.
1514
46cf0bed
JB
15152003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
1516
1517 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
1518
a97e4138 15192003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
1520
1521 * gtkutil.c: Must include stdio.h before termhooks.h
1522
83fc9c63
DL
15232003-01-21 Dave Love <fx@gnu.org>
1524
1525 * alloc.c (Fgc_status): Print zombie list.
1526 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1527 Fix assignment of zombies.
1528 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
1529 Don't take car of non-cons.
1530
1531 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1532
1533 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1534
fe04b8c8
JR
15352003-01-20 David Ponce <david@dponce.com>
1536
1537 * w32menu.c (digest_single_submenu): Declare all args.
1538
1539 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
1540 changes in xmenu.c:
1541
1542 (parse_single_submenu): Use individual keymap's prompt
1543 string as pane name, if there is one.
1544 (set_frame_menubar): Save menu_items_n_panes from each call to
1545 parse_single_submenu and use it when calling digest_single_submenu.
1546
539e69a9
ST
15472003-01-20 Steven Tamm <steventamm@mac.com>
1548
1549 * macterm.c (XTread_socket): Checks for valid, visible window
1550 before sending a scroll-wheel event.
1551
675d000f
RS
15522003-01-20 Richard M. Stallman <rms@gnu.org>
1553
1554 * xdisp.c (redisplay_window): If mini window's buffer is not
1555 a minibuffer, then redisplay it like other windows.
1556
a97e4138 15572003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
1558
1559 * gtkutil.c (xg_create_frame_widgets): Check if there is an
1560 external tool bar before setting tool bar height.
1561
048addec
JD
15622003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1563
1564 * xterm.c (handle_one_xevent): Surround popup_activated
1565 with #ifdef:s for non-toolkit version.
1566
1567 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
1568 (gtkutil.o): New file.
1569 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
1570 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
1571
1572 * gtkutil.c: New file for GTK version.
1573
1574 * gtkutil.h: New file for GTK version.
1575
1576 * xterm.h: Add xt_or_gtk_widget.
1577 Include gtk files for USE_GTK.
1578 (struct x_output): Add toolbar_height.
1579 (struct x_output): Add GTK widgets and Gdk size_hints.
1580 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
1581 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
1582 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
1583
1584 * xterm.c: Include gtkutil.h for USE_GTK.
1585 Declare extern void free_frame_menubar for USE_GTK.
1586 (note_mouse_highlight): Check popup_activated for USE_GTK.
1587 (xt_action_hook): Don't compile if USE_GTK.
1588 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
1589 (xg_scroll_callback): New function.
1590 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
1591 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
1592 for USE_GTK.
1593 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
1594 xg_show_scroll_bar for USE_GTK.
1595 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
1596 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
1597 (event_handler_gdk): New function for USE_GTK.
1598 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
1599 (handle_one_xevent): Make sure widget is mapped before
1600 calling x_real_positions for USE_GTK.
1601 (XTread_socket): Add GTK event loop for USE_GTK.
1602 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
1603 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
1604 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
1605 (x_iconify_frame): Add code for USE_GTK.
1606 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
1607 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
1608 is in gtkutil.c.
1609 (x_term_init): Add initialization for GTK.
1610 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
1611
1612 * xmenu.c: Include gtkutil.h for USE_GTK.
1613 (Fx_popup_menu): Use current position if x and y is NIL.
6bdb309a
SM
1614 (single_menu_item, single_menu_item, Fx_popup_dialog):
1615 Check for USE_GTK.
048addec
JD
1616 (popup_widget_loop): New function for USE_GTK.
1617 (x_activate_menubar): Add code for USE_GTK.
1618 (popup_activate_callback, popup_deactivate_callback)
6bdb309a
SM
1619 (menu_highlight_callback, menubar_selection_callback):
1620 Add USE_GTK versions.
048addec
JD
1621 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
1622 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
1623 (free_frame_menubar): Only compile if not USE_GTK. GTK version
1624 is in gtkutil.c.
1625 (popup_selection_callback): New version for USE_GTK.
1626 (create_and_show_popup_menu): New fuction, one USE_GTK version and
6bdb309a 1627 one USE_X_TOOLKIT version.
048addec
JD
1628 (xmenu_show): Call create_and_show_popup_menu.
1629 (dialog_selection_callback): New version for USE_GTK.
1630 (create_and_show_dialog): New fuction, one USE_GTK version and
6bdb309a 1631 one USE_X_TOOLKIT version.
048addec
JD
1632 (xdialog_show): Call create_and_show_dialog.
1633
1634 * xfns.c: Include gtkutil for USE_GTK.
1635 (x_window_to_frame, x_any_window_to_frame)
1636 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
1637 (x_top_window_to_frame): Add code for USE_GTK.
1638 (x_set_background_color): Call xg_set_background_color for GTK.
1639 (x_set_menu_bar_lines): Check for USE_GTK.
1640 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
1641 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
1642 (x_window): Call xg_create_frame_widgets for USE_GTK.
1643 (Fx_create_frame): Check for USE_GTK
1644 (Fx_file_dialog): New implementation for USE_GTK.
1645
1646 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
1647 (update_menu_bar): Add check for USE_GTK.
1648 (update_tool_bar): Add check for USE_GTK and external tool bar.
1649 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
1650 (redisplay_internal): Add check for USE_GTK and popup_activated.
1651 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
1652 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
1653 (display_menu_bar): Add check for USE_GTK
1654
1655 * lisp.h: Declare Vx_resource_name extern.
1656
1657 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
1658 for USE_GTK.
1659 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
1660
1661 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
1662 (FRAME_EXTERNAL_TOOL_BAR): New macro.
1663 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
1664
1665 * fileio.c (Fread_file_name): Add check for USE_GTK.
1666
6bdb309a
SM
1667 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
1668 Add check for USE_GTK.
048addec
JD
1669
1670 * config.in: Added HAVE_GTK
1671
1672 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
1673
16742003-01-18 Stefan Monnier <monnier@cs.yale.edu>
1675
1676 * charset.h (Funibyte_char_to_multibyte): Export.
1677
16782003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1679
1680 * xmenu.c (mouse_position_for_popup): New function.
1681 (Fx_popup_menu): Call mouse_position_for_popup for X and
1682 mouse_position_hook for others.
1683
16842003-01-17 Kim F. Storm <storm@cua.dk>
1685
1686 * editfns.c (Finsert): Mention `string-make-multibyte' and
1687 `string-as-multibyte' in doc string.
1688
16892003-01-17 Kenichi Handa <handa@m17n.org>
1690
1691 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
3c02a6f5 1692
048addec
JD
1693 * editfns.c (Fformat): Convert an unibyte char argument that is
1694 formatted by "%c" to multibyte if the total result must be a
1695 multibyte string.
cd7df9c0 1696
048addec 16972003-01-16 Kim F. Storm <storm@cua.dk>
cd7df9c0 1698
048addec
JD
1699 * process.c (set-process-filter): Document unibyte/multibyte-ness
1700 of string argument.
56210ecd 1701
048addec 17022003-01-16 Kenichi Handa <handa@m17n.org>
56210ecd 1703
048addec 1704 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
56210ecd 1705
048addec
JD
1706 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
1707 (re_search_2): Likewise.
6df8b9fe 1708
048addec 17092003-01-15 Kenichi Handa <handa@m17n.org>
6df8b9fe 1710
048addec
JD
1711 * xdisp.c (message_dolog): Fix bug of the case that *Message*
1712 buffer is unibyte.
292ddc31 1713
048addec 17142003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
292ddc31 1715
048addec 1716 * fns.c (Fsubstring): Clarify doc string.
292ddc31 1717
048addec
JD
1718 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
1719 (Fprevious_char_property_change)
1720 (Fnext_single_char_property_change)
1721 (Fprevious_single_char_property_change, Fnext_property_change)
1722 (Fnext_single_property_change, Fprevious_property_change)
1723 (Fprevious_single_property_change, Fadd_text_properties)
1724 (Fput_text_property, Fset_text_properties)
1725 (Fremove_text_properties, Fremove_list_of_text_properties)
1726 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
63e4e4c6 1727
048addec 17282003-01-14 Kim F. Storm <storm@cua.dk>
63e4e4c6 1729
048addec
JD
1730 * process.h (struct Lisp_Process): New member plist replaces old
1731 member private_vars. All uses changed.
63e4e4c6 1732
048addec 1733 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
6bdb309a 1734 (QCplist): Rename from QCvars. Change all uses.
048addec 1735 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
6bdb309a 1736 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
048addec 1737 (syms_of_process): Intern, staticpro, defsubr these.
6bdb309a 1738 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
7ed16567 1739
048addec 17402003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
7ed16567 1741
6bdb309a 1742 * m/delta.h: Remove (obsolete).
e833850f 1743
048addec 17442003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
e833850f 1745
048addec
JD
1746 * fileio.c (Fdelete_directory, Fdelete_file): Document the
1747 behaviour in front of symlinks.
1748 (Fdelete_file): Raise an error on directories.
817cb127 1749
048addec 17502003-01-13 Dave Love <fx@gnu.org>
817cb127 1751
048addec 1752 * fns.c (Freverse): Use QUIT.
3e8cf2ea 1753
048addec 17542003-01-13 Richard M. Stallman <rms@gnu.org>
3e8cf2ea 1755
048addec
JD
1756 * minibuf.c (minibuffer_completion_contents):
1757 Error if point is inside prompt.
3e8cf2ea 1758
048addec
JD
1759 * keyboard.c (command_loop_1): Don't redisplay directly
1760 if there's a post-command-hook.
3e8cf2ea 1761
048addec
JD
1762 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
1763 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2c10f029 1764
048addec 17652003-01-12 Kim F. Storm <storm@cua.dk>
94e8ffca 1766
048addec 1767 * process.h (struct Lisp_Process): New member private_vars.
94e8ffca 1768
048addec
JD
1769 * process.c (QCvars): New variable.
1770 (syms_of_process): Intern and staticpro it.
1771 (Fset_process_contact): Removed function.
1772 (Fprocess_variable, Fset_process_variable): New functions.
1773 (syms_of_process): Defsubr them.
1774 (Fstart_process): Initialize private_vars plist to nil.
1775 (Fmake_network_process): New arg :vars to setup the private
1776 variables for new network process.
1777 (server_accept_connection): Copy server's private variables to
1778 client process.
2c10f029 1779
048addec
JD
1780 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
1781 crashes). Code rewritten and simplified. Now directly aligns the
1782 pointer and recalculates pure_bytes_used, rather than aligning the
1783 size and adjusting the pointer.
b8a76c6c 1784
048addec 17852003-01-11 Kim F. Storm <storm@cua.dk>
b8a76c6c 1786
048addec
JD
1787 * process.c (Fset_process_contact): New function.
1788 (syms_of_process): defsubr it.
1789 (make-network-process): Update doc.
3a8d0899 1790
048addec 17912003-01-10 Andreas Schwab <schwab@suse.de>
3a8d0899 1792
048addec
JD
1793 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
1794 Reported by Berthold Gunreben <b.gunreben@web.de>.
4abc7470 1795
048addec 17962003-01-10 Dave Love <fx@gnu.org>
4abc7470 1797
048addec 1798 * composite.c (syms_of_composite): Make composition_hash_table weak.
b809d662 1799
048addec 18002003-01-09 Kim F. Storm <storm@cua.dk>
b809d662 1801
048addec
JD
1802 * process.c (Fmake_network_process): Convert new port number
1803 to host byte order for `:service t' case. From Mario Lang.
bf338245 1804
048addec 18052003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245 1806
048addec
JD
1807 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
1808 instead of XtAppProcessEvent.
bf338245 1809
048addec
JD
1810 * xterm.c (handle_one_xevent): New function.
1811 (x_dispatch_event): New function.
1812 (XTread_socket): Call handle_one_xevent.
bf338245 1813
048addec 1814 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
e833850f 1815
048addec
JD
1816 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
1817 call XQueryPointer to get coordinates.
1818 (popup_get_selection): Do not set popup_activated_flag to zero,
1819 let popup_deactivate_callback do that. Needed for Motif.
1820 Call x_dispatch_event instead of XtDispatchEvent.
1821 (xmenu_show): Calculate root coordinate from frame top/left position.
c4af2bce 1822
048addec 18232003-01-08 Kim F. Storm <storm@cua.dk>
c4af2bce 1824
6bdb309a 1825 * process.c (server_accept_connection): Fix recording of new
048addec
JD
1826 connection's local address in :local property of contact info.
1827 (Fmake_network_process): Record local network address for new
1828 client processes in :local property of contact info.
6bdb309a 1829 (format-network-address): Add arg OMIT-PORT. Change callers.
00e3ab56 1830
048addec 18312003-01-07 Dave Love <fx@gnu.org>
00e3ab56 1832
048addec 1833 * Makefile.in (fns.o): Depend on coding.h.
f387e1fd 1834
048addec 18352003-01-07 Markus Rost <rost@math.ohio-state.edu>
f387e1fd 1836
048addec 1837 * minibuf.c (Fread_variable): Doc fix.
f387e1fd 1838
048addec
JD
1839 * eval.c (Fuser_variable_p): Doc change. For custom variables,
1840 use the same test as for custom-variable-p.
8c6d74c6 1841
048addec 18422003-01-05 Richard M. Stallman <rms@gnu.org>
e833850f 1843
048addec
JD
1844 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
1845 Count LAST_LINE_MISFIT in scroll margin for end of window.
1846 Move label too_near_end before setting SCROLL_MARGIN_POS.
1847 Set LAST_LINE_MISFIT before jumping there.
8c6d74c6 1848
048addec
JD
1849 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
1850 scroll_conservatively case. If scrolling that much doesn't change
1851 STARTP, move it down one line.
e833850f 1852
048addec
JD
1853 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
1854 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
8c6d74c6 1855
048addec
JD
1856 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
1857 selected frame.
8c6d74c6 1858
048addec
JD
1859 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
1860 (syms_of_keymap): staticpro them.
1861 (Fapropos_internal): Initialize them and clear them out.
1862 Don't GCPRO them.
8c6d74c6 1863
048addec
JD
1864 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
1865 Doc fixes.
8c6d74c6 1866
048addec
JD
1867 * lisp.h: New misc type Lisp_Save_Value.
1868 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
1869 (XSAVE_VALUE): New macro.
1870 (struct Lisp_Save_Value): New data type.
1871 (union Lisp_Misc): Add u_save_value alternative.
1872 (make_save_value): Declared.
8c6d74c6 1873
048addec 1874 * alloc.c (make_save_value): New function.
8c6d74c6 1875
048addec
JD
1876 * xterm.c (x_catch_errors): Save dpy using make_save_value.
1877 (x_catch_errors_unwind): Call XSync.
8c6d74c6 1878
048addec 18792003-01-01 Richard M. Stallman <rms@gnu.org>
8c6d74c6 1880
048addec 1881 * window.c (window_scroll_pixel_based): Partially undo last change.
8c6d74c6 1882
048addec
JD
1883 * keyboard.c (command_loop_1): Call adjust_point_for_property
1884 in direct action cases for Qforward_char and Qbackward_char.
1885 Set already_adjusted so it won't be done twice.
8c6d74c6 1886
048addec 18872002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
8c6d74c6 1888
048addec
JD
1889 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
1890 type definition of size_t.
8c609cff 1891
048addec 18922003-01-02 Steven Tamm <steventamm@mac.com>
8c609cff 1893
048addec
JD
1894 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
1895 distinguish Carbon GUI builds from X11 builds on darwin.
b37113a1 1896
048addec 18972002-12-30 Steven Tamm <steventamm@mac.com>
b37113a1 1898
048addec
JD
1899 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
1900 to default to t.
fa634a5e 1901
048addec 19022002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
fa634a5e 1903
048addec 1904 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
ce0669d4 1905
048addec 19062002-12-28 Steven Tamm <steventamm@mac.com>
ce0669d4 1907
048addec
JD
1908 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
1909 allow building in a different directory than source. Uses some
1910 GNU Make extensions, but there is no other make on Mac OS X.
2308af15 1911
048addec 19122002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
2308af15 1913
048addec
JD
1914 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
1915 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
1916 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
1917 (Fstring_to_number): Mention the returned value in the doc strings.
2155ecf3 1918
048addec 19192002-12-23 Richard M. Stallman <rms@gnu.org>
2155ecf3 1920
048addec
JD
1921 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
1922 <scroll-down-aggressively>: Doc fix.
2155ecf3 1923
048addec
JD
1924 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
1925 string as pane name, if there is one.
1926 (set_frame_menubar): Save menu_items_n_panes from each call to
1927 parse_single_submenu and use it when calling digest_single_submenu.
2155ecf3 1928
048addec
JD
1929 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
1930 Don't try to make last line fully visible if it is past end of window.
61f1d295 1931
048addec 19322002-12-22 Steven Tamm <steventamm@mac.com>
61f1d295 1933
048addec
JD
1934 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
1935 (mac_menu_show): Add support for hierarchical popup menus.
1936 (add_menu_item): Remove indentation support.
1937 (fill_submenu, fill_menu): Create hierarchical menus
1938 instead of using indentation.
0b17a217 1939
048addec 19402002-12-22 Richard M. Stallman <rms@gnu.org>
0b17a217 1941
048addec
JD
1942 * xdisp.c (try_cursor_movement): Don't call try_window here.
1943 (redisplay_window): Never redisplay minibuffer when inactive.
0b17a217 1944
048addec 1945 * window.c (select_window_1): Undo 9/21 change.
402e4f8b 1946
048addec 19472002-12-22 Steven Tamm <steventamm@mac.com>
402e4f8b 1948
048addec
JD
1949 * macterm.c (XTread_socket): Call KeyTranslate for control and
1950 meta to deal correctly shifted non-alpha characters, like C-S-5
1951 being treated like C-%. Does not look for shift key to deal
1952 with masking off control-key with mac-reverse-ctrl-meta.
f02cac82 1953
048addec 19542002-12-21 Richard M. Stallman <rms@gnu.org>
f02cac82 1955
048addec
JD
1956 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
1957 If it is non-nil, run timers. Use an unwind-protect to requeue
1958 the events that were read ahead.
1959 (popup_get_selection_unwind): New subroutine.
1960 (popup_get_selection_queue): File-scope variable now holds that queue.
1961 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
1962 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
1963 Use an unwind-protect to pop down the dialog box.
1964 (xdialog_show_unwind): New subroutine implements that.
f02cac82 1965
048addec
JD
1966 * xdisp.c (row_containing_pos): Change exit test using last_y.
1967 (try_window_id): Abort if row_containing_pos returns null.
f02cac82 1968
048addec
JD
1969 * lread.c (load_error_handler): New function.
1970 (Fload): Handle errors in Fsubstitute_in_file_name.
1971 Don't expect Fsignal to return.
f02cac82 1972
048addec
JD
1973 * eval.c: Errors and throws work right with interrupt blocking.
1974 (struct catchtag): New elt interrupt_input_blocked.
1975 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
1976 (internal_catch, Fcondition_case, internal_condition_case)
1977 (internal_condition_case_1, internal_condition_case_2): Save it.
1978 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
f02cac82 1979
048addec 1980 * editfns.c (Fformat): Add parens.
f02cac82 1981
048addec
JD
1982 * dired.c (file_name_completion): Fix that change.
1983 Delete special quit-handling code; just use QUIT.
f02cac82 1984
048addec 19852002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
f02cac82 1986
048addec
JD
1987 * dired.c (file_name_completion): Close directory on error
1988 just as in directory_files_internal.
1a590729 1989
048addec 19902002-12-19 David Kastrup <David.Kastrup@t-online.de>
1a590729 1991
048addec
JD
1992 * window.c (Fset_window_configuration): Set old_point to correct
1993 value when new_current_buffer == current_buffer.
f02cac82 1994
048addec 19952002-12-17 Ben Key <bkey1@tampabay.rr.com>
2308af15 1996
048addec
JD
1997 Revisited my earlier fix for the following entry in etc/PROBLEMS:
1998 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1999 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
9785d95b 2000
048addec
JD
2001 These changes were in part based upon suggestions made by Peter
2002 'Luna' Runestig [peter@runestig.com].
9785d95b 2003
048addec
JD
2004 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
2005 g_b_init_get_token_information, g_b_init_lookup_account_sid,
6bdb309a 2006 g_b_init_get_sid_identifier_authority ): Add several static
048addec 2007 global variables.
9785d95b 2008
048addec
JD
2009 * w32.c (globals_of_w32): New function. Used to initialize those
2010 global variables that must always be initialized on startup even
2011 when the global variable initialized is non zero. Its primary
2012 purpose at this time is to set the global variables
2013 g_b_init_is_windows_9x, g_b_init_open_process_token,
2014 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
2015 g_b_init_get_sid_identifier_authority to 0 on startup.
2016 Called from main.
9785d95b 2017
048addec
JD
2018 * w32.c (is_windows_9x): Perform initialization only if
2019 g_b_init_is_windows_9x is equal to 0. On initialization set
2020 g_b_init_is_windows_9x equal to 1.
2308af15 2021
048addec
JD
2022 * w32.c (open_process_token): Perform initialization only if
2023 g_b_init_open_process_token is equal to 0. On initialization set
2024 g_b_init_open_process_token equal to 1.
2308af15 2025
048addec
JD
2026 * w32.c (get_token_information): Perform initialization only if
2027 g_b_init_get_token_information is equal to 0. On initialization
2028 set g_b_init_get_token_information equal to 1.
9785d95b 2029
048addec
JD
2030 * w32.c (lookup_account_sid): Perform initialization only if
2031 g_b_init_lookup_account_sid is equal to 0. On initialization
2032 set g_b_init_lookup_account_sid equal to 1.
9785d95b 2033
048addec
JD
2034 * w32.c (get_sid_identifier_authority): Perform initialization
2035 only if g_b_init_get_sid_identifier_authority is equal to 0.
2036 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b 2037
048addec
JD
2038 * w32fns.c (globals_of_w32fns): New function. Used to initialize
2039 those global variables that must always be initialized on startup
2040 even when the global variable initialized is non zero.
2041 Its primary purpose at this time is to initialize the global variable
2042 track_mouse_event_fn.
9785d95b 2043
048addec
JD
2044 * w32fns.c (w32_wnd_proc): Remove initialization of
2045 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b 2046
048addec 2047 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
9785d95b 2048
048addec
JD
2049 * w32menu.c (globals_of_w32menu): New function. Used to
2050 initialize those global variables that must always be initialized
2051 on startup even when the global variable initialized is non zero.
2052 Its primary purpose at this time is to initialize the global
2053 variables get_menu_item_info and set_menu_item_info.
9785d95b 2054
048addec
JD
2055 * w32menu.c (initialize_frame_menubar): Remove initialization of
2056 get_menu_item_info and set_menu_item_info.
9785d95b 2057
048addec 2058 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
9785d95b 2059
048addec
JD
2060 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
2061 Declare them.
9785d95b 2062
048addec
JD
2063 * emacs.c (main): Call globals_of_w32 prior to calling
2064 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
2065 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
2066 is defined.
9785d95b 2067
048addec
JD
2068 * w32term.c (x_update_window_begin): Fix Windows API error
2069 detected by BoundsChecker. Test to determine if
2070 w32_system_caret_hwnd is NULL prior to attempting to use
2071 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
2308af15 2072
048addec
JD
2073 * w32term.c (x_update_window_end): Fix Windows API error
2074 detected by BoundsChecker. Test to determine if
2075 w32_system_caret_hwnd is NULL prior to attempting to use
2076 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
b6da19ef 2077
048addec 20782002-12-17 Kenichi Handa <handa@m17n.org>
b6da19ef 2079
048addec
JD
2080 * coding.c (coding_system_require_warning): New variable.
2081 (syms_of_coding): DEFVAR it.
b6da19ef 2082
048addec 2083 * coding.h (coding_system_require_warning): Extern it.
b6da19ef 2084
048addec
JD
2085 * fileio.c (choose_write_coding_system): Even if
2086 Vcoding_system_for_write is non-nil, if
2087 coding_system_require_warning is nonzero, call
2088 Vselect_safe_coding_system_function.
bfcf6dbe 2089
048addec 20902002-12-17 Markus Rost <rost@math.ohio-state.edu>
bfcf6dbe 2091
048addec
JD
2092 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
2093 (lisp): Add font-core.
2c568af5 2094
048addec 20952002-12-13 Stefan Monnier <monnier@cs.yale.edu>
2c568af5 2096
048addec
JD
2097 * textprop.c (text_read_only): New arg `propval'.
2098 (get_char_property_and_overlay): Remove unused var `next_overlay'.
2099 (verify_interval_modification): Use text_read_only's new arg.
b8c6225c 2100
048addec 21012002-12-13 Kenichi Handa <handa@m17n.org>
b8c6225c 2102
048addec 2103 * coding.c (Funencodable_char_position): Set pend correctly.
706ddb8f 2104
048addec 21052002-12-12 Jason Rumney <jasonr@gnu.org>
706ddb8f 2106
048addec
JD
2107 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
2108 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
2109 Be more careful about when help_events are generated.
96720f09 2110
048addec 21112002-12-12 Steven Tamm <steventamm@mac.com>
96720f09 2112
048addec
JD
2113 * macterm.c (mac_check_for_quit_char): Correctly set the
2114 modifiers of the event to 0.
2115 * mac.c (sys_select): Duplicate rfds before calling select to
2116 ensure that rfds survive the while loop.
e5ae1c49 2117
048addec 21182002-12-11 Kim F. Storm <storm@cua.dk>
e5ae1c49 2119
048addec
JD
2120 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
2121 row_containing_pos returned NULL.
2eb46b2d 2122
048addec 21232002-12-10 Steven Tamm <steventamm@mac.com>
2eb46b2d 2124
6bdb309a 2125 * mac.c (sys_read): Fix sys_read to not call select if IO is
048addec 2126 non-blocking.
6bdb309a 2127 (sys_select): Fix sys_select to not use a timeout larger than
048addec 2128 the one given.
b11f1d8a 2129
048addec 21302002-12-10 Juanma Barranquero <lektu@terra.es>
b11f1d8a 2131
048addec 2132 * editfns.c (Fformat): Use alloca, not _alloca.
d8528226 2133
048addec 21342002-12-09 Richard M. Stallman <rms@gnu.org>
d8528226 2135
048addec
JD
2136 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
2137 as the last thing.
a4ac5b17 2138
048addec 21392002-12-09 Dave Love <fx@gnu.org>
a4ac5b17 2140
048addec 2141 * s/sol2-8.h: Removed. (Not necessary.)
ac42d7b9 2142
048addec 21432002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9 2144
048addec
JD
2145 * editfns.c (Fformat): Handle precision in string conversion
2146 specifiers like libc functions do (ie, print at most that many
2147 characters).
85cce843 2148
048addec 21492002-12-08 Richard M. Stallman <rms@gnu.org>
85cce843 2150
048addec
JD
2151 * xdisp.c (row_containing_pos): Check more carefully
2152 whether charpos is really in the row before returning it.
0d4d26a7 2153
048addec 21542002-12-07 Steven Tamm <steventamm@mac.com>
0d4d26a7 2155
048addec 2156 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
b11f1d8a 2157
048addec
JD
2158 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
2159 each stack frame. This may change as it could be time consuming.
0d4d26a7 2160
048addec
JD
2161 * macterm.c (mac_check_for_quit_char, quit_char_comp)
2162 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6bdb309a 2163 (mac_initialize): Add code to check for pressing of quit_char
048addec 2164 in the OS event queue.
b11f1d8a 2165
048addec
JD
2166 * mac.c (sys_select): Call mac_check_for_quit_char every second
2167 while blocking on select.
0d4d26a7 2168
048addec
JD
2169 * mac.c (sys_read): Use sys_select to test for input first
2170 before calling read, to allow C-g to break.
9252f7bc 2171
048addec 21722002-12-07 Richard M. Stallman <rms@gnu.org>
9252f7bc 2173
048addec 2174 * minibuf.c (Fcompleting_read): Doc fix.
9252f7bc 2175
048addec 2176 * lread.c (syms_of_lread) <load-history>: Doc fix.
9252f7bc 2177
048addec 2178 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
9252f7bc 2179
048addec
JD
2180 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
2181 autoload.
9252f7bc 2182
048addec 2183 * data.c (Fdefalias): Record in load-history redefining an autoload.
9252f7bc 2184
048addec 2185 * alloca.c: Undo ifdef change accidentally made on 12-04.
bfa261c0 2186
048addec 21872002-12-06 Francesco Potorti` <pot@gnu.org>
bfa261c0 2188
048addec 2189 * xfns.c (png_load): Avoid double gamma correction for PNG images.
c5992177 2190
048addec 21912002-12-04 Richard M. Stallman <rms@gnu.org>
c5992177 2192
048addec 2193 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 2194
048addec 2195 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
c5992177 2196
048addec 2197 * alloca.c: Don't use #error.
02d588e2 2198
048addec 21992002-12-03 Dave Love <fx@gnu.org>
02d588e2 2200
048addec
JD
2201 * buffer.c (Qucs_set_table_for_input): New.
2202 (Fget_buffer_create): Use it.
2203 (Qset_buffer_major_mode_hook): Deleted.
2204 (Fset_buffer_major_mode): Revert previous change.
2205 (init_buffer_once): Intern ucs-set-table-for-input.
2206 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
2207 Add &Qucs_set_table_for_input.
451e2697 2208
048addec 22092002-12-03 Andreas Schwab <schwab@suse.de>
451e2697 2210
048addec
JD
2211 * callint.c (Fcall_interactively): Use next_event only if less
2212 than key_count.
72742a99 2213
048addec 22142002-12-02 Andrew Choi <akochoi@shaw.ca>
72742a99 2215
048addec
JD
2216 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
2217 names to 255 characters.
72742a99 2218
048addec
JD
2219 * macterm.c (XTread_socket): If all frames have been collapsed,
2220 expand the first one before handling drag-and-drop events.
72742a99 2221
048addec
JD
2222 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
2223 which is detected by autoconf.
40e6ff95 2224
048addec 22252002-12-01 Steven Tamm <steventamm@mac.com>
40e6ff95 2226
048addec
JD
2227 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
2228 offset in two hints table to allow prebinding to be redone and
2229 allow the executable to be stripped.
c02138c6 2230
048addec 22312002-11-29 Dave Love <fx@gnu.org>
c02138c6 2232
048addec
JD
2233 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
2234 already provided.
0e47bbf7 2235
048addec 22362002-11-29 Richard M. Stallman <rms@gnu.org>
0e47bbf7 2237
048addec
JD
2238 * xdisp.c (start_display): Check more intelligently for
2239 whether the line is continued.
2240 (move_it_vertically_backward): Clear it->continuation_lines_width.
44129dcb 2241
048addec 22422002-11-28 Dave Love <fx@gnu.org>
44129dcb 2243
048addec
JD
2244 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
2245 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
f707342d 2246
048addec 22472002-11-27 Steven Tamm <steventamm@mac.com>
f707342d 2248
048addec
JD
2249 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
2250 more descriptive error output from lread.c:Fload upon most require
2251 cycles during boostrapping.
1637fd2c 2252
048addec 22532002-11-27 Jason Rumney <jasonr@gnu.org>
1637fd2c 2254
048addec
JD
2255 * fileio.c (Finsert_file_contents): Give a more appropriate error
2256 for files bigger than 2Gb when off_t is 32 bit.
1637fd2c 2257
048addec
JD
2258 * dired.c (Ffile_attributes): Don't return negative file sizes for
2259 files bigger than 2Gb when off_t is 32 bit.
540c2788 2260
048addec 22612002-11-27 Dave Love <fx@gnu.org>
6b2fd6ea 2262
048addec 2263 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6b2fd6ea 2264
048addec
JD
2265 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
2266 Test GETPGRP_VOID instead.
2267 [BSD_TERMIOS]: Remove definitions (never used).
6b2fd6ea 2268
048addec
JD
2269 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
2270 Don't define.
2271 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
540c2788 2272
048addec 2273 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
8cc03716 2274
048addec 22752002-11-25 Jason Rumney <jasonr@gnu.org>
8cc03716 2276
048addec
JD
2277 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
2278 supported.
4042a81a 2279
048addec 22802002-11-25 Dave Love <fx@gnu.org>
4042a81a 2281
048addec 2282 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
4042a81a 2283
048addec 2284 * Makefile.in (TEMACS_LDFLAGS): Update last change.
be4ee72f 2285
048addec 22862002-11-25 Andreas Schwab <schwab@suse.de>
be4ee72f 2287
048addec 2288 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
82122254 2289
048addec 22902002-11-24 Steven Tamm <steventamm@mac.com>
82122254 2291
048addec
JD
2292 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
2293 determine the size of pointers alloced in unexed space instead
2294 of using possibly invalid emacs_zone pointers. This fixes the
2295 binary incompatibility problems caused by updates to libSystem.B.
c1ee53bc 2296
048addec 22972002-11-24 Richard M. Stallman <rms@gnu.org>
c1ee53bc 2298
048addec 2299 * search.c (Fstring_match): Doc fix.
c1ee53bc 2300
048addec
JD
2301 * callint.c (Fcall_interactively): If a command fails because
2302 `*' detects a read-only buffer, but RECORD_FLAG is set,
2303 record it anyway if the args don't actually do tty input.
5598c32e 2304
048addec 23052002-11-22 Dave Love <fx@gnu.org>
5598c32e 2306
048addec 2307 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 2308
048addec
JD
2309 * keyboard.c (interrupt_signal): Provide forward declaration.
2310 (kbd_buffer_store_event): Don't declare interrupt_signal.
5598c32e 2311
048addec 2312 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
97b14e22 2313
048addec 23142002-11-21 Richard M. Stallman <rms@gnu.org>
97b14e22 2315
048addec
JD
2316 * eval.c (interactive_p): Skip any number of bytecode
2317 and special form frames, in any order.
516eea8e 2318
048addec 23192002-11-20 Jason Rumney <jasonr@gnu.org>
516eea8e 2320
048addec
JD
2321 * w32fns.c (convert_mono_to_color_image): New function.
2322 (xbm_load, xbm_load_image): Use it when foreground or background
2323 is explicitly set.
04dbfa08 2324
048addec 23252002-11-19 Dave Love <fx@gnu.org>
04dbfa08 2326
048addec 2327 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
b4aebae3 2328
048addec 23292002-11-18 Jason Rumney <jasonr@gnu.org>
b4aebae3 2330
048addec
JD
2331 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
2332 (XPutPixel): Swap blue and red.
2333 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
2334 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
2335 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
2336 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1998560a 2337
048addec 23382002-11-18 Dave Love <fx@gnu.org>
d824beee 2339
048addec 2340 * m/orion105.h (HAVE_ALLOCA): Don't define.
d824beee 2341
048addec 2342 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee 2343
048addec 2344 * m/intel386.h: Don't include alloca.h or define alloca.
d824beee 2345
048addec
JD
2346 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
2347 malloc, realloc, calloc.
d824beee 2348
048addec
JD
2349 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
2350 (bcmp): Don't define.
d824beee 2351
048addec 2352 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
d824beee 2353
048addec 2354 * m/amdahl.h: Don't define LIB_STANDARD.
d824beee 2355
048addec 2356 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
d824beee 2357
048addec 2358 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
d824beee 2359
048addec
JD
2360 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
2361 Don't include alloca.h.
d824beee 2362
048addec 2363 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1998560a 2364
048addec 2365 * regex.c (_GNU_SOURCE): Don't define.
1998560a 2366
048addec 2367 * process.c (_GNU_SOURCE): Don't define.
1998560a 2368
048addec 2369 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
8704a6ab 2370
048addec 23712002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab 2372
048addec 2373 * s/sol2-8.h: Include sol2-6.h.
6ae2cd57 2374
048addec 23752002-11-18 Miles Bader <miles@gnu.org>
6ae2cd57 2376
048addec
JD
2377 * dispextern.h (struct face): Add `overstrike' field.
2378 * xterm.c (x_draw_glyph_string_foreground)
2379 (x_draw_composite_glyph_string_foreground): Implement overstriking.
2380 * xfaces.c (load_face_font): Set `face->overstrike' based on
2381 result from choose_face_font.
2382 (best_matching_font, choose_face_font): Add `needs_overstrike'
2383 argument, and use it to return whether overstriking is desirable
2384 for this face/font combo.
2385 (set_font_frame_param: Pass new argument to choose_face_font.
6ae2cd57 2386
048addec 23872002-11-17 Ben Key <BKey1@tampabay.rr.com>
3582b6a3 2388
048addec
JD
2389 This change is my fix for the following entry in etc/PROBLEMS:
2390 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
2391 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
f60ae425 2392
048addec
JD
2393 * w32.c: Added wrapper functions around the win32 API functions
2394 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
2395 GetSidIdentifierAuthority. These wrapper functions serve two
2396 purposes:
2397 1. They ensure that the wrapped function can never be called
2398 when Emacs is running on an operating system on which they are
2399 not supported (Microsoft Windows 95 / 98 / ME).
2400 2. They call the wrapped functions via function pointers rather
2401 than calling them directly. This avoids taking advantage of the
2402 undocumented fact that although these functions are not supported
2403 in the 9x branch of Microsoft Windows, the functions do exist in
2404 the version of advapi32.dll that is found in the 9x branch of
2405 Microsoft Windows.
f60ae425 2406
6bdb309a 2407 * w32.c (init_user_info): Replace the calls to the win32 API
048addec
JD
2408 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
2409 and GetSidIdentifierAuthority with calls to the newly added
2410 wrapper functions.
f60ae425 2411
048addec
JD
2412 * w32.h: Added extern declarations for the following functions:
2413 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
2414 syms_of_w32menu, and void syms_of_fontset.
f60ae425 2415
6bdb309a 2416 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
048addec
JD
2417 function pointer track_mouse_event_fn in the handler for the
2418 WM_SETFOCUS message.
3582b6a3 2419
6bdb309a 2420 * w32menu.c (initialize_frame_menubar): Add code to
048addec
JD
2421 reinitialize the function pointers set_menu_item_info and
2422 get_menu_item_info.
f60ae425 2423
048addec 24242002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 2425
048addec
JD
2426 * sound.c: Added a partial implementation of play-sound-internal
2427 for Microsoft Windows. Added various #ifdef / #else / #endif
2428 code blocks to separate the code that will compile under
2429 Microsoft Windows from the code that is specific to Gnu/Linux.
2430 Moved several blocks of code around to make this separation of code
2431 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 2432
048addec 2433 * makefile.w32-in: Include sound.c and link with WinMM.lib.
a0f0878d 2434
048addec
JD
2435 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
2436 added support for play-sound-internal under Windows would be
2437 included in the build of Emacs.
517f42a0 2438
048addec 24392002-11-16 Jason Rumney <jasonr@gnu.org>
517f42a0 2440
048addec 2441 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
517f42a0 2442
048addec 2443 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
a0f0878d 2444
048addec 24452002-11-15 Stefan Monnier <monnier@cs.yale.edu>
a0f0878d 2446
048addec
JD
2447 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
2448 (adjust_point_for_property): Move out of display and invisible even if
2449 we were already inside before (in case a property was added while
2450 we weren't looking). Be more careful when handling invisible props.
2451 Skip invisible text as if it really wasn't there at all.
aab83f91 2452
048addec 24532002-11-15 Jason Rumney <jasonr@gnu.org>
aab83f91 2454
048addec
JD
2455 * w32term.c (x_draw_image_foreground)
2456 (w32_draw_image_foreground_1): Use standard copy and invert
2457 operations to draw images.
aab83f91 2458
048addec
JD
2459 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
2460 depth of 1.
2461 (xbm_read_bitmap_data): Invert bits as xbm is read in.
2462 (XPutPixel): Don't invert bits here.
a4478a76 2463
048addec 24642002-11-15 Jason Rumney <jasonr@gnu.org>
a4478a76 2465
048addec
JD
2466 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
2467 (w32_draw_image_foreground_1): Handle image masks.
2468 (x_draw_image_glyph_string): Don't BitBlt transparently.
a4478a76 2469
048addec
JD
2470 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
2471 (x_from_xcolors): Adjust RGB values for W32.
2472 (image_background, image_background_transparent)
2473 (postprocess_image, x_to_xcolors, x_disable_image)
2474 (x_build_heuristic_mask): Adapt for W32 and enable.
2475 (x_create_x_image_and_pixmap): Mark images with palettes as such.
2476 (xbm_load): Remove unused variable.
03670a65 2477
048addec 24782002-11-14 Richard M. Stallman <rms@gnu.org>
03670a65 2479
048addec 2480 * buffer.c (syms_of_buffer): Doc fix.
59daa29a 2481
048addec 24822002-11-14 Dave Love <fx@gnu.org>
59daa29a 2483
048addec 2484 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
59daa29a 2485
048addec
JD
2486 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
2487 * xmenu.c (unuse_menu_items, digest_single_submenu):
2488 * xfns.c (x_put_x_image):
2489 * xdisp.c (message2_nolog, set_message):
2490 * undo.c (record_point):
2491 * terminfo.c (tparam):
2492 * syntax.c (scan_sexps_forward):
2493 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
2494 * composite.c (update_compositions):
2495 * cm.c (calccost, cmgoto):
2496 * charset.c (c_string_width): Declare all args (per C99).
59daa29a 2497
048addec 2498 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a 2499
048addec
JD
2500 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
2501 Don't declare.
59daa29a 2502
048addec 2503 * emacs.c (main) [!VMS]: Avoid third arg.
59daa29a 2504
048addec
JD
2505 * fns.c (Fcopy_sequence): Doc fix.
2506 (Fmap_char_table): Cast `call2'.
3947677c 2507
048addec
JD
25082002-11-14 Francesco Potorti` <pot@gnu.org>
2509
2510 * s/sol2-8.h: New file.
2511
25122002-11-14 Kim F. Storm <storm@cua.dk>
2513
2514 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
2515 dependency on `risky-local-variable' and the :propertize form.
2516
25172002-11-12 Stefan Monnier <monnier@cs.yale.edu>
2518
2519 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
2520
2521 * syntax.c (scan_sexps_forward): Undo last patch.
2522 Use a more obvious fix: check eob before updating the syntax table.
2523
25242002-11-09 Stefan Monnier <monnier@cs.yale.edu>
2525
2526 * syntax.c (scan_sexps_forward): Update syntax table before reading
2527 a char rather than after so we don't update the table past eob.
2528
25292002-11-09 Dave Love <fx@gnu.org>
2530
2531 * buffer.c (Fset_buffer_major_mode): Fix last change.
2532
2533 * regex.c (regexec): Fix pmatch declaration.
2534
2535 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
2536
2537 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
2538 to self-inserting characters.
2539 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
2540
2541 * coding.c (Vtranslation_table_for_input): New.
2542 (syms_of_coding): DEFVAR it.
2543
25442002-11-08 Juanma Barranquero <lektu@terra.es>
2545
2546 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
2547 window.
2548
25492002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2550
6bdb309a 2551 * process.c (Fformat_network_address): Remove unused locals p,
048addec
JD
2552 cp, and i.
2553
25542002-11-06 Dave Love <fx@gnu.org>
2555
2556 * buffer.c (Qset_buffer_major_mode_hook): New.
2557 (Fset_buffer_major_mode): Use it.
2558
25592002-11-06 Richard M. Stallman <rms@gnu.org>
2560
2561 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
2562 and stop_polling.
2563
2564 * process.c (wait_reading_process_input):
2565 Test POLLING_PROBLEM_IN_SELECT, not hpux.
2566 Avoid initialization for auto Lisp_Object var.
2567
2568 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
2569
2570 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
2571
25722002-11-05 Richard M. Stallman <rms@gnu.org>
2573
2574 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
2575
2576 * callint.c (Fcall_interactively): New local filter_specs.
2577 (Fcall_interactively): Check for progn as well as let.
2578 Add a gcpro.
2579 (Qprogn): New variable.
2580 (syms_of_callint): Staticpro and init Qprogn.
2581
25822002-11-04 John Paul Wallington <jpw@shootybangbang.com>
2583
2584 * lread.c (Feval_buffer): Doc fix.
2585
25862002-11-04 Dave Love <fx@gnu.org>
2587
2588 * keyboard.c (read_char): Always translate iff
2589 Vkeyboard_translate_table is a char table and c is valid.
2590
2591 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
2592 and fix C types.
2593
25942002-11-03 Stefan Monnier <monnier@cs.yale.edu>
2595
2596 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
2597
2598 * editfns.c (get_pos_property): Don't hardcode Qfield.
2599
2600 * keyboard.c (adjust_point_for_property): Handle `display' prop on
2601 overlays. Also handle `invisible' prop.
2602
26032002-11-02 Stefan Monnier <monnier@cs.yale.edu>
2604
2605 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
2606 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
2607
26082002-11-01 Andreas Schwab <schwab@suse.de>
2609
2610 * editfns.c (Fmessage): Revert last change to properly handle %%.
2611
26122002-11-01 Stefan Monnier <monnier@cs.yale.edu>
2613
2614 * xmenu.c (unuse_menu_items): New fun.
2615 (menu_items_inuse): New var.
2616 (syms_of_xmenu): Initialize it.
2617 (init_menu_items): Use it to detect re-entrance.
2618 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
2619 (Fx_popup_menu): Remove spurious XSETFRAME.
2620
2621 * editfns.c (find_field): Make an exception for nil fields.
2622
26232002-11-01 Dave Love <fx@gnu.org>
2624
2625 * m/gec63.h: Deleted.
2626
26272002-10-31 Dave Love <fx@gnu.org>
2628
2629 * xterm.c (XTread_socket): Fix last change.
2630 (xaw_scroll_callback): Cast call_data to long to avoid warning.
2631
26322002-10-31 Stefan Monnier <monnier@cs.yale.edu>
2633
2634 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
2635
26362002-10-30 Stefan Monnier <monnier@cs.yale.edu>
2637
2638 * editfns.c (overlays_around, get_pos_property): New funs.
2639 (find_field): Use them.
2640 Also be careful not to modify POS before its last use.
2641 (Fmessage): Don't Fformat if there's nothing to format.
2642
26432002-10-30 Dave Love <fx@gnu.org>
2644
2645 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
2646 [HAVE_PTY_H]; Include pty.h.
2647
2648 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
2649
2650 * xterm.c (Qeql): Declare.
2651 (Vx_keysym_table): New.
2652 (syms_of_xterm): Initialize it.
2653 (XTread_socket): Use it. Deal with ASCII keysyms.
2654 (XSetIMValues) [HAVE_X11R6]: Prototype.
2655
2656 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
2657 (lispy_kana_keys): Comment out.
2658 (make_lispy_event) [XK_kana_A]: Comment out.
2659 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
2660 Fix sprintf call.
2661
2662 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
2663 regexp.h change).
2664 (TERMINFO, LIBS_TERMCAP): Define.
2665
2666 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
2667 (bcmp): Define conditional on HAVE_BCMP.
2668 (NO_SIOCTL_H): Don't define.
2669 (TIOCSIGSEND): Don't make conditional on IRIX6.
2670
2671 * s/sol2-5.h: Don't include strings.h.
2672 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
2673
2674 * s/irix6-0.h (IRIX6): Don't define.
2675 (bcopy, bcmp, bzero): Don't undef.
2676
2677 * s/irix6-5.h: Don't include strings.h.
2678 (IRIX6): Don't define.
2679 (bcopy, bcmp, bzero): Don't undef.
2680
2681 * syntax.c (Fforward_comment): Doc fix.
2682
26832002-10-29 Kim F. Storm <storm@cua.dk>
2684
2685 * process.c (Fsignal_process): Allow PROCESS to be specified by
2686 name in addition to pid (as integer or string).
2687
26882002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
2689
2690 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
2691 environments.
2692
26932002-10-27 Kim F. Storm <storm@cua.dk>
2694
2695 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2696
2697 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
2698
2699 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
2700
2701 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
2702
27032002-10-26 Richard M. Stallman <rms@gnu.org>
2704
2705 * editfns.c (Fformat): Detect invalid format letters for floats.
2706
27072002-10-25 Kenichi Handa <handa@m17n.org>
2708
2709 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
2710 (x_set_title): Likewise.
2711
27122002-10-25 Juanma Barranquero <lektu@terra.es>
2713
2714 * macgui.h:
2715 * w32gui.h: Remove definition of XColor.
2716
2717 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
2718
27192002-10-24 Kim F. Storm <storm@cua.dk>
2720
2721 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
2722 Callers changed (supply dummy arg).
2723
2724 * lisp.h (get_window_cursor_type): Update prototype.
2725
2726 * w32term.c (x_display_and_set_cursor): Get active_cursor from
2727 get_window_cursor_type to track system caret.
2728
27292002-10-24 Kim F. Storm <storm@cua.dk>
2730
2731 * process.c (Fformat_network_address): New function.
2732 (syms_of_process): Defsubr it.
2733 (list_processes_1): Use it to format :local/:remote address if
2734 service/host is not set; before emacs would crash in that case.
2735 (Fmake_network_process): Don't use Ffind_operation_coding_system
2736 to setup coding system if host or service is not set.
2737
27382002-10-23 Juanma Barranquero <lektu@terra.es>
2739
2740 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
2741
2742 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
2743 COLORREF.
2744
2745 * macgui.h:
2746 * w32gui.h: Add definition of XColor.
2747
2748 * macfns.c:
2749 * w32fns.c:
2750 * xfaces.c: Remove definition of XColor.
2751
27522002-10-22 Stefan Monnier <monnier@cs.yale.edu>
2753
2754 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
2755
2756 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
2757 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
2758 window if it is dedicated.
2759 (Fshrink_window): Add preserve_before as was done for enlarge_window.
2760 (Vspecial_display_function): Update docstring.
2761
2762 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
2763 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
2764 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
2765
27662002-10-21 Stefan Monnier <monnier@cs.yale.edu>
2767
2768 * casefiddle.c (casify_region): Don't treat a prefix char as part
2769 of a word when at the beginning.
2770
27712002-10-17 Juanma Barranquero <lektu@terra.es>
2772
2773 * lread.c (syms_of_lread): Fix typos.
2774
27752002-10-17 Dave Love <fx@gnu.org>
2776
2777 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
2778
27792002-10-16 Richard M. Stallman <rms@gnu.org>
2780
2781 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
2782
27832002-10-14 Juanma Barranquero <lektu@terra.es>
2784
2785 * w16select.c (syms_of_win16select): Fix docstring for
2786 `selection-coding-system'.
2787
2788 * w32select.c (syms_of_w32select): Likewise.
2789
27902002-10-14 Stefan Monnier <monnier@cs.yale.edu>
2791
2792 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
2793 a backslash-quoted char.
2794 (scan_lists, scan_sexps_forward): Pacify the compiler.
2795
27962002-10-13 Richard M. Stallman <rms@gnu.org>
2797
2798 * window.c (window_scroll): Set immediate_quit.
2799
2800 * print.c (print): When backquote form is the car of a list,
2801 output in old style. Use old_backquote_output to output all
2802 comma forms inside it in old style too.
2803
2804 * buffer.h (struct buffer): Move `undo_list' down below `name'.
2805
28062002-10-11 Markus Rost <rost@math.ohio-state.edu>
2807
2808 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
2809 batch mode).
2810
2811 * lread.c (Fload): Doc fix (load-suffixes).
2812
28132002-10-10 Steven Tamm <steventamm@mac.com>
2814
2815 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
2816 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
2817 Also switch the default to Qnil from Qt.
2818
28192002-10-08 Kenichi Handa <handa@m17n.org>
2820
2821 * coding.c (code_convert_region): When we need more GAP for
2822 conversion, pay attention to the case that coding->produced is not
2823 greater than coding->consumed.
2824
28252002-10-07 Richard M. Stallman <rms@gnu.org>
2826
2827 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
2828
28292002-10-06 Andrew Choi <akochoi@shaw.ca>
2830
2831 * macmenu.c (mac_menu_show): Add j to count menu items; match
2832 menu_item_selection to it to find selected item.
2833
28342002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2835
2836 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
2837 cases. The correct fix is to pass ReparentNotify to Xt.
2838 The shell widget interprets ConfigureNotify differently depending
2839 on if it has been reparented or not.
2840
28412002-10-05 Markus Rost <rost@math.ohio-state.edu>
2842
2843 * editfns.c (Fformat_time_string): Doc fix.
2844
28452002-10-05 John Paul Wallington <jpw@shootybangbang.com>
2846
2847 * fns.c (Flength): Doc fix.
2848
28492002-10-04 Stefan Monnier <monnier@cs.yale.edu>
2850
2851 * keyboard.c (keyremap): New struct.
2852 (read_key_sequence): Use it: globally replace keytran_foo with
2853 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
2854 keytran_next and fkey_next to just `next'.
2855
28562002-10-04 Steven Tamm <steventamm@mac.com>
2857
2858 * macterm.c (keycode_to_xkeysym_table): Change return to be
2859 treated like an X keysym.
2860
28612002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2862
2863 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
2864 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
2865 This is to also handle x/y changes that occur because of a resize.
2866
28672002-10-02 John Paul Wallington <jpw@shootybangbang.com>
2868
2869 * frame.c (Vdelete_frame_functions): New variable.
2870 (syms_of_frame): Initialize and defvar it.
2871 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
2872 it when frame's `tooltip' parameter is non-nil.
2873
2874 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
2875
2876 * w32fns.c (x_create_tip_frame): Likewise.
2877
2878 * macfns.c (x_create_tip_frame): Likewise.
2879
28802002-09-30 Kenichi Handa <handa@m17n.org>
2881
2882 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
2883 -1 before calling ccl_driver.
2884
2885 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
2886 Only when it is non-nil, handle composition sequence.
2887 (setup_coding_system) <0>: Don't force composition handling.
2888
2889 * Makefile.in (lisp, shortlisp): Add utf-16.elc
2890
28912002-09-29 Richard M. Stallman <rms@gnu.org>
2892
2893 * search.c (Freplace_match): Adjust match data for the substitution
2894 just made in the buffer.
2895
2896 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
2897 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
2898
28992002-09-27 Richard M. Stallman <rms@gnu.org>
2900
2901 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
2902 (read_char): Use them. Do all exits thru the end of the function.
2903
29042002-09-27 Kenichi Handa <handa@etl.go.jp>
2905
2906 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
2907 is nil.
2908
29092002-09-26 Richard M. Stallman <rms@gnu.org>
2910
2911 * regex.h (__restrict_arr): Don't define if already defined.
2912
2913 * coding.c (run_pre_post_conversion_on_str):
2914 Save and restore Vdeactivate_mark.
2915
29162002-09-26 John Paul Wallington <jpw@shootybangbang.com>
2917
2918 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
2919
29202002-09-26 Kenichi Handa <handa@etl.go.jp>
2921
2922 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
2923 nonzero, try face's family at first. Otherwise try FAMILY at first.
2924 (choose_face_font): If C is a single byte char or latin-1, call
2925 try_font_list with PREFER_FACE_FAMILY 1.
2926
29272002-09-21 Richard M. Stallman <rms@gnu.org>
2928
2929 * window.c (select_window_1): Don't select frame.
2930 Set frame's selected window only when frame itself is selected.
2931 (Fselect_window): Doc fix.
2932
29332002-09-18 Kim F. Storm <storm@cua.dk>
2934
2935 * process.c (make-network-process): Doc fix (there is no
2936 network-server-log-function hook).
2937
29382002-09-18 Richard M. Stallman <rms@gnu.org>
2939
2940 * print.c (print): Clear out the unused parts of Vprint_number_table.
2941 (syms_of_print): Doc fix for `print-number-table'.
2942
2943 * unexelf.c (unexec): Undo previous change.
2944
29452002-09-17 Andreas Schwab <schwab@suse.de>
2946
2947 * m/alpha.h [LINUX]: Don't define DATA_START.
2948
29492002-09-16 Dave Love <fx@gnu.org>
2950
2951 * unexelf.c (unexec): Deal with .got, reinstating change from
2952 25-08-1999.
2953
29542002-09-13 Richard M. Stallman <rms@gnu.org>
2955
2956 * s/sol2-6.h (UNEXEC): Comment out definition.
2957
2958 * unexsol.c (unexec): Don't downcase first letter of error msg.
2959
2960 * xfaces.c (Fcolor_supported_p): Just one arg is required.
2961
29622002-09-12 Markus Rost <rost@math.ohio-state.edu>
2963
2964 * unexsol.c: Include buffer.h, charset.h, coding.h.
2965
29662002-09-11 Richard M. Stallman <rms@gnu.org>
2967
2968 * unexsol.c: Don't use report_file_error; do it by hand
2969 using dlerror.
2970
2971 * process.c (wait_reading_process_input, both versions):
2972 Before calling turn_on_atimers, call stop_polling.
2973
2974 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
2975
2976 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
2977 we go to too_near_end, call clear_glyph_matrix.
2978 (redisplay_window): After make_cursor_line_fully_visible,
2979 call clear_glyph_matrix and bypass `goto done'.
2980
2981 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
2982 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
2983
29842002-09-10 Richard M. Stallman <rms@gnu.org>
2985
2986 * fileio.c (Fdo_auto_save): Catch error making directory.
2987 Only call push_message if we need to.
2988 At the same time, make an unwind-protect to pop it.
2989 Rename local message_p to old_message_p.
2990 (do_auto_save_make_dir, do_auto_save_eh): New functions.
2991 (do_auto_save_unwind): Don't call pop_message.
2992
2993 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
2994
2995 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
2996
2997 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
2998
2999 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
3000
30012002-09-10 Stefan Monnier <monnier@cs.yale.edu>
3002
3003 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
3004 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
3005 (re_match_2_internal): Be more careful with infinite loops.
3006
30072002-09-10 Kim F. Storm <storm@cua.dk>
3008
3009 * macros.c (end_kbd_macro): New function.
3010 (Fend_kbd_macro): Use it.
3011
3012 * macros.h (end_kbd_macro): Declare extern.
3013
3014 * keyboard.c (Fdiscard_input): If defining keyboard macro,
3015 end and save it instead of discarding it.
3016
30172002-09-09 Markus Rost <rost@math.ohio-state.edu>
3018
3019 * s/sol2-6.h: Fix typo. Add comment.
3020
30212002-09-09 Richard M. Stallman <rms@gnu.org>
3022
3023 * regex.c (regnum_t): Use signed int, not unsigned int.
3024
3025 * s/sol2-6.h: New file.
3026
3027 * s/sol2-5.h (UNEXEC): Definition deleted.
3028
30292002-09-08 Kim F. Storm <storm@cua.dk>
3030
3031 * macros.c (executing_macro_index): Change type to EMACS_INT.
3032 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
3033
3034 * macros.h (executing_macro_index): Change type to EMACS_INT.
3035
30362002-09-06 Richard M. Stallman <rms@gnu.org>
3037
3038 * casetab.c (set_case_table): Make canon table point to eqv table.
3039
30402002-09-06 Juanma Barranquero <lektu@terra.es>
3041
3042 * coding.c (syms_of_coding): Fix spacing.
3043
3044 * composite.c (Fcompose_region_internal)
3045 (Fcompose_string_internal): Likewise.
3046
3047 * data.c (Flsh): Likewise.
3048
3049 * fontset.c (Fset_fontset_font): Likewise.
3050
3051 * macfns.c (Fx_server_max_request_size): Likewise.
3052
3053 * w16select.c (syms_of_win16select): Likewise.
3054
3055 * w32select.c (syms_of_w32select): Likewise.
3056
3057 * xselect.c (syms_of_xselect): Likewise.
3058
30592002-09-05 Richard M. Stallman <rms@gnu.org>
3060
3061 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
3062 call EXTEND_RANGE_TABLE and return a proper value.
3063 (set_image_of_range): Don't call set_image_of_range_1
3064 if no TRANSLATE or if range includes all of Latin-1.
3065 Only call it for the Latin-1 part of the range.
3066 For other cases, make two separate ranges,
3067 one for the original specified characters and one for
3068 their case-conversions.
3069
30702002-09-04 Richard M. Stallman <rms@gnu.org>
3071
3072 * s/sol2-5.h (UNEXEC): Use unexsol.o.
3073
3074 * window.c (displayed_window_lines): Correct for one-off bug
3075 in HEIGHT on non-window displays.
3076
3077 * regex.c (set_image_of_range_1): New function.
3078 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
3079 Return a value to indicate running out of memory.
3080 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
3081 (extend_range_table_work_area): New subroutine.
3082 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
3083 Different calling conventions, and used from set_image_of_range{,_1}.
3084 (IMMEDIATE_QUIT_CHECK): Definitions moved.
3085
30862002-09-04 Juanma Barranquero <lektu@terra.es>
3087
3088 * makefile.w32-in: All dependencies updated.
3089
30902002-09-01 Richard M. Stallman <rms@gnu.org>
3091
3092 * unexsol.c: New file.
3093
3094 * xfns.c (Qbox): Declare external, don't define.
3095
3096 * xdisp.c (redisplay_window) <force-start case>:
3097 If point is on semi-visible last line, reposition
3098 it at previous line.
3099
3100 * alloc.c (display_malloc_warning): Use display-warning.
3101 (malloc_warning_1): Function deleted.
3102
3103 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
3104
3105 * lread.c (read1): Handle #! by skipping the line.
3106
31072002-08-31 Richard M. Stallman <rms@gnu.org>
3108
3109 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
3110 Don't include LDFLAGS.
3111 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
3112
31132002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
3114
3115 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
3116 member of x_display_info unless we compile for some window system.
3117
31182002-08-31 Kim F. Storm <storm@cua.dk>
3119
3120 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
3121 (get_window_cursor_type): Don't use them.
3122 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
3123
31242002-08-30 Kenichi Handa <handa@etl.go.jp>
3125
3126 * xdisp.c (get_next_display_element): Fix previous change.
3127
31282002-08-30 Andrew Choi <akochoi@shaw.ca>
3129
3130 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
3131 (expose_window): Use it to fix the display of overlapping
3132 rows (merge code from xterm.c).
3133
3134 * macfns.c (Qbox): Add extern declaration.
3135
31362002-08-30 Juanma Barranquero <lektu@terra.es>
3137
3138 * w32fns.c (Qbox): Make extern.
3139 (syms_of_w32fns): Remove initialization of Qbox.
3140
31412002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
3142
3143 * xfns.c (Fx_open_connection): Fix error message.
3144
31452002-08-30 Kim F. Storm <storm@cua.dk>
3146
3147 The following changes consolidates the handling of the cursor
3148 type in xdisp.c, moving duplicate code and functionality from
3149 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
3150
3151 * frame.h (enum text_cursor_kinds): Consolidated here.
3152 Added DEFAULT_CURSOR value.
3153 (struct frame) <desired_cursor, cursor_width>
3154 <blink_off_cursor, blink_off_cursor_width>: New fields.
3155 Consolidated from output_x, output_w32 and output_mac structs.
3156 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3157 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
3158
3159 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
3160 Variables consolidated here.
3161 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
3162 (Vcursor_in_non_selected_windows): Renamed from
3163 cursor_in_non_selected_windows and changed to Lisp_Object.
3164 (syms_of_xdisp): Define and staticpro new and moved variables.
3165 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
3166 consolidated here. Recognize Qhollow setting.
3167 (set_frame_cursor_types): New function to set frame cursor types
3168 based on the frame parameters.
3169 (get_window_cursor_type): New function to calculate new cursor
3170 type and width for the specified window. Based on duplicated
3171 code consolidated here.
3172 Enhancements: cursor-in-non-selected-windows may be a cursor type,
3173 check buffer-local alternate-cursor-type and blink-cursor-alist
3174 before using built-in blink off methods.
3175
3176 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
3177
3178 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
3179 (get_specified_cursor_type, get_window_cursor_type)
3180 (set_frame_cursor_types): Added prototypes.
3181
3182 * macfns.c (x_specified_cursor_type): Removed.
3183 (x_set_cursor_type): Use set_frame_cursor_types.
3184 (Qbar, Qbox): Removed.
3185 (syms_of_macfns): Don't intern or staticpro them.
3186
3187 * macterm.c (x_specified_cursor_type): Remove prototype.
3188 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3189 (x_display_and_set_cursor): Use get_window_cursor_type.
3190 Remove unused local variables cursor_non_selected, active_cursor.
3191 Redraw cursor if hbar cursor width changes.
3192 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
3193
3194 * macterm.h (enum text_cursor_kinds): Removed.
3195 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
3196 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3197 (FRAME_DESIRED_CURSOR): Macro removed.
3198
3199 * w32fns.c (Vblink_cursor_alist): Removed.
3200 (Qbar, Qhbar, Qbox, Qhollow): Removed.
3201 (syms_of_w32fns): Don't intern, staticpro, or define them.
3202 (x_specified_cursor_type): Removed.
3203 (x_set_cursor_type): Use set_frame_cursor_types.
3204
3205 * w32term.c (x_specified_cursor_type): Remove prototype.
3206 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3207 (x_display_and_set_cursor): Use get_window_cursor_type.
3208 Remove unused local variables cursor_off_state.
3209 Redraw cursor if hbar cursor width changes.
3210 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
3211
3212 * w32term.h (enum text_cursor_kinds): Removed.
3213 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
3214 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3215 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3216 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
3217 (struct w32_display_info) <x_highlight_frame>: Renamed member from
3218 w32_highlight_frame.
3219
3220 * xfns.c (Vblink_cursor_alist): Removed.
3221 (Qbar, Qhbar, Qbox, Qhollow): Removed.
3222 (syms_of_xfns): Don't intern, staticpro, or define them.
3223 (x_specified_cursor_type): Removed.
3224 (x_set_cursor_type): Use set_frame_cursor_types.
3225
3226 * xterm.c (x_specified_cursor_type): Remove prototype.
3227 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
3228 (x_display_and_set_cursor): Use get_window_cursor_type.
3229 Remove unused local variables cursor_off_state.
3230 Redraw cursor if hbar cursor width changes.
3231
3232 * xterm.h (enum text_cursor_kinds): Removed.
3233 (struct output_x) <current_cursor, desired_cursor, cursor_width>
3234 <blink_off_cursor, blink_off_cursor_width>: Members removed.
3235 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
3236 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
3237 (x_specified_cursor_type): Remove prototype.
3238
32392002-08-28 Richard M. Stallman <rms@gnu.org>
3240
3241 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
3242 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
3243 (Vblink_cursor_alist): New variable.
3244 (syms_of_w32fns): Initialize and defvar it.
3245 (x_specified_cursor_type): Recognize Qbox for filled box.
3246 Exceptions are hollow boxes.
3247 (Qbox, Qhollow): New variables.
3248 (syms_of_w32fns): Initialize and staticpro them.
3249
3250 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
3251 New macros.
3252 (struct w32_output): New fields blink_off_cursor,
3253 blink_off_cursor_width.
3254 (FRAME_CURSOR_WIDTH): New macro.
3255
3256 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
3257 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
3258
3259 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3260 for bar cursor.
3261
3262 * w32term.c (expose_overlaps): New function.
3263 (expose_window): Use it to fix the display of overlapping rows.
3264
32652002-08-28 Simon Josefsson <jas@extundo.com>
3266
3267 * xfns.c (Fx_open_connection): Improve help when X connection
3268 fails, xhost is insecure and xauth is better.
3269
32702002-08-28 Juanma Barranquero <lektu@terra.es>
3271
3272 * makefile.w32-in: Add missing dependencies on w32term.h and
3273 composite.h.
3274
3275 * emacs.c (USAGE1): Add missing newline.
3276
32772002-08-27 Andrew Choi <akochoi@shaw.ca>
3278
3279 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
3280
32812002-08-27 Richard M. Stallman <rms@gnu.org>
3282
3283 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
3284 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
3285 (Vblink_cursor_alist): New variable.
3286 (syms_of_xfns): Initialize and defvar it.
3287 (x_specified_cursor_type): Recognize Qbox for filled box.
3288 Exceptions are hollow boxes.
3289 (Qbox, Qhollow): New variables.
3290 (syms_of_xfns): Initialize and staticpro them.
3291
3292 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
3293 New macros.
3294 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
3295
3296 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
3297 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
3298
3299 * emacs.c (main): Handle --script.
3300 (USAGE1): Mention --script.
3301 (standard_args): Define sort order for --script.
3302
33032002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
3304
3305 * xdisp.c (redisplay_updating_p): Variable removed.
3306 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
3307 New variables.
3308 (init_iterator): Don't free realized faces if
3309 inhibit_free_realized_faces is set.
3310 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
3311 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
3312 initialize Qinhibit_free_realized_faces.
3313
3314 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
3315 when iterator is adding glyphs to a glyph matrix.
3316
33172002-08-27 Kenichi Handa <handa@etl.go.jp>
3318
3319 * xdisp.c (get_next_display_element): In unibyte case, don't use
3320 octal form for such eight-bit characters that can be converted to
3321 multibyte char.
3322
33232002-08-26 Kim F. Storm <storm@cua.dk>
3324
3325 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
3326 and background colors. From Joe Buehler (tiny change).
3327
33282002-08-26 Miles Bader <miles@gnu.org>
3329
3330 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
3331
33322002-08-25 Andrew Choi <akochoi@shaw.ca>
3333
3334 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
3335 defined instead of MAC_OSX.
3336
3337 * s/darwin.h (select): Define select to sys_select only if
3338 HAVE_CARBON is defined.
3339 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
3340 (DONT_REOPEN_PTY): #def it.
3341
3342 * macterm.c (XTread_socket): Remove code to call
3343 SendEventToEventTarget for keys with command modifiers when
3344 mac_command_key_is_meta is nil.
3345
33462002-08-24 Andreas Schwab <schwab@suse.de>
3347
3348 * eval.c (Fdefvar): Fix last change.
3349
33502002-08-23 Richard M. Stallman <rms@gnu.org>
3351
3352 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
3353 Record variables in load history as (defvar . VAR).
3354 (Fdefvar): Don't record in load history if no initial value.
3355 (Qdefvar): New variable.
3356 (syms_of_eval): Init and staticpro it.
3357
3358 * lread.c (syms_of_lread): Doc fix.
3359 (build_load_history): Use Fmember to see if a definition
3360 is already in the Vload_history element.
3361
3362 * process.c (Fstart_process): Remove /: from program name.
3363
3364 * emacs.c (decode_env_path): Don't add /: if file name handler
3365 has a `safe-magic' property.
3366
3367 * callproc.c (Fcall_process): Remove /: from program name.
3368
33692002-08-23 Stefan Monnier <monnier@cs.yale.edu>
3370
3371 * regex.c (PATFETCH): Remove the translating fetch.
3372 (PATFETCH_RAW): Rename to PATFETCH.
3373 (set_image_of_range): New fun.
3374 (SET_RANGE_TABLE_WORK_AREA): Use it.
3375 (regex_compile): Don't translate the pattern chars so eagerly.
3376 Only do it when inserting an `exactn' bytecode or when handling
3377 a char-range.
3378 (mutually_exclusive_p): Avoid empty statement.
3379
33802002-08-22 Kim F. Storm <storm@cua.dk>
3381
3382 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
3383 end up on a partially visible line; this reverts a specific part
3384 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
3385 display error which has been reported several times now.
3386 However it introduces the problem that changes was supposed to fix.
3387 See my comments in the source if you want to debug this further.
3388
33892002-08-20 Kenichi Handa <handa@etl.go.jp>
3390
3391 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
3392
33932002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
3394
3395 * msdos.c (croak): Add `void' to definition.
3396
3397 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
3398 Don't define them, they are defined in msdos.c.
3399
3400 * mem-limits.h [MSDOS]: Declare etext.
3401
3402 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
3403 `const' since CORRECT_DIR_SEPS modifies its target.
3404
34052002-08-19 Kim F. Storm <storm@cua.dk>
3406
3407 * keyboard.c (Fclear_this_command_keys): Added optional arg
3408 KEEP-RECORD to avoid clearing lossage when we just want to clear
3409 the current key sequence (kmacro needs this).
3410
34112002-08-19 Kenichi Handa <handa@localhost>
3412
3413 * composite.c (run_composition_function): Call FUNC if it is fboundp.
3414
3415 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
3416 cons, return Qnil.
3417
34182002-08-17 Richard M. Stallman <rms@gnu.org>
3419
3420 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
3421
3422 * sysdep.c [!VMS]: Include sys/files.h.
3423
3424 * editfns.c (save_restriction_restore): Defend from unchained marker.
3425
3426 * buffer.c (overlays_at): Handle extending vec uniformly.
3427 (overlays_in): Handle extending vec from length 0 as in overlays_at.
3428
34292002-08-15 Andrew Choi <akochoi@shaw.ca>
3430
3431 * mac.c (init_mac_osx_environment): New function.
3432
3433 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
3434
34352002-08-14 Kim F. Storm <storm@cua.dk>
3436
3437 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
3438 executing macro before appending to it (when used from Lisp).
3439 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
3440 which is called prior to each iteration of macro (for kmacro.el).
3441 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
3442
3443 * lisp.h (Fexecute_kbd_macro): Update prototype.
3444
3445 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
3446
34472002-08-14 Kenichi Handa <handa@etl.go.jp>
3448
3449 * xselect.c (QUTF8_STRING): New variable.
3450 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
3451 (x_atom_to_symbol): Likewise.
3452 (x_get_local_selection): New argument local_request. If it is
3453 nonzero, call handler_fn with the second arg nil.
3454 (x_handle_selection_request): Call x_get_local_selection with
3455 local_request 0.
3456 (lisp_data_to_selection_data): Don't encode the string here.
3457 (Fx_get_selection_internal): Call x_get_local_selection with
3458 local_request 1.
3459 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
3460
3461 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
3462
3463 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
3464
34652002-08-13 Richard M. Stallman <rms@gnu.org>
3466
3467 * minibuf.c (Fminibufferp): New function.
3468 (syms_of_minibuf): Defsubr it.
3469 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
3470
34712002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
3472
3473 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
3474
34752002-08-12 Richard M. Stallman <rms@gnu.org>
3476
3477 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
3478 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
3479 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
3480 already.
3481
3482 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
3483
34842002-08-11 Andrew Choi <akochoi@shaw.ca>
3485
3486 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
3487 (Vmac_pass_command_to_system): New variable.
3488 (Vmac_pass_control_to_system): New variable.
3489 (do_mouse_moved): Check wp with is_emacs_window.
3490 (XTread_socket): Check window_ptr with is_emacs_window.
3491 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
3492 events back to Mac Toolbox for processing, depending on values of
3493 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
3494 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
3495 Vmac_pass_control_to_system.
3496
34972002-08-10 Kenichi Handa <handa@etl.go.jp>
3498
3499 * coding.c (unencodable_char_position): New function.
3500 (Funencodable_char_position): New function.
3501 (syms_of_coding): Defsubr Funencodable_char_position.
3502
35032002-08-10 Andrew Choi <akochoi@shaw.ca>
3504
3505 * mac.c (sys_select) [MAC_OSX]: New function.
3506
3507 * macterm.c (MakeMeTheFrontProcess): New function.
3508 (mac_initialize): Call MakeMeTheFrontProcess.
3509
3510 * s/darwin.h: Define select to sys_select.
3511
35122002-08-09 Richard M. Stallman <rms@gnu.org>
3513
3514 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
3515
35162002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
3517
3518 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
3519 end of the buffer.
3520
35212002-08-08 Ken Raeburn <raeburn@mit.edu>
3522
3523 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
3524
3525 * puresize.h (BASE_PURESIZE): Increase to 910000.
3526
35272002-08-08 Kenichi Handa <handa@etl.go.jp>
3528
3529 * coding.c (Ffind_operation_coding_system): For write-region, if
3530 VISIT is a filename, make it the target.
3531
35322002-08-07 Richard M. Stallman <rms@gnu.org>
3533
3534 * alloc.c (mark_object): Detect long lists for debugging.
3535 (mark_object_loop_halt): New variable.
3536
3537 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
3538
3539 * data.c (Fmake_variable_frame_local): Doc fix.
3540
35412002-08-01 David Ponce <david@dponce.com>
3542
3543 * w32menu.c (local_heap, local_alloc, local_free): New macros.
3544 (malloc_widget_value, free_widget_value)
3545 (w32_free_submenu_strings): Use them.
3546
3547 (push_submenu_start, push_submenu_end, push_left_right_boundary)
3548 (push_menu_pane, push_menu_item, single_keymap_panes)
3549 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
3550 (single_submenu, set_frame_menubar)
3551 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
3552
3553 (Fx_popup_menu): Don't show pop up menu until preceding one is
3554 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
3555
3556 * w32menu.c: Changes adapted from xmenu.c
3557 (set_frame_menubar): First parse all submenus,
3558 then make widget_value trees from them.
3559 Don't allocate any widget_value objects
3560 until we are done with the parsing.
3561 (parse_single_submenu): New function.
3562 (digest_single_submenu): New function.
3563 (single_submenu): Function deleted, replaced by those two.
3564
35652002-08-04 Andrew Choi <akochoi@shaw.ca>
3566
3567 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
3568 returns a valid window pointer before proceeding for keyDown and
3569 autoKey events.
3570
35712002-08-03 Andrew Choi <akochoi@shaw.ca>
3572
3573 * macterm.c (USE_CARBON_EVENTS): New macro.
3574 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
3575 (x_iconify_frame): Call CollapseWindow.
3576 (Vmac_reverse_ctrl_meta): New variable.
3577 (Vmac_wheel_button_is_mouse_2): New variable.
3578 (init_mac_drag_n_drop): New function.
3579 (mac_do_receive_drag): New function.
3580 (mac_handle_service_event): New function.
3581 (init_service_handler): New function.
3582 (mac_to_emacs_modifiers): New function.
3583 (mac_event_to_emacs_modifiers): New function.
3584 (mac_get_mouse_btn): New function.
3585 (mac_convert_event_ref): New function.
3586 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
3587 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
3588 mac_get_mouse_btn.
3589 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
3590
3591 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
3592 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
3593 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
3594 TOOL_BAR_EVENT for MAC_OS as well.
3595 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
3596 as for WINDOWS_NT.
3597 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
3598
3599 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
3600
36012002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
3602
3603 * xdisp.c (forward_to_next_line_start): Fix a condition that
3604 lead to a newline being skipped.
3605
36062002-08-02 Andrew Choi <akochoi@shaw.ca>
3607
3608 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
3609
36102002-08-01 Richard M. Stallman <rms@gnu.org>
3611
3612 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
3613
36142002-07-31 Andrew Choi <akochoi@shaw.ca>
3615
3616 * macfns.c: #undef init_process before #define-ing it.
3617
3618 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
3619 HAVE_CARBON is defined.
3620
36212002-07-31 Richard M. Stallman <rms@gnu.org>
3622
3623 * xmenu.c (set_frame_menubar): First parse all submenus,
3624 then make widget_value trees from them.
3625 Don't allocate any widget_value objects
3626 until we are done with the parsing.
3627 (parse_single_submenu): New function.
3628 (digest_single_submenu): New function.
3629 (single_submenu): Function deleted, replaced by those two.
3630
36312002-07-30 Juanma Barranquero <lektu@terra.es>
3632
3633 * w32proc.c (syms_of_ntproc): Fix docstring of
3634 `w32-get-true-file-attributes'.
3635
36362002-07-28 Richard M. Stallman <rms@gnu.org>
3637
3638 * s/hpux8.h (HPUX8): Define this before including hpux.h.
3639 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
3640
3641 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
3642
3643 * keyboard.c (make_lispy_event):
3644 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
3645 Explicitly clear up_modifier in event->modifiers.
3646
36472002-07-27 Richard M. Stallman <rms@gnu.org>
3648
3649 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
3650
3651 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
3652 for bar cursor.
3653
36542002-07-26 Kenichi Handa <handa@etl.go.jp>
3655
3656 * coding.c (detect_coding_iso2022): While checking a byte sequence
3657 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
3658 it in the normal loop.
3659
36602002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
3661
3662 * xterm.c (expose_overlaps): New function.
3663 (expose_window): Use it to fix the display of overlapping rows.
3664
3665 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
3666
36672002-07-23 Ken Raeburn <raeburn@gnu.org>
3668
3669 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
3670 since it only depends on XUINT.
3671
3672 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
3673 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
3674 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
3675 Macros deleted.
3947677c 3676
77d1daf2
AS
3677 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
3678 its value over other approaches.
3679 * sysdep.c (start_of_data): Don't define the function if a macro
3680 form has been defined.
8a8e19a3 3681
048addec
JD
36822002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
3683
3684 * xdisp.c (redisplay_updating_p): New variable.
3685 (init_iterator): Don't free realized faces when
3686 redisplay_updating_p is set.
3687 (redisplay_internal): Set redisplay_updating_p while updating
3688 the display.
3689
36902002-07-23 Richard M. Stallman <rms@gnu.org>
3691
3692 * editfns.c (Fmessage): Treat "" like nil.
3693
36942002-07-23 Kenichi Handa <handa@etl.go.jp>
3695
3696 * xdisp.c (face_before_or_after_it_pos):
3697 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
3698
36992002-07-22 Juanma Barranquero <lektu@terra.es>
3700
3701 * callproc.c (init_callproc) [DOS_NT]:
3702 Initialize Vshared_game_score_directory to nil.
3703 (syms_of_callproc) [DOS_NT]: Likewise.
3704
37052002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
3706
3707 * xdisp.c (display_line): Replace an abort with xassert.
3708
37092002-07-21 Richard M. Stallman <rms@gnu.org>
3710
3711 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
3712 and END_UNCHANGED when setting buffer_unchanged_p.
3713 Use current_matrix_up_to_date_p to decide whether to use
3714 try_cursor_movement.
3715
3716 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
3717
3718 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
3719
3720 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
3721 Set to nil if dir does not exist.
3722 (syms_of_callproc): Init unconditionally and simply.
3723
3724 * buffer.c (Fbuffer_list): Doc fix.
3725
37262002-07-21 Ken Raeburn <raeburn@gnu.org>
3727
3728 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
3729
3730 * buffer.c (mmap_realloc): When shrinking, make sure number of
3731 pages to unmap is rounded towards zero.
3732
3733 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
3734 (XSETINT): Deleted.
3735
3736 * m/att3b.h (XINT): Don't define.
3737 (VALBITS, VALMASK, XTYPE): Deleted.
3738 (DATA_SEG_BITS): Define.
3739 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
3740 ARRAY_MARK_FLAG): Deleted.
3741 (DATA_SEG_BITS): Define.
3742 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
3743 (DATA_SEG_BITS): Define.
3744
37452002-07-20 Richard M. Stallman <rms@gnu.org>
3746
3747 * print.c (print_error_message): New args CONTEXT and CALLER.
3748 Calls changed.
3749
3750 * lisp.h (print_error_message): Declare new args.
3751
3752 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
3753 and CONTEXT to print_error_message, don't print them here.
3754 For a Quit, don't use Vsignaling_function.
3755 Call message_log_maybe_newline.
3756
3757 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
3758
37592002-07-20 Kim F. Storm <storm@cua.dk>
3760
3761 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
3762
37632002-07-19 Ken Raeburn <raeburn@gnu.org>
3764
3765 * bytecode.c (struct byte_stack): Pointers into byte string now
3766 point to const.
3767 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
3768 const.
3769 * charset.h (BCOPY_SHORT): Source pointer now points to const.
3770 * coding.c (encode_eol, detect_coding, detect_eol):
3771 (decode_coding, encode_coding, detect_coding_system):
3772 Source strings now treated as const.
3773 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
3774 modify Lisp string contents.
3775 * coding.h (decode_coding, encode_coding, detect_coding,
3776 detect_eol): Declarations updated.
3777 * composite.c (compose_chars_in_text): Treat Lisp string contents
3778 as const.
3779 * dispnew.c (safe_bcopy): Source pointer now points to const.
3780 * lisp.h (STRING_COPYIN): New macro.
3781 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
3782 (internal_with_output_to_temp_buffer): Declarations updated.
3783 * print.c (temp_output_buffer_setup):
3784 (internal_with_output_to_temp_buffer): Buffer name argument is now
3785 pointer to const.
3786 * sound.c (struct sound_device): Function pointer field "write"
3787 buffer argument now points to const.
3788 (vox_write): Buffer argument points to const.
3789 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
3790 contents as const.
3791 * sysdep.c (emacs_write): Buffer pointer now const.
3792 * term.c (encode_terminal_code): Buffer pointer now const.
3793 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
3794 (x_face_list_fonts, x_update_menu_appearance):
3795 (hash_string_case_insensitive): Treat Lisp string contents as const.
3796
37972002-07-19 Juanma Barranquero <lektu@terra.es>
3798
3799 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
3800 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
3801
3802 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
3803
3804 * fileio.c (syms_of_fileio): Likewise.
3805
38062002-07-18 Richard M. Stallman <rms@gnu.org>
3807
3808 * data.c (Fdefalias): Doc fix.
3809
38102002-07-17 Dave Love <fx@gnu.org>
3811
3812 * intervals.h (text_property_stickiness): Use P_.
3813
3814 * ccl.c: Remove `emacs' conditionals.
3815 (ccl_backtrace_table): Fix size spec.
3816 (ccl_driver): Fix type errors.
3817
38182002-07-16 Ken Raeburn <raeburn@gnu.org>
3819
3820 * alloc.c (xstrdup, make_string, make_unibyte_string)
3821 (make_multibyte_string, build_string): String pointer args now
3822 point to const.
3823 * charset.c (find_charset_in_text, c_string_width):
3824 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
3825 * fileio.c (report_file_error):
3826 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
3827 (count_combining_before, count_combining_after, insert_1_both):
3828 (insert, insert_and_inherit, insert_string):
3829 (insert_before_markers, insert_before_markers_and_inherit):
3830 * lread.c (intern, oblookup, hash_string):
3831 * minibuf.c (temp_echo_area_glyphs):
3832 * search.c (fast_c_string_match_ignore_case):
3833 * sysdep.c (emacs_open, set_file_times):
3834 * xfaces.c (xstricmp):
3835 * xdisp.c (store_frame_title, string_char_and_length):
3836 (message_dolog, message2, message2_nolog, set_message): Likewise.
3837 (set_message_1): Cast message string argument to const pointer.
3838 * editfns.c (general_insert_function): Insertion function now
3839 takes pointer to const for input data.
3840 * charset.h (find_charset_in_text, c_string_width):
3841 (parse_str_as_multibyte): Declarations updated.
3842 * dispextern.h (xstricmp): Declaration updated.
3843 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
3844 (count_size_as_multibyte, count_combining_before):
3845 (count_combining_after, insert_1, insert_1_both, message_dolog):
3846 (insert, insert_and_inherit, insert_before_markers)
3847 (insert_before_markers_and_inherit, set_message, message2):
3848 (message2_dolog, build_string, make_string, make_unibyte_string):
3849 (make_multibyte_string, intern, oblookup, report_file_error):
3850 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
3851 (emacs_open, xstrdup): Declarations updated.
3852 * systime.h (set_file_times): Declaration updated.
3853
3854 * charset.c (find_charset_in_text, lisp_string_width): Use const
3855 for pointer to lisp string data.
3856 * charset.h (FETCH_STRING_CHAR_ADVANCE):
3857 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
3858 * coding.c (Ffind_coding_systems_region_interval):
3859 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
3860 (Fmake_directory_internal, Fdelete_directory):
3861 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
3862 * fontset.c (font_family_registry, fs_query_fontset):
3863 (list_fontsets):
3864 * frame.c (Fframe_parameter):
3865 * keyboard.c (cmd_error_internal):
3866 * keymap.c (Fdescribe_buffer_bindings):
3867 * lread.c (complete_filename_p, openp):
3868 * minibuf.c (Fminibuffer_complete_word):
3869 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
3870 (face_before_or_after_it_pos, next_element_from_string):
3871 (get_overlay_arrow_glyph_row, display_mode_element):
3872 (decode_mode_spec_coding):
3873 * xterm.c (same_x_server): Likewise.
3874
3875 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
3876 settings of non-existent fields.
3877
3878 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
3879 copy a lisp value.
3880
3881 * lread.c (Fintern_soft): Use string macros instead of
3882 Lisp_String fields.
3883 * keyboard.c (echo_char, parse_modifiers_uncached):
3884 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
3885 * textprop.c (validate_interval_range, interval_of): Likewise.
3886
3887 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
3888
3889 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3890 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
3891 XSTRING()->size_byte.
3892
3893 * lisp.h (SDATA, SREF): Produce rvalue.
3894 (SSET): New macro.
3895 * alloc.c (make_event_array): Use SSET for storing into a string.
3896 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
3897 a string.
3898 * casefiddle.c (casify_object): Use SSET.
3899 * charset.h (FETCH_STRING_CHAR_ADVANCE)
3900 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
3901 address of string contents.
3902 * data.c (Faref): Use SDATA.
3903 (Faset): Use SDATA, SSET.
3904 * dired.c (directory_files_internal): Use SSET.
3905 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
3906 (Fread_file_name): Use SREF, SSET.
3907 * fns.c (concat): Use SSET.
3908 (concat, Fdelete): Use SDATA.
3909 * insdel.c (insert_from_string_1): Use SDATA.
3910 * keyboard.c (Fevent_convert_list): Use SREF.
3911 * lread.c (Fload): Use SDATA, SSET.
3912 * macfns.c (validate_x_resource_name): Use SSET.
3913 * process.c (status_message): Use SSET.
3914 * search.c (wordify): Use SDATA.
3915 (Freplace_match): Use SREF.
3916 * w32fns.c (validate_x_resource_name): Use SSET.
3917 * xfns.c (validate_x_resource_name): Use SSET.
3918 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
3919
39202002-07-16 Richard M. Stallman <rms@gnu.org>
3921
3922 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
3923
3924 * xdisp.c (reconsider_clip_changes):
3925 Don't test prevent_redisplay_optimizations_p.
3926 (redisplay_internal): Test prevent_redisplay_optimizations_p
3927 along with clip_changed in some cases.
3928 (try_window_id): Likewise.
3929 (redisplay_window): New local var buffer_unchanged_p.
3930
3931 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
3932
3933 * process.c (create_process): Test USG_SUBTTY_WORKS.
3934 (process_send_signal): Clean up handling of GID.
3935 Detect errors in ioctls meant to set GID.
3936
3937 * window.c (temp_output_buffer_show):
3938 Don't set prevent_redisplay_optimizations_p.
3939
39402002-07-15 Juanma Barranquero <lektu@terra.es>
3941
3942 * eval.c (Fdefvaralias): Add docstring argument.
3943
39442002-07-15 Ken Raeburn <raeburn@gnu.org>
3945
3946 * lisp.h (STRING_INTERVALS): Produce rvalue.
3947 (STRING_SET_INTERVALS): New macro.
3948 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
3949 * fns.c (Fstring_as_multibyte): Likewise.
3950 * intervals.c (balance_possible_root_interval, delete_interval)
3951 (create_root_interval, copy_intervals_to_string): Likewise.
3952 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
3953 instead of 0.
3954
39552002-07-14 Ken Raeburn <raeburn@gnu.org>
3956
3957 * lisp.h (STRING_SET_CHARS): New macro.
3958 (SCHARS, SBYTES): Produce rvalues.
3959 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
3960 * fns.c (concat): Likewise.
3961 * lread.c (read_vector): Likewise.
3962
3963 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
3964 (STRING_SET_UNIBYTE): New macro.
3965 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
3966 length of -1) changed to use STRING_SET_UNIBYTE.
3967 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
3968 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
3969 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
3970 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
3971 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
3972 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
3973 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
3974 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
3975 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3976 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
3977 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
3978 STRING_BYTES or indirection changed to SCHARS, SBYTES,
3979 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
3980 unchanged for now.
3981
39822002-07-13 Kim F. Storm <storm@cua.dk>
3983
3984 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
3985
39862002-07-12 Richard M. Stallman <rms@gnu.org>
3987
3988 * fileio.c (Fwrite_region): Doc fix.
3989
3990 * print.c (print_error_message): Don't handle Vsignaling_function here.
3991
3992 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
3993 (command_loop_1): Avoid certain actions after memory-full error.
3994
3995 * eval.c (Fsignal): Don't call cancel_hourglass.
3996 For a memory-full error, don't call Vsignal_hook_function
3997 and don't set Vsignaling_function.
3998
3999 * process.c (process_send_signal): Add abort call.
4000
40012002-07-11 Markus Rost <rost@math.ohio-state.edu>
4002
4003 * keymap.c (Fkey_binding): Fix typo.
4004
40052002-07-11 Richard M. Stallman <rms@gnu.org>
4006
4007 * alloc.c (Vmemory_full): New variable.
4008 (Vmemory_signal_data): Renamed from memory_signal_data.
4009 Uses changed.
4010 (syms_of_alloc): Defvar them.
4011 (memory_full, buffer_memory_full): Set Vmemory_full.
4012
4013 * lisp.h (Vmemory_full): Add declaration.
4014 (current_column, indented_beyond_p): Change declaration.
4015
4016 * indent.c (last_known_column): Declare as double, not float.
4017 (current_column, current_column_1, string_display_width)
4018 (position_indentation): Return `double'.
4019 (indented_beyond_p): Arg `column' is `double'. Callers changed.
4020
4021 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
4022 (back_to_previous_visible_line_start)
4023 (reseat_at_next_visible_line_start, next_element_from_buffer):
4024 Use `double', not `float', when calling indented_beyond_p.
4025
4026 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
4027
4028 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
4029
40302002-07-11 Juanma Barranquero <lektu@terra.es>
4031
4032 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
4033 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
4034 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
4035 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
4036 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
4037 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
4038
40392002-07-10 Juanma Barranquero <lektu@terra.es>
4040
4041 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
4042 changed.
4043
40442002-07-09 Stefan Monnier <monnier@cs.yale.edu>
4045
4046 * data.c (Fdefalias): Add an optional `docstring' argument.
4047 (set_internal, Fsetq_default): Use XCAR/XCDR.
4048
4049 * composite.c (HASH_VALUE, HASH_KEY):
4050 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
4051
40522002-07-09 Kenichi Handa <handa@etl.go.jp>
4053
4054 * callproc.c (Fcall_process): Fix previous change.
4055
40562002-07-07 Stefan Monnier <monnier@cs.yale.edu>
4057
4058 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
4059 Add support for hash-tables.
4060 (Ftry_completion): Return t even if the string appears multiple times.
4061
4062 * fns.c (Fnconc): Use XCDR.
4063 (Fprovide): Use CONSP and XCDR.
4064 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
4065 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
4066 (Fmake_hash_table): Accept `:size nil'.
4067 (Fmakehash): Delete: moved to subr.el.
4068 (syms_of_fns): Don't defsubr makehash.
4069
4070 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
4071 (HASH_TABLE_SIZE): Move from fns.c.
4072
40732002-07-07 Richard M. Stallman <rms@gnu.org>
4074
4075 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
4076 Instead just return 0 when there is something to be done.
4077 (try_scrolling): If make_cursor_line_fully_visible returns 0,
4078 retry scrolling as if cursor were off the bottom.
4079 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
4080 return CURSOR_MOVEMENT_MUST_SCROLL.
4081 (redisplay_window): If make_cursor_line_fully_visible returns 0,
4082 go to try_to_scroll.
4083
4084 * buffer.c (Fbuffer_local_value): Store current value into its binding
4085 so we get the up-to-date value for the binding that is loaded.
4086
4087 * eval.c (Fdefmacro): Doc fix.
4088
40892002-07-05 Dave Love <fx@gnu.org>
4090
4091 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
4092 correctly.
4093
4094 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
4095 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
4096 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
4097 CCL_LookupCharConstTbl.
4098 (syms_of_ccl): Defvar translation-hash-table-vector.
4099
41002002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4101
4102 * xdisp.c: Remove unused variable `face'.
4103
41042002-07-04 Juanma Barranquero <lektu@terra.es>
4105
4106 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
4107 obsolescence information.
4108
41092002-07-03 Andrew Choi <akochoi@shaw.ca>
4110
4111 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
4112 pattern. Search cache first.
4113 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
4114 for Japanese font.
4115 (XLoadQueryFont): Use it.
4116
41172002-07-02 Richard M. Stallman <rms@gnu.org>
4118
4119 * keymap.c (Fdefine_key): Doc fix.
4120
4121 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
4122
41232002-07-02 Juanma Barranquero <lektu@terra.es>
4124
4125 * keymap.c (syms_of_keymap): Fix typo.
4126
41272002-07-01 Andrew Choi <akochoi@shaw.ca>
4128
4129 * s/darwin.h: Define POSIX_SIGNALS.
4130
4131 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
4132 and FSRefMakePath to convert FSSpec returned with Apple Event to
4133 Posix pathname.
4134 (mac_initialize) [TARGET_API_MAC_CARBON]:
4135 Call init_required_apple_events and disable the `Quit' menu item
4136 provided automatically by the Carbon Toolbox.
4137
41382002-07-01 Dave Love <fx@gnu.org>
4139
4140 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
4141 for K&R.
4142
4143 * xterm.c: Fix prototype for K&R.
4144
4145 * term.c (costs_set): Declare static, non-initialized for pcc.
4146
41472002-07-01 Richard M. Stallman <rms@gnu.org>
4148
4149 * keyboard.c (timer_last_idleness_start_time): New variable.
4150 (timer_start_idle): Set that.
4151 (read_key_sequence): Use that to reset timer_idleness_start_time
4152 to previous value.
4153
4154 * window.c (Frecenter): With arg, set optional_new_start.
4155
4156 * xdisp.c (redisplay_internal): Make optional_new_start really work.
4157
4158 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
4159 buffer for completion.
4160
41612002-06-29 Ken Raeburn <raeburn@gnu.org>
4162
4163 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
4164
41652002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4166
4167 * keyboard.c (readable_filtered_events): New function that filters
4168 FOCUS_IN_EVENT depending on parameter.
4169 (readable_events): Calls readable_filtered_events, not filtering
4170 FOCUS_IN_EVENT.
4171 (get_filtered_input_pending): New function, filtering parameter passed
4172 to readable_filtered_events.
4173 (get_input_pending): Calls get_filtered_input_pending, not filtering
4174 FOCUS_IN_EVENT.
4175 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
4176 FOCUS_IN_EVENT.
4177
4178 * xterm.h (struct x_output): Add focus_state.
4179
4180 * xterm.c (x_focus_changed): New function.
4181 (x_detect_focus_change): New function.
4182 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
4183 EnterNotify and LeaveNotify to track X focus changes.
4184
41852002-06-28 Andreas Schwab <schwab@suse.de>
4186
4187 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
4188
41892002-06-27 Kim F. Storm <storm@cua.dk>
4190
4191 * xdisp.c: (mode_line_string_list, mode_line_string_face)
4192 (mode_line_string_face_prop): New variables.
4193 (store_mode_line_string): New function.
4194 (display_mode_element): Use store_mode_line_string to
4195 add mode-line string elements to mode_line_string_list
4196 when mode_line_string_list is non-nil.
4197 (Fformat_mode_line): Now returns propertized string by
4198 default. New arg NO-PROPS to ignore properties.
4199 (decode_mode_spec): Only add two dashes for %- in propertized
4200 mode-line string.
4201 (syms_of_xdisp): Init and staticpro mode_line_string_list.
4202
42032002-06-27 Stefan Monnier <monnier@cs.yale.edu>
4204
4205 * minibuf.c (minibuffer_completion_contents): Add return type.
4206
42072002-06-27 Juanma Barranquero <lektu@terra.es>
4208
4209 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
4210
42112002-06-26 Juanma Barranquero <lektu@terra.es>
4212
4213 * fileio.c (read_file_name_cleanup): Add missing return.
4214
42152002-06-26 Richard M. Stallman <rms@gnu.org>
4216
4217 * window.c (Frecenter): Don't set force_start flag.
4218
4219 * minibuf.c (do_completion, Fminibuffer_complete_word)
4220 (Fminibuffer_completion_help): Complete just the text before point.
4221 (minibuffer_completion_contents): New function.
4222
4223 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
4224
4225 * frame.c (frames_bury_buffer): Function deleted.
4226
42272002-06-25 Miles Bader <miles@gnu.org>
4228
4229 * callint.c (Fcall_interactively): When checking to see if doprnt hit
4230 the end of callint_message, allow for a terminating '\0'.
4231
42322002-06-24 Juanma Barranquero <lektu@terra.es>
4233
4234 * w32select.c: Include composite.h
4235
4236 * w16select.c: Likewise.
4237
42382002-06-24 Kenichi Handa <handa@etl.go.jp>
4239
4240 * callproc.c (Fcall_process): If code detection is necessary,
4241 call detect_coding directly here.
4242
4243 * coding.c (detect_eol): Preserve coding->cmp_data.
4244
4245 * w16select.c (Fw16_get_clipboard_data):
4246 * w32fns.c (w32_to_x_font):
4247 * w32select.c (Fw32_get_clipboard_data):
4248 * xselect.c (selection_data_to_lisp_data):
4249 * xterm.c (XTread_socket): Disable composition handling.
4250
42512002-06-24 Stefan Monnier <monnier@cs.yale.edu>
4252
4253 * print.c (temp_output_buffer_setup): Kill all local variables.
4254
42552002-06-22 Stefan Monnier <monnier@cs.yale.edu>
4256
4257 * lread.c (Fread): Remove redundant and imprecise declaration.
4258
4259 * xfns.c (check_x_display_info): Use check_x_frame.
4260
4261 * .gdbinit (xprintsym): Use the new `xname' field.
4262 (xsymbol): Use it.
4263
42642002-06-22 Jason Rumney <jasonr@gnu.org>
4265
4266 * w32fns.c (file_dialog_callback): New function.
4267 (Fx_file_dialog): Allow selecting directories as well as files.
4268
42692002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4270
4271 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
4272 OpenBSD. Add support for mipseb-*-netbsd* machines.
4273
42742002-06-17 Andrew Choi <akochoi@shaw.ca>
4275
4276 * macterm.c (mac_scroll_area): Set foreground and backcolor to
4277 black and white before scrolling. Restore frame background and
4278 foreground color after scrolling.
4279 (do_window_update): Call XClearWindow before calling expose_frame.
4280 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
4281 FRAME_FOREGROUND_PIXEL of frame.
4282
4283 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
4284 test Mac command key as <ALT> key.
4285
42862002-06-17 Stefan Monnier <monnier@cs.yale.edu>
4287
4288 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
4289
4290 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
4291 Lookup keys in function-key-map immediately so that key-translation-map
4292 can be applied earlier.
4293 Remove function_key_possible and key_translation_possible, replaced
4294 by checking `keytran_start < t'.
4295
4296 * .gdbinit (xsymbol): Use the new `xname' field.
4297
42982002-06-17 Andrew Choi <akochoi@shaw.ca>
4299
4300 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
4301 test Mac command key as <ALT> key.
4302
4303 * mac.c (do_applescript): Call initialize_applescript if necessary
4304 when first called. Dispose of result_desc only when there is no error.
4305 (Fdo_applescript): Use %d format specifier instead of %ld.
4306
43072002-06-16 Andrew Choi <akochoi@shaw.ca>
4308
4309 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
4310 of FrontWindow for cases keyDown and autoKey.
4311
4312 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
4313 Vdefault_fontset to Monaco with mac-roman coding.
4314
4315 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
4316 init_process before and after inclusion of Carbon/Carbon.h, resp.
4317
4318 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
4319 cursor_gc.
4320 (add_font_name_table_entry): New function.
4321 (init_font_name_table): Use add_font_name_table_entry; add italic,
4322 bold, and bold-italic entries for truetype fonts.
4323
4324 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
4325 for Mac too.
4326 (try_font_list) [MAC_OS]: If no font matches given registry, try
4327 fonts with any registry matching face_family.
4328 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
4329
4330 * s/darwin.h: If autoconf detects the Ncurses library, define
4331 LIBS_TERMCAP to -lncurses to use it.
4332
43332002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
4334
4335 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
4336
43372002-06-15 Richard M. Stallman <rms@gnu.org>
4338
4339 * window.c (Fset_window_configuration): Explicitly preserve
4340 the point value that new_current_buffer had at the start.
4341
43422002-06-14 Juanma Barranquero <lektu@terra.es>
4343
4344 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
4345 Fix typos.
4346
43472002-06-14 Kim F. Storm <storm@cua.dk>
4348
4349 * insdel.c (insert_1_both, insert_from_string_1)
4350 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
4351 insert happened in the end_unchanged region. Otherwise, the
4352 redisplay may be confused and duplicate the last line in the
4353 buffer [seen after save-buffer when require-final-newline==t].
4354
43552002-06-13 Jason Rumney <jasonr@gnu.org>
4356
4357 * w32.c (init_environment): Remove EMACSLOCKDIR.
4358 (stat): Swap _S_IFDIR and _S_IFREG.
4359
43602002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4361
4362 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
4363 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
4364 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
4365 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
4366 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
4367 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
4368 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
4369 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
4370 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
4371 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
4372 SELECTION_REQUEST_EVENT, selection_clear_event to
4373 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
4374 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
4375 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
4376 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
4377 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
4378 no_event to NO_EVENT.
4379
43802002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4381
4382 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
4383
43842002-06-12 Stefan Monnier <monnier@cs.yale.edu>
4385
4386 * intervals.c (textget): Don't forget to `return'.
4387 (lookup_char_property): Use XCAR/XCDR.
4388
43892002-06-12 Juanma Barranquero <lektu@terra.es>
4390
4391 * xdisp.c (Fformat_mode_line): Fix typo.
4392
43932002-06-12 Kim F. Storm <storm@cua.dk>
4394
4395 * xdisp.c (Fformat_mode_line): New function.
4396 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
4397 (store_frame_title_char, store_frame_title): Use unconditionally.
4398 (init_xdisp): Defsubr Fformat_mode_line.
4399 Initialize frame_title_buf etc. unconditionally.
4400
44012002-06-11 Stefan Monnier <monnier@cs.yale.edu>
4402
4403 * keyboard.c (read_key_sequence):
4404 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
4405 things through those maps after downcasing events.
4406 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
4407 applies after function-key-map.
4408 Make sure that keytran can be done in the middle in the sequence.
4409 Be careful not to throw away events past the one we downcase.
4410
4411 * lread.c (read_integer): Remove unused var `tem'.
4412 (read1): Fix int/Lisp_Object mixup.
4413
4414 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
4415
44162002-06-11 Richard M. Stallman <rms@gnu.org>
4417
4418 * keyboard.c (readable_events): Ignore any number of
4419 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
4420
44212002-06-09 Miles Bader <miles@gnu.org>
4422
4423 * xfaces.c (Ftty_supports_face_attributes_p): New function.
4424 (parse_rgb_list, tty_lookup_color): New functions.
4425 (tty_defined_color): Use `tty_lookup_color' to do all the work.
4426 (color_distance, Fcolor_distance): New functions.
4427 (TTY_SAME_COLOR_THRESHOLD): New macro.
4428 (Qtty_color_standard_values): New variable.
4429 (syms_of_xfaces): Initialize new vars & functions.
4430
44312002-06-08 Colin Walters <walters@verbum.org>
4432
4433 * textprop.c (Vchar_property_alias_alist): New variable.
4434 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
4435
4436 * intervals.c (lookup_char_property): New function for looking up
4437 overlay and text properties, created from textget.
4438 (textget): Use it.
4439
4440 * intervals.h (lookup_char_property): Declare.
4441 (Vchar_property_alias_alist): Declare.
4442
4443 * buffer.c (Foverlay_get): Use lookup_char_property.
4444
44452002-06-07 Sam Steingold <sds@gnu.org>
4446
4447 * xselect.c (lisp_data_to_selection_data): Fix last change:
4448 *data_ret is not a Lisp string, while unibyte_string is.
4449
44502002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
4451
4452 * xselect.c (lisp_data_to_selection_data): Fix last change:
4453 set size_ret.
4454
44552002-06-07 Andreas Schwab <schwab@suse.de>
4456
4457 * m/amdx86-64.h: New file.
4458
44592002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
4460
4461 * fns.c (Fstring_make_unibyte): Doc fix.
4462
4463 * xselect.c (lisp_data_to_selection_data): If the requested type
4464 is STRING, call string_make_unibyte to encode the selected text
4465 as a string.
4466
4467 * window.c (Fset_window_hscroll): Doc fix.
4468
44692002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4470
4471 * fileio.c (choose_write_coding_system):
4472 Call select-safe-coding-system properly.
4473
44742002-06-03 Richard M. Stallman <rms@gnu.org>
4475
4476 * xdisp.c (message_with_string): Error if STRING is not a string.
4477
4478 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
4479
4480 * fileio.c (choose_write_coding_system): Pass FILE arg to
4481 Vselect_safe_coding_system_function.
4482
44832002-06-03 Ken Raeburn <raeburn@gnu.org>
4484
4485 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
4486
44872002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
4488
4489 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
4490 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
4491 * keymap.c (describe_command): Likewise.
4492 * minibuf.c (read_minibuf): Likewise.
4493
4494 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
4495 Cast `current_column' return value to int.
4496 (back_to_previous_visible_line_start)
4497 (reseat_at_next_visible_line_start, next_element_from_buffer):
4498 Cast `indented_beyond_p' 3rd arg to float.
4499
4500 * indent.c (last_known_column): Now a float.
4501 (current_column_1, position_indentation, current_column)
4502 (string_display_width): Return float.
4503 (Fcurrent_column): Cast `current_column' return value to int.
4504 (Fcurrent_indentation): Cast `position_indentation' retval to int.
4505 (indented_beyond_p): Third arg now a float.
4506 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
4507
4508 * lisp.h (current_column): Now returns float.
4509 (indented_beyond_p): 3rd arg now a float.
4510
45112002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
4512
4513 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
4514 is Qcompound_text_with_extensions.
4515
4516 * xselect.c (lisp_data_to_selection_data): Always set selection
4517 type as string if x_encode_text returns streingp non-NULL.
4518
4519 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
4520
45212002-05-30 Richard M. Stallman <rms@gnu.org>
4522
4523 * window.c (Fset_window_configuration): Correct the handling
4524 of point in current buffer, to work with multiple windows.
4525
45262002-05-29 Colin Walters <walters@verbum.org>
4527
4528 * lread.c (Fread_from_string): Don't depend on order of evaluation
4529 for C function parameters.
4530
45312002-05-28 Richard M. Stallman <rms@gnu.org>
4532
4533 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
4534 way for blinked-off state and for a nonselected window.
4535
4536 * window.c (window_scroll_pixel_based): Don't call Fbolp;
4537 instead, see if the new start pos is at beginning of line.
4538
4539 * fileio.c (Fwrite_region): If START is a string, don't
4540 make any annotations.
4541
4542 * eval.c (syms_of_eval): Doc fix.
4543
45442002-05-28 Colin Walters <walters@debian.org>
4545
4546 * emacs.c (USAGE1): Add --no-splash.
4547 (standard_args): Ditto.
4548
45492002-05-28 Colin Walters <walters@gnu.org>
4550
4551 * lread.c (readchar_count): New variable.
4552 (readchar): Increment it.
4553 (unreadchar): Decrement it.
4554 (read_multibyte): Decrement it.
4555 (Vread_with_symbol_positions): New variable.
4556 (Vread_symbol_positions_list): New variable.
4557 (read_internal_start): New function, created from Fread and
4558 Fread_from_string. Handle Vread_symbol_positions_list and
4559 Vread_with_symbol_positions.
4560 (readevalloop, Fread, Fread_from_string): Use it.
4561 (read1): Use readchar_count to add symbol positions to
4562 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
4563 (syms_of_lread): DEFVAR_LISP and initialize them.
4564
4565 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
4566 (substitute_object_recurse, substitute_object_in_subtree)
4567 (substitute_in_interval): Prototype.
4568 (read_multibyte): Return c if it's less than zero.
4569
45702002-05-28 Kim F. Storm <storm@cua.dk>
4571
4572 * fileio.c (Fread_file_name_internal): Added brute-force
4573 speed up for using predicate file-directory-p.
4574
45752002-05-28 Kim F. Storm <storm@cua.dk>
4576
4577 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
4578 New variables.
4579 (syms_of_fileio): DEFVAR_LISP them.
4580 (read_file_name_cleanup): New unwind function.
4581 (Fread_file_name_internal): Only return completions satifying
4582 Vread_file_name_predicate. Temporarily unwind protect and rebind
4583 default-directory while checking completions against the predicate.
4584 (Fread_file_name): Added PREDICATE argument. Specbind it to
4585 Vread_file_name_predicate during completion.
4586 Call Vread_file_name_function to read the file name if non-nil.
4587
4588 * lisp.h (Fread_file_name): Now has 6 args.
4589
4590 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
4591 predicate for Fread_file_name when reading directory name.
4592 Supply Qnil for predicate in other calls to Fread_file_name.
4593
45942002-05-26 Miles Bader <miles@gnu.org>
4595
4596 * term.c (tty_capable_p): New function.
4597 * dispextern.h (tty_capable_p): New function declaration.
4598 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
4599 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
4600
46012002-05-23 Stefan Monnier <monnier@cs.yale.edu>
4602
4603 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
4604 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
4605 (Vwrite_region_annotate_functions): Docstring fix.
4606
46072002-05-23 Kim F. Storm <storm@cua.dk>
4608
4609 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
4610 phys_cursor's hpos is overwritten. This is still not completely
4611 correct, as it doesn't really make sense to use hpos at all to
4612 get the cursor glyph (as that is relative to the width of the
4613 characters on the line, which may have changed during the update).
4614
46152002-05-22 Jason Rumney <jasonr@gnu.org>
4616
4617 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
4618 Lisp_Object.
4619 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
4620 Use modified enumfont_t struct.
4621
4622 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4623
4624 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
4625 Handle the `hbar' cursor type.
4626 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4627
4628 * w32fns.c (Qhbar): New variable.
4629 (x_specified_cursor_type): Use it.
4630
46312002-05-21 Ken Raeburn <raeburn@gnu.org>
4632
4633 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
4634 now, when the address is needed.
4635
46362002-05-21 Colin Walters <walters@gnu.org>
4637
4638 * Makefile.in (shortlisp): Add font-core.el.
4639
46402002-05-20 Richard M. Stallman <rms@gnu.org>
4641
4642 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
4643
4644 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
4645 equivalent key bindings here.
4646
46472002-05-20 Ken Raeburn <raeburn@gnu.org>
4648
4649 Change symbol structure to contain a lisp object for the symbol
4650 name:
4651 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
4652 object field named "xname".
4653 (SYMBOL_NAME): New macro.
4654 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
4655 name field.
4656 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
4657 (mark_object, gc_sweep): Use symbol xname field and XSTRING
4658 instead of name field.
4659 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
4660 SYMBOL_NAME instead of XSYMBOL and name field.
4661 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
4662 instead of XSYMBOL and name field.
4663 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
4664 and SYMBOL_NAME instead of XSYMBOL and name field.
4665 * coding.c (Fread_coding_system, code_convert_region1)
4666 (code_convert_string1, code_convert_string_norecord)
4667 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
4668 XSYMBOL and name field.
4669 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
4670 (Fmake_variable_buffer_local, Fmake_local_variable)
4671 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
4672 of XSYMBOL and name field.
4673 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
4674 XSYMBOL and name field.
4675 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
4676 instead of XSYMBOL and name field.
4677 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
4678 XSYMBOL and name field.
4679 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
4680 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4681 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
4682 instead of XSYMBOL and name field.
4683 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
4684 (parse_modifiers, apply_modifiers, Fevent_convert_list)
4685 (parse_solitary_modifier, Fexecute_extended_command):
4686 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4687 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
4688 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
4689 of XSYMBOL and name field.
4690 (describe_command, describe_translation): Use SYMBOL_NAME and
4691 assignment instead of XSYMBOL and name field and XSETSTRING.
4692 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
4693 instead of XSYMBOL and name field.
4694 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
4695 name field and XSETSTRING.
4696 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4697 of XSYMBOL and name field.
4698 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
4699 assignment instead of XSYMBOL and name field and XSETSTRING.
4700 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
4701 XSTRING instead of XSYMBOL and name field.
4702 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
4703 and XSTRING instead of XSYMBOL and name field.
4704 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
4705 and XSTRING instead of XSYMBOL and name field.
4706 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
4707 XSTRING instead of XSYMBOL and name field.
4708 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
4709 of XSYMBOL and name field.
4710 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
4711 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
4712
47132002-05-19 Ken Raeburn <raeburn@gnu.org>
4714
4715 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
4716 and XCDR real rvalues in most configurations.
4717
4718 * buffer.c (fix_overlays_in_range, fix_overlays_before):
4719 Don't take the address of the cdr part of a cons cell; instead, track
4720 the parent cell and call XSETCDR, or set the variable for the head
4721 of the list if we haven't started down the list yet.
4722
47232002-05-19 Richard M. Stallman <rms@gnu.org>
4724
4725 * doc.c (reread_doc_file): Don't ask for confirmation.
4726
47272002-05-18 Jason Rumney <jasonr@gnu.org>
4728
4729 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
4730 (xbm_load_image): Use it.
4731 (xbm_load): Ditto.
4732 (xbm_read_bitmap_data): Reverted to xfns.c version.
4733 From David Ponce <david@dponce.com>.
4734
47352002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
4736
4737 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
4738 2.02 and later.
4739
47402002-05-16 Juanma Barranquero <lektu@terra.es>
4741
4742 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
4743
47442002-05-15 Stefan Monnier <monnier@cs.yale.edu>
4745
4746 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
4747 meaningful test.
4748 (read_char_minibuf_menu_prompt): Fix typo.
4749
47502002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
4751
4752 * eval.c (Fcommandp): Doc fix.
4753
47542002-05-13 Stefan Monnier <monnier@cs.yale.edu>
4755
4756 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
4757 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
4758 (Fset_keymap_parent): Gcpro a bit more.
4759 (access_keymap): Gcpro around meta_map call and around the main loop.
4760 (get_keyelt): Gcpro when following indirect references.
4761 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
4762 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
4763 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
4764 Remove useless ad-hoc remap code.
4765
47662002-05-13 Richard M. Stallman <rms@gnu.org>
4767
4768 * search.c (search_buffer): Give up boyer moore search if inverse
4769 translation change charset_base.
4770
47712002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4772
4773 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
4774 characters is carried over from the previous block of text, adjust
4775 coding->produced to account for the extra character.
4776
47772002-05-11 Andreas Schwab <schwab@suse.de>
4778
4779 * coding.c (intersection): Keep the elements of the returned list
4780 in the same order as in the first list.
4781
47822002-05-11 Kim F. Storm <storm@cua.dk>
4783
4784 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
4785 only update cmm_size if realloc actually succeeds.
4786 Testing with initial size of 2 elements revealed that using
4787 realloc on GNU/Linux would cause a random trap in xmalloc
4788 later on, so I rewrote the code to use malloc/bcopy/free instead
4789 of realloc.
4790
47912002-05-10 Jason Rumney <jasonr@gnu.org>
4792
4793 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
4794
47952002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
4796
4797 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
4798 parens, to ensure correct evaluation order.
4799
48002002-05-10 Kim F. Storm <storm@cua.dk>
4801
4802 * keymap.c (Vemulation_mode_map_alists): New variable.
4803 (syms_of_keymap): DEFVAR_LISP it.
4804 (current_minor_maps): Process keymap alists in that list before
4805 minor-mode-overriding-map-alist and minor-mode-map-alist.
4806
48072002-05-09 Richard M. Stallman <rms@gnu.org>
4808
4809 * search.c (Freplace_match): Doc fix.
4810
48112002-05-09 Kim F. Storm <storm@cua.dk>
4812
4813 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4814 Enlarge cursor rectangle drawn around image with non-zero relief.
4815
4816 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
4817 Enlarge cursor rectangle drawn around image with non-zero relief.
4818
4819 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
4820 Enlarge cursor rectangle drawn around image with non-zero relief.
4821
48222002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
4823
4824 * xselect.c (lisp_data_to_selection_data): Don't set selection
4825 type if comes from the Lisp object's car. If the selection
4826 contains a pure ASCII text, always return QSTRING as its type.
4827
48282002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4829
4830 * mac.c (mac-cut-function): Doc fix.
4831
48322002-05-05 Richard M. Stallman <rms@gnu.org>
4833
4834 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
4835
48362002-05-04 Jason Rumney <jasonr@gnu.org>
4837
4838 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
4839 for event-click-count.
4840
4841 * process.c (init_process): Only add server subfeature if we can
4842 use non-blocking I/O.
4843
48442002-05-04 Andrew Choi <akochoi@shaw.ca>
4845
4846 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
4847 repeatedly.
4848
48492002-05-03 Jason Rumney <jasonr@gnu.org>
4850
4851 * process.c (Fmake_network_process): Only support server sockets
4852 when we can make them non-blocking.
4853
4854 * s/ms-w32.h (HAVE_SELECT): Define.
4855
4856 * w32.h (FILE_NDELAY): New flag.
4857
4858 * w32.c (sys_getpeername, fcntl): New functions.
4859 (_sys_read_ahead): Temporarily block on non-blocking sockets.
4860
4861 * w32proc.c: include sys/file.h.
4862
48632002-05-03 Colin Walters <walters@verbum.org>
4864
4865 * callproc.c (Vgame_score_directory): Renamed to
4866 Vshared_game_score_directory.
4867
48682002-04-30 Richard M. Stallman <rms@gnu.org>
4869
4870 * s/gnu.h [emacs]: Include stdio.h.
4871 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
4872
4873 * eval.c (do_autoload): Error if called while preparing to dump.
4874
4875 * fns.c (Frequire): Error if need to load while preparing to dump.
4876
48772002-04-28 Colin Walters <walters@verbum.org>
4878
4879 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
4880 Default to "~/.emacs.d/games".
4881
48822002-04-29 Stefan Monnier <monnier@cs.yale.edu>
4883
4884 * lread.c (openp): Change arg exec_only to predicate.
4885 (build_load_history): Use XCAR/XCDR.
4886 (Flocate_file_internal): New fun.
4887 (syms_of_lread): Defsubr it.
4888 (Fload): Update call to openp.
4889
4890 * lisp.h (openp): Update prototype.
4891
4892 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
4893 * w32proc.c (sys_spawnve):
4894 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
4895 * w32.c (check_windows_init_file):
4896 * sound.c (Fplay_sound_internal):
4897 * process.c (Fstart_process):
4898 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
4899 * mac.c (run_mac_command):
4900 * emacs.c (init_cmdargs):
4901 * callproc.c (Fcall_process): Update call to openp.
4902
4903 * textprop.c (remove_properties): Don't use XCAR without CONSP.
4904
4905 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
4906
49072002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4908
4909 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
4910 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
4911
49122002-04-28 Richard M. Stallman <rms@gnu.org>
4913
4914 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
4915
4916 * eval.c (Fcommandp): New arg for_call_interactively.
4917 * lisp.h (Fcommandp): Declare new arg.
4918
49192002-04-28 Jason Rumney <jasonr@gnu.org>
4920
4921 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
4922
4923 * w32.c (stat, fstat): Use file index information to generate
4924 inodes for directories where available.
4925
49262002-04-26 Andrew Choi <akochoi@shaw.ca>
4927
4928 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
4929 [HAVE_CARBON]: Include Mac object files.
4930
4931 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
4932 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
4933 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
4934 MAC_OSX, and MAC_OS instead of macintosh.
4935
4936 * editfns.c [MAC_OS8]: Include stdio.h.
4937
4938 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
4939
4940 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
4941 Apple Monaco.
4942
4943 * process.c: Declare QCfamily and QCfilter as extern.
4944 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
4945 calling select.
4946
4947 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
4948
4949 * tparam.c [MAC_OSX]: Don't define BC and UP.
4950
4951 * config.in [HAVE_CARBON]: Add.
4952
4953 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
4954 Move here from mac/src and mac/inc.
4955
4956 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
4957
49582002-04-26 Gerd Moellmann <gerd@gnu.org>
4959
4960 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
4961 Compute phys_cursor_width from the x position returned
4962 by x_draw_glyhs, which is cheaper.
4963 (x_display_and_set_cursor): Compute the buffer-local value
4964 of `cursor-in-non-selected-windows' only when needed.
4965
49662002-04-25 Gerd Moellmann <gerd@gnu.org>
4967
4968 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
4969 cursor on a stretch glyph has a width that depends on
4970 x_stretch_cursor_p.
4971
49722002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4973
4974 * abbrev.c (abbrev-start-location): Doc fix.
4975
4976 * indent.c (Fvertical_motion): Fix last change.
4977
49782002-04-25 Gerd Moellmann <gerd@gnu.org>
4979
4980 * indent.c (Fvertical_motion): Move to the start of the line
4981 containing PT before moving up or down.
4982
49832002-04-24 Gerd Moellmann <gerd@gnu.org>
4984
4985 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
4986 case of writing a whole row, more or less analogous to the case of
4987 writing only parts of a row.
4988
4989 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
4990 0 for NO_CURSOR.
4991
4992 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
4993
49942002-04-23 Colin Walters <walters@verbum.org>
4995
4996 * buffer.c (syms_of_buffer): Doc fix.
4997
49982002-04-23 Gerd Moellmann <gerd@gnu.org>
4999
5000 * xterm.c (notice_overwritten_cursor): Handle the special case
5001 of the cursor being in the first blank non-text line at the
5002 end of a window.
5003
5004 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
5005 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
5006 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
5007 bar cursors only, to make phys_cursor_width contain what its name
5008 suggests.
5009 (notice_overwritten_cursor): Consider the cursor image erased if
5010 the output area intersects the cursor image in y-direction.
5011
50122002-04-23 Simon Marshall <simon@gnu.org>
5013
5014 * xfns.c (x_set_mouse_color): Change default for cross_cursor
5015 to XC_hand2.
5016
50172002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5018
5019 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
5020
50212002-04-22 Kim F. Storm <storm@cua.dk>
5022
5023 * textprop.c (remove_properties): Fixed trap for malformed plist.
5024
50252002-04-22 Richard M. Stallman <rms@gnu.org>
5026
5027 * cmds.c (Fend_of_line): Handle intangible text in mid line.
5028
5029 * window.c (make_window): Initialize height_fixed_p,
5030 last_cursor_off_p, and p->cursor_off_p slots.
5031
50322002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5033
5034 * fns.c (use-dialog-box): Doc fix.
5035
50362002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5037
5038 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
5039 variables `row', `i' and `area'.
5040 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
5041 toolkit library.
5042
50432002-04-19 Stefan Monnier <monnier@cs.yale.edu>
5044
5045 * xfaces.c (clear_font_table): Don't free the default font of
5046 a frame even if it's on another display.
5047 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
5048 that could be Qt.
5049
50502002-04-19 Juanma Barranquero <lektu@terra.es>
5051
5052 * indent.c (Fmove_to_column): Remove unused local variable
5053 `next_boundary_byte'.
5054 (current_column_1): Likewise.
5055
50562002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
5057
5058 * msdos.c (Qhbar): New variable.
5059 (syms_of_msdos): Intern and staticpro it.
5060 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
5061 cursor type.
5062
50632002-04-19 Dave Lambert <dlambert@acm.org>
5064
5065 Theses change implement an underscore-like (`hbar') cursor.
5066
5067 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
5068
5069 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
5070 Handle the `hbar' cursor type.
5071 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
5072
5073 * xfns.c (Qhbar): New variable.
5074 (syms_of_xfns): Intern and staticpro it.
5075 (x_specified_cursor_type): Handle `hbar' cursor.
5076
5077 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
5078 not defined.
5079
50802002-04-18 Richard M. Stallman <rms@gnu.org>
5081
5082 * textprop.c (remove_properties): New arg LIST allows scanning
5083 either a list or a plist.
5084 (interval_has_some_properties_list): New function, like
5085 interval_has_some_properties using list instead of plist.
5086 All callers changed.
5087 (Fremove_list_of_text_properties): New function.
5088 (syms_of_textprop): Defsubr it.
5089
50902002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
5091
5092 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
5093
50942002-04-17 Juanma Barranquero <lektu@terra.es>
5095
5096 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
5097
50982002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
5099
5100 * window.c (coordinates_in_window): Don't report on margin area
5101 if its width is zero.
5102
51032002-04-16 Jason Rumney <jasonr@gnu.org>
5104
5105 * w32fns.c (Fx_file_dialog): Decode file name before using.
5106
5107 * w32term.c (construct_drag_n_drop): Likewise.
5108
51092002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
5110
5111 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
5112 store load-history in pure space.
5113
5114 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
5115
51162002-04-16 Stefan Monnier <monnier@cs.yale.edu>
5117
5118 * xterm.c (Qlatin_1, Qutf_8): New vars.
5119 (syms_of_xterm): Initialize them.
5120 (XTread_socket): Eliminate incorrect optimization that tried to avoid
5121 decoding the output of X*LookupString.
5122 Always use latin-1 to decode the output of XLookupString.
5123 Try Xutf8LookupString if XmbLookupString failed.
5124
5125 * region-cache.c (new_region_cache): Use BEG.
5126
51272002-04-16 Gerd Moellmann <gerd@gnu.org>
5128
5129 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
5130 configuration files.
5131 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
5132 returns 0.
5133
51342002-04-15 Andreas Schwab <schwab@suse.de>
5135
5136 * config.in: Regenerated using autoheader.
5137
5138 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
5139 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
5140 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
5141 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
5142 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
5143 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
5144 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
5145 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
5146 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
5147 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
5148 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
5149 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
5150 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
5151 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
5152 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
5153 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
5154 STACK_DIRECTION, now set by autoconf.
5155
51562002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5157
5158 * dispnew.c (marginal_area_string): Sort arguments.
5159
5160 * dispextern.h (marginal_area_string): Add prototype.
5161
51622002-04-13 Richard M. Stallman <rms@gnu.org>
5163
5164 * fileio.c (Finsert_file_contents):
5165 Don't call temp_output_buffer_setup--do just part, by hand.
5166
5167 * coding.c (run_pre_post_conversion_on_str):
5168 Don't call temp_output_buffer_setup--do just part, by hand.
5169
5170 * keyboard.c (command_loop_1): Don't call start_hourglass
5171 or cancel_hourglass when executing a macro.
5172
5173 * marker.c (count_markers): New function.
5174
5175 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
5176 grow without limit. Move recently used elements to the front.
5177
51782002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
5179
5180 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
5181
51822002-04-12 Gerd Moellmann <gerd@gnu.org>
5183
5184 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
5185 rows marginal areas.
5186 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
5187 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5188
5189 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
5190
51912002-04-12 Dave Love <fx@gnu.org>
5192
5193 * dispnew.c (marginal_area_string): New.
5194
5195 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
5196 (Qleft_margin, Qright_margin): Declare.
5197 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
5198
5199 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
5200 note_mode_line_highlight and extended.
5201
5202 * keyboard.c (Qleft_margin, Qright_margin): Declare.
5203 (make_lispy_event): Deal with mouse events in margins.
5204
52052002-04-12 Stefan Monnier <monnier@cs.yale.edu>
5206
5207 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
5208
5209 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
5210 than deactivating the mark if tmm is set to `lambda'.
5211 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
5212 Use a single event for HELP_EVENT.
5213 (Fexecute_extended_command): Save last_point_position.
5214
52152002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5216
5217 * lisp.h (Fpropertize): Add prototype.
5218
5219 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
5220
52212002-04-10 Colin Walters <walters@verbum.org>
5222
5223 * config.in: Add HAVE_SHARED_GAME_DIR.
5224
5225 * callproc.c: (Vgame_score_directory): New variable.
5226 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
5227
52282002-04-10 Richard M. Stallman <rms@gnu.org>
5229
5230 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
5231
52322002-04-09 Stefan Monnier <monnier@cs.yale.edu>
5233
5234 * minibuf.c (read_minibuf): Use empty_string.
5235 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
5236 Short-circuit the search as soon as it "failed".
5237 (Fall_completions): Allow lambda forms and lists of strings for alist.
5238 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
5239 when require_match is nil.
5240 (Ftest_completion): Rename from `test_completion' and export to elisp.
5241 Call the predicate also when alist is a list.
5242 Obey Vcompletion_regexp_list.
5243 (do_completion, Fminibuffer_complete_and_exit): Use it.
5244 (Fassoc_string): Rename from `assoc_for_completion'.
5245 Allow list of strings as well and export to elisp.
5246
52472002-04-08 Stefan Monnier <monnier@cs.yale.edu>
5248
5249 * puresize.h (BASE_PURESIZE): Increase to 900KB.
5250
52512002-04-08 Juanma Barranquero <lektu@terra.es>
5252
5253 * w32.c (sys_accept): Don't hide variable `s'.
5254
52552002-04-05 Gerd Moellmann <gerd@gnu.org>
5256
5257 * callint.c (Fcall_interactively): Use INTEGERP instead of
5258 NUMBERP for checking Vhistory_length.
5259
52602002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5261
5262 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
5263 Doc fix to reflect it.
5264
52652002-04-04 Richard M. Stallman <rms@gnu.org>
5266
5267 * xdisp.c (display_mode_element): New arg RISKY.
5268 Disregard text props found or specified within a variable
5269 that isn't marked risky-local-variable.
5270 (Qrisky_local_variable): New variable.
5271 (syms_of_xdisp): Init and staticpro it.
5272
52732002-04-04 Stefan Monnier <monnier@cs.yale.edu>
5274
5275 * undo.c (record_point): New fun.
5276 (record_delete, record_insert): Use it.
5277
52782002-04-03 Juanma Barranquero <lektu@terra.es>
5279
5280 * doc.c (Fdocumentation): Add missing parentheses.
5281 (Fdocumentation_property): Likewise.
5282
52832002-04-03 Stefan Monnier <monnier@cs.yale.edu>
5284
5285 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
5286 data is 0, just return nil.
5287
52882002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
5289
5290 * msdos.c (syms_of_msdos): Fix last change with
5291 mouse_autoselect_window.
5292
52932002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5294
5295 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
5296 mouse_autoselect_window.
5297
52982002-04-02 Stefan Monnier <monnier@cs.yale.edu>
5299
5300 * keyboard.c (make_lispy_event): Handle unknown keysyms together
5301 with system-specific keysyms. Use it also for unknown function keys.
5302
5303 * doc.c (reread_doc_file): Return whether reload was attempted.
5304 (Fdocumentation, Fdocumentation_property): Don't try to reload
5305 if the doc is 0 and only ask once.
5306
5307 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
5308
53092002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
5310
5311 * keyboard.c (read_char): If the event was Qselect_window,
5312 restore timer_idleness_start_time to its previous value.
5313
5314 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5315
53162002-04-01 Stefan Monnier <monnier@cs.yale.edu>
5317
5318 * region-cache.c (new_region_cache): Use BEG.
5319
5320 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
5321 Use BEG and BEG_BYTE.
5322
5323 * doc.c (get_doc_string): Return nil if the location is wrong.
5324 (reread_doc_file): New fun.
5325 (Fdocumentation, Fdocumentation_property):
5326 Call it if get_doc_string fails.
5327 (Fsnarf_documentation): Make it work for a dumped Emacs.
5328
5329 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
5330 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
5331
5332 * charset.c (Fstring): Allow 0 arguments.
5333
5334 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
5335
5336 * process.c (DATAGRAM_CONN_P, list_processes_1)
5337 (Fprocess_datagram_address, Fset_process_datagram_address)
5338 (Fset_network_process_options, server_accept_connection):
5339 Fix some int/Lisp_Object confusions (thank you union types).
5340
53412002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5342
5343 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
5344
5345 * w32term.c: Likewise.
5346 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
5347
5348 * keyboard.c (Qselect_window): New symbol.
5349 (head_table): Use it.
5350 (keys_of_keyboard): Bound select-window event to handle-select-window.
5351 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
5352
5353 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
5354 (last_window): New variable.
5355 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
5356 (note_mouse_movement): Remove reimplemented code in #if 0.
5357 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
5358 Emacs windows.
5359
5360 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
5361
53622002-03-31 Gerd Moellmann <gerd@gnu.org>
5363
5364 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
5365 Callers changed.
5366
53672002-03-30 Richard M. Stallman <rms@gnu.org>
5368
5369 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
5370 loop whenever it stops making progress.
5371
5372 * widget.c (set_frame_size): Don't call change_frame_size.
5373
53742002-03-30 Gerd Moellmann <gerd@gnu.org>
5375
5376 * dispnew.c (direct_output_for_insert):
5377 Call mark_window_display_accurate.
5378
53792002-03-29 Jason Rumney <jasonr@gnu.org>
5380
5381 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
5382
53832002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5384
5385 * Makefile.in (lread.o): Depend on coding.h.
5386
5387 * lread.c (openp, Fload): Encode the file name before passing it
5388 to `stat', `access', and `emacs_open'.
5389 (openp): GCPRO the encoded file name. Don't recompute Lisp
5390 strings unnecessarily.
5391
53922002-03-29 Kim F. Storm <storm@cua.dk>
5393
5394 * fns.c (Flax_plist_put): Doc fix.
5395
53962002-03-28 Miles Bader <miles@gnu.org>
5397
5398 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
5399
54002002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5401
5402 * process.c (set-network-process-options): Add usage.
5403 (make-network-process): Doc fix.
5404
54052002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5406
5407 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
5408
54092002-03-26 Richard M. Stallman <rms@gnu.org>
5410
5411 * fns.c (Fsubstring_no_properties): New function.
5412 (Flax_plist_get, Flax_plist_put): New functions.
5413 (syms_of_fns): defsubr them.
5414
5415 * xdisp.c (update_menu_bar): Test only update_mode_lines;
5416 don't test or alter w->update_mode_line.
5417
5418 * window.c (Fdisplay_buffer): Doc fix.
5419
54202002-03-24 Richard M. Stallman <rms@gnu.org>
5421
5422 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
5423
54242002-03-24 Gerd Moellmann <gerd@gnu.org>
5425
5426 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
5427 (Fdefmacro): Handle `(declare ...)'.
5428 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
5429 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
5430
54312002-03-24 Jason Rumney <jasonr@gnu.org>
5432
5433 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
5434 (xbm_file_p): Add prototypes.
5435 (xbm_format, xbm_image_p): Sync with xfns.c.
5436 (reflect_byte): New function.
5437 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
5438 (xbm_load_image): Create bitmaps with a depth of 1.
5439 (init_xfns): Enable XBM images.
5440
54412002-03-23 Jason Rumney <jasonr@gnu.org>
5442
5443 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
5444 correctly. Do not pass up_modifier to keyboard buffer.
5445
5446 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
5447
54482002-03-22 Stefan Monnier <monnier@cs.yale.edu>
5449
5450 * Makefile.in (bootstrapclean): New target.
5451 (bootstrap-temacs, bootstrap-doc): Remove.
5452 (bootstrap-emacs): Use a bog-standard `temacs'.
5453 Don't bother to build a DOC file.
5454
5455 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
5456
5457 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
5458 in temacs even if !CANNOT_DUMP.
5459 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
5460
5461 * alloc.c (check_pure_size): Only output a warning.
5462
54632002-03-22 Jason Rumney <jasonr@gnu.org>
5464
5465 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
5466 supported.
5467
5468 * w32term.c (zv_bits): Declare as short, for word alignment.
5469 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
5470 (syms_of_w32term): Define x-use-underline-position-properties.
5471
5472 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
5473 (clear_image_cache): Block input, fix logic, clear matrices in
5474 all frames that share this cache.
5475
54762002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
5477
5478 * emacs.c (main): Update the Copyright year in the blurb printed
5479 by "emacs --version".
5480
5481 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
5482
5483 * xterm.c (XTread_socket): If XK_ISO_Lock and
5484 XK_ISO_Last_Group_Lock are defined, handle keysyms between
5485 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
5486
54872002-03-21 Kim F. Storm <storm@cua.dk>
5488
5489 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
5490 menu-bar bindings in keymap and local-map properties _are_ used.
5491 But try keymap property first in accordance with 2002-01-03 patch.
5492 Added comment describing why this is not always reliable.
5493 (tool_bar_items): Ditto for tool-bar.
5494
54952002-03-21 Jason Rumney <jasonr@gnu.org>
5496
5497 * w32fns.c (x_clear_image_1): Disable color table code.
5498
54992002-03-21 Kim F. Storm <storm@cua.dk>
5500
5501 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
5502 removed the wrong version of the DEFUN macro; fixed it.
5503
5504 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
5505 Fmember rather than Fmemq).
5506 (Fprovide): Check that subfeatures is a list.
5507
5508 * process.c (QCfeature, QCdatagram): Removed variables.
5509 (QCtype, Qdatagram): New variables.
5510 (network_process_featurep): Removed function.
5511 (Fmake_network_process): Removed :feature check.
5512 Use :type 'datagram instead of :datagram t to create a datagram
5513 socket. This allows us to add other connection types (e.g. raw
5514 sockets) later in a consistent manner.
5515 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
5516 supported subfeatures for feature make-network-process.
5517 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
5518 Intern and staticpro QCtype and Qdatagram.
5519 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
5520
5521 * xfns.c: (QCtype): Remove duplicate declaration and
5522 initialization (is now declared in process.c).
5523
5524 * w32fns.c: (QCtype): Remove duplicate declaration and
5525 initialization (is now declared in process.c).
5526
55272002-03-21 Richard M. Stallman <rms@gnu.org>
5528
5529 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
5530 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
5531 when jumping to `fail' to avoid undoing reg changes in the
5532 last iteration of the loop.
5533 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
5534
5535 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
5536 Depend on process.h.
5537
55382002-03-20 Jason Rumney <jasonr@gnu.org>
5539
5540 Most of the following changes are still conditional on HAVE_IMAGES
5541 which is not set by default on Windows.
5542
5543 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
5544
5545 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
5546 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
5547 (four_corners_best, x_clear_image_1, x_clear_image)
5548 (x_alloc_image_color, postprocess_image)
5549 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
5550 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
5551 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
5552
5553 * w32gui.h (struct XImage): Define.
5554
5555 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
5556 extract mouse co-ordinates.
5557
55582002-03-20 Jason Rumney <jasonr@gnu.org>
5559
5560 * w32.c (init_winsock): Dynamically load new server and UDP
5561 socket functions.
5562 (socket_to_fd): New function.
5563 (sys_socket): Use it.
5564 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
5565 (sys_recvfrom, sys_sendto): New wrapper functions.
5566
5567 * process.c (QCfamily, QCfilter): Remove duplicate declaration
5568 and initialization.
5569
5570 * makefile.w32-in (LIBS): Remove $(WSOCK32).
5571
55722002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
5573
5574 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
5575 Don't use "sun" as a variable, it's a predefined constant on Sun
5576 machines.
5577
55782002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5579
5580 * bytecode.c (Fbyte_code): Revert last change.
5581
55822002-03-19 Kim F. Storm <storm@cua.dk>
5583
5584 * makefile.w32-in (LIBS): Add $(WSOCK32).
5585 From David Ponce <dponce@voila.fr>.
5586
55872002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5588
5589 * process.c (wait_reading_process_input): Move variables `pname'
5590 and `pnamelen' down where they are used.
5591
5592 * bytecode.c (Fbyte_code): Discard unused computed value to
5593 prevent gcc warning.
5594
5595 * lisp.h (Fplist_member): Add prototype.
5596
55972002-03-18 Kim F. Storm <storm@cua.dk>
5598
5599 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
5600 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
5601
5602 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
5603 Remove explicit GNU_LINUX settings for datagram support.
5604
56052002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5606
5607 * process.c (Fmake_network_process): Remove unused variable `sa'.
5608 Doc fix. Add usage:.
5609 (set_socket_options): Remove unused variables `optnum' and `opttype'.
5610
56112002-03-17 Richard M. Stallman <rms@gnu.org>
5612
5613 * xdisp.c (cursor_type_changed): New variable.
5614 (redisplay_internal): Redisplay all windows if cursor_type_changed.
5615 Clear it when clearing windows_or_buffers_changed.
5616 (try_cursor_movement, redisplay_window, try_window_id)
5617 (try_window_reusing_current_matrix): Test cursor_type_changed
5618 along with windows_or_buffers_changed.
5619
5620 * window.h (cursor_type_changed): New variable.
5621
5622 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
5623 not update_mode_lines, and always set it to 1.
5624
5625 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
5626 if no frames needed redrawing.
5627
56282002-03-17 Kim F. Storm <storm@cua.dk>
5629
5630 The following changes add support for network server processes,
5631 datagram connections, and local (unix) sockets.
5632
5633 * process.h (struct Lisp_Process): New member log.
5634 Doc fix: Member command used to indicate stopped network process.
5635 Doc fix: Member childp contains plist for network process.
5636 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
5637
5638 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
5639 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
5640 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
5641 New variables.
5642 (NETCONN1_P): New macro.
5643 (DATAGRAM_SOCKETS): New conditional symbol.
5644 (datagram_address): New array.
5645 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
5646 (status_message): Use concat3.
5647 (Fprocess_status): Add `listen' status to doc string. Return `stop'
5648 for a stopped network process.
5649 (Fset_process_buffer): Update contact plist for network process.
5650 (Fset_process_filter): Ditto. Don't enable input for stopped
5651 network processes. Server must listen, even if filter is t.
5652 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
5653 New functions.
5654 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
5655 (Fprocess_contact): Added KEY argument. Handle datagrams.
5656 (list_processes_1): Optionally show only processes with the query
5657 on exit flag set. Dynamically adjust column widths. Omit tty
5658 column if not needed. Report stopped network processes.
5659 Identify server and datagram network processes.
5660 (Flist_processes): New optional arg `query-only'.
5661 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5662 (conv_lisp_to_sockaddr, set_socket_options)
5663 (network_process_featurep, unwind_request_sigio): New helper functions.
5664 (Fprocess_datagram_address, Fset_process_datagram_address):
5665 (Fset_network_process_options): New lisp functions.
5666 (Fopen_network_stream): Removed. Now defined in simple.el.
5667 (Fmake_network_process): New lisp function. Code is based on previous
5668 Fopen_network_stream, but heavily reworked with new property list based
5669 argument list, support for datagrams, server processes, and local
5670 sockets in addition to old client-only functionality.
5671 (server_accept_connection): New function.
5672 (wait_reading_process_input): Use it to handle incoming connects.
5673 Do not enable input on a new connection if process is stopped.
5674 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
5675 (send_process): Handle datagram sockets.
5676 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
5677 network process is indicated by setting command field to t .
5678 (Fprocess_send_eof): No-op if datagram connection.
5679 (Fstatus_notify): Don't read input for a stream server socket or a
5680 stopped network process.
5681 (init_process): Initialize datagram_address array.
5682 (syms_of_process): Intern and staticpro new variables, defsubr new
5683 functions.
5684
56852002-03-16 Jason Rumney <jasonr@gnu.org>
5686
5687 * w32fns.c (w32_to_all_x_charsets): Return correct type in
5688 startup case.
5689
56902002-03-16 Richard M. Stallman <rms@gnu.org>
5691
5692 * xdisp.c (redisplay_internal, redisplay_windows):
5693 Use list_of_error to call internal_condition_case_1.
5694 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
5695 so as to catch all errors with no possibility of debugger redisplay.
5696 (list_of_error): New variable.
5697 (syms_of_xdisp): Init and staticpro it.
5698
5699 * print.c (print_object): Delete `\ ' from printed rep of frame.
5700
57012002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
5702
5703 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
5704 until its implementation is fixed.
5705
57062002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5707
5708 * xfns.c (png_load): Remove unused variable `gamma_str'.
5709
57102002-03-14 Richard M. Stallman <rms@gnu.org>
5711
5712 * xfns.c (x_real_positions): Handle failure in XQueryTree.
5713
57142002-03-14 Miles Bader <miles@gnu.org>
5715
5716 * intervals.c (adjust_for_invis_intang): New function.
5717 (set_point_both): Use `adjust_for_invis_intang' to do most of the
5718 work for dealing with invisible+intangible regions. Do so before
5719 and after both forward and backward movements, to handle both
5720 front-sticky and rear-sticky cases.
5721 * textprop.c (text_property_stickiness): Function moved here from
5722 `editfns.c'.
5723 * intervals.h (text_property_stickiness): New declaration.
5724 * editfns.c (char_property_eq): Function removed.
5725 (text_property_stickiness): Function moved to `textprop.c'.
5726
57272002-03-13 Jason Rumney <jasonr@gnu.org>
5728
5729 * config.in: Add STRFTIME_NO_POSIX2.
5730
5731 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
5732 and %OX when underlying strftime does not.
5733
57342002-03-13 Stefan Monnier <monnier@cs.yale.edu>
5735
5736 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
5737 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
5738 line) to avoid annoying flicker.
5739 (xm_scroll_callback): Get rid of the now unnecessary kludge.
5740 (XTread_socket): Mark it static.
5741
5742 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
5743
57442002-03-13 Kim F. Storm <storm@cua.dk>
5745
5746 * puresize.h (BASE_PURESIZE): Increase to 775000.
5747
57482002-03-12 Juanma Barranquero <lektu@terra.es>
5749
5750 * editfns.c (syms_of_editfns): Fix typo.
5751
57522002-03-12 Gerd Moellmann <gerd@gnu.org>
5753
5754 * xsmfns.c: Include stdio.h because termhooks.h needs it.
5755 Include termopt.h for interrupt_input.
5756
57572002-03-11 Andreas Schwab <schwab@suse.de>
5758
5759 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
5760
57612002-03-11 Gerd Moellmann <gerd@gnu.org>
5762
5763 * xterm.c (note_mouse_movement): Put code for
5764 x_autoselect_window_p in #if 0.
5765
5766 * lread.c (Fload): Don't assume that message_with_string uses the
5767 string it is given like a C string.
5768
57692002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5770
5771 * xterm.h (x_session_check_input, x_session_initialize): Declared.
5772
5773 * xterm.c: (XTread_socket): Add call to x_session_check_input and
5774 x_session_have_connection.
5775 (x_initialize): Add call to x_session_initialize.
5776
5777 * termhooks.h (enum event_kind): Add save_session_event.
5778
5779 * keyboard.c: Add Emacs event save_session_event.
5780
5781 * emacs.c (main): Add call to syms_of_xsmfns.
5782
5783 * lisp.h: Declare syms_of_xsmfns as extern.
5784
5785 * config.in: Add HAVE_X_SM.
5786
5787 * Makefile.in (LIBXT): Add -lSM -lICE
5788 if HAVE_X_SM and not USE_X_TOOLKIT.
5789 (XOBJ): New file xsmfns.c added.
5790
5791 * xsmfns.c: New file for X session management.
5792
57932002-03-09 Jason Rumney <jasonr@gnu.org>
5794
5795 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
5796 read-only when setting modified time.
5797
57982002-03-08 Gerd Moellmann <gerd@gnu.org>
5799
5800 * xdisp.c (move_it_vertically_backward): At the end of the function,
5801 when moving forward by lines, treat terminal frames specially.
5802
5803 * keyboard.c (echo_char): Make sure to add a separator between
5804 keys even if echo_dash hasn't been called.
5805
5806 * xdisp.c: Use new string macros.
5807 (update_echo_area): Pass number of bytes to message3 instead of
5808 number of chars.
5809 (set_message_1): Don't access a string's size_byte directly.
5810 (decode_mode_spec_coding): Use number of bytes of eoltype string
5811 instead number of chars.
5812
5813 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
5814
58152002-03-08 Juanma Barranquero <lektu@terra.es>
5816
5817 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
5818 24-bit.
5819
58202002-03-06 Jason Rumney <jasonr@gnu.org>
5821
5822 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
5823
58242002-03-06 Gerd Moellmann <gerd@gnu.org>
5825
5826 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
5827 (cancel_echoing, echo_length, echo_truncate): Changed to
5828 work with new kboard definition.
5829 (echo_now): Use message3_nolog instead of message2_nolog.
5830
5831 * alloc.c (mark_kboards): Mark echo_string.
5832
5833 * keyboard.h (ECHOBUFSIZE): Removed.
5834 (struct kboard): Member echoptr removed, member echobuf renamed
5835 to echo_string.
5836
5837 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
5838 message3 instead of message2 to display the message using STRING's
5839 text properties.
5840
58412002-03-05 Andreas Schwab <schwab@suse.de>
5842
5843 * xdisp.c (hscroll_margin): Change to EMACS_INT.
5844
58452002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
5846
5847 * frame.c (default-frame-alist): Explain that setting it doesn't
5848 affect existing frames.
5849
58502002-03-05 Stefan Monnier <monnier@cs.yale.edu>
5851
5852 * indent.c (skip_invisible): Fix my brain fart.
5853
5854 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
5855
58562002-03-04 Stefan Monnier <monnier@cs.yale.edu>
5857
5858 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
5859 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
5860 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
5861 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
5862 and variables to use EMACS_INT instead of just int.
5863
5864 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
5865
58662002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5867
5868 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
5869 environment, pass it down with corrected value.
5870
58712002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5872
5873 * lread.c (read_filtered_event): Do not call start_hourglass
5874 before returning.
5875
58762002-03-04 Juanma Barranquero <lektu@terra.es>
5877
5878 * w32term.c (x_display_and_set_cursor): Fix typo.
5879
58802002-03-03 Richard M. Stallman <rms@gnu.org>
5881
5882 * fileio.c (Fmake_temp_name): Doc fix.
5883
58842002-03-03 Gary Wong <gtw@gnu.org>
5885
5886 * termcap.c [!emacs]: Replace ospeed for building standalone
5887 libtermcap, for binary compatibility.
5888
5889 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
5890
58912002-03-03 Richard M. Stallman <rms@gnu.org>
5892
5893 * xrdb.c (file_p): Rename arg `path' to `filename'.
5894
5895 * abbrev.c (Fexpand_abbrev): Increment plist as use count
5896 only if it is an integer.
5897
5898 * xfns.c (png_load): Set screen_gamma based on f->gamma.
5899 If png_get_sRGB gives an answer, call png_set_gamma
5900 using the default image gamma value.
5901
5902 * lread.c (read1): When reading from a file, default string to
5903 multibyte only if it has some multibyte characters.
5904
5905 * print.c (print_object): Output multibyte chars 128...255
5906 using \x even if ! print_escape_multibyte.
5907
5908 * xdisp.c (display_mode_element): Move the places where
5909 bytepos, charpos, this, and lisp_string are set.
5910 Use lisp_string to set bytepos.
5911
5912 * xdisp.c (redisplay_internal):
5913 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
5914
5915 * xdisp.c (display_mode_element): Merge properties specified with
5916 :propertize onto those that come with the string.
5917
59182002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
5919
5920 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
5921 automatic-hscrolling. Users changed.
5922 <hscroll-margin>: Renamed from automatic-hscroll-margin.
5923 Users changed.
5924 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
5925
59262002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5927
5928 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
5929
59302002-03-02 Kim F. Storm <storm@cua.dk>
5931
5932 * window.c (Fminibuffer_selected_window): New function.
5933 (syms_of_window): Defsubr it.
5934
59352002-03-01 Kim F. Storm <storm@cua.dk>
5936
5937 * window.h (struct window): New member phys_cursor_width.
5938
5939 * window.c (make_window, replace_window): Init phys_cursor_width.
5940
5941 * xterm.c (x_display_and_set_cursor): Blink box cursor using
5942 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
5943
5944 * w32term.c (x_display_and_set_cursor): Blink box cursor using
5945 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
5946
5947 * lisp.h (GCPRO6): New macro.
5948
5949 * process.c (Fopen_network_stream): Use GCPRO6.
5950
59512002-03-01 Kim F. Storm <storm@cua.dk>
5952
5953 * process.c (Qconnect, Qfailed): New variables.
5954 (syms_of_process): Intern and staticpro them.
5955 (Fprocess_status): Document connect and failed return values.
5956 [NON_BLOCKING_CONNECT]: New conditional.
5957 (connect_wait_mask, num_pending_connects): New variables.
5958 (status_message): Convert Qfailed status.
5959 (Fopen_network_stream): Added support for non-blocking connect.
5960 New optional args: filter, sentinel, non_blocking. Doc updated.
5961 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
5962 (deactivate_process): Handle pending non-blocking connect.
5963 (wait_reading_process_input): Poll for status of non-blocking
5964 connects. Exec sentinel directly when connect succeeds.
5965 (status_notify): Don't read process output if not yet connected.
5966
59672002-02-28 Kim F. Storm <storm@cua.dk>
5968
5969 * window.c: (minibuf_selected_window): Renamed from
5970 Vminibuf_selected_window. Users changed.
5971 (syms_of_window): Staticpro it.
5972
59732002-02-26 Kim F. Storm <storm@cua.dk>
5974
5975 The following changes add a new Vminibuf_selected_window variable
5976 which is similar to Vminibuf_scroll_window, but which is only set
5977 on entry to the minibuffer (from a non-minibuffer window):
5978
5979 * window.c: (Vminibuf_selected_window): New variable.
5980 (struct save_window_data): New member minibuf_selected_window.
5981 (Fset_window_configuration): Restore Vminibuf_selected_window.
5982 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
5983 Set minibuf_scroll_window member to nil if minibuf_level is 0.
5984 (compare_window_configurations): Compare minibuf_selected_window.
5985
5986 * window.h: (Vminibuf_selected_window): Declare extern.
5987
5988 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
5989 entry to minibuffer or on entry from a non-minibuffer window.
5990
5991 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
5992 Vminibuf_selected_window instead of Vminibuf_scroll_window.
5993
5994 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
5995 instead of Vminibuf_scroll_window when deciding in which window
5996 the region should be highlighted. Consequently, the region remains
5997 highlighteded even when a completion buffer is also displayed.
5998
59992002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
6000
6001 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
6002
6003 * xselect.c (Qcompound_text_with_extensions): Renamed from
6004 Qcompound_text_no_extensions.
6005 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
6006
60072002-02-26 Juanma Barranquero <lektu@terra.es>
6008
6009 * w32proc.c (syms_of_ntproc): Doc fix.
6010
60112002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6012
6013 * intervals.h: Include "dispextern.h" unconditionally.
6014
60152002-02-24 Jason Rumney <jasonr@gnu.org>
6016
6017 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
6018 and disp-table.elc.
6019 (lisp): Add emacs-lisp/backquote.elc.
6020
60212002-02-24 Kim F. Storm <storm@cua.dk>
6022
6023 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
6024 The validation of the event type was too strict as it didn't
6025 allow string events; buffer names are used in bindings for
6026 menu-bar-select-buffer (see `menu-bar-update-buffers').
6027
60282002-02-23 Kim F. Storm <storm@cua.dk>
6029
6030 The following changes rework my patch of 2002-02-06 which
6031 added command remapping by entering the commands directly into
6032 the keymaps. Now, command remapping uses an explicit `remap'
6033 prefix in the keymaps, i.e. [remap COMMAND].
6034
6035 * keymap.c (Qremap, remap_command_vector): New variables.
6036 (is_command_symbol): Removed function.
6037 (Fdefine_key): No longer accept a symbol for KEY.
6038 Added validation of [remap COMMAND] argument for KEY.
6039 The DEF is no longer required to be a symbol when remapping a command.
6040 (Fremap_command): New function to remap command through keymaps.
6041 (Flookup_key): Perform command remapping initiated by
6042 Fremap_command directly for speed.
6043 (Fkey_binding): Use Fremap_command for command remapping.
6044 (where_is_internal): Handle new command remapping representation.
6045 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
6046 staticpro them. Defsubr Fremap_command.
6047
6048 * keymap.h (Fremap_command): Declare extern.
6049 (is_command_symbol): Remove extern.
6050
6051 * keyboard.c (command_loop_1): Use Fremap_command for command
6052 remapping; now try command remapping for all symbols.
6053
60542002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
6055
6056 * coding.h (run_pre_post_conversion_on_str): Add prototype.
6057
60582002-02-23 Jason Rumney <jasonr@gnu.org>
6059
6060 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
6061 on the string before encoding it.
6062 (Fw32_get_clipboard_data): Run post-read-conversion on the string
6063 after decoding it.
6064
6065 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
6066
60672002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6068
6069 * w32term.c (enter_timestamp): Remove unused static variable to
6070 prevent warning.
6071
6072 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
6073
60742002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
6075
6076 * w16select.c (Fw16_get_clipboard_data): Fix last change.
6077
6078 * xselect.c (selection_data_to_lisp_data): Fix last change.
6079
60802002-02-22 Jason Rumney <jasonr@gnu.org>
6081
6082 * w32term.h (struct w32_output): New member menu_command_in_progress.
6083
6084 * w32menu.c (menubar_selection_callback): Free the menu and
6085 clear the menu_command_in_progress flag.
6086
6087 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
6088 (menu_free_timer): New variable.
6089 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
6090 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
6091 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
6092 menu command is in progress.
6093 <WM_COMMAND>: Set the menu_command_in_progress flag.
6094 Kill any menu_free_timer that is running.
6095
6096 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
6097 Call ExtTextOutA rather than ExtTextOut.
6098
60992002-02-22 Eli Zaretskii <eliz@gnu.org>
6100
6101 * puresize.h (BASE_PURESIZE): Increase to 755000.
6102
61032002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6104
6105 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
6106 on the string before encoding it.
6107 (Fw16_get_clipboard_data): Run post-read-conversion on the string
6108 after decoding it.
6109
61102002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6111
6112 Support for ICCCM Extended Segments in X selections:
6113
6114 * xselect.c <Qcompound_text_no_extensions>: New variable.
6115 (syms_of_xselect): Intern and staticpro it.
6116 (selection_data_to_lisp_data): Run post-read-conversion on decoded
6117 selection text.
6118 (lisp_data_to_selection_data): If next-selection-coding-system is
6119 compound-text-no-extensions, set the type of selection to be
6120 compound-text.
6121
6122 * xterm.h (x_encode_text): Update prototype.
6123
6124 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
6125 callers changed. If SELECTIONP is non-zero, run the
6126 pre-write-conversion function before encoding the selection text.
6127
61282002-02-21 Kim F. Storm <storm@cua.dk>
6129
6130 * frame.c (syms_of_frame): Change mouse-highlight default to t.
6131
6132 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
6133 Correct composing of language-change event.
6134
61352002-02-20 Kim F. Storm <storm@cua.dk>
6136
6137 * keyboard.c (menu_bar_items): Don't include keymap or local-map
6138 bindings at PT when building menu (the menu is not updated often
6139 enough for this to work reliable).
6140 (tool_bar_items): Likewise.
6141 (current_active_maps): Removed unused (and buggy) function.
6142
61432002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6144
6145 * xfns.c (gif_load): Use correct width and height for GIF images.
6146
61472002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
6148
6149 * floatfns.c (Fatan): Accept an optional second arg and call
6150 atan2 if passed 2 args.
6151
61522002-02-18 Jason Rumney <jasonr@gnu.org>
6153
6154 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
6155
61562002-02-17 Jason Rumney <jasonr@gnu.org>
6157
6158 * w32term.c (x_autoselect_window_p): New variable.
6159 (syms_of_w32term): DEFVAR_BOOL and initialize it.
6160 (note_mouse_movement): Use it.
6161
6162 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
6163
6164 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
6165
6166 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6167 New variables.
6168 (syms_of_w32fns): Intern and staticpro them.
6169 (x_frame_parms) <"fullscreen">: New parameter.
6170 (x_fullscreen_move, x_set_fullscreen): New functions.
6171 (x_set_frame_parameters): Support Qfullscreen.
6172 (x_real_positions): Save x/y_pixels_diff frame params.
6173 (x_figure_window_size): Support full-screen frames.
6174 (Fx_create_frame): Default the fullscreen parameter.
6175
6176 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
6177 (x_fullscreen_adjust): New functions.
6178 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
6179 fullscreen. Call x_check_fullscreen_move, and set the
6180 want_fullscreen member of output_data.w32
6181 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
6182
6183 * w32term.h: New enum for FULLSCREEN_* constants.
6184 (struct w32_output): New members want_fullscreen, x_pixels_diff,
6185 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
6186 (x-fullscreen-adjust): New prototype.
6187
61882002-02-17 Kim F. Storm <storm@cua.dk>
6189
6190 * frame.c: (Vmouse_highlight): New variable.
6191 (syms_of_frame): DEFVAR_LISP it.
6192
6193 * frame.h: (Vmouse_highlight): Declare extern.
8a8e19a3 6194
048addec 6195 * xterm.h (struct x_display_info): Add mouse_face_hidden.
8a8e19a3 6196
048addec
JD
6197 * xterm.c (disable_mouse_highlight): Removed variable.
6198 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
6199 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6200 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
6201 and on after keyboard input.
6202 (x_term_init): Initialize mouse_face_hidden.
8a8e19a3 6203
048addec 6204 * msdos.h (struct display_info): Add mouse_face_hidden.
8a8e19a3 6205
048addec
JD
6206 * msdos.c (disable_mouse_highlight): Removed variable.
6207 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6208 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
6209 (internal_terminal_init): Initialize mouse_face_hidden.
6210 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
6211 and on after keyboard input.
4f1b1854 6212
048addec 6213 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4f1b1854 6214
048addec
JD
6215 * w32term.c (disable_mouse_highlight): Removed variable.
6216 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
6217 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
6218 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
6219 and on after keyboard input.
6220 (w32_initialize_display_info): Initialize mouse_face_hidden.
4f1b1854 6221
048addec 62222002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4f1b1854 6223
048addec
JD
6224 * msdos.c (last_mouse_window): New variable.
6225 (dos_rawgetc): Fix last change--if the mouse is in the same window
6226 as recorded in last_mouse_window, don't select this window.
5cb6905d 6227
048addec 6228 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
5cb6905d 6229
048addec
JD
6230 * msdos.c (x_autoselect_window_p): New variable.
6231 (syms_of_msdos): Defvar it.
6232 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
6233 which the last mouse movement occured, unless it is already selected.
437dfb9f 6234
048addec
JD
6235 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
6236 New variables.
6237 (syms_of_xdisp): DEVFAR them.
6238 (hscroll_window_tree): Use automatic_hscroll_margin and
6239 Vautomatic_hscroll_step to compute the amount of window scrolling.
437dfb9f 6240
048addec 62412002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9f696a00 6242
048addec
JD
6243 * xterm.c (x-autoselect-window): New variable.
6244 (note_mouse_movement): Use it.
9f696a00 6245
048addec 6246 * keyboard.c: Do not include "systime.h" twice.
d57966d7 6247
048addec 62482002-02-15 Andreas Schwab <schwab@suse.de>
d57966d7 6249
048addec 6250 * puresize.h (BASE_PURESIZE): Increase to 9/5.
d57966d7 6251
048addec 6252 * alloc.c (NSTATICS): Increase to 1280.
74779f52 6253
048addec 62542002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
74779f52 6255
048addec 6256 * alloc.c (NSTATICS): Bump to 1026.
a474d59c 6257
048addec
JD
6258 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
6259 (Vx_super_keysym): New variables.
6260 (syms_of_xterm): DEFVAR_LISP them.
6261 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
6262 variables to determine which keys to use for the various modifiers.
a474d59c 6263
048addec 62642002-02-13 Kim F. Storm <storm@cua.dk>
fbb70ad9 6265
048addec
JD
6266 * window.c: (Vmode_line_in_non_selected_windows): Removed.
6267 (mode_line_in_non_selected_windows): New variable.
6268 (syms_of_window): DEFVAR_BOOL it.
fbb70ad9 6269
048addec
JD
6270 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
6271 Use mode_line_in_non_selected_windows.
6272 (mode_line_in_non_selected_windows): Declare extern.
6273 (Vmode_line_in_non_selected_windows): Removed extern.
2d10309f 6274
048addec 62752002-02-13 Richard M. Stallman <rms@gnu.org>
2d10309f 6276
048addec
JD
6277 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
6278 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
6279 (Fclear_this_command_keys): Doc fixes.
2d10309f 6280
048addec
JD
6281 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
6282 (update_face_from_frame_parameter): Increment face_change_count
6283 and windows_or_buffers_changed to force redisplay using changed faces.
7f2cddf3 6284
048addec
JD
6285 * xdisp.c (QCpropertize): New variable.
6286 (mode_line_proptrans_alist): New variable.
6287 (display_mode_element): New arg PROPS; all calls changed.
6288 Implement this, for strings.
6289 Handle literal output of strings by sharing the
6290 main-line code for strings, using local var `literal'.
6291 Handle :propertize feature.
6292 (syms_of_xdisp): Initialze and staticpro QCpropertize and
6293 mode_line_proptrans_alist.
0b1e6b54 6294
048addec 62952002-02-11 Kim F. Storm <storm@cua.dk>
7f2cddf3 6296
048addec
JD
6297 * window.c: (Vmode_line_in_non_selected_windows): New variable.
6298 (syms_of_window): DEFVAR_LISP it.
7f2cddf3 6299
048addec
JD
6300 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
6301 (CURRENT_MODE_LINE_FACE_ID): Use it.
6302 (Vmode_line_in_non_selected_windows): Declare extern.
e17144de 6303
048addec
JD
6304 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
6305 to get mode line face.
e17144de 6306
048addec 63072002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 6308
048addec
JD
6309 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
6310 variables; cus-start.el doesn't need them anymore.
44368f8f 6311
048addec 63122002-02-09 Kim F. Storm <storm@cua.dk>
f884b6f4 6313
048addec
JD
6314 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
6315 reduction. This fixes a display problem where stray newlines were
6316 inserted in the window (corrected by C-l). Clarified code (IMHO).
6637c996 6317
048addec 63182002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
6637c996 6319
048addec 6320 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
6637c996 6321
048addec 6322 * xdisp.c (display_mode_lines): Fix last change.
453c5510 6323
048addec 63242002-02-09 Jason Rumney <jasonr@gnu.org>
453c5510 6325
048addec
JD
6326 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
6327 match each other.
6328 (w32_load_system_font): Prevent Cleartype fonts from loading.
6329 (Fx_show_tip): Ensure tip frames are above other topmost windows.
d1d070e3 6330
048addec 63312002-02-09 Kim F. Storm <storm@cua.dk>
d1d070e3 6332
048addec
JD
6333 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
6334 (CURRENT_MODE_LINE_HEIGHT): Use it.
6335 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 6336
048addec
JD
6337 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
6338 (pos_visible_p, handle_face_prop): Likewise.
6339 (display_mode_lines): Likewise, but for the real selected window.
6340 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
9ec1bdb6 6341
048addec
JD
6342 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
6343 in non-selected windows.
6344 (realize_basic_faces): Realize it.
6345 (syms_of_term): Intern and staticpro it.
308dd672 6346
048addec 63472002-02-08 Kim F. Storm <storm@cua.dk>
edde72f6 6348
048addec
JD
6349 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
6350 Changed mail addresses to emacs-devel@gnu.org.
308dd672 6351
048addec 63522002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
3c1e6b46 6353
048addec
JD
6354 * fileio.c (Fsubstitute_in_file_name): If the file name includes
6355 ~user, and there's no such user, don't discard everything before ~user.
03950b5b 6356
048addec 6357 * floatfns.c (Fround): Doc fix.
3c1e6b46 6358
048addec 63592002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c1e11810 6360
048addec 6361 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
c1e11810 6362
048addec 63632002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1996baee 6364
048addec 6365 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1996baee 6366
048addec 63672002-02-07 Kim F. Storm <storm@cua.dk>
0065bb74 6368
048addec
JD
6369 * keymap.c (where_is_internal): Only check whether definition is
6370 remapped if it fulfills is_command_symbol.
0065bb74 6371
048addec 63722002-02-07 Andreas Schwab <schwab@suse.de>
0065bb74 6373
048addec 6374 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
b5cb6072 6375
048addec 6376 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
b5cb6072 6377
048addec 63782002-02-06 Kim F. Storm <storm@cua.dk>
15fff01d 6379
048addec
JD
6380 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
6381 defining command remapping. Doc updated.
6382 (Flookup_key): Remap command through keymap if KEY is a symbol.
6383 (is_command_symbol): New function.
6384 (Fkey_binding): Use it. New optional argument NO-REMAP.
6385 Doc updated. Callers changed. Perform command remapping via
6386 recursive call unless that arg is non-nil.
6387 (where_is_internal): New argument no_remap. Callers changed.
6388 Call recursively to find original key bindings for a remapped
6389 comand unless that arg is non-nil.
6390 (Fwhere_is_internal): New optional argument NO-REMAP.
6391 Doc updated. Callers changed. Pass arg to where_is_internal.
0065bb74 6392
048addec
JD
6393 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
6394 (is_command_symbol): Added prototype.
0d8466cc 6395
048addec
JD
6396 * keyboard.c (Vthis_original_command): New variable.
6397 (syms_of_keyboard): DEFVAR_LISP it.
6398 (command_loop_1): Set it, and perform command remapping.
15fff01d 6399
048addec 64002002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2fae9111 6401
048addec 6402 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2d6c1fc0 6403
048addec 64042002-02-06 Jason Rumney <jasonr@gnu.org>
07025a55 6405
048addec 6406 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
07025a55 6407
048addec 64082002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
07025a55 6409
048addec 6410 * charset.c (get_charset_id): Use if-else instead of ?:.
3a232704 6411
048addec 64122002-02-06 Richard M. Stallman <rms@gnu.org>
539e92ad 6413
048addec 6414 * filelock.c (S_ISLNK): Define if not defined.
3a232704 6415
048addec 64162002-02-03 Richard M. Stallman <rms@gnu.org>
0cb8bb48 6417
048addec 6418 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
539e92ad 6419
048addec
JD
6420 * lread.c (read1): Redesign strategy for force_multibyte and
6421 force_singlebyte. Now is_multibyte records whether read_buffer
6422 is multibyte. Encountering any multibyte character makes it so.
4e02881b 6423
048addec 64242002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4e02881b 6425
048addec
JD
6426 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
6427 with the same sequence, map that sequence to f10 rather than f0.
1ab964d7 6428
048addec 64292002-02-03 Andreas Schwab <schwab@suse.de>
1ab964d7 6430
048addec
JD
6431 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
6432 latter never being defined on GNU/Linux.
749f499f 6433
048addec 64342002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
749f499f 6435
048addec
JD
6436 * xfaces.c (realize_default_face): Don't set the weight and slant of
6437 the default face to Qnormal, unless these attributes are unspecified.
b5d9aaba 6438
048addec 64392002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a232704 6440
048addec
JD
6441 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
6442 Call cancel_hourglass unconditionally.
d0fd26dd 6443
048addec
JD
6444 * eval.c (Fsignal): Remove duplicated declaration of
6445 the variable `display_hourglass_p'.
b4c45162 6446
048addec 64472002-01-31 Richard M. Stallman <rms@gnu.org>
d0fd26dd 6448
048addec 6449 * editfns.c (region_limit): Nicer error message.
c95eaa61 6450
048addec
JD
6451 * coding.c (decode_composition_emacs_mule):
6452 Give up if NCOMPONENT gets too large to index `component'.
c95eaa61 6453
048addec
JD
6454 * callint.c (check_mark): New arg to specify clearer error message.
6455 Callers changed.
c95eaa61 6456
048addec 64572002-01-27 Richard M. Stallman <rms@gnu.org>
c95eaa61 6458
048addec 6459 * minibuf.c (Fcompleting_read): Doc fix.
c95eaa61 6460
048addec 64612002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 6462
048addec
JD
6463 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
6464 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
6465 Fix doc-strings.
c95eaa61 6466
048addec 64672002-01-26 Richard M. Stallman <rms@gnu.org>
c95eaa61 6468
048addec 6469 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
c95eaa61 6470
048addec
JD
6471 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
6472 and scroll_up_aggressively.
c95eaa61 6473
048addec 64742002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
31877e0a 6475
048addec 6476 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
31877e0a 6477
048addec 64782002-01-25 Stefan Monnier <monnier@cs.yale.edu>
e2c3786a 6479
048addec
JD
6480 * textprop.c (Fnext_property_change, Fnext_single_property_change)
6481 (Fprevious_property_change, Fprevious_single_property_change):
6482 Stay within the narrowed-buffer boundaries.
e2c3786a 6483
048addec 64842002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
c513fc03 6485
048addec
JD
6486 * term.c (Ftty_display_color_cells): New function.
6487 (syms_of_term): Defsubr it.
6488 (Ftty_display_color_cells, Ftty_display_color_p): Change the
6489 argument name to DISPLAY. Doc fix.
bf794306 6490
048addec
JD
6491 * dispextern.h: Add prototype for set_tty_color_mode and
6492 tty_setup_colors.
bf794306 6493
048addec 64942002-01-24 Jason Rumney <jasonr@gnu.org>
bf794306 6495
048addec
JD
6496 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
6497 If region left to draw is not what was expected, mark the frame as
6498 garbaged.
62582985 6499
048addec
JD
6500 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
6501 Combine the regions returned by BeginPaint and GetUpdateRect.
c513fc03 6502
048addec 65032002-01-23 Jason Rumney <jasonr@gnu.org>
3509a04c 6504
048addec
JD
6505 * w32term.c (x_update_window_begin): Only hide caret if
6506 w32_use_visible_system_caret is set.
6507 (x_update_window_end): Only show caret if
6508 w32_use_visible_system_caret is set.
6509 (syms_of_w32term): Handle SystemParametersInfo call failing.
3509a04c 6510
048addec 6511 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3509a04c 6512
048addec 65132002-01-22 Richard M. Stallman <rms@gnu.org>
3509a04c 6514
048addec
JD
6515 * unexelf.c (unexec): Define n so as to cause compilation error
6516 for the code where people have often written n instead of nn.
1e9a6186 6517
048addec 6518 * .gdbinit (hookpost-run): Defined.
1e9a6186 6519
048addec 65202002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e4e34e31 6521
048addec 6522 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
e4e34e31 6523
048addec 65242002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4521d1fc 6525
048addec
JD
6526 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
6527 if fullscreen is being set.
7c75be36 6528
048addec 65292002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 6530
048addec
JD
6531 * minibuf.c (Fminibuffer_contents)
6532 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
6533 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4521d1fc 6534
048addec 65352002-01-21 Richard M. Stallman <rms@gnu.org>
4521d1fc 6536
048addec 6537 * window.c (check_frame_size): Fix minimum height calculation.
93dec019 6538
048addec 65392002-01-20 Ken Raeburn <raeburn@gnu.org>
93dec019 6540
048addec
JD
6541 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
6542 height before comparison.
6543 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
905cc05a 6544
048addec 65452002-01-20 Jason Rumney <jasonr@gnu.org>
2ed06289 6546
048addec
JD
6547 * w32term.c (w32_system_caret_width): Remove.
6548 (w32_use_visible_system_caret): New user flag.
6549 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
6550 Windows reports a screen reader running.
6551 (x_update_window_begin): Hide the system caret.
6552 (x_update_window_end): Show the system caret.
6553 (x_display_and_set_cursor): Don't draw a cursor when
6554 w32_use_visible_system_caret is set. Do not adjust width.
0e79d667 6555
048addec
JD
6556 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
6557 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
6558 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
6559 the user requests it. Use system default width when creating.
6560 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
0e79d667 6561
048addec
JD
6562 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
6563 New window messages.
905cc05a 6564
048addec 65652002-01-20 Richard M. Stallman <rms@gnu.org>
82a7ab23 6566
048addec 6567 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
d75bec6a 6568
048addec 65692002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
52dcb476 6570
048addec 6571 * doprnt.c (doprnt1): Fix typos in error call.
82a7ab23 6572
048addec 65732002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
82a7ab23 6574
048addec 6575 * unexelf.c (unexec) [__sgi]: Support the .got sections.
82a7ab23 6576
048addec 65772002-01-20 Jason Rumney <jasonr@gnu.org>
4d0fa4f3 6578
048addec
JD
6579 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
6580 that Windows returns. If a double check fails, try to guess how
6581 ExtTextOut is going to act.
4d0fa4f3 6582
048addec
JD
6583 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
6584 in place of stricmp.
6585 (w32_list_synthesized_fonts): Removed.
6586 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
6587 (struct enumfont_t): New element; list.
6588 (enum_font_cb2): List all style and charset variations of a font.
6589 (Fw32_select_font): New optional argument; include_proportional.
6590 Exclude vertical fonts. Exclude proportional fonts unless
6591 include_proportional is non-nil.
6592 (w32_enable_synthesized_fonts): Change to a boolean.
6593 (Fw32_send_sys_command): Doc fix.
493faf20 6594
048addec 65952002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
493faf20 6596
048addec
JD
6597 * dispnew.c (update_frame): Move the variable `tem' to the block
6598 where it is used.
4971e491 6599
048addec 66002002-01-19 Jason Rumney <jasonr@gnu.org>
4971e491 6601
048addec
JD
6602 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
6603 call to face-set-after-frame-default.
4971e491 6604
048addec 66052002-01-18 Richard M. Stallman <rms@gnu.org>
d911a0fa 6606
048addec
JD
6607 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
6608 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
d911a0fa 6609
048addec 66102002-01-17 Richard M. Stallman <rms@gnu.org>
d911a0fa 6611
048addec
JD
6612 * window.c (enlarge_window): When exceeding size of parent,
6613 directly delete all the siblings instead of trying to resize it.
201c831a 6614
048addec 66152002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
201c831a 6616
048addec 6617 * term.c (set_tty_color_mode): Remove unused variable `tem'.
201c831a 6618
048addec 66192002-01-16 Henrik Enberg <henrik@enberg.org>
34e39c95 6620
048addec 6621 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
34e39c95 6622
048addec 66232002-01-16 Kim F. Storm <storm@cua.dk>
d77fbc16 6624
048addec
JD
6625 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
6626 is invisible. This can happen if cursor is on top line of a
6627 window, and we switch to a buffer with a header line.
d77fbc16 6628
048addec 6629 * w32term.c (x_erase_phys_cursor): Ditto.
61e3b944 6630
048addec 66312002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
61e3b944 6632
048addec
JD
6633 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
6634 `dont_resize' only when used.
61e3b944 6635
048addec 6636 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
70da46c3 6637
048addec 66382002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
70da46c3 6639
048addec
JD
6640 * xdisp.c (display_mode_element): When computing charpos, depend
6641 on multibyteness of elt, not the text in field.
8af01033 6642
048addec 66432002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8af01033 6644
048addec
JD
6645 * buffer.c (Fkill_all_local_variables):
6646 Increment `update_mode_lines' only once.
7363986a 6647
048addec 66482002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a 6649
048addec
JD
6650 * lisp.h (adjust_after_replace_noundo)
6651 (Fupdate_coding_systems_internal): Add prototypes.
d9e6c4b1 6652
048addec 6653 * sound.c (Fplay_sound): Initialize header_size also for :data case.
d20fc48a 6654
048addec 66552002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
d9e6c4b1 6656
048addec
JD
6657 Support for the --color command-line argument and tty-color-mode
6658 frame parameter:
f1a85b89 6659
048addec
JD
6660 * term.c (tty_default_color_capabilities, tty_setup_colors)
6661 (set_tty_color_mode): New functions.
6662 (term_init): Call tty_default_color_capabilities.
6663 (Qtty_color_mode_alist): New variable.
6664 (syms_of_term): Intern and staticpro it.
f1a85b89 6665
048addec
JD
6666 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
6667 frames.
6668 (do_switch_frame): For termcap frames, switch the tty
6669 color mode as specified by the frame's parameters.
6670 (Qtty_color_mode): New variable.
6671 (syms_of_frame): Intern and staticpro it.
3a62677f 6672
048addec
JD
6673 * emacs.c (USAGE2): Add the --color option.
6674 (standard_args): Ditto.
72244db2 6675
048addec
JD
66762002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6677
6678 * xterm.h (struct x_output): New members want_fullscreen,
6679 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
6680 y_pixels_outer_diff.
6681 New enum for FULLSCREEN_* constants.
6682 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
6683 is NULL.
6684 (x_fullscreen_adjust): Add prototype.
3a62677f 6685
048addec
JD
6686 * emacs.c (USAGE2): Add the new full-screen arguments.
6687 (standard_args): Ditto.
3a62677f 6688
048addec
JD
6689 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
6690 New variables.
6691 (syms_of_xfns): Intern and staticpro them.
6692 (x_frame_parms) <"fullscreen">: New parameter.
6693 (x_fullscreen_move, x_set_fullscreen): New functions.
6694 (x_set_frame_parameters): Support for Qfullscreen.
6695 (x_real_positions): More accurate computation of the frame position.
6696 (x_figure_window_size): Support full-screen frames.
6697 (Fx_create_frame): Default the fullscreen parameter.
3a62677f 6698
048addec
JD
6699 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
6700 (XTread_socket) <Expose>: Call x_check_fullscreen.
6701 <ConfigureNotify>: Don't resize to fullscreen.
6702 Call x_check_fullscreen_move, and set the want_fullscreen member of
6703 output_data.x.
3a62677f 6704
048addec 67052002-01-13 Jason Rumney <jasonr@gnu.org>
9d113d9d 6706
048addec
JD
6707 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
6708 for mice with more than 3 buttons.
b8523839 6709
048addec
JD
6710 * w32term.c (parse_button): New parameter xbutton. Callers changed.
6711 (w32_read_socket): Handle new "XBUTTON" messages.
9464dea4 6712
048addec
JD
6713 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
6714 (syms_of_w32fns): DEFVAR_BOOL it.
6715 (w32_wnd_proc): Handle new "XBUTTON" messages.
9d113d9d 6716
048addec 67172002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70ec1377 6718
048addec 6719 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
70ec1377 6720
048addec 67212002-01-13 Andreas Schwab <schwab@suse.de>
92f7dd37 6722
048addec 6723 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
92f7dd37 6724
048addec 67252002-01-12 Andreas Schwab <schwab@suse.de>
c93674bb 6726
048addec
JD
6727 * .gdbinit (xbuffer): Remove address operator since data is now a
6728 pointer.
c93674bb 6729
048addec 67302002-01-11 Richard M. Stallman <rms@gnu.org>
59b59892 6731
048addec 6732 * insdel.c (adjust_after_replace_noundo): New function.
59b59892 6733
048addec 6734 * coding.c (code_convert_region): Don't copy old text if undo disabled.
c6ea2775 6735
048addec 67362002-01-09 Jason Rumney <jasonr@gnu.org>
c6ea2775 6737
048addec
JD
6738 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
6739 when checking for multiple frames.
91175673 6740
048addec 67412002-01-08 Richard M. Stallman <rms@gnu.org>
91175673 6742
048addec
JD
6743 * window.c (delete_window): Rewrite the code for changing the
6744 selected window to handle the case where WINDOW is not a leaf.
91175673 6745
048addec 67462002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
e0fead5d 6747
048addec
JD
6748 * process.c (send_process): Set src_multibyte to 1 after the call
6749 top setup_coding_system, not before the call.
e0fead5d 6750
048addec 67512002-01-07 Jason Rumney <jasonr@gnu.org>
e0fead5d 6752
048addec
JD
6753 * xmenu.c (set_frame_menubar, xmenu_show):
6754 (xdialog_show): Initialize wv->help to Qnil.
c186cdb3 6755
048addec
JD
6756 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
6757 (w32_dialog_show): Initialize wv->help to Qnil.
c186cdb3 6758
048addec 67592002-01-06 Jason Rumney <jasonr@gnu.org>
c186cdb3 6760
048addec 6761 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
c186cdb3 6762
048addec 6763 * w32menu.c (w32_menu_display_help): Revert last change.
58cfce98 6764
048addec 6765 * xmenu.c (menu_highlight_callback): Revert last change.
58cfce98 6766
048addec 67672002-01-06 Andreas Schwab <schwab@suse.de>
62854fe2 6768
048addec
JD
6769 * insdel.c (make_gap_larger): Make sure buffer size does not
6770 overflow range of int.
62854fe2 6771
048addec 67722002-01-05 Jason Rumney <jasonr@gnu.org>
656f46bb 6773
048addec
JD
6774 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6775 OVERLAPS_P.
656f46bb 6776
048addec 6777 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
656f46bb 6778
048addec
JD
6779 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
6780 to the left or to the right of the pointer, put it against
6781 the left screen edge.
6782 (x_frame_parms): Add missing braces around initializer.
036e218d 6783
048addec
JD
6784 * w32term.c (x_setup_relief_colors): Don't compute an image's
6785 background color if it doesn't have a Pixmap.
6786 (notice_overwritten_cursor): Don't depend on
6787 output_cursor and updated_area. Compare pixel coordinates with
6788 window's cursor pixel coordinates.
6789 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6790 Call notice_overwritten_cursor with new arg list.
6791 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6792 unconditionally.
6793 (x_draw_image_relief): Use predefined macro instead of
6794 constant when the value of `tool_bar_button_relief' is negative.
036e218d 6795
048addec 6796 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7ddb2c16 6797
048addec 67982002-01-04 Richard M. Stallman <rms@gnu.org>
7ddb2c16 6799
048addec 6800 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
ace9b298 6801
048addec 68022002-01-03 Richard M. Stallman <rms@gnu.org>
90647b07 6803
048addec
JD
6804 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
6805 (Fkey_binding): Try the `keymap' property map first.
6806 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
6807 minor mode bindings.
90647b07 6808
048addec 68092002-01-03 Kim F. Storm <storm@cua.dk>
ace9b298 6810
048addec 6811 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
ace9b298 6812
048addec 68132002-01-02 Richard M. Stallman <rms@gnu.org>
ace9b298 6814
048addec
JD
6815 * keyboard.c (read_key_sequence): Handle the keymap property
6816 before minor mode maps.
9fbc32aa 6817
048addec
JD
6818 * editfns.c (Fformat): Update thissize from field_width
6819 based on the actual width, in the string case.
036e218d 6820
048addec 68212002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fbc32aa 6822
048addec
JD
6823 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
6824 when used as truth value to prevent gcc warnings.
9fbc32aa 6825
048addec
JD
6826 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
6827 * w32proc.c: Include <config.h>.
9fbc32aa 6828
048addec 68292002-01-01 Andreas Schwab <schwab@suse.de>
9fbc32aa 6830
048addec
JD
6831 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
6832 not EMACS_INT, to make them compatible with DEFVAR_INT.
6833 * lisp.h (max_specpdl_size): Adjust declaration.
9fbc32aa 6834
048addec 68352002-01-01 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6836
048addec
JD
6837 * print.c (print_object): Test print_escape_nonascii only for
6838 unibyte strings.
6839 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
6840 when outputting to a multibyte buffer.
9fbc32aa 6841
048addec 68422001-12-29 Richard M. Stallman <rms@gnu.org>
9fbc32aa 6843
048addec
JD
6844 * print.c (print_object): In multibyte string, use hex escapes.
6845 Use octal only for unibyte strings.
6846 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
0142178a 6847
048addec
JD
6848 * lread.c (read_escape): New arg BYTEREP for reporting whether
6849 escape forces unibyte or multibyte.
6850 (read1): When reading a string, take note of that info.
0142178a 6851
048addec 68522001-12-29 Ken Raeburn <raeburn@gnu.org>
d4824a5d 6853
048addec
JD
6854 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
6855 comparison to test lisp value returned by Fget.
d4824a5d 6856
048addec 68572001-12-29 Richard M. Stallman <rms@gnu.org>
b1356234 6858
048addec 6859 * lisp.h (max_specpdl_size): Add declaration.
b1356234 6860
048addec 6861 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3ce081f5 6862
048addec
JD
6863 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
6864 Handle modifier bits. Correct typo in error message.
99e380ee 6865
048addec 68662001-12-28 Richard M. Stallman <rms@gnu.org>
3ce081f5 6867
048addec
JD
6868 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
6869 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
6870 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
6871 Update calls to Fdefine_abbrev.
6872 (write_abbrev): Update for changed data format.
6873 Don't list "system" abbrevs.
6874 (Fexpand_abbrev): Update use count with new data format.
6875 (describe_abbrev): Update for changed data format.
6876 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
66458f32 6877
048addec 6878 * config.in (HAVE_MBSINIT): Add #undef.
66458f32 6879
048addec 6880 * strftime.c (mbsinit): Define as no-op if not available.
66458f32 6881
048addec
JD
6882 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
6883 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
59a86c99 6884
048addec
JD
6885 * keymap.c (Flookup_key): Error message if key has wrong data type.
6886 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
6887 (exclude_key): New variable.
59a86c99 6888
048addec 68892001-12-28 Gerd Moellmann <gerd@gnu.org>
eb77a5f4 6890
048addec
JD
6891 * xterm.c (x_setup_relief_colors): Don't compute an image's
6892 background color if it doesn't have a Pixmap.
eb77a5f4 6893
048addec
JD
6894 * xterm.c (notice_overwritten_cursor): Don't depend on
6895 output_cursor and updated_area. Compare pixel coordinates with
6896 window's cursor pixel coordinates.
6897 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
6898 Call notice_overwritten_cursor with new arg list.
6899 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
6900 unconditionally.
eb77a5f4 6901
048addec
JD
6902 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
6903 height of the cursor line to the amount to scroll.
eb77a5f4 6904
048addec 69052001-12-27 Richard M. Stallman <rms@gnu.org>
bb313871 6906
048addec
JD
6907 * intervals.c (set_point_both): The position after an invisible,
6908 intangible character is not an acceptable stopping point.
bb313871 6909
048addec 69102001-12-27 Ken Raeburn <raeburn@gnu.org>
55b43a63 6911
048addec
JD
6912 * window.c (enlarge_window): In new preserve_before code, convert
6913 CURBEG from lisp object to integer before doing arithmetic.
6052529b 6914
048addec 69152001-12-27 Richard M. Stallman <rms@gnu.org>
3ce081f5 6916
048addec 6917 * bytecode.c (Fbyte_code): Undo previous change.
3ce081f5 6918
048addec 69192001-12-26 Kim F. Storm <storm@cua.dk>
3ce081f5 6920
048addec
JD
6921 * keyboard.c (record_char): Ignore duplicate help-echo events only
6922 separated by mouse-movement. When tracking mouse, only record
6923 first and last mouse-movement event in same window.
6924 Don't record mouse-movement events in keyboard macros.
3ce081f5 6925
048addec 69262001-12-25 Richard M. Stallman <rms@gnu.org>
55b43a63 6927
048addec
JD
6928 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
6929 (Fenlarge_window): New arg PRESERVE_BEFORE.
111ed14e 6930
048addec
JD
6931 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
6932 instead of Fstring_as_unibyte.
9fabb2f5 6933
048addec 69342001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9fabb2f5 6935
048addec 6936 The following changes remove mocklisp support:
9fabb2f5 6937
048addec 6938 * mocklisp.h, mocklisp.c: Files removed.
111ed14e 6939
048addec
JD
6940 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
6941 `Qmocklisp' and `Qmocklisp_arguments'.
6942 Remove prototype of syms_of_mocklisp.
2fa0eedf 6943
048addec 6944 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
d1420435 6945
048addec
JD
6946 * callint.c: Do not include mocklisp.h.
6947 (Fcall_interactively): Do not test for mocklisp case.
2fa0eedf 6948
048addec
JD
6949 * eval.c: Remove variables `Qmocklisp_arguments',
6950 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
6951 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
6952 Do not test for mocklisp case.
6953 (Fwhile): Remove unused variable `tem'.
6954 (syms_of_eval): Remove variable `moclisp-arguments'.
ebcbef4e 6955
048addec 6956 * data.c (wrong_type_argument): Remove mocklisp case.
5c131048 6957
048addec 6958 * doc.c (Fdocumentation): Remove mocklisp case.
5c131048 6959
048addec 6960 * emacs.c (main): Do not call syms_of_mocklisp.
5c131048 6961
048addec 69622001-12-21 Richard M. Stallman <rms@gnu.org>
96d276c3 6963
048addec
JD
6964 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
6965 to the left or to the right of the pointer, put it against
6966 the left screen edge.
6108b49c 6967
048addec 69682001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
96d276c3 6969
048addec
JD
6970 * Makefile.in (distclean): Remove .gdbinit if we are building
6971 outside the source tree.
5eea19a4 6972
048addec 69732001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5eea19a4 6974
048addec 6975 * w32.c (emacs_root_dir): New function.
5eea19a4 6976
048addec 6977 * msdos.c (emacs_root_dir): New function.
5eea19a4 6978
048addec
JD
6979 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
6980 of the current drive as the fallback for default_directory.
438e57dd 6981
048addec
JD
6982 * dired.c (file_name_completion): Run the elements of
6983 completion-ignored-extensions through ENCODE_FILE.
438e57dd 6984
048addec
JD
6985 * lisp.h (scmp): Remove prototype, since it's now a static
6986 function private to dired.c.
c88e5347 6987
048addec 69882001-12-18 Richard M. Stallman <rms@gnu.org>
c88e5347 6989
048addec
JD
6990 * dired.c (scmp): Function moved from minibuf.c.
6991 Delete multibyte handling--used only on encoded strings.
59ce1461 6992
048addec 6993 * minibuf.c (scmp): Function moved to dired.c.
59ce1461 6994
048addec 6995 * fns.c (merge): Add QUIT call.
59ce1461 6996
048addec 69972001-12-18 Dave Love <fx@gnu.org>
8727d588 6998
048addec
JD
6999 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
7000 language/georgian.el.
8727d588 7001
048addec 70022001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
cc63037e 7003
048addec
JD
7004 * Makefile.in (lisp, shortlisp): Synchronize with changes to
7005 lisp/Makefile.in:DONTCOMPILE.
cc63037e 7006
048addec 70072001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
cc63037e 7008
048addec
JD
7009 * xdisp.c (window_box_height): Do not return negative values.
7010 From Gerd Moellmann <gerd@gnu.org>.
cc63037e 7011
048addec 7012 * keyboard.c (head_table): Add missing braces around initializer.
cc63037e 7013
048addec 7014 * term.c (keys): Likewise.
deece6f5 7015
048addec 7016 * xfns.c (x_frame_parms, visual_classes): Likewise.
deece6f5 7017
048addec 70182001-12-17 Sam Steingold <sds@gnu.org>
1b944d9c 7019
048addec
JD
7020 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
7021 patch (COMPOSING_P, not COMPOSING).
28ff4293 7022
048addec 70232001-12-17 Richard M. Stallman <rms@gnu.org>
a395ef6a 7024
048addec 7025 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
a395ef6a 7026
048addec
JD
7027 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
7028 before calling decode_coding.
9b46de40 7029
048addec 7030 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
9b46de40 7031
048addec
JD
7032 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
7033 instead of only for COMPOSITION_DISABLED.
9b46de40 7034
048addec 70352001-12-16 Richard M. Stallman <rms@gnu.org>
aff37336 7036
048addec 7037 * alloc.c (pure_alloc): After overflow, allocate just a small block.
aff37336 7038
048addec 7039 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
b9937f07 7040
048addec
JD
7041 * buffer.h (struct buffer): New field `display_error_modiff'.
7042 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
b9937f07 7043
048addec 7044 * window.c (Frecenter): Clear display_error_modiff field.
2cd23960 7045
048addec
JD
7046 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
7047 Call redisplay_window, but not if display_error_modiff field says no.
7048 (redisplay_window_error): New function.
7049 (displayed_buffer): New variable.
7050 (redisplay_internal, redisplay_windows): Call the new functions
7051 instead of redisplay_window directly.
2cd23960 7052
048addec 70532001-12-15 Richard M. Stallman <rms@gnu.org>
2cd23960 7054
048addec 7055 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2cd23960 7056
048addec 70572001-12-14 Andrew Innes <andrewi@gnu.org>
a4184c1c 7058
048addec
JD
7059 * makefile.w32-in (EMACSLOADPATH): Define.
7060 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
7061 (bootstrap-temacs): Remove dependency on bootstrap-clean.
a4184c1c 7062
048addec 70632001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
f6fa0866 7064
048addec
JD
7065 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
7066 parameter have a numeric value all the time.
f6fa0866 7067
048addec 7068 * w32fns.c (x_report_frame_params): Likewise.
f4ca4b00 7069
048addec 70702001-12-12 Richard M. Stallman <rms@gnu.org>
f4ca4b00 7071
048addec 7072 * fileio.c (Fwrite_region): Doc fix.
f4e25f94 7073
048addec
JD
7074 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
7075 (redisplay_internal): Call clear_image_cache only for window terminals.
f4e25f94 7076
048addec 70772001-12-12 Gerd Moellmann <gerd@gnu.org>
91c153e2 7078
048addec
JD
7079 * xdisp.c (move_it_vertically_backward): Change heuristic
7080 for the case that we didn't move far enough initially.
91c153e2 7081
048addec
JD
7082 * window.c (Frecenter): Simplify computation in the case of window
7083 system frames and ARG < 0; use window_box_height.
65b7d3e7 7084
048addec 70852001-12-11 Richard M. Stallman <rms@gnu.org>
65b7d3e7 7086
048addec
JD
7087 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
7088 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6b5f6311 7089
048addec 70902001-12-11 Andrew Innes <andrewi@gnu.org>
6b5f6311 7091
048addec
JD
7092 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
7093 arg is negative.
be676094 7094
048addec 70952001-12-11 Richard M. Stallman <rms@gnu.org>
be676094 7096
048addec
JD
7097 * m/hp800.h: Split the __hpux conditional into the parts
7098 that are right for GNU/Linux too and the parts that are not.
7099 Use the former if GNU_LINUX.
7100 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
032a857d 7101
048addec 7102 * s/gnu-linux.h (GNU_LINUX): Defined.
032a857d 7103
048addec 71042001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
032a857d 7105
048addec
JD
7106 * macros.c, msdos.c, w16select.c: Change doc-string comments to
7107 `new style' [w/`doc:' keyword].
032a857d 7108
048addec 71092001-12-10 Jason Rumney <jasonr@gnu.org>
b6270150 7110
048addec
JD
7111 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
7112 before using.
b6270150 7113
048addec 71142001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 7115
048addec
JD
7116 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
7117 keyword].
98cbb9fa 7118
048addec 71192001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
98cbb9fa 7120
048addec 7121 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
98cbb9fa 7122
048addec 7123 * s/hpux10.h (srand48): Don't undefine.
98cbb9fa 7124
048addec 71252001-12-09 Jason Rumney <jasonr@gnu.org>
792e5cbd 7126
048addec
JD
7127 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
7128 Add comment to explain where the struct came from.
7129 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
7130 (add_menu_item): Process pop-up menus first to avoid memory leak.
7131 (add_menu_item, w32_menu_display_help): Use `help' field as
7132 Lisp_Object.
7133 (w32_free_submenu_strings): Only free owner-drawn strings.
fa336b91 7134
048addec 71352001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa336b91 7136
048addec 7137 * COPYING: Moved back.
fa336b91 7138
048addec
JD
7139 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
7140 Add parentheses around && within ||.
077907d4 7141
048addec 7142 * indent.c (compute_motion): Likewise.
aa2af83a 7143
048addec 7144 * intervals.c (merge_properties_sticky): Likewise.
60a653f1 7145
048addec
JD
7146 * coding.c (setup_coding_system, shrink_encoding_region)
7147 (Fdecode_sjis_char): Likewise.
60a653f1 7148
048addec 71492001-12-07 Andreas Schwab <schwab@suse.de>
60a653f1 7150
048addec
JD
7151 * xdisp.c (display_mode_element): Don't read past end of string if
7152 it ends with '%'.
60a653f1 7153
048addec
JD
7154 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
7155 can hold.
60a653f1 7156
048addec
JD
7157 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
7158 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
7159 type changed to Lisp_Object.
7160 (syms_of_data): DEFVAR_LISP them.
60a653f1 7161
048addec 71622001-12-07 Richard M. Stallman <rms@gnu.org>
60a653f1 7163
048addec
JD
7164 * callproc.c (init_callproc): Set Vdata_directory based on the source
7165 location whenever Emacs was run uninstalled.
60a653f1 7166
048addec 71672001-12-06 Paul Eggert <eggert@twinsun.com>
60a653f1 7168
048addec
JD
7169 * config.in (HAVE_WORKING_VFORK): New #undefs.
7170 * process.c (create_process):
7171 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
7172 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
7173 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
7174 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
7175 * m/intel386.h (HAVE_VFORK): Likewise.
7176 * m/mips-siemens.h (HAVE_VFORK): Likewise.
7177 * m/mips.h (HAVE_VFORK): Likewise.
7178 * s/freebsd.h (vfork): Remove #define.
7179 * s/lynxos.h (HAVE_VFORK): Remove #undef.
7180 * s/usg5-4-2.h: Fix comment about vfork.
60a653f1 7181
048addec 71822001-12-06 Richard M. Stallman <rms@gnu.org>
60a653f1 7183
048addec
JD
7184 * s/hpux10.h (random): Add undef.
7185 (HAVE_RANDOM): Define it just once.
60a653f1 7186
048addec 71872001-12-06 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7188
048addec 7189 * eval.c: Undo last change: the standard syntax is not wanted.
60a653f1 7190
048addec 71912001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7192
048addec
JD
7193 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
7194 scroll bars of the frame before deleting the frame itself. If the
7195 frame has a widget, delete the frame with XtDestroyWidget, and do
7196 not call XDestroyWindow before that.
60a653f1 7197
048addec 71982001-12-06 Kim F. Storm <storm@cua.dk>
60a653f1 7199
048addec 7200 * xfns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 7201
048addec 7202 * w32fns.c (x_report_frame_params): Return actual fringe widths.
60a653f1 7203
048addec 72042001-12-05 Andrew Innes <andrewi@gnu.org>
60a653f1 7205
048addec
JD
7206 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
7207 excessively large.
60a653f1 7208
048addec
JD
7209 * insdel.c (make_gap_larger): New function.
7210 (make_gap_smaller): New function.
7211 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
7212 Call make_gap_smaller if arg is negative.
60a653f1 7213
048addec 72142001-12-04 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7215
048addec
JD
7216 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
7217 Pass a dummy argument when calling interrupt_signal.
7218 (parse_menu_item): Mark disabled items before checking for empty def.
7219 (read_char_minibuf_menu_prompt): Make safety more visible.
7220 (read_key_sequence): Add a `first_unbound' variable.
7221 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
7222 unbound prefix as soon as we can detect it.
60a653f1 7223
048addec
JD
7224 * doc.c (Fsnarf_documentation): Add prototype.
7225 (get_doc_string): Handle negative arguments.
7226 (Fdocumentation): Use AREF and ASIZE.
7227 Move the calls to get_doc_string to a single place.
7228 Don't confuse an interactive-spec for a docstring reference.
7229 (Fdocumentation_property): Take advantage of the fact that
7230 get_doc_string now ignores the sign of the docstring position.
60a653f1 7231
048addec 7232 * eval.c: Use standard syntax for usage in docstrings.
60a653f1 7233
048addec 72342001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7235
048addec 7236 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
60a653f1 7237
048addec 72382001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7239
048addec
JD
7240 * xterm.c (x_draw_image_relief): Use predefined macro instead of
7241 constant when the value of `tool_bar_button_relief' is negative.
60a653f1 7242
048addec 72432001-12-02 Richard M. Stallman <rms@gnu.org>
60a653f1 7244
048addec
JD
7245 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
7246 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
60a653f1 7247
048addec 7248 * fileio.c (read_non_regular): Delete Fsignal call.
60a653f1 7249
048addec 72502001-12-01 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7251
048addec 7252 * lisp.h (run_hook_list_with_args): Undo last change.
60a653f1 7253
048addec 72542001-12-01 Gerd Moellmann <gerd@gnu.org>
60a653f1 7255
048addec 7256 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
60a653f1 7257
048addec 72582001-12-01 Jason Rumney <jasonr@gnu.org>
60a653f1 7259
048addec 7260 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
60a653f1 7261
048addec
JD
7262 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
7263 [!WM_MOUSELEAVE]: Define.
60a653f1 7264
048addec
JD
7265 * w32menu.c (current_popup_menu, get_menu_item_info):
7266 (set_menu_item_info): New vars.
7267 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
7268 (w32_menu_show): Set current_popup_menu.
7269 (add_menu_item): Allocate new strings for owner-drawn menu items
7270 and help strings.
7271 Use owner-draw for disabled menu items again.
7272 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
7273 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
60a653f1 7274
048addec
JD
7275 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
7276 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
7277 <WM_EXITMENULOOP>: Free menu strings.
7278 <WM_MOUSELEAVE>: Stop tracking mouse.
7279 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
60a653f1 7280
048addec
JD
7281 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
7282 and mouse face.
60a653f1 7283
048addec 72842001-12-01 Kim F. Storm <storm@cua.dk>
60a653f1 7285
048addec
JD
7286 The following changes add left-fringe and right-fringe
7287 frame parameters to adjust fringe widths, or remove one or
7288 both fringes.
60a653f1 7289
048addec
JD
7290 * frame.h (struct frame): Remove trunc_area_pixel_width and
7291 trunc_area_cols fields.
7292 (Qleft_fringe, Qright_fringe): Declare.
7293 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
60a653f1 7294
048addec
JD
7295 * frame.c (Qleft_fringe, Qright_fringe): New vars.
7296 (syms_of_frame): Initialize them.
60a653f1 7297
048addec
JD
7298 * window.c (coordinates_in_window): Handle separate left and right
7299 fringe widths.
60a653f1 7300
048addec
JD
7301 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
7302 and fringe_cols fields.
7303 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
7304 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
7305 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
7306 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
7307 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
7308 (x_compute_fringe_widths): Add prototype.
60a653f1 7309
048addec
JD
7310 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
7311 fill fringe evenly with small dashes.
7312 (x_draw_fringe_bitmap): Clear background if necessary. Align and
7313 clip the new ZV bitmap to avoid jitter between rows.
7314 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
7315 background. Don't draw fringe bitmaps if fringe width is zero.
7316 (x_compute_fringe_widths): New function.
7317 (x_new_font, x_set_window_size_1): Use it.
60a653f1 7318
048addec
JD
7319 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
7320 (x_set_frame_parameters): Process `font' parameter before other
7321 parameters as fringe widths depend on it.
7322 (x_set_fringe_width): New function.
7323 (x_figure_window_size): Use x_compute_fringe_widths.
7324 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
7325 parameters.
60a653f1 7326
048addec
JD
7327 * widget.c (set_frame_size): Use x_compute_fringe_widths.
7328 (EmacsFrameSetCharSize): Ditto.
60a653f1 7329
048addec
JD
7330 * w32term.h: Merged changes from xterm.h.
7331 * w32term.c: Merged changes from xterm.c.
7332 * w32fns.c: Merged changes from xfns.c.
60a653f1 7333
048addec 73342001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7335
048addec 7336 * COPYING: Removed.
60a653f1 7337
048addec 73382001-11-29 Dave Love <fx@gnu.org>
60a653f1 7339
048addec
JD
7340 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
7341 extra extra slot.
7342 (detect_coding_mask): Fix call of detect_coding_iso2022.
60a653f1 7343
048addec 73442001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7345
048addec
JD
7346 * fileio.c (file-name-coding-system)
7347 (default-file-name-coding-system): Doc fix (links to referenced
7348 variables added).
60a653f1 7349
048addec 73502001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7351
048addec
JD
7352 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
7353 Add dummy uses of gcproN variables.
60a653f1 7354
048addec
JD
7355 * category.c (describe_category, describe_category_1)
7356 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
7357 (syms_of_category): Don't defsubr Sdescribe_categories.
60a653f1 7358
048addec 73592001-11-28 Richard M. Stallman <rms@gnu.org>
60a653f1 7360
048addec 7361 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
60a653f1 7362
048addec
JD
7363 * Makefile.in (lispdir): New variable, referring to build dir.
7364 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
60a653f1 7365
048addec 73662001-11-28 Andrew Innes <andrewi@gnu.org>
60a653f1 7367
048addec
JD
7368 * w32menu.c (w32_menu_display_help): Actually add the new argument
7369 OWNER.
60a653f1 7370
048addec 73712001-11-28 Jason Rumney <jasonr@gnu.org>
60a653f1 7372
048addec
JD
7373 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
7374 menu items. From David Ponce <dponce@wanadoo.fr>.
7375 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
7376 conditionally.
7377 (w32_menu_display_help): New argument OWNER. Rewritten to store a
7378 help event in the owner frame's keyboard buffer.
60a653f1 7379
048addec
JD
7380 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
7381 (Fx_show_tip): Don't subtract last width from row width.
7382
7383 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
7384 (w32_read_socket): Use EQ to compare frames.
60a653f1 7385
048addec 73862001-11-28 Gerd Moellmann <gerd@gnu.org>
60a653f1 7387
048addec
JD
7388 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
7389 OVERLAPS_P.
60a653f1 7390
048addec 73912001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7392
048addec
JD
7393 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
7394 `gcpro3' and `gcpro4'.
60a653f1 7395
048addec 7396 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
60a653f1 7397
048addec 73982001-11-28 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7399
048addec 7400 * ccl.c: Use AREF and ASIZE.
60a653f1 7401
048addec 74022001-11-27 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7403
048addec
JD
7404 * lisp.h (run_hook_list_with_args): Remove.
7405 (LIST_END_P): Fix call to wrong_type_argument.
7406 (make_fixnum_or_float): Use EMACS_INT rather than int.
60a653f1 7407
048addec 74082001-11-26 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7409
048addec
JD
7410 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
7411 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
60a653f1 7412
048addec
JD
7413 * eval.c: Use AREF and ASIZE.
7414 (Ffetch_bytecode): Add the file name to the error message.
60a653f1 7415
048addec
JD
7416 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
7417 which match the end of the file-name.
7418 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
7419 is not a valid env var, but leave it as is instead.
60a653f1 7420
048addec
JD
7421 * keymap.c (access_keymap): Handle t bindings like nil bindings.
7422 Make nil bindings in char-tables transparent.
7423 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
60a653f1 7424
048addec 74252001-11-26 Richard M. Stallman <rms@gnu.org>
60a653f1 7426
048addec
JD
7427 * textprop.c (set_text_properties_1): Allow START, END in either order.
7428 Do nothing if range is empty.
60a653f1 7429
048addec 7430 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
60a653f1 7431
048addec
JD
7432 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
7433 (clean): Not here.
60a653f1 7434
048addec 74352001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7436
048addec
JD
7437 * textprop.c (set_text_properties_1): Clearly mark that the
7438 interval should not be empty.
60a653f1 7439
048addec
JD
7440 * intervals.c (graft_intervals_into_buffer):
7441 Don't call set_text_properties_1 on an empty interval.
60a653f1 7442
048addec 74432001-11-25 Richard M. Stallman <rms@gnu.org>
60a653f1 7444
048addec 7445 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
60a653f1 7446
048addec
JD
7447 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
7448 don't lose the data in it.
60a653f1 7449
048addec 74502001-11-25 Juanma Barranquero <lektu@terra.es>
60a653f1 7451
048addec 7452 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
60a653f1 7453
048addec 7454 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
60a653f1 7455
048addec 7456 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
60a653f1 7457
048addec 74582001-11-25 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7459
048addec 7460 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
60a653f1 7461
048addec 74622001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7463
048addec
JD
7464 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
7465 Niemitalo <kon@iki.fi>.
60a653f1 7466
048addec 74672001-11-25 Jason Rumney <jasonr@gnu.org>
60a653f1 7468
048addec 7469 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
60a653f1 7470
048addec
JD
7471 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
7472 (Fx_show_tip): Block input during frame creation.
7473 (Fx_show_tip, Fx_hide_tip): Enable.
60a653f1 7474
048addec 74752001-11-24 Richard M. Stallman <rms@gnu.org>
60a653f1 7476
048addec
JD
7477 * lread.c (Fload): Detect recursive load error for more than 3
7478 nestings of the same file.
7479 (Vrecursive_load_depth_limit): Variable deleted.
7480 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
60a653f1 7481
048addec 74822001-11-24 Jason Rumney <jasonr@gnu.org>
60a653f1 7483
048addec
JD
7484 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
7485 mouse position if either left or top is not specified.
60a653f1 7486
048addec
JD
7487 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
7488 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
7489 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
7490 (my_create_tip_window): Assign tip_window.
7491 (x_create_tip_frame): Use same defaults as X.
7492 (compute_tip_xy): Remove unused variable. Use full screen width.
7493 (Fx_show_tip): Do not double height. Call ShowWindow directly.
60a653f1 7494
048addec
JD
7495 * w32term.c (x_after_update_window_line): Doc fix.
7496 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
7497 frames.
7498 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
60a653f1 7499
048addec
JD
7500 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
7501 for all Windowed systems.
60a653f1 7502
048addec 75032001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
60a653f1 7504
048addec
JD
7505 * msdos.c (IT_clear_screen): If the frame's faces are not yet
7506 realized, use the initial screen colors to clear the screen.
60a653f1 7507
048addec 75082001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7509
048addec
JD
7510 * textprop.c (Fset_text_properties): Remove unused variables
7511 `unchanged', `prev_changed', `s' and `len'.
60a653f1 7512
048addec
JD
7513 * search.c (Freplace_match): Remove unused variable `inslen'.
7514
7515 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
7516
75172001-11-22 Jason Rumney <jasonr@gnu.org>
7518
7519 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
7520 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
7521 (my_create_tip_window): New function.
7522 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
7523 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
7524
75252001-11-20 Jason Rumney <jasonr@gnu.org>
7526
7527 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
7528 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
7529
7530 * w32fns.c (Vw32_system_coding_system): Remove.
7531 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
7532
75332001-11-19 Stefan Monnier <monnier@cs.yale.edu>
7534
7535 * fileio.c (Fwrite_region): Move choose_write_coding_system to
7536 after build_annotations.
7537
7538 * syntax.c (describe_syntax): Add dummy arg.
7539 (describe_syntax_1): Update call to describe_vector.
7540
7541 * category.c (describe_category): Add dummy arg.
7542 (describe_category_1): Update call to describe_vector.
7543
7544 * keymap.c (Fdescribe_vector): Add `describer' parameter.
7545 (describe_command, describe_translation): Add dummy second param.
7546 (describe_map): Call elt_describer with two arguments.
7547 (describe_vector_princ): Add `fun' parameter.
7548 Call it instead of the hardcoded `princ'.
7549 (describe_vector): Add arg `args'.
7550 Pass it as a new second argument to elt_describer.
60a653f1 7551
048addec 7552 * keymap.h (describe_vector): Update prototype.
60a653f1 7553
048addec
JD
7554 * frame.c: Don't include keymap.h any more.
7555 (keys_of_frame): Remove.
60a653f1 7556
048addec 7557 * lisp.h (keys_of_frame): Remove declaration.
60a653f1 7558
048addec 7559 * emacs.c (main): Don't call `keys_of_frame' any more.
60a653f1 7560
048addec 75612001-11-14 Andreas Schwab <schwab@suse.de>
60a653f1 7562
048addec
JD
7563 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
7564 if defined, 0 otherwise.
7565 (MAP_FAILED): Define if not defined and use it to test mmap failure.
7566 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
60a653f1 7567
048addec 75682001-11-19 Richard M. Stallman <rms@gnu.org>
60a653f1 7569
048addec 7570 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
60a653f1 7571
048addec 75722001-11-18 Jason Rumney <jasonr@gnu.org>
60a653f1 7573
048addec
JD
7574 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
7575 (x_draw_bar_cursor): If the background color of the glyph under
7576 the cursor equals the frame's cursor color, use the glyph's
7577 foreground color for drawing the bar cursor.
7578 (x_after_update_window_line): Clear internal border in different
7579 circumstances.
7580 (w32_set_vertical_scroll_bar): Check for width and height > 0.
7581 (w32_draw_relief_rect): Correct relief by 1 pixel.
7582 (x_set_glyph_string_background_width):
7583 Set extends_to_end_of_line_p if the row's fill_line_p is set and
7584 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
7585 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
7586 if cursor_in_non_selected_windows is false.
7587 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
7588 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
7589 Notice if cursor gets overwritten.
7590 (notice_overwritten_cursor): Renamed from
7591 note_overwritten_text_cursor. Rewritten to take glyph widths
7592 into account, and to take X positions as parameters.
7593 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
7594 around call to x_draw_glyphs.
7595 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
7596 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
7597 color to use for image glyph reliefs.
7598 (x_draw_image_relief): Accept zero tool_bar_button_relief.
7599 (glyph_rect): Remove unused variable `area'.
60a653f1 7600
048addec
JD
7601 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
7602 some items.
7603 (x_set_internal_border_width): Set frame garbaged when window
7604 doesn't exist yet.
7605 (Fx_create_frame): Accept zero tool_bar_button_relief.
7606 (x_clear_image_1, four_corners_best, image_background)
7607 (image_background_transparent): New functions.
7608 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
7609 (gs_format): Add `:background' entry.
7610 (lookup_image): Set IMG's background color if specified.
7611 (pbm_load, xbm_load_image, png_load): Set IMG's background field
7612 when appropriate.
7613 (x_clear_image_1): Reset `background_valid' and
7614 `background_transparent_valid' fields.
7615 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
7616 calculating it here. Set IMG's background_transparent field.
7617 (enum xpm_keyword_index): Add XPM_BACKGROUND.
7618 (enum png_keyword_index): Add PNG_BACKGROUND.
7619 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
7620 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
7621 (enum gif_keyword_index): Add GIF_BACKGROUND.
7622 (enum gs_keyword_index): Add GS_BACKGROUND.
7623 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
7624 Pre-calculate image background color where necessary.
7625 (x_create_x_image_and_pixmap, xbm_load, gs_load):
7626 Use display info's n_cbits entry for screen depth.
7627 (Fx_show_tip): Remove unused variables `buffer', `top',
7628 `left', `max_width' and `max_height'.
60a653f1 7629
048addec 7630 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
60a653f1 7631
048addec 76322001-11-18 Gerd Moellmann <gerd@gnu.org>
60a653f1 7633
048addec 7634 * puresize.h (BASE_PURESIZE): Increase to 750000.
60a653f1 7635
048addec 76362001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
60a653f1 7637
048addec 7638 * frame.c (Fframe_live_p): Doc fix.
60a653f1 7639
048addec 76402001-11-18 Richard M. Stallman <rms@gnu.org>
60a653f1 7641
048addec
JD
7642 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
7643 (message_dolog_marker3): New static variables hold three markers.
7644 (syms_of_xdisp): Initialize and staticpro them.
7645 (message_dolog): Use message_dolog_marker1..3 instead of
7646 allocating markers each time. Unchain them when done.
60a653f1 7647
048addec 76482001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7649
048addec 7650 * doc.c (Fsnarf_documentation): Doc fix.
60a653f1 7651
048addec 76522001-11-17 Andreas Schwab <schwab@suse.de>
60a653f1 7653
048addec 7654 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
60a653f1 7655
048addec 76562001-11-17 Richard M. Stallman <rms@gnu.org>
60a653f1 7657
048addec 7658 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
60a653f1 7659
048addec 76602001-11-17 Jason Rumney <jasonr@gnu.org>
60a653f1 7661
048addec 7662 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
60a653f1 7663
048addec 76642001-11-17 Gerd Moellmann <gerd@gnu.org>
60a653f1 7665
048addec
JD
7666 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
7667 with invalid position.
60a653f1 7668
048addec 76692001-11-16 Richard M. Stallman <rms@gnu.org>
60a653f1 7670
048addec 7671 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
60a653f1 7672
048addec
JD
7673 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
7674 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
7675 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
60a653f1 7676
048addec 7677 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
60a653f1 7678
048addec 76792001-11-16 Stefan Monnier <monnier@cs.yale.edu>
60a653f1 7680
048addec
JD
7681 * fileio.c (build_annotations): Split off the tail.
7682 (build_annotations_2): New fun. Extracted from build_annotations.
7683 (Fwrite_region): Split the call to build_annotations into two
7684 calls to build_annotations and build_annotations_2.
077907d4 7685
048addec 76862001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1756e2fb 7687
048addec
JD
7688 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
7689 clear_waiting_for_input with argument.
1756e2fb 7690
048addec 7691 * xterm.h (x_update_cursor): Remove duplicated prototype.
06e8f738 7692
048addec 7693 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
06e8f738 7694
048addec 7695 * xterm.c (waiting_for_input): Remove unnecessary declaration.
fa336b91 7696
048addec 7697 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
fa336b91 7698
048addec 76992001-11-16 Stefan Monnier <monnier@cs.yale.edu>
fa336b91 7700
048addec
JD
7701 * fileio.c (choose_write_coding_system): New fun, extracted
7702 from Fwrite_region.
7703 (Fwrite_region): Use it.
fa336b91 7704
048addec
JD
7705 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
7706 (funcall_lambda, run_hook_with_args): Make static and add prototype.
7707 (ml_apply, find_handler_clause): Add prototype.
fa336b91 7708
048addec 77092001-11-16 Eli Zaretskii <eliz@gnu.org>
fa336b91 7710
048addec 7711 * config.in: Add #undef HAVE_COFF_H.
fa336b91 7712
048addec
JD
7713 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
7714 Required for ISC 4.1.
fa336b91 7715
048addec 77162001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
fa336b91 7717
048addec
JD
7718 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
7719 Andrew Wiseman <a.wiseman@btclick.com>.
fa336b91 7720
048addec 77212001-11-16 Kim F. Storm <storm@cua.dk>
fa336b91 7722
048addec
JD
7723 The following changes are made to clean up the various internal
7724 references to the fringes to actually use the term `fringe' for
7725 them. Previously, they were called `flags areas', `bitmap areas',
7726 `left/right side of windows', or implicitly as `flags' or
7727 `bitmaps':
fa336b91 7728
048addec
JD
7729 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
7730 Comments fixed. Use renamed symbols.
06e8f738 7731
048addec 7732 * dispnew.c: Comment fix. Use renamed symbols.
06e8f738 7733
048addec
JD
7734 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
7735 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
7736 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
9ce647f4 7737
048addec 7738 * msdos.c: Comment fix.
9ce647f4 7739
048addec 7740 * w32fns.c: Use renamed symbols.
9b784ab8 7741
048addec
JD
7742 * w32term.c: Comment fixes. Use renamed symbols.
7743 (fringe_bitmap_type): Renamed from bitmap_type.
7744 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7745 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
7746 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
9f7e52b4 7747
048addec
JD
7748 * w32term.h: Comment fixes. Use renamed symbols.
7749 (fringes_extra): Renamed from flags_areas_extra.
7750 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7751 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7752 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7753 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7754 (FRAME_X_LEFT_FRINGE_WIDTH):
7755 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7756 (FRAME_X_RIGHT_FRINGE_WIDTH):
7757 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
9f7e52b4 7758
048addec 7759 * widget.c: Use renamed symbols.
9f7e52b4 7760
048addec
JD
7761 * window.c: Comment fixes. Use renamed symbols.
7762 (coordinates-in-window-p): Doc fix.
fa336b91 7763
048addec 7764 * xdisp.c: Comment fixes. Use renamed symbols.
34e5d0af 7765
048addec 7766 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
9b784ab8 7767
048addec 7768 * xfns.c: Use renamed symbols.
89512fcd 7769
048addec
JD
7770 * xterm.c: Comment fixes. Use renamed symbols.
7771 (fringe_bitmap_type): Renamed from bitmap_type.
7772 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
7773 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
7774 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
89512fcd 7775
048addec
JD
7776 * xterm.h: Comment fixes. Use renamed symbols.
7777 (fringes_extra): Renamed from flags_areas_extra.
7778 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
7779 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
7780 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
7781 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
7782 (FRAME_X_LEFT_FRINGE_WIDTH):
7783 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
7784 (FRAME_X_RIGHT_FRINGE_WIDTH):
7785 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
7786
77872001-11-15 Jason Rumney <jasonr@gnu.org>
7788
7789 * w32menu.c (add-menu-item): Make help_echo and radio buttons
7790 work for most menu items. From David Ponce
7791 <david.ponce@wanadoo.fr>.
7792
77932001-11-15 Gerd Moellmann <gerd@gnu.org>
7794
7795 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
7796 Some x_set_* function expect to be called even if old and new
7797 value are equal.
7798
7799 * xdisp.c (build_desired_tool_bar_string): Accept zero
7800 tool_bar_button_relief.
7801
7802 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
7803
7804 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
7805
7806 * xterm.c (x_draw_bar_cursor): If the background color of the
7807 glyph under the cursor equals the frame's cursor color, use
7808 the glyph's foreground color for drawing the bar cursor.
7809
7810 * dispnew.c (direct_output_forward_char): Fix character/byte
7811 position comparison.
7d18891d 7812
048addec 78132001-11-15 Miles Bader <miles@gnu.org>
d2936d21 7814
048addec
JD
7815 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
7816 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
7817 Update arguments to find_field.
7818 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
7819 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
7820 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
7821 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
7d18891d 7822
048addec 78232001-11-14 Richard M. Stallman <rms@gnu.org>
7d18891d 7824
048addec 7825 * editfns.c (Fpropertize): Allow call with 1 arg.
7d18891d 7826
048addec
JD
7827 * dispextern.h (image_background, image_background_transparent):
7828 Conditionalize on HAVE_X_WINDOWS.
7d18891d 7829
048addec 78302001-11-13 Richard M. Stallman <rms@gnu.org>
7d18891d 7831
048addec 7832 * print.c (Fprin1_to_string): Doc fix.
7d18891d 7833
048addec 7834 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
7d18891d 7835
048addec 7836 * floatfns.c (Fceiling, Ffloor): Doc fixes.
7d18891d 7837
048addec 7838 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
7d18891d 7839
048addec 7840 * fileio.c (Ffile_accessible_directory_p): Doc fix.
7d18891d 7841
048addec 7842 * eval.c (syms_of_eval): Doc fix.
7d18891d 7843
048addec 7844 * coding.c (syms_of_coding): Doc fix.
7d18891d 7845
048addec 7846 * doc.c (Fsnarf_documentation): Doc fix.
7d18891d 7847
048addec 7848 * dispnew.c (syms_of_display): Doc fix.
9474c847 7849
048addec 7850 * category.c (Fget_unused_category): Doc fix.
9474c847 7851
048addec 7852 * buffer.c (syms_of_buffer): Doc fixes.
e3059a5d 7853
048addec 78542001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
e3059a5d 7855
048addec 7856 * print.c (prin1, print): Doc fix.
e3059a5d 7857
048addec 78582001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3700ae7 7859
048addec
JD
7860 * fontset.h: Remove declarations of variables
7861 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
b3700ae7 7862
048addec
JD
7863 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
7864 `Vclip_large_size_font'.
eae936e2 7865
048addec 78662001-11-13 Jason Rumney <jasonr@gnu.org>
4bb962be 7867
048addec 7868 * w32fns.c: Doc fix.
ddb67bdc 7869
048addec 78702001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3467c402 7871
048addec 7872 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3467c402 7873
048addec 7874 * fns.c: Doc fix.
6e1b91d7 7875
048addec 7876 * emacs.c: Doc fix.
1c1d3d69 7877
048addec 7878 * coding.c: Doc fix.
1c1d3d69 7879
048addec
JD
7880 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
7881 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
7882 `new style' [w/`doc:' keyword].
b6f4c7ba 7883
048addec 78842001-11-12 Richard M. Stallman <rms@gnu.org>
b6f4c7ba 7885
048addec
JD
7886 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
7887 LeaveNotify events. Only FocusIn and FocusOut do that now.
7888 (x_display_and_set_cursor): Do display hollow cursors in active
7889 minibuffer windows when they are not selected.
b6f4c7ba 7890
048addec 78912001-11-12 Jason Rumney <jasonr@gnu.org>
a89f435d 7892
048addec
JD
7893 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
7894 * w32term.c: Change doc-string comments to `new style'.
7895 [w/`doc:' keyword]. Doc fixes.
a89f435d 7896
048addec
JD
7897 * w32fns.c: Don't define max.
7898 (Fx_open_connection): Only execute once.
a4cd0cd7 7899
048addec 79002001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eafb659a 7901
048addec
JD
7902 * ccl.c: Change macros to use do-while block instead of if-else.
7903 Use braces to follow GNU Coding Standards.
eafb659a 7904
048addec 79052001-11-11 Richard M. Stallman <rms@gnu.org>
a4cd0cd7 7906
048addec 7907 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
a4cd0cd7 7908
048addec 7909 * lread.c (read_escape): Use end_of_file_error for reporting eof.
a4cd0cd7 7910
048addec
JD
7911 * insdel.c (replace_range): Use adjust_markers_for_replace
7912 instead of adjust_markers_for_delete and adjust_markers_for_insert.
a4cd0cd7 7913
048addec 7914 * intervals.h: Declare set_text_properties and set_text_properties_1.
a4cd0cd7 7915
048addec
JD
7916 * textprop.c (set_text_properties_1): New subroutine
7917 broken out of set_text_properties.
7918 (set_text_properties): Use set_text_properties_1.
91823618 7919
048addec
JD
7920 * intervals.c (graft_intervals_into_buffer):
7921 Use set_text_properties_1 to clear out properties.
91823618 7922
048addec
JD
7923 * search.c (Freplace_match): Use replace_range to insert
7924 and delete. Don't request property inheritance from
7925 surrounding text.
86928dfb 7926
048addec 79272001-11-10 Jason Rumney <jasonr@gnu.org>
86928dfb 7928
048addec
JD
7929 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
7930 vertical fonts. Allow them if face name is explicitly specified.
7931 Do not give up if we find a font that cannot be converted to an xlfd.
40ef1eda 7932
048addec 79332001-11-10 Gerd Moellmann <gerd@gnu.org>
ab8469eb 7934
048addec
JD
7935 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
7936 instead of malloc/free.
a78e0303 7937
048addec 79382001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 7939
048addec
JD
7940 * xfaces.c (merge_face_vectors): Use braces to follow GNU
7941 Coding Standards.
7942 (Finternal_set_lisp_face_attribute): Likewise.
fabf4a91 7943
048addec 7944 * buffer.c (Fbury_buffer): Likewise.
0c99b139 7945
048addec 7946 * indent.c (current_column_1): Remove unused variable `prev_col'.
0c99b139 7947
048addec
JD
7948 * coding.c (encode_coding): Use precomputed value of `src'.
7949 (encode_coding): Remove unused variable `src_end'.
7950 (code_convert_region): Remove unused variables `count'.
830ddd77 7951
048addec 79522001-11-07 Jason Rumney <jasonr@gnu.org>
830ddd77 7953
048addec
JD
7954 * w32term.c (x_display_and_set_cursor): Do not move system caret
7955 if cursor_glyph is NULL.
55c6d645 7956
048addec 79572001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55c6d645 7958
048addec 7959 * keymap.c (access_keymap): Fix compilation error.
5de38842 7960
048addec 79612001-11-07 Miles Bader <miles@gnu.org>
7a4564a4 7962
048addec 7963 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5de38842 7964
048addec 79652001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fa23df5 7966
048addec
JD
7967 * intervals.c (graft_intervals_into_buffer):
7968 Remove #ifdef'd-out code.
7969 (graft_intervals_into_buffer): Remove unused variable `middle'.
4fa23df5 7970
048addec
JD
7971 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
7972 code (eval-current-buffer).
7973 Change doc-string comments to `new style' [w/`doc:' keyword].
7a6a97d7 7974
048addec 79752001-11-06 Richard M. Stallman <rms@gnu.org>
c191d13c 7976
048addec 7977 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7a6a97d7 7978
048addec 79792001-11-06 Stefan Monnier <monnier@cs.yale.edu>
44dc78e0 7980
048addec 7981 * lread.c (read1): Fix behavior with nested backquoting.
44dc78e0 7982
048addec
JD
7983 * keyboard.c (make_lispy_event): Check integerness and fix
7984 Lisp_Object/int mixup.
17893c65 7985
048addec 79862001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4d994a79 7987
048addec 7988 * fns.c (copy_hash_table): Remove unused variable `v'.
d5360cc7 7989
048addec
JD
7990 * fontset.c (fontset_font_pattern): Remove unused variable
7991 `family_registry'.
d5360cc7 7992
048addec 7993 * indent.c (current_column_1): Remove unused variable `prev_col'.
d5360cc7 7994
048addec 79952001-11-05 Richard M. Stallman <rms@gnu.org>
96238a5a 7996
048addec 7997 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
96238a5a 7998
048addec
JD
7999 * buffer.c (Fkill_buffer): Don't delete auto save file
8000 if buffer is modified.
d9d54213 8001
048addec 80022001-11-05 Andrew Innes <andrewi@gnu.org>
d9d54213 8003
048addec
JD
8004 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
8005 CHECK_NUMBER_CDR.
b116830b 8006
048addec 80072001-11-05 Richard M. Stallman <rms@gnu.org>
b116830b 8008
048addec 8009 * unexelf.c (unexec): Minor changes; clean up comments.
3297e2a1 8010
048addec 80112001-11-05 Sam Steingold <sds@gnu.org>
3297e2a1 8012
048addec 8013 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6fb8339c 8014
048addec 80152001-11-05 Andreas Schwab <schwab@suse.de>
6fb8339c 8016
048addec 8017 * sound.c (sound_perror): Save errno from being clobbered.
7dd73b78 8018
048addec 80192001-11-05 Dale Hagglund <rdh@yottayotta.com>
7dd73b78 8020
048addec
JD
8021 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
8022 the program image directly.
982f6c7e 8023
048addec 80242001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d31053f9 8025
048addec 8026 * buffer.h (Fbuffer_local_value): Add prototype.
d31053f9 8027
048addec 80282001-11-04 Richard M. Stallman <rms@gnu.org>
d31053f9 8029
048addec
JD
8030 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
8031 and CHECK_BUFFER.
d31053f9 8032
048addec
JD
8033 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
8034 (record_char): Likewise.
d31053f9 8035
048addec
JD
8036 * keyboard.c (make_lispy_event): Don't insist a drag event must
8037 move to a different buffer position. Instead, check for moving at
8038 least double_click_fuzz.
982f6c7e 8039
048addec 8040 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
830047fd 8041
048addec 8042 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
b116830b 8043
048addec
JD
8044 * indent.c (current_column_1, Fmove_to_column): Separate the code
8045 for display-table glyphs from the code for buffer text, to fix
8046 bugs in the former.
830047fd 8047
048addec 80482001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
b116830b 8049
048addec
JD
8050 * buffer.c (Fbuffer_local_value): New function.
8051 (syms_of_buffer): Defsubr it.
2df5238c 8052
048addec
JD
8053 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
8054 value of `cursor-in-non-selected-windows'.
4e397688 8055
048addec
JD
8056 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
8057 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
8058 (syms_of_xdisp): Initialize it.
48b0f3ae 8059
048addec 80602001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 8061
048addec 8062 * xfns.c (Fx_create_frame): Doc fix.
3ecaf7e5 8063
048addec
JD
8064 * coding.c: Change doc-string comments to `new style' [w/`doc:'
8065 keyword].
3ecaf7e5 8066
048addec
JD
8067 * eval.c (top_level_value, top_level_set): Remove commented and
8068 #ifdef'd-out code.
8069 (Fdefvar): Fix usage in doc-string.
3ecaf7e5 8070
048addec 80712001-11-03 Richard M. Stallman <rms@gnu.org>
3ecaf7e5 8072
048addec 8073 * xfns.c: Include unistd.h, if it exists.
8db2e33b 8074
048addec 8075 * editfns.c: Move the include of ctype.h after unistd.h.
8db2e33b 8076
048addec 8077 * gmalloc.c: Test BROKEN_PROTOTYPES.
aed29b97 8078
048addec 80792001-11-03 Ken Raeburn <raeburn@gnu.org>
aed29b97 8080
048addec
JD
8081 * lisp.h (CHECK_STRING_CAR): New macro.
8082 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
8083 treating XCAR and XCDR as lvalues.
8084 (openp): Use CHECK_STRING_CAR.
8085 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
aed29b97 8086
048addec 80872001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6cb16f95 8088
048addec
JD
8089 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
8090 (SIGMASKTYPE): Define.
1b1acc13 8091
048addec 8092 * syssignal.h (sigunblock): Don't define if already defined.
020f9b38 8093
048addec 80942001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
020f9b38 8095
048addec
JD
8096 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
8097 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
8098 Fix typos in comments.
6cb16f95 8099
048addec
JD
8100 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
8101 and #ifdef'd-out code.
8102 Fix and reindent comments.
6cb16f95 8103
048addec 8104 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
6cb16f95 8105
048addec
JD
8106 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
8107 argument `i' in macros.
6cb16f95 8108
048addec
JD
8109 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
8110 `i' in macros.
7e9d3c2f 8111
048addec
JD
8112 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
8113 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
8114 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
8115 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
8116 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
8117 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
8118 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
8119 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
8120 in macros.
7e9d3c2f 8121
048addec
JD
8122 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
8123 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
8124 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
8125 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
8126 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
8127 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
8128 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
8129 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
8130 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
8131 (remove unused second argument).
7e9d3c2f 8132
048addec 81332001-11-02 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 8134
048addec
JD
8135 * syntax.c (describe_syntax): New wrapper.
8136 (Finternal_describe_syntax_value): Rename from describe_syntax.
8137 Don't insert space at front and \n at the end.
8138 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
e6bff182 8139
048addec
JD
8140 * regex.c (re_wctype): Try to fix some warnings.
8141 (regcomp, regexec): Don't forget the __restrict.
9ba48103 8142
048addec 81432001-11-02 Richard M. Stallman <rms@gnu.org>
9ba48103 8144
048addec 8145 * textprop.c (Fget_char_property): Doc fix.
9ba48103 8146
048addec 81472001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103 8148
048addec 8149 * process.c (Fstart_process): Add usage to doc-string.
c22e59e1 8150
048addec 8151 * data.c (Fsetq_default): Ditto.
c22e59e1 8152
048addec 8153 * callint.c (Finteractive): Ditto.
9271ed2c 8154
048addec 81552001-11-01 Stefan Monnier <monnier@cs.yale.edu>
e6bff182 8156
048addec
JD
8157 * macros.c: Don't include keymap.h any more.
8158
81592001-11-01 Richard M. Stallman <rms@gnu.org>
8160
8161 * data.c (Fmake_local_variable): Doc fix.
8162
8163 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
8164 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
e6bff182 8165
048addec 8166 * keymap.c (Fdescribe_buffer_bindings): Print character property
9271ed2c
RS
8167 bindings along with or instead of the buffer local map.
8168 Make the overriding maps override what they should.
8169
f00691a3 81702001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
8171
8172 * window.c (grow_mini_window): Fix typo in comment.
8173
27188d11
GM
81742001-11-01 Gerd Moellmann <gerd@gnu.org>
8175
7b49b9d2
GM
8176 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
8177 (XTset_vertical_scroll_bar): Likewise.
8178
43f7c3ea
GM
8179 * xfns.c (x_build_heuristic_mask): Use four_corners_best
8180 instead of IMAGE_BACKGROUND.
c22e59e1 8181
b350c2e5
GM
8182 * xfns.c (four_corners_best): Reindent.
8183
c22e59e1 8184 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
8185 Handle :box so that it is possible to specify sexprs.
8186
bf00d461
EZ
81872001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
8188
8189 * s/hpux11.h: New file.
8190
f00691a3 81912001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 8192
2b209b97
PJ
8193 * emacs.c (USAGE1): Show command line option --no-window-system
8194 instead of --no-windows in usage.
8195 (standard_args): Rename --no-windows to --no-window-system.
8196 (bug_reporting_address): Follow Emacs coding conventions.
8197
9dbc9081
PJ
8198 * eval.c (Fcommandp): Doc fix.
8199 Change doc-string comments to `new style' [w/`doc:' keyword].
8200
4e10df59
PJ
8201 * frame.c (Fframe_live_p): Doc fix.
8202
8203 * buffer.c (selective-display-ellipses): Doc fix.
8204
dd387b25
GM
82052001-10-31 Gerd Moellmann <gerd@gnu.org>
8206
fe957e65
GM
8207 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
8208
dd387b25
GM
8209 * xfaces.c (realize_x_face): If C is not a single-byte character,
8210 set the face's colors_copied_bitwise_p instead of the defaulted_p
8211 members which have a different meaning.
8212 (free_face_colors): Do nothing for a face whose colors have been
8213 copied bitwise.
8214
c22e59e1 8215 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 8216
f00691a3 82172001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 8218
687784e8
PJ
8219 * marker.c, mocklisp.c: Change doc-string comments to `new style'
8220 [w/`doc:' keyword].
2e1280f8 8221
b9d9a9b9
GM
82222001-10-31 Gerd Moellmann <gerd@gnu.org>
8223
8224 * fns.c (require_unwind): Return Lisp_Object.
8225
f00691a3 82262001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 8227
fa1361cb
PJ
8228 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
8229 (last-input-char): Revert doc-string to be the same as the
8230 doc-string of `last-input-event'.
8231
6c465a15 8232 * xdisp.c: Fix typos in comments.
48400103 8233
eafa3196
GM
82342001-10-31 Gerd Moellmann <gerd@gnu.org>
8235
8236 * window.c (grow_mini_window): Handle case that the root
8237 window is already smaller than the nominal mininum height.
8238
747d3f2a
SM
82392001-10-30 Stefan Monnier <monnier@cs.yale.edu>
8240
bf9bb76f
SM
8241 * emacs.c (main): Don't call keys_of_macros any more.
8242
8243 * lisp.h (keys_of_macros): Remove.
8244
8245 * macros.c (keys_of_macros): Remove.
8246
747d3f2a
SM
8247 * xfaces.c (Fface_attribute_relative_p): Declare args.
8248
5e905a57
JR
82492001-10-30 Jason Rumney <jasonr@gnu.org>
8250
8251 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
8252 (enum_font_cb2): Ignore fonts with vertical orientation.
8253
3a426197
RS
82542001-10-30 Richard M. Stallman <rms@gnu.org>
8255
8256 * keyboard.c (Finput_pending_p): Doc fix.
8257
a742d646
GM
82582001-10-30 Gerd Moellmann <gerd@gnu.org>
8259
259cf6bc
GM
8260 * xterm.c (x_after_update_window_line): Don't run the code
8261 clearing in borders for rows whose visible height is 0.
8262
3f99f948
GM
8263 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
8264 resized_p flag is set. If not set, use the much less flickering
8265 method previously used.
8266
8267 * dispnew.c (change_frame_size_1): Set frame's resized_p.
8268
8269 * frame.h (struct frame) <resized_p>: New member.
8270
b4a3be43
GM
8271 * lread.c (to_multibyte): Ensure read_buffer is at least twice
8272 as large as the number of bytes to convert.
747d3f2a 8273
a742d646
GM
8274 * lread.c (to_multibyte): New function.
8275 (read1): Use it.
8276
cacbb9e9
EZ
82772001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
8278
8279 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
8280
99cb6b2f
GM
82812001-10-30 Gerd Moellmann <gerd@gnu.org>
8282
327f42ee 8283 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
8284 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
8285 if the row's fill_line_p is set and drawing the last glyph with
8286 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 8287
99cb6b2f
GM
8288 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
8289
8e8223e2
SM
82902001-10-29 Stefan Monnier <monnier@cs.yale.edu>
8291
8292 * xmenu.c: Include coding.h and charset.h.
8293 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
8294 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
8295 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
8296 Explicitly set wv->help. Use `TRUE' rather than `True'.
8297 (menu_help_callback): Use empty_string.
8298
8299 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
8300 (Fx_popup_dialog): Explicitly init f.
8301 (w32_menu_display_help): Use empty_string.
8302
4d083a8f
RS
83032001-10-29 Richard M. Stallman <rms@gnu.org>
8304
b2304472
RS
8305 * fns.c (Frequire): Detect recursive try to require the same
8306 feature 3 or more levels deep, and get error.
8307 (require_unwind): New subroutine.
8308 (require_nesting_list): New variable.
8309 (syms_of_fns): Init and staticpro it.
8310
4d083a8f
RS
8311 * print.c (print_object): Clarify indication of insertion type.
8312
2fe41216
EZ
83132001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
8314
90480000
EZ
8315 * coding.c (syms_of_coding): Document that locale-coding-system is
8316 used for decoding input on X.
8317
2fe41216
EZ
8318 * window.c (Fscroll_left, Fscroll_right): Doc fix.
8319
f00691a3 83202001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
8321
8322 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
8323 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
8324
60ebcfe8
GM
83252001-10-29 Gerd Moellmann <gerd@gnu.org>
8326
9a7bdceb
GM
8327 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
8328 use NO_CURSOR if cursor_in_non_selected_windows is false.
8329
3f08fcd2
GM
8330 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
8331 the slant attribute if FRAME is t.
8332
0ccfdad2
GM
8333 * xfns.c (x_set_internal_border_width): Set frame garbaged
8334 when X window doesn't exist yet.
8335
ef253080
GM
8336 * xterm.c (x_after_update_window_line): Clear internal border
8337 in different circumstances.
b116830b 8338
60ebcfe8
GM
8339 * xterm.c (XTread_socket) <KeyPress>: Don't use
8340 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
8341 <handa@etl.go.jp>.
8342
73d25f9c
EZ
83432001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8344
8345 * m/ibms390.h: New file. From Adam Thornton
8346 <athornton@sinenomine.net>.
8347
cac1daf0
GM
83482001-10-28 Gerd Moellmann <gerd@gnu.org>
8349
053b3256 8350 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 8351
cac1daf0
GM
8352 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
8353 a loop counter.
8354
f00691a3 83552001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 8356
186486eb
PJ
8357 * emacs.c: Use argv[0] instead of emacs when -t was specified.
8358
4707d2d0
PJ
8359 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
8360 keyword].
8361 Fix typos in comments.
b116830b 8362
d883731c
PJ
8363 * emacs.c (bug_reporting_address): New function.
8364 Use it when displaying usage message.
8365
04012254
PJ
8366 * minibuf.c (read_minibuf): Remove unused external declaration of
8367 variable `Qread_only'.
8368
13b1a09c
PJ
8369 * keymap.c (access_keymap): Remove unused variable `charset'.
8370
5bbf4378
MB
83712001-10-28 Miles Bader <miles@gnu.org>
8372
8373 * xfaces.c (merge_face_heights): Handle TO being relative as well.
8374 Remove #ifdef'd-out code.
8375 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
8376 (syms_of_xfaces): Initialize them.
8377
1ce1e4ee
JR
83782001-10-27 Jason Rumney <jasonr@gnu.org>
8379
8380 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
8381 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
8382 position using the system caret.
8383
8384 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
8385 (w32_system_caret_height, w32_system_caret_x)
8386 (w32_system_caret_y): New variables for tracking system caret.
8387 (w32_initialize): Initialize them.
c2d53558 8388 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 8389
c2d53558
SM
8390 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
8391 New messages types.
1ce1e4ee
JR
8392
8393 * w32term.c (note_mouse_highlight): Clear old help_echo.
8394
f00691a3 83952001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 8396
bb4600a4
PJ
8397 * xterm.c: Fix typo in a comment.
8398
7db35a48
PJ
8399 * emacs.c: Fix typos in comments.
8400 Remove unnecessary spaces.
8401 Change doc-string comments to `new style' [w/`doc:' keyword].
8402 (USAGE2): Fix typos in usage string.
8403
a7248e4f
PJ
8404 * xterm.c: Fix typo in a comment.
8405
4e30ce42
PJ
8406 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
8407 emacs.c.
8408
62725a92
GM
84092001-10-27 Gerd Moellmann <gerd@gnu.org>
8410
798dbe1f 8411 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 8412 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
8413 farther backward when target_y was not reached.
8414
62725a92
GM
8415 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
8416 Display errno only if non-zero.
8417 (sound_warning): New function.
8418 (vox_configure): Don't treat failing to set sample rate as error.
8419 (various places): Improve error messages.
8420
d4e34d24
EZ
84212001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
8422
944e6f60
EZ
8423 * fileio.c (Faccess_file): Run the argument filename through
8424 Fexpand_file_name, before using it.
8425
d4e34d24
EZ
8426 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
8427 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
8428
38d2af0c
GM
84292001-10-26 Gerd Moellmann <gerd@gnu.org>
8430
da80a8d5
GM
8431 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
8432
38d2af0c
GM
8433 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8434 Fix clearing in the case of scroll bars on the right.
c2d53558 8435
45de4a6f 84362001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
8437
8438 * w32gui.h (XImage): Add a dummy typedef.
8439
fbd5ceb2
GM
84402001-10-26 Gerd Moellmann <gerd@gnu.org>
8441
c2d53558 8442 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 8443
b23236fb
EZ
84442001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
8445
8446 * frame.c (Fframe_parameter): Fix last change.
8447
5d991fc4
EZ
8448 * fileio.c: Revert last change (which removed old commented-out
8449 version of expand-file-name). Add a comment that explains why
8450 this old version should not be removed.
8451
879eadc3
GM
84522001-10-25 Gerd Moellmann <gerd@gnu.org>
8453
75700ff2
GM
8454 * frame.c (Fframe_parameter): Fix a bug whereby some
8455 ``artificial'' frame parameters, like `minibuffer' were not
8456 obtained by calling Fframe_parameters.
8457
dfe92a6a
GM
8458 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
8459 cursor differently.
8460
879eadc3
GM
8461 * xdisp.c (move_it_vertically_backward): Compute line height
8462 differently. Add heuristic to try to be more compatible to 20.x.
8463
e1010ebe
SM
84642001-10-25 Stefan Monnier <monnier@cs.yale.edu>
8465
d73a471b
SM
8466 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
8467
d6da5a06
GM
8468 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
8469 boolean.
e1010ebe 8470
f66bd220
MB
84712001-10-25 Miles Bader <miles@gnu.org>
8472
8473 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
8474 BG is a pointer to a structure, not a structure.
8475 (gif_format, png_format): Add missing commas.
8476
d436d538
RS
84772001-10-24 Richard M. Stallman <rms@gnu.org>
8478
8479 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 8480 (syms_of_xfaces): Defsubr it.
d436d538 8481
f00691a3 84822001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
8483
8484 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
8485 variable `area'.
8486
f00691a3 84872001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 8488
c2d53558 8489 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 8490
e2a57b34
MB
84912001-10-25 Miles Bader <miles@gnu.org>
8492
8493 * dispextern.h (struct image): Add `background',
8494 `background_valid', and `background_transparent' fields.
8495 (image_background, image_background_transparent): New declarations.
8496 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
8497 * xfns.c (image_background, image_background_transparent)
8498 (four_corners_best): New functions.
c2d53558 8499 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
8500 (gs_format): Add `:background' entry.
8501 (lookup_image): Set IMG's background color if specified.
8502 (pbm_load, xbm_load_image, png_load): Set IMG's background field
8503 when appropriate.
8504 (x_clear_image_1): Reset `background_valid' and
8505 `background_transparent_valid' fields.
8506 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
8507 calculating it here. Set IMG's background_transparent field.
8508 (enum xpm_keyword_index): Add XPM_BACKGROUND.
8509 (enum png_keyword_index): Add PNG_BACKGROUND.
8510 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
8511 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
8512 (enum gif_keyword_index): Add GIF_BACKGROUND.
8513 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 8514 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
8515 Pre-calculate image background color where necessary.
8516 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
8517 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
8518 color to use for image glyph reliefs.
8519
b547b6e8
GM
85202001-10-24 Gerd Moellmann <gerd@gnu.org>
8521
d9e3b8c6
GM
8522 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
8523 in full-width rows.
c2d53558 8524
b547b6e8
GM
8525 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
8526 Fix clearing of area not covered by scroll bar.
8527
f00691a3 85282001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
8529
8530 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
8531 and `real_start'.
c2d53558 8532 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
8533 (glyph_rect): Remove unused variable `area'.
8534
76cb5e06
GM
85352001-10-24 Gerd Moellmann <gerd@gnu.org>
8536
bdbdebff 8537 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
8538
8539 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
8540 (row_containing_pos): Take additional argument DY.
8541 Treat rows ending in middle of char differently.
62e33982
GM
8542 (display_line): Handle tabs on window systems differently.
8543
8544 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
8545 with additional argument.
8546
8547 * dispextern.h (row_containing_pos): Adjust prototype.
8548
76cb5e06
GM
8549 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
8550 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
8551 (try_window_id, try_window_reusing_current_matrix)
8552 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 8553 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 8554
f00691a3 85552001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 8556
c9e60620
PJ
8557 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
8558 gnuemacs).
8559 (HAVE_BOXES): Fix typo in comment.
8560 (push_menu_pane): Fix typo in comment.
8561
3b552d56
PJ
8562 * xdisp.c: (display_prop_string_p): Remove unused local declaration
8563 of `Qwhen'.
8564 (single_display_prop_string_p): Remove unused local declarations
8565 of `Qwhen' and `Qmargin'.
8566 (string_buffer_position): Remove unused variable `around'.
8567 (store_frame_title): Remove unused variable `width'.
8568
15c565ac
PJ
8569 * window.c: Don't define max.
8570 (coordinates_in_window): Remove unused variable `uy'.
8571
a8818eb9
PJ
8572 * widget.c: Don't define max.
8573
996fee11
PJ
8574 * process.c: Don't define max.
8575 (create_process): Remove unused variable `buffer'.
8576
496e1a5b
GM
85772001-10-23 Gerd Moellmann <gerd@gnu.org>
8578
c2d53558 8579 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 8580
5905ae8b
EZ
85812001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
8582
8583 * xfaces.c (Finternal_set_lisp_face_attribute)
8584 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
8585 frame is on a windowed display.
8586
24db49fb
GM
85872001-10-23 Gerd Moellmann <gerd@gnu.org>
8588
c2d53558
SM
8589 * dispnew.c (sync_window_with_frame_matrix_rows):
8590 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
8591 of marginal areas.
8592
c2d53558 8593 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 8594
f0487f05
EZ
85952001-10-23 Andreas Schwab <schwab@suse.de>
8596
8597 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
8598 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
8599
f0a48a01
GM
86002001-10-23 Gerd Moellmann <gerd@gnu.org>
8601
c2d53558 8602 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
8603 REAL_END. Notice if cursor gets overwritten.
8604 (notice_overwritten_cursor): Take X positions as parameters.
8605 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
8606 around call to x_draw_glyphs.
8607
f00691a3 86082001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 8609
fc11dff0
PJ
8610 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
8611 instead of C) and usage.
a50a10a0 8612
fc11dff0
PJ
8613 * editfns.c (char-to-string): Fix argument names (use CHAR instead
8614 of C) and usage.
a50a10a0
PJ
8615
8616 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
8617 `left', `max_width' and `max_height'.
8618
8738febd
GM
86192001-10-23 Gerd Moellmann <gerd@gnu.org>
8620
8621 * xdisp.c (display_line): For a tab continued to the next line,
8622 set row's ends_in_middle_of_char_p.
8623
653c329b
GM
86242001-10-22 Gerd Moellmann <gerd@gnu.org>
8625
8626 * xdisp.c (display_line): Fix computation of continuation lines
8627 width for TABs.
8628
f00691a3 86292001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 8630
7ba51063
PJ
8631 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
8632 `Qlaplace'.
8633
f958c5ac
PJ
8634 * fileio.c: Remove unused code.
8635
eb360291
MB
86362001-10-22 Miles Bader <miles@gnu.org>
8637
8638 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
8639 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
8640 Remove `DOC_STRINGS_IN_COMMENTS' cases.
8641
98515cf0
JR
86422001-10-21 Jason Rumney <jasonr@gnu.org>
8643
8644 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
8645
93026d88
EZ
86462001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8647
8648 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
8649 (Finsert_string): Avoid the multi-line string literals warning.
8650
c9a95b79
MB
86512001-10-22 Miles Bader <miles@gnu.org>
8652
8653 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
8654 (Fdocumentation): Don't use it.
8655 (syms_of_doc): Don't initialize it.
8656
8657 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
8658 * print.c (Fwith_output_to_temp_buffer): Likewise.
8659 * window.c (Fsave_window_excursion): Likewise.
c2d53558 8660 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 8661 (Fsave_restriction): Likewise.
c2d53558
SM
8662 * eval.c (Frun_hooks, Frun_hook_with_args)
8663 (Frun_hook_with_args_until_failure)
8664 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
8665 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
8666 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
8667 (Funwind_protect, Fcondition_case): Likewise.
8668 * coding.c (Ffind_operation_coding_system): Likewise.
8669 * keyboard.c (Ftrack_mouse): Likewise.
8670
a3b10252
MB
86712001-10-21 Miles Bader <miles@gnu.org>
8672
c2d53558 8673 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
8674 (Fmake_hash_table): Add usage: string to doc string.
8675 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 8676 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
8677 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
8678 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
8679 (Fml_prefix_argument_loop): Likewise.
8680
f00691a3 86812001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 8682
c2d53558 8683 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 8684
c6f73eec
PJ
8685 * sysdep.c (init_sys_modes): Change doc-string comments to `new
8686 style' [w/`doc:' keyword].
8687
8688 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
8689 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
8690 comments to `new style' [w/`doc:' keyword].
8691
3cf3436e
JR
86922001-10-21 Jason Rumney <jasonr@gnu.org>
8693
8694 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
8695
c169b8f1
JR
8696 * w32term.c (remember_mouse_glyph): New function.
8697 (w32_mouse_position): Use it.
8698 (note_mouse_movement): If the mouse moved off the glyph, remember
8699 its new position.
c2d53558 8700
4fdd691b
JR
8701 * w32term.h (struct w32_output): Correct spelling of x_compatible.
8702 (w32_display_info): Add mouse_face_overlay.
8703
c169b8f1
JR
8704 * w32term.c (notice_overwritten_cursor): Renamed from
8705 note_overwritten_text_cursor. Rewritten to take glyph widths into
8706 account.
8707 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
8708 (fast_find_string_pos): New function.
8709 (fast_find_position): Return the correct vpos. Add parameter
8710 STOP. In the final row, stop before glyphs having STOP as object.
8711 Don't consider glyphs that are not from a buffer.
8712 (fast_find_position) [0]: Add a presumably more correct version
8713 for after 21.1.
8714 (expose_window_tree, expose_frame): Don't compute intersections here.
8715 (expose_window): Do it here instead.
8716 (expose_window_tree, expose_window, expose_line): Return 1 when
8717 overwriting mouse-face.
8718 (expose_window): If W is the window currently being updated, mark
8719 the frame garbaged.
8720 (expose_frame): If mouse-face was overwritten, redo it.
8721 (x_use_underline_position_properties): New variable.
8722 (syms_of_xterm): DEFVAR_BOOL it.
8723 (x_draw_glyph_string): Add comment to use it in future.
8724 (x_draw_glyph_string): Restore clipping after drawing box.
8725 Fix a computation of the underline position.
8726 (w32_get_glyph_string_clip_rect): Minor cleanup.
8727 (x_fill_stretch_glyph_string): Remove an assertion.
8728 (x_produce_glyphs): Don't convert multibyte characters
8729 to unibyte characters in unibyte buffers.
8730 (cursor_in_mouse_face_p): New function.
8731 (x_draw_stretch_glyph_string): Use it to choose a different GC
8732 when drawing a cursor within highlighted text. Don't draw
8733 background again if it has already been drawn.
8734 (x_draw_glyph_string_box): Don't draw a full-width
8735 box just because the glyph row's full_width_p flag is set.
8736 (x_draw_glyphs): Fix computation of rightmost x for
8737 full-width rows.
8738 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
8739 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
8740 change bottom shadow accordingly. Some cleanup.
8741 (x_update_window_end): Handle overwritten mouse face
8742 also for tool bar windows.
8743 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
8744 DRAW is DRAW_IMAGE_RAISED.
8745 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
8746 actually redrawn. Make the function static.
8747 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
8748 optimize away highlighting if we pass over that same overlay again.
8749 (note_mouse_highlight): Call mouse_face_overlay_overlaps
8750 to detect a case where we have to highlight a different region
8751 despite not having left the currently highlighted region.
8752 Set mouse_face_overlay in the x_display_info. Avoid changing the
8753 mouse pointer shape when show_mouse_face has already done it, or
8754 there is no need. Handle mouse-face and help-echo in strings.
8755 (glyph_rect): New function.
8756 (w32_mouse_position): Use it to raise the threshold for mouse
8757 movement event generation.
8758 (w32_initialize_display_info): Initialize the x_display_info's
8759 mouse_face_overlay.
8760 (w32_set_vertical_scroll_bar): Don't clear a zero height
8761 or width area.
8762 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
8763 a widget to zero height.
8764
3cf3436e 8765 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 8766 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
8767 equivalents in menu_items.
8768 (w32_menu_show): Don't overwrite an item's name with its key
8769 description in case the description is a multibyte string.
8770 (single_submenu): Some cleanup.
8771
8772 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
8773 (postprocess_image): New function.
8774 (lookup_image): Call it for all image types except PostScript.
8775 (x_kill_gs_process): Call postprocess_image.
8776 (tiff_error_handler, tiff_warning_handler): New functions.
8777 (tiff_load): Install them as handlers.
8778 (x_kill_gs_process): Recognize if someone has cleared the image
8779 cache under us.
8780 (valid_image_p): Protect better against invalid image
8781 specifications. Previous code could signal an error.
8782 (Fx_hide_tip, Fshow_tip): Doc fix.
8783 (Fv_max_tooltip_size): New variable.
8784 (syns_of_xfns): DEFVAR_LISP it.
8785 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
8786 window buffer to *tip* right after creating the frame. Set frame's
8787 window_width. Use a maximum tooltip size specified by
8788 Vx_max_tooltip_size, if that has valid contents.
8789 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
8790 Make sure the tooltip is completely visible.
8791 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
8792 (Fx_create_frame): Adjust the frame's height for presence
8793 of the tool bar before calling x_figure_window_size.
8794 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
8795 when the window gets smaller.
8796 (x_set_foreground_color): Set frame's cursor_pixel.
8797 (x_set_foreground_color, x_set_background_color): Cleaned up.
8798 (x_set_font): Handle case of x_new_fontset returning the same name
8799 as before, although there was a change in fontsets.
8800
386ca361
MB
88012001-10-21 Miles Bader <miles@gnu.org>
8802
c2d53558 8803 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
8804 (Flogxor): Add usage: string to doc string.
8805 * charset.c (Fstring): Likewise.
8806 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
8807 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
8808
f00691a3 88092001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 8810
03be2694
PJ
8811 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
8812
8813 * alloc.c: Reindent DEFUNs with doc: keywords.
8814
8815 * abbrev.c (Finsert_abbrev_table_description): Reindent.
8816
14ff1ee0
PJ
8817 * frame.c: Change doc-string comments to `new style' [w/`doc:'
8818 keyword].
8819
2f147815 8820See ChangeLog.9 for earlier changes.
6922b018
KH
8821
8822;; Local Variables:
49b3bd82 8823;; coding: iso-2022-7bit
6922b018 8824;; End:
2a34a036 8825
2f147815 8826 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
8827 Copying and distribution of this file, with or without modification,
8828 are permitted provided the copyright notice and this notice are preserved.