* xterm.c (x_list_fonts): If maxnames is less than 0, get all font
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ee5be7c3
JD
12003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2
3 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
4 names.
5
6 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
7 (sorted_font_list): Moved allocation of struct font_name to
8 x_face_list_fonts.
9 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10 (Fx_list_fonts): Set maxnames to -1 to get all font names.
11
4cd519a7
KS
122003-02-18 Kim F. Storm <storm@cua.dk>
13
14 * lread.c (read1): Fix last change; "`" is not always special.
15
7290a344
AC
162003-02-18 Andrew Choi <akochoi@shaw.ca>
17
18 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
19
1f7fa69b
AS
202003-02-18 Andreas Schwab <schwab@suse.de>
21
22 * window.c (window_scroll_pixel_based): Move outside a
23 multi-glyph character before setting new window start.
24
25 * xdisp.c (in_display_vector_p): New function.
26 * dispextern.h (in_display_vector_p): Declare.
27
23e21195
KS
282003-02-18 Kim F. Storm <storm@cua.dk>
29
30 * lread.c (read1): Fix and relax read syntax.
31 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
32 Only recognize "," after dotted-pair dot if inside backquote.
33 Never include "`" or "," (inside backquote) in a symbol.
34 Allow dotted-pair dot after a character constant.
35 Allow "`" and "," (inside backquote) after a character constant.
36
f098b121
JD
372003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
38
39 * gtkutil.c (xg_tool_bar_expose_callback): New function.
40 (xg_create_tool_bar): Force style of tool bar to be horizontal with
41 icons. Set name of tool bar to emacs-toolbar.
42 (update_frame_tool_bar): Connect expose event to
43 xg_tool_bar_expose_callback.
44
63020c46
RS
452003-02-17 Richard M. Stallman <rms@gnu.org>
46
47 * keyboard.c (this_command_key_count_reset): New variable.
48 Initiatize to 0 where this_command_key_count is set.
49 (read_char): Save and restore this_command_key_count_reset
50 around input method code.
51 (read_char): If this_command_key_count_reset, echo reread commands.
52 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
53
fb4452cc
KH
542003-02-17 Kenichi Handa <handa@m17n.org>
55
56 * fns.c (string_to_multibyte): Always return a multibyte string.
57
bd11cc09
JR
582003-02-16 Jason Rumney <jasonr@gnu.org>
59
60 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts): Negative
61 max_fonts parameter means list all.
62
4cdf4bde
DL
632003-02-14 Dave Love <fx@gnu.org>
64
65 * fns.c (Flanginfo): Doc fix.
66
023b93f6
KS
672003-02-13 Kim F. Storm <storm@cua.dk>
68
37cd4238
KS
69 * lread.c (read_escape): Interpret \s as a SPACE character, except
70 for \s-X in a character constant which still is the super modifier.
71 (read1): Signal an `invalid read syntax' error if a character
72 constant is immediately followed by a digit or symbol character.
73
140a6b7e
KS
74 * search.c (Fmatch_data): Doc fix. Explicitly state that
75 match-data is undefined if last search failed.
76
023b93f6
KS
77 * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
78 All uses changed.
79
7d5c86e5
JB
802003-02-12 Juanma Barranquero <lektu@terra.es>
81
82 * eval.c (Fdefmacro): Fix typo.
83
295fff2c
KS
842003-02-12 Kim F. Storm <storm@cua.dk>
85
86 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
87 macro is a string, convert meta modifiers in string when copying
88 the string into a vector.
89
60f3202d
KS
902003-02-11 Kim F. Storm <storm@cua.dk>
91
92 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
93
61cb0b53
KH
942003-02-11 Kenichi Handa <handa@m17n.org>
95
96 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
97
7392e23c
KS
982003-02-10 Kim F. Storm <storm@cua.dk>
99
100 * process.c: Doc fixes.
101 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
102
ce4254bd
KH
1032003-02-10 Kenichi Handa <handa@m17n.org>
104
9c7a329a
KH
105 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
106
ce4254bd
KH
107 * process.c (QCfilter_multibyte): New variable.
108 (setup_process_coding_systems): New function.
109 (Fset_process_buffer, Fset_process_filter): Call
110 setup_process_coding_systems.
111 (Fstart_process): Initialize the member `filter_multibyte' of
112 struct Lisp_Process.
113 (create_process): Call setup_process_coding_systems.
114 (Fmake_network_process): New keyward `:filter-multibyte'.
115 Initialize the member `filter_multibyte' of struct Lisp_Process.
116 Call setup_process_coding_systems.
117 (server_accept_connection): Call setup_process_coding_systems.
118 (read_process_output): If the process has a filter, decide the
119 multibyteness of a string to given to the filter by
120 `filter_multibyte' member of the process. If the process doesn't
121 have a filter and the result of conversion is unibyte, use
122 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
123 multibyte form.
124 (Fset_process_coding_system): Call setup_process_coding_systems.
125 (Fset_process_filter_multibyte): New function.
126 (Fprocess_filter_multibyte_p): New function.
127 (syms_of_process): Intern and staticpro QCfilter_multibyte.
128 Defsubr Sset_process_filter_multibyte and
129 Sprocess_filter_multibyte_p.
130
131 * process.h (struct Lisp_Process): New member filter_multibyte.
132
133 * lisp.h (setup_process_coding_systems): Add prototype.
134
135 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
136 process, update coding systems for the process.
137
b08d5f59
KH
1382003-02-09 Kenichi Handa <handa@m17n.org>
139
140 * fns.c (string_to_multibyte): New function.
141 (Fstring_to_multibyte): New function.
142 (syms_of_fns): Defsubr it.
143
0dfd93c0
AS
1442003-02-08 Andreas Schwab <schwab@suse.de>
145
146 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
147 instead of the substitution.
148
7b76ca1c
JD
1492003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
150
151 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
152
153 * xmenu.c (menu_position_func): Adjust menu popup position so that
154 the menu is fully visible.
155
156
2436a4e4
JD
1572003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
158
159 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
160 (x_make_frame_invisible, x_wm_set_icon_position): Use
161 FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
162
163 * xfns.c (x_set_name, x_set_title): Ditto.
164
37d1e680
RS
1652003-02-04 Richard M. Stallman <rms@gnu.org>
166
167 * keyboard.c (echo_now): Update before_command_echo_length.
168 (Freset_this_command_lengths): Reset this_command_key_count etc.
169 immediately rather than arranging to do it later.
170 (before_command_key_count_1, before_command_echo_length_1)
171 (before_command_restore_flag): Vars deleted.
172 (add_command_key): Don't handle before_command_restore_flag.
173 (read_char, record_menu_key): Don't update before_command_key_count or
174 before_command_echo_length.
175 (read_char): Don't handle before_command_restore_flag.
176
177 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
178 in direct-output clauses if it wouldn't be called in the ordinary case.
179
578846a3
KS
1802003-02-04 Kim F. Storm <storm@cua.dk>
181
182 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
183
49853a4d
JD
1842003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
185
186 * gtkutil.c (remove_from_container): Copying list is not needed.
187 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
188 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
189 on list returned from gtk_container_get_children to avoid memory leak.
190
8b53dc06
JR
1912003-02-01 Jason Rumney <jasonr@gnu.org>
192
5d54d177
JR
193 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
194 local malloc.
195 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
196 definitions in xpm.h.
197 (init_xpm_functions): New function.
198 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
199 (init_external_image_libraries): Try to load libXpm.dll.
200
8b53dc06
JR
201 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
202 timestamp.
203
b222e415
DL
2042003-01-31 Dave Love <fx@gnu.org>
205
206 * syntax.c (Fskip_chars_forward)
207 (open-paren-in-column-0-is-defun-start): Doc fix.
208
c60ee5e7
JB
2092003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
210
211 * fileio.c: Support // at start of name for Cygwin (just added proper
212 preprocessor tests).
213
214 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
215
216 * Makefile.in: Use @EXEEXT@ for Cygwin.
217
218 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
219
220 * s/cygwin.h: Added for Cygwin port.
221
53b37591
JB
2222003-01-31 Juanma Barranquero <lektu@terra.es>
223
224 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
225 when including gif_lib.h.
fe929957
JB
226 (init_gif_functions, init_tiff_functions): New functions.
227 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
228 Windows. Disable color table lookups. Call library functions
53b37591 229 through pointers determined at runtime.
fe929957
JB
230 (init_external_image_libraries): Try to load libungif.dll and
231 libtiff.dll.
53b37591 232
45415a8f
KH
2332003-01-31 Kenichi Handa <handa@m17n.org>
234
235 * xdisp.c (SKIP_GLYPHS): New macro.
236 (set_cursor_from_row): Skip all glyphs that comes from overlay
237 string.
238
a97e4138
JD
2392003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
240
241 * gtkutil.c (free_frame_tool_bar): Removed debug printf.
242
6eed9bed
DL
2432003-01-30 Dave Love <fx@gnu.org>
244
245 * alloc.c (Vgc_elapsed, gcs_done): New variables.
246 (Fgarbage_collect): Use them.
247 (init_alloc, syms_of_alloc): Set them up.
248
100dcd40
JB
2492003-01-30 Juanma Barranquero <lektu@terra.es>
250
251 * w32fns.c (init_external_image_libraries): Add missing operator.
252
fbd852af
JR
2532003-01-29 Jason Rumney <jasonr@gnu.org>
254
255 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
256 an alternative name for jpeg.dll.
257
8a2d8020
KH
2582003-01-29 Kenichi Handa <handa@m17n.org>
259
260 * xdisp.c (set_cursor_from_row): Pay attention to string display
261 properties.
262
058c18c7
AC
2632003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
264
265 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
266 <escape>.
267 (keycode_to_xkeysym_table): Reformat and add more comments.
268 (XTread_socket): Drop special case for backspace.
269
385f11cf
AC
2702003-01-28 Andrew Choi <akochoi@shaw.ca>
271
272 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
273 values in old-style RGB specs.
274
c922a224
JB
2752003-01-27 Juanma Barranquero <lektu@terra.es>
276
277 * w32fns.c (init_external_image_libraries): Try alternate names for the
278 jpeg dll.
279
0a1d6de0
JD
2802003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
281
282 * gtkutil.c (create_dialog, xg_separator_p)
283 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
284 before calling strcmp or strlen.
285
a97e4138 2862003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1d1885fc
JD
287
288 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
289 and handle image load failure.
290
28908312
JR
2912003-01-26 Jason Rumney <jasonr@gnu.org>
292
293 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
294 New functions.
295 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
296 Disable color table lookups. Call jpeg library functions
297 through pointers determined at runtime.
298 (init_external_image_libraries): Try to load jpeg.dll.
299
84e47416
RS
3002003-01-25 Richard M. Stallman <rms@gnu.org>
301
302 * lisp.h: Declare format2 instead of format1.
303
304 * fileio.c (barf_or_query_if_file_exists):
305 Call format2 instead of format1.
306
307 * editfns.c (format2): New function, replaces format1
308 but takes exactly two Lisp Objects as format args.
309
310 * buffer.c (Fkill_buffer): Call format2 instead of format1.
311
a97e4138 3122003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1fcfb866
JD
313
314 * xterm.h: Change to return value of x_dispatch_event to int.
315
316 * xterm.c (x_filter_event): New function.
317 (event_handler_gdk, XTread_socket): Call x_filter_event.
318 (x_dispatch_event): Change to return value of finish.
319 (event_handler_gdk): Use return value from x_dispatch_event.
320
321 * xfns.c (x_window): Call create_frame_xic for GTK version to
322 initialize input methods.
323
324 * gtkutil.h: Add (void) prototypes.
325
326 * gtkutil.c (create_menus): Remove code that puts the help menu to
327 the right.
328
54eefef1
JR
3292003-01-25 Jason Rumney <jasonr@gnu.org>
330
331 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
332 [HAVE_PNG]: Sync with xfns.c version.
333 (png_load): Adjust colors for Windows. Use Windows
334 bitmaps. Disable color table lookups.
c262430d
JR
335 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
336 (init_png_functions): New function.
337 (png_read_from_memory, png_load): Call png library functions
338 through pointers determined at runtime.
339 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
340 (init_external_image_libraries): New function.
341 (init_xfns): Call it.
54eefef1 342
1a9e275b
AS
3432003-01-24 Andreas Schwab <schwab@suse.de>
344
345 * minibuf.c (Fminibuffer_message): Verify type of parameter.
346
a97e4138 3472003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
81e302ef
JD
348
349 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
350 of static initializer.
351
422eec7e
DL
3522003-01-24 Dave Love <fx@gnu.org>
353
354 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
355 architectures.
356
357 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
358 Use __alignof__.
359
2a026b04
KH
3602003-01-24 Kenichi Handa <handa@m17n.org>
361
362 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
363 It it is nonzero, don't pretend that an invisible area doesn't
364 exist.
365 (command_loop_1): Call adjust_point_for_property with proper
366 second arg.
367
a18bb28d
JR
3682003-01-22 Jason Rumney <jasonr@gnu.org>
369
370 Sync changes with xterm.c and xfns.c.
371
372 * w32term.c (x_draw_glyph_string_foreground)
373 (x_draw_composite_glyph_string_foreground): Implement overstriking.
374
375 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
376 phys_cursor's hpos is overwritten. This is still not completely
377 correct, as it doesn't really make sense to use hpos at all to
378 get the cursor glyph (as that is relative to the width of the
379 characters on the line, which may have changed during the update).
380
381 * w32term.c (notice_overwritten_cursor): Handle the special case
382 of the cursor being in the first blank non-text line at the
383 end of a window.
384
385 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
386 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
387 Compute from the x position returned by x_draw_glyphs.
388
389 (x_display_and_set_cursor): Don't set phys_cursor_width here,
390 except for NO_CURSOR and system caret, to make phys_cursor_width
391 contain what its name suggests.
392 (notice_overwritten_cursor): Consider the cursor image erased if
393 the output area intersects the cursor image in y-direction.
394
395 * w32term.c (note_mode_line_or_margin_highlight): Renamed from
396 note_mode_line_highlight and extended.
397
398 * w32term.c (last_window): New variable.
399 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
400 (note_mouse_movement): Remove reimplemented code in #if 0.
401
402 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
403 not update_mode_lines, and always set it to 1.
404
ac6e47ef
JR
4052003-01-21 Jason Rumney <jasonr@gnu.org>
406
407 * w32fns.c (IDC_HAND): Define it if system headers don't.
408
4092003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
410
411 * w32term.h (struct w32_output): New member hand_cursor.
412 (WM_EMACS_SETCURSOR): New message definition.
413
414 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
415 function w32_define_cursor.
416 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
417 position, change member name output_data.x to output_data.w32 and
418 add function w32_define_cursor.
419 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
420 and change member name output_data.x to output_data.w32.
421 (w32_initialize_display_info): Setup
422 dpyinfo->vertical_scroll_bar_cursor.
423
424 * w32fns.c (Vx_hand_shape): New variable.
425 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
426 WM_EMACS_SETCURSOR.
427 (x-create-frame): Setup Cursor types.
428
ceb39a17
JB
4292003-01-21 David Ponce <david@dponce.com>
430
ac6e47ef
JR
431 * w32term.c (w32_encode_char): For DIM=1 charset, set
432 ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
433 x_encode_char change by Kenichi Handa <handa@m17n.org> on
ceb39a17 434 2002-09-30.)
ac6e47ef
JR
435 (w32_draw_relief_rect): Declare all args.
436 (w32_define_cursor): New.
437
438 * w32fns.c (w32_load_cursor): New function.
439 (w32_init_class): Use it.
440 (x_put_x_image): Declare all args.
441
46cf0bed
JB
4422003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
443
444 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
445
a97e4138 4462003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
e8794476
JD
447
448 * gtkutil.c: Must include stdio.h before termhooks.h
449
83fc9c63
DL
4502003-01-21 Dave Love <fx@gnu.org>
451
452 * alloc.c (Fgc_status): Print zombie list.
453 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
454 Fix assignment of zombies.
455 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
456 Don't take car of non-cons.
457
458 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
459
460 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
461
fe04b8c8
JR
4622003-01-20 David Ponce <david@dponce.com>
463
464 * w32menu.c (digest_single_submenu): Declare all args.
465
466 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
467 changes in xmenu.c:
468
469 (parse_single_submenu): Use individual keymap's prompt
470 string as pane name, if there is one.
471 (set_frame_menubar): Save menu_items_n_panes from each call to
472 parse_single_submenu and use it when calling digest_single_submenu.
473
539e69a9
ST
4742003-01-20 Steven Tamm <steventamm@mac.com>
475
476 * macterm.c (XTread_socket): Checks for valid, visible window
477 before sending a scroll-wheel event.
478
675d000f
RS
4792003-01-20 Richard M. Stallman <rms@gnu.org>
480
481 * xdisp.c (redisplay_window): If mini window's buffer is not
482 a minibuffer, then redisplay it like other windows.
483
a97e4138 4842003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
22174d10
JD
485
486 * gtkutil.c (xg_create_frame_widgets): Check if there is an
487 external tool bar before setting tool bar height.
488
a97e4138 4892003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
488dd4c4 490
1db60b70
JD
491 * xterm.c (handle_one_xevent): Surround popup_activated
492 with #ifdef:s for non-toolkit version.
493
488dd4c4
JD
494 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
495 (gtkutil.o): New file.
496 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
497 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
498
499 * gtkutil.c: New file for GTK version.
500
501 * gtkutil.h: New file for GTK version.
502
503 * xterm.h: Add xt_or_gtk_widget.
504 Include gtk files for USE_GTK.
505 (struct x_output): Add toolbar_height.
506 (struct x_output): Add GTK widgets and Gdk size_hints.
507 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
508 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
509 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
510
511 * xterm.c: Include gtkutil.h for USE_GTK.
512 Declare extern void free_frame_menubar for USE_GTK.
513 (note_mouse_highlight): Check popup_activated for USE_GTK.
514 (xt_action_hook): Don't compile if USE_GTK.
515 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
516 (xg_scroll_callback): New function.
517 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
518 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
519 for USE_GTK.
520 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
521 xg_show_scroll_bar for USE_GTK.
522 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
523 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
524 (event_handler_gdk): New function for USE_GTK.
525 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
526 (handle_one_xevent): Make sure widget is mapped before
527 calling x_real_positions for USE_GTK.
528 (XTread_socket): Add GTK event loop for USE_GTK.
529 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
530 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
531 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
532 (x_iconify_frame): Add code for USE_GTK.
533 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
534 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
535 is in gtkutil.c.
536 (x_term_init): Add initialization for GTK.
537 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
538
539 * xmenu.c: Include gtkutil.h for USE_GTK.
540 (Fx_popup_menu): Use current position if x and y is NIL.
541 (single_menu_item, single_menu_item, Fx_popup_dialog): Check
542 for USE_GTK.
543 (popup_widget_loop): New function for USE_GTK.
544 (x_activate_menubar): Add code for USE_GTK.
545 (popup_activate_callback, popup_deactivate_callback)
546 (menu_highlight_callback, menubar_selection_callback): USE_GTK versions
547 added.
548 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
549 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
550 (free_frame_menubar): Only compile if not USE_GTK. GTK version
551 is in gtkutil.c.
552 (popup_selection_callback): New version for USE_GTK.
553 (create_and_show_popup_menu): New fuction, one USE_GTK version and
554 one USE_X_TOOLKIT version.
555 (xmenu_show): Call create_and_show_popup_menu.
556 (dialog_selection_callback): New version for USE_GTK.
557 (create_and_show_dialog): New fuction, one USE_GTK version and
558 one USE_X_TOOLKIT version.
559 (xdialog_show): Call create_and_show_dialog.
560
561 * xfns.c: Include gtkutil for USE_GTK.
562 (x_window_to_frame, x_any_window_to_frame)
563 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
564 (x_top_window_to_frame): Add code for USE_GTK.
565 (x_set_background_color): Call xg_set_background_color for GTK.
566 (x_set_menu_bar_lines): Check for USE_GTK.
567 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
568 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
569 (x_window): Call xg_create_frame_widgets for USE_GTK.
570 (Fx_create_frame): Check for USE_GTK
571 (Fx_file_dialog): New implementation for USE_GTK.
488dd4c4
JD
572
573 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
574 (update_menu_bar): Add check for USE_GTK.
575 (update_tool_bar): Add check for USE_GTK and external tool bar.
576 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
577 (redisplay_internal): Add check for USE_GTK and popup_activated.
578 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
579 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
580 (display_menu_bar): Add check for USE_GTK
581
582 * lisp.h: Declare Vx_resource_name extern.
583
584 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
585 for USE_GTK.
586 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
587
588 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
589 (FRAME_EXTERNAL_TOOL_BAR): New macro.
590 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
591
592 * fileio.c (Fread_file_name): Add check for USE_GTK.
593
594 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
595 check for USE_GTK.
596
597 * config.in: Added HAVE_GTK
598
599 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
600
35d0e4fa
SM
6012003-01-18 Stefan Monnier <monnier@cs.yale.edu>
602
603 * charset.h (Funibyte_char_to_multibyte): Export.
604
a97e4138 6052003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bc82cdfe
JD
606
607 * xmenu.c (mouse_position_for_popup): New function.
608 (Fx_popup_menu): Call mouse_position_for_popup for X and
609 mouse_position_hook for others.
610
c8e88f8d
KS
6112003-01-17 Kim F. Storm <storm@cua.dk>
612
613 * editfns.c (Finsert): Mention `string-make-multibyte' and
614 `string-as-multibyte' in doc string.
615
1255b58a
KH
6162003-01-17 Kenichi Handa <handa@m17n.org>
617
3c02a6f5
KH
618 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
619
1255b58a
KH
620 * editfns.c (Fformat): Convert an unibyte char argument that is
621 formatted by "%c" to multibyte if the total result must be a
622 multibyte string.
623
cd7df9c0
KS
6242003-01-16 Kim F. Storm <storm@cua.dk>
625
626 * process.c (set-process-filter): Document unibyte/multibyte-ness
627 of string argument.
628
56210ecd
KH
6292003-01-16 Kenichi Handa <handa@m17n.org>
630
631 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
632
633 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
634 (re_search_2): Likewise.
635
6df8b9fe
KH
6362003-01-15 Kenichi Handa <handa@m17n.org>
637
638 * xdisp.c (message_dolog): Fix bug of the case that *Message*
639 buffer is unibyte.
640
292ddc31
FP
6412003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
642
643 * fns.c (Fsubstring): Clarify doc string.
644
645 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
646 (Fprevious_char_property_change)
647 (Fnext_single_char_property_change)
648 (Fprevious_single_char_property_change, Fnext_property_change)
649 (Fnext_single_property_change, Fprevious_property_change)
650 (Fprevious_single_property_change, Fadd_text_properties)
651 (Fput_text_property, Fset_text_properties)
652 (Fremove_text_properties, Fremove_list_of_text_properties)
653 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
654
63e4e4c6
KS
6552003-01-14 Kim F. Storm <storm@cua.dk>
656
657 * process.h (struct Lisp_Process): New member plist replaces old
658 member private_vars. All uses changed.
659
660 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
661 (QCplist): Renamed from QCvars. All uses changed.
662 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
663 (Fset_process_plist): Replaces Fset_process_variable. Simplified.
664 (syms_of_process): Intern, staticpro, defsubr these.
665 (Fmake_network_process): Describe :plist arg. Removed :vars arg.
666
7ed16567
FP
6672003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
668
669 * m/delta.h: Removed (obsolete).
670
e833850f
FP
6712003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
672
673 * fileio.c (Fdelete_directory, Fdelete_file): Document the
674 behaviour in front of symlinks.
675 (Fdelete_file): Raise an error on directories.
676
817cb127
DL
6772003-01-13 Dave Love <fx@gnu.org>
678
679 * fns.c (Freverse): Use QUIT.
680
3e8cf2ea
RS
6812003-01-13 Richard M. Stallman <rms@gnu.org>
682
e833850f 683 * minibuf.c (minibuffer_completion_contents):
3e8cf2ea
RS
684 Error if point is inside prompt.
685
686 * keyboard.c (command_loop_1): Don't redisplay directly
687 if there's a post-command-hook.
688
689 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
690 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
691
2c10f029
KS
6922003-01-12 Kim F. Storm <storm@cua.dk>
693
94e8ffca
KS
694 * process.h (struct Lisp_Process): New member private_vars.
695
63e4e4c6 696 * process.c (QCvars): New variable.
94e8ffca 697 (syms_of_process): Intern and staticpro it.
afd250cb 698 (Fset_process_contact): Removed function.
94e8ffca
KS
699 (Fprocess_variable, Fset_process_variable): New functions.
700 (syms_of_process): Defsubr them.
701 (Fstart_process): Initialize private_vars plist to nil.
702 (Fmake_network_process): New arg :vars to setup the private
703 variables for new network process.
704 (server_accept_connection): Copy server's private variables to
705 client process.
706
44117420
KS
707 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
708 crashes). Code rewritten and simplified. Now directly aligns the
709 pointer and recalculates pure_bytes_used, rather than aligning the
710 size and adjusting the pointer.
2c10f029 711
b8a76c6c
KS
7122003-01-11 Kim F. Storm <storm@cua.dk>
713
714 * process.c (Fset_process_contact): New function.
715 (syms_of_process): defsubr it.
716 (make-network-process): Update doc.
717
3a8d0899
AS
7182003-01-10 Andreas Schwab <schwab@suse.de>
719
720 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
721 Reported by Berthold Gunreben <b.gunreben@web.de>.
722
4abc7470
DL
7232003-01-10 Dave Love <fx@gnu.org>
724
35d0e4fa 725 * composite.c (syms_of_composite): Make composition_hash_table weak.
4abc7470 726
b809d662
KS
7272003-01-09 Kim F. Storm <storm@cua.dk>
728
729 * process.c (Fmake_network_process): Convert new port number
730 to host byte order for `:service t' case. From Mario Lang.
731
a97e4138 7322003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
bf338245
JD
733
734 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
735 instead of XtAppProcessEvent.
736
35d0e4fa
SM
737 * xterm.c (handle_one_xevent): New function.
738 (x_dispatch_event): New function.
bf338245
JD
739 (XTread_socket): Call handle_one_xevent.
740
35d0e4fa 741 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
bf338245
JD
742
743 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
744 call XQueryPointer to get coordinates.
745 (popup_get_selection): Do not set popup_activated_flag to zero,
746 let popup_deactivate_callback do that. Needed for Motif.
747 Call x_dispatch_event instead of XtDispatchEvent.
748 (xmenu_show): Calculate root coordinate from frame top/left position.
e833850f 749
c4af2bce
KS
7502003-01-08 Kim F. Storm <storm@cua.dk>
751
752 * process.c (server_accept_connection): Fixed recording of new
753 connection's local address in :local property of contact info.
754 (Fmake_network_process): Record local network address for new
755 client processes in :local property of contact info.
06e022f6 756 (format-network-address): Added arg OMIT-PORT. Callers changed.
c4af2bce 757
00e3ab56
DL
7582003-01-07 Dave Love <fx@gnu.org>
759
760 * Makefile.in (fns.o): Depend on coding.h.
761
f387e1fd
MR
7622003-01-07 Markus Rost <rost@math.ohio-state.edu>
763
764 * minibuf.c (Fread_variable): Doc fix.
765
766 * eval.c (Fuser_variable_p): Doc change. For custom variables,
767 use the same test as for custom-variable-p.
768
8c6d74c6
RS
7692003-01-05 Richard M. Stallman <rms@gnu.org>
770
771 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
772 Count LAST_LINE_MISFIT in scroll margin for end of window.
773 Move label too_near_end before setting SCROLL_MARGIN_POS.
774 Set LAST_LINE_MISFIT before jumping there.
e833850f 775
8c6d74c6
RS
776 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
777 scroll_conservatively case. If scrolling that much doesn't change
778 STARTP, move it down one line.
779
35d0e4fa
SM
780 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
781 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
e833850f 782
35d0e4fa
SM
783 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
784 selected frame.
8c6d74c6
RS
785
786 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
787 (syms_of_keymap): staticpro them.
788 (Fapropos_internal): Initialize them and clear them out.
789 Don't GCPRO them.
790
791 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
792 Doc fixes.
793
794 * lisp.h: New misc type Lisp_Save_Value.
795 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
796 (XSAVE_VALUE): New macro.
797 (struct Lisp_Save_Value): New data type.
798 (union Lisp_Misc): Add u_save_value alternative.
799 (make_save_value): Declared.
800
801 * alloc.c (make_save_value): New function.
802
803 * xterm.c (x_catch_errors): Save dpy using make_save_value.
804 (x_catch_errors_unwind): Call XSync.
805
8062003-01-01 Richard M. Stallman <rms@gnu.org>
807
808 * window.c (window_scroll_pixel_based): Partially undo last change.
809
810 * keyboard.c (command_loop_1): Call adjust_point_for_property
811 in direct action cases for Qforward_char and Qbackward_char.
812 Set already_adjusted so it won't be done twice.
813
8142002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
815
816 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
817 type definition of size_t.
818
8c609cff
ST
8192003-01-02 Steven Tamm <steventamm@mac.com>
820
821 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
822 distinguish Carbon GUI builds from X11 builds on darwin.
823
b37113a1
ST
8242002-12-30 Steven Tamm <steventamm@mac.com>
825
e833850f 826 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
b37113a1
ST
827 to default to t.
828
fa634a5e
FP
8292002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
830
831 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
832
ce0669d4
ST
8332002-12-28 Steven Tamm <steventamm@mac.com>
834
fa634a5e
FP
835 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
836 allow building in a different directory than source. Uses some
ce0669d4
ST
837 GNU Make extensions, but there is no other make on Mac OS X.
838
2308af15
FP
8392002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
840
841 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
842 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
35d0e4fa
SM
843 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
844 (Fstring_to_number): Mention the returned value in the doc strings.
2308af15 845
2155ecf3
RS
8462002-12-23 Richard M. Stallman <rms@gnu.org>
847
848 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
849 <scroll-down-aggressively>: Doc fix.
850
851 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
852 string as pane name, if there is one.
853 (set_frame_menubar): Save menu_items_n_panes from each call to
854 parse_single_submenu and use it when calling digest_single_submenu.
855
856 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
857 Don't try to make last line fully visible if it is past end of window.
858
61f1d295
ST
8592002-12-22 Steven Tamm <steventamm@mac.com>
860
35d0e4fa
SM
861 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
862 (mac_menu_show): Add support for hierarchical popup menus.
863 (add_menu_item): Remove indentation support.
864 (fill_submenu, fill_menu): Create hierarchical menus
865 instead of using indentation.
61f1d295 866
0b17a217
RS
8672002-12-22 Richard M. Stallman <rms@gnu.org>
868
869 * xdisp.c (try_cursor_movement): Don't call try_window here.
870 (redisplay_window): Never redisplay minibuffer when inactive.
871
872 * window.c (select_window_1): Undo 9/21 change.
873
402e4f8b
ST
8742002-12-22 Steven Tamm <steventamm@mac.com>
875
876 * macterm.c (XTread_socket): Call KeyTranslate for control and
877 meta to deal correctly shifted non-alpha characters, like C-S-5
878 being treated like C-%. Does not look for shift key to deal
879 with masking off control-key with mac-reverse-ctrl-meta.
880
f02cac82
RS
8812002-12-21 Richard M. Stallman <rms@gnu.org>
882
883 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
884 If it is non-nil, run timers. Use an unwind-protect to requeue
885 the events that were read ahead.
886 (popup_get_selection_unwind): New subroutine.
887 (popup_get_selection_queue): File-scope variable now holds that queue.
888 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
889 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
890 Use an unwind-protect to pop down the dialog box.
891 (xdialog_show_unwind): New subroutine implements that.
892
893 * xdisp.c (row_containing_pos): Change exit test using last_y.
894 (try_window_id): Abort if row_containing_pos returns null.
895
896 * lread.c (load_error_handler): New function.
897 (Fload): Handle errors in Fsubstitute_in_file_name.
898 Don't expect Fsignal to return.
899
88c71720
KS
900 * eval.c: Errors and throws work right with interrupt blocking.
901 (struct catchtag): New elt interrupt_input_blocked.
f02cac82 902 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
2308af15 903 (internal_catch, Fcondition_case, internal_condition_case)
f02cac82
RS
904 (internal_condition_case_1, internal_condition_case_2): Save it.
905 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
906
907 * editfns.c (Fformat): Add parens.
908
909 * dired.c (file_name_completion): Fix that change.
910 Delete special quit-handling code; just use QUIT.
911
9122002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
913
914 * dired.c (file_name_completion): Close directory on error
915 just as in directory_files_internal.
916
1a590729
DK
9172002-12-19 David Kastrup <David.Kastrup@t-online.de>
918
919 * window.c (Fset_window_configuration): Set old_point to correct
920 value when new_current_buffer == current_buffer.
921
ceb39a17 9222002-12-17 Ben Key <bkey1@tampabay.rr.com>
f02cac82 923
88c71720 924 Revisited my earlier fix for the following entry in etc/PROBLEMS:
9785d95b
BK
925 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
926 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
2308af15 927
9785d95b
BK
928 These changes were in part based upon suggestions made by Peter
929 'Luna' Runestig [peter@runestig.com].
930
931 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
932 g_b_init_get_token_information, g_b_init_lookup_account_sid,
933 g_b_init_get_sid_identifier_authority ): Added several static
934 global variables.
935
936 * w32.c (globals_of_w32): New function. Used to initialize those
937 global variables that must always be initialized on startup even
938 when the global variable initialized is non zero. Its primary
939 purpose at this time is to set the global variables
940 g_b_init_is_windows_9x, g_b_init_open_process_token,
941 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
35d0e4fa
SM
942 g_b_init_get_sid_identifier_authority to 0 on startup.
943 Called from main.
9785d95b
BK
944
945 * w32.c (is_windows_9x): Perform initialization only if
946 g_b_init_is_windows_9x is equal to 0. On initialization set
947 g_b_init_is_windows_9x equal to 1.
948
949 * w32.c (open_process_token): Perform initialization only if
950 g_b_init_open_process_token is equal to 0. On initialization set
951 g_b_init_open_process_token equal to 1.
2308af15 952
9785d95b
BK
953 * w32.c (get_token_information): Perform initialization only if
954 g_b_init_get_token_information is equal to 0. On initialization
955 set g_b_init_get_token_information equal to 1.
2308af15 956
9785d95b 957 * w32.c (lookup_account_sid): Perform initialization only if
2308af15 958 g_b_init_lookup_account_sid is equal to 0. On initialization
9785d95b
BK
959 set g_b_init_lookup_account_sid equal to 1.
960
961 * w32.c (get_sid_identifier_authority): Perform initialization
35d0e4fa
SM
962 only if g_b_init_get_sid_identifier_authority is equal to 0.
963 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
9785d95b
BK
964
965 * w32fns.c (globals_of_w32fns): New function. Used to initialize
966 those global variables that must always be initialized on startup
35d0e4fa
SM
967 even when the global variable initialized is non zero.
968 Its primary purpose at this time is to initialize the global variable
9785d95b
BK
969 track_mouse_event_fn.
970
971 * w32fns.c (w32_wnd_proc): Remove initialization of
35d0e4fa 972 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
9785d95b
BK
973
974 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
975
976 * w32menu.c (globals_of_w32menu): New function. Used to
977 initialize those global variables that must always be initialized
978 on startup even when the global variable initialized is non zero.
979 Its primary purpose at this time is to initialize the global
980 variables get_menu_item_info and set_menu_item_info.
981
982 * w32menu.c (initialize_frame_menubar): Remove initialization of
983 get_menu_item_info and set_menu_item_info.
984
985 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
986
987 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
988 Declare them.
989
990 * emacs.c (main): Call globals_of_w32 prior to calling
991 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
992 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
993 is defined.
994
995 * w32term.c (x_update_window_begin): Fix Windows API error
996 detected by BoundsChecker. Test to determine if
997 w32_system_caret_hwnd is NULL prior to attempting to use
998 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
999
1000 * w32term.c (x_update_window_end): Fix Windows API error
1001 detected by BoundsChecker. Test to determine if
1002 w32_system_caret_hwnd is NULL prior to attempting to use
1003 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
2308af15 1004
b6da19ef
KH
10052002-12-17 Kenichi Handa <handa@m17n.org>
1006
1007 * coding.c (coding_system_require_warning): New variable.
1008 (syms_of_coding): DEFVAR it.
1009
1010 * coding.h (coding_system_require_warning): Extern it.
1011
1012 * fileio.c (choose_write_coding_system): Even if
1013 Vcoding_system_for_write is non-nil, if
1014 coding_system_require_warning is nonzero, call
1015 Vselect_safe_coding_system_function.
1016
bfcf6dbe
MR
10172002-12-17 Markus Rost <rost@math.ohio-state.edu>
1018
1019 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
1020 (lisp): Add font-core.
1021
2c568af5
SM
10222002-12-13 Stefan Monnier <monnier@cs.yale.edu>
1023
1024 * textprop.c (text_read_only): New arg `propval'.
1025 (get_char_property_and_overlay): Remove unused var `next_overlay'.
1026 (verify_interval_modification): Use text_read_only's new arg.
1027
b8c6225c
KH
10282002-12-13 Kenichi Handa <handa@m17n.org>
1029
1030 * coding.c (Funencodable_char_position): Set pend correctly.
1031
706ddb8f
JR
10322002-12-12 Jason Rumney <jasonr@gnu.org>
1033
1034 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
1035 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
1036 Be more careful about when help_events are generated.
1037
96720f09
ST
10382002-12-12 Steven Tamm <steventamm@mac.com>
1039
1040 * macterm.c (mac_check_for_quit_char): Correctly set the
1041 modifiers of the event to 0.
1042 * mac.c (sys_select): Duplicate rfds before calling select to
1043 ensure that rfds survive the while loop.
1044
e5ae1c49
KS
10452002-12-11 Kim F. Storm <storm@cua.dk>
1046
1047 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
1048 row_containing_pos returned NULL.
1049
2eb46b2d
ST
10502002-12-10 Steven Tamm <steventamm@mac.com>
1051
1052 * mac.c (sys_read): Fixed sys_read to not call select if IO is
2c568af5 1053 non-blocking.
bdce610d
ST
1054 (sys_select): Fixed sys_select to not use a timeout larger than
1055 the one given.
2eb46b2d 1056
b11f1d8a
JB
10572002-12-10 Juanma Barranquero <lektu@terra.es>
1058
1059 * editfns.c (Fformat): Use alloca, not _alloca.
1060
d8528226
RS
10612002-12-09 Richard M. Stallman <rms@gnu.org>
1062
1063 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
1064 as the last thing.
1065
a4ac5b17
DL
10662002-12-09 Dave Love <fx@gnu.org>
1067
88c71720 1068 * s/sol2-8.h: Removed. (Not necessary.)
a4ac5b17 1069
f02cac82 10702002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9
KG
1071
1072 * editfns.c (Fformat): Handle precision in string conversion
1073 specifiers like libc functions do (ie, print at most that many
f02cac82 1074 characters).
ac42d7b9 1075
85cce843
RS
10762002-12-08 Richard M. Stallman <rms@gnu.org>
1077
1078 * xdisp.c (row_containing_pos): Check more carefully
1079 whether charpos is really in the row before returning it.
1080
0d4d26a7
ST
10812002-12-07 Steven Tamm <steventamm@mac.com>
1082
df4d1023 1083 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
0d4d26a7 1084
df4d1023
KS
1085 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
1086 each stack frame. This may change as it could be time consuming.
b11f1d8a
JB
1087
1088 * macterm.c (mac_check_for_quit_char, quit_char_comp)
1089 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6c465a15 1090 (mac_initialize): Added code to check for pressing of quit_char
2c568af5 1091 in the OS event queue.
0d4d26a7
ST
1092
1093 * mac.c (sys_select): Call mac_check_for_quit_char every second
1094 while blocking on select.
b11f1d8a 1095
0d4d26a7 1096 * mac.c (sys_read): Use sys_select to test for input first
f02cac82 1097 before calling read, to allow C-g to break.
0d4d26a7 1098
9252f7bc
RS
10992002-12-07 Richard M. Stallman <rms@gnu.org>
1100
1101 * minibuf.c (Fcompleting_read): Doc fix.
1102
1103 * lread.c (syms_of_lread) <load-history>: Doc fix.
1104
1105 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
1106
1107 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
1108 autoload.
1109
1110 * data.c (Fdefalias): Record in load-history redefining an autoload.
1111
1112 * alloca.c: Undo ifdef change accidentally made on 12-04.
1113
bfa261c0
FP
11142002-12-06 Francesco Potorti` <pot@gnu.org>
1115
2c568af5 1116 * xfns.c (png_load): Avoid double gamma correction for PNG images.
bfa261c0 1117
c5992177
RS
11182002-12-04 Richard M. Stallman <rms@gnu.org>
1119
1120 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
1121
1122 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
1123
1124 * alloca.c: Don't use #error.
1125
02d588e2
DL
11262002-12-03 Dave Love <fx@gnu.org>
1127
1128 * buffer.c (Qucs_set_table_for_input): New.
1129 (Fget_buffer_create): Use it.
1130 (Qset_buffer_major_mode_hook): Deleted.
1131 (Fset_buffer_major_mode): Revert previous change.
1132 (init_buffer_once): Intern ucs-set-table-for-input.
2c568af5
SM
1133 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
1134 Add &Qucs_set_table_for_input.
02d588e2 1135
451e2697
AS
11362002-12-03 Andreas Schwab <schwab@suse.de>
1137
1138 * callint.c (Fcall_interactively): Use next_event only if less
1139 than key_count.
1140
72742a99
AC
11412002-12-02 Andrew Choi <akochoi@shaw.ca>
1142
1143 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
1144 names to 255 characters.
1145
1146 * macterm.c (XTread_socket): If all frames have been collapsed,
1147 expand the first one before handling drag-and-drop events.
1148
1149 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
1150 which is detected by autoconf.
1151
40e6ff95
ST
11522002-12-01 Steven Tamm <steventamm@mac.com>
1153
6c465a15 1154 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
40e6ff95
ST
1155 offset in two hints table to allow prebinding to be redone and
1156 allow the executable to be stripped.
1157
c02138c6
DL
11582002-11-29 Dave Love <fx@gnu.org>
1159
1160 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
1161 already provided.
1162
0e47bbf7
RS
11632002-11-29 Richard M. Stallman <rms@gnu.org>
1164
1165 * xdisp.c (start_display): Check more intelligently for
1166 whether the line is continued.
1167 (move_it_vertically_backward): Clear it->continuation_lines_width.
1168
44129dcb
DL
11692002-11-28 Dave Love <fx@gnu.org>
1170
1171 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
1172 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
1173
f707342d
ST
11742002-11-27 Steven Tamm <steventamm@mac.com>
1175
1176 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
1177 more descriptive error output from lread.c:Fload upon most require
1178 cycles during boostrapping.
1179
1637fd2c
JR
11802002-11-27 Jason Rumney <jasonr@gnu.org>
1181
1182 * fileio.c (Finsert_file_contents): Give a more appropriate error
1183 for files bigger than 2Gb when off_t is 32 bit.
1184
1185 * dired.c (Ffile_attributes): Don't return negative file sizes for
1186 files bigger than 2Gb when off_t is 32 bit.
1187
540c2788
DL
11882002-11-27 Dave Love <fx@gnu.org>
1189
6b2fd6ea
DL
1190 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1191
2c568af5
SM
1192 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
1193 Test GETPGRP_VOID instead.
6b2fd6ea
DL
1194 [BSD_TERMIOS]: Remove definitions (never used).
1195
1196 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
1197 Don't define.
1198 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1199
540c2788
DL
1200 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
1201
8cc03716
JR
12022002-11-25 Jason Rumney <jasonr@gnu.org>
1203
1204 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
1205 supported.
1206
4042a81a
DL
12072002-11-25 Dave Love <fx@gnu.org>
1208
1209 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
1210
1211 * Makefile.in (TEMACS_LDFLAGS): Update last change.
1212
be4ee72f
AS
12132002-11-25 Andreas Schwab <schwab@suse.de>
1214
1215 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
1216
82122254
ST
12172002-11-24 Steven Tamm <steventamm@mac.com>
1218
1219 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
1220 determine the size of pointers alloced in unexed space instead
1221 of using possibly invalid emacs_zone pointers. This fixes the
1222 binary incompatibility problems caused by updates to libSystem.B.
1223
c1ee53bc
RS
12242002-11-24 Richard M. Stallman <rms@gnu.org>
1225
1226 * search.c (Fstring_match): Doc fix.
1227
1228 * callint.c (Fcall_interactively): If a command fails because
1229 `*' detects a read-only buffer, but RECORD_FLAG is set,
1230 record it anyway if the args don't actually do tty input.
1231
5598c32e
DL
12322002-11-22 Dave Love <fx@gnu.org>
1233
1234 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
1235
1236 * keyboard.c (interrupt_signal): Provide forward declaration.
1237 (kbd_buffer_store_event): Don't declare interrupt_signal.
1238
2c568af5 1239 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 1240
97b14e22
RS
12412002-11-21 Richard M. Stallman <rms@gnu.org>
1242
1243 * eval.c (interactive_p): Skip any number of bytecode
1244 and special form frames, in any order.
1245
516eea8e
JR
12462002-11-20 Jason Rumney <jasonr@gnu.org>
1247
1248 * w32fns.c (convert_mono_to_color_image): New function.
1249 (xbm_load, xbm_load_image): Use it when foreground or background
1250 is explicitly set.
1251
04dbfa08
DL
12522002-11-19 Dave Love <fx@gnu.org>
1253
1254 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
1255
b4aebae3
JR
12562002-11-18 Jason Rumney <jasonr@gnu.org>
1257
1258 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
cf234711 1259 (XPutPixel): Swap blue and red.
8f92c555
JR
1260 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
1261 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1262 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
1263 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
b4aebae3 1264
1998560a
DL
12652002-11-18 Dave Love <fx@gnu.org>
1266
d824beee
DL
1267 * m/orion105.h (HAVE_ALLOCA): Don't define.
1268
a0f0878d 1269 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee
DL
1270
1271 * m/intel386.h: Don't include alloca.h or define alloca.
1272
1273 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
1274 malloc, realloc, calloc.
1275
1276 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
1277 (bcmp): Don't define.
1278
1279 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
1280
1281 * m/amdahl.h: Don't define LIB_STANDARD.
1282
1283 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
1284
1285 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
1286
a0f0878d
SM
1287 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
1288 Don't include alloca.h.
d824beee
DL
1289
1290 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1291
1998560a
DL
1292 * regex.c (_GNU_SOURCE): Don't define.
1293
1294 * process.c (_GNU_SOURCE): Don't define.
1295
1296 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
1297
6c465a15 12982002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab
MR
1299
1300 * s/sol2-8.h: Include sol2-6.h.
1301
6ae2cd57
MB
13022002-11-18 Miles Bader <miles@gnu.org>
1303
1304 * dispextern.h (struct face): Add `overstrike' field.
a0f0878d 1305 * xterm.c (x_draw_glyph_string_foreground)
6ae2cd57
MB
1306 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1307 * xfaces.c (load_face_font): Set `face->overstrike' based on
1308 result from choose_face_font.
1309 (best_matching_font, choose_face_font): Add `needs_overstrike'
1310 argument, and use it to return whether overstriking is desirable
1311 for this face/font combo.
1312 (set_font_frame_param: Pass new argument to choose_face_font.
1313
ceb39a17 13142002-11-17 Ben Key <BKey1@tampabay.rr.com>
6ae2cd57 1315
3582b6a3
SM
1316 This change is my fix for the following entry in etc/PROBLEMS:
1317 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1318 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
1319
f60ae425
BK
1320 * w32.c: Added wrapper functions around the win32 API functions
1321 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
1322 GetSidIdentifierAuthority. These wrapper functions serve two
1323 purposes:
1324 1. They ensure that the wrapped function can never be called
1325 when Emacs is running on an operating system on which they are
1326 not supported (Microsoft Windows 95 / 98 / ME).
1327 2. They call the wrapped functions via function pointers rather
1328 than calling them directly. This avoids taking advantage of the
1329 undocumented fact that although these functions are not supported
1330 in the 9x branch of Microsoft Windows, the functions do exist in
1331 the version of advapi32.dll that is found in the 9x branch of
1332 Microsoft Windows.
f60ae425
BK
1333
1334 * w32.c (init_user_info): Replaced the calls to the win32 API
1335 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
1336 and GetSidIdentifierAuthority with calls to the newly added
1337 wrapper functions.
f60ae425
BK
1338
1339 * w32.h: Added extern declarations for the following functions:
1340 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
1341 syms_of_w32menu, and void syms_of_fontset.
f60ae425
BK
1342
1343 * w32fns.c (w32_wnd_proc): Added code to reinitialize the
1344 function pointer track_mouse_event_fn in the handler for the
1345 WM_SETFOCUS message.
f60ae425 1346
6c465a15 1347 * w32menu.c (initialize_frame_menubar): Added code to
f60ae425
BK
1348 reinitialize the function pointers set_menu_item_info and
1349 get_menu_item_info.
3582b6a3 1350
ceb39a17 13512002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 1352
a0f0878d 1353 * sound.c: Added a partial implementation of play-sound-internal
f60ae425
BK
1354 for Microsoft Windows. Added various #ifdef / #else / #endif
1355 code blocks to separate the code that will compile under
1356 Microsoft Windows from the code that is specific to Gnu/Linux.
a0f0878d
SM
1357 Moved several blocks of code around to make this separation of code
1358 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 1359
a0f0878d 1360 * makefile.w32-in: Include sound.c and link with WinMM.lib.
f60ae425
BK
1361
1362 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
1363 added support for play-sound-internal under Windows would be
1364 included in the build of Emacs.
a0f0878d 1365
517f42a0
JR
13662002-11-16 Jason Rumney <jasonr@gnu.org>
1367
1368 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
1369
1370 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
1371
a0f0878d
SM
13722002-11-15 Stefan Monnier <monnier@cs.yale.edu>
1373
1374 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
1375 (adjust_point_for_property): Move out of display and invisible even if
1376 we were already inside before (in case a property was added while
1377 we weren't looking). Be more careful when handling invisible props.
1378 Skip invisible text as if it really wasn't there at all.
1379
aab83f91
JR
13802002-11-15 Jason Rumney <jasonr@gnu.org>
1381
1382 * w32term.c (x_draw_image_foreground)
1383 (w32_draw_image_foreground_1): Use standard copy and invert
1384 operations to draw images.
1385
1386 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
1387 depth of 1.
1388 (xbm_read_bitmap_data): Invert bits as xbm is read in.
1389 (XPutPixel): Don't invert bits here.
1390
a4478a76
JR
13912002-11-15 Jason Rumney <jasonr@gnu.org>
1392
1393 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
1394 (w32_draw_image_foreground_1): Handle image masks.
1395 (x_draw_image_glyph_string): Don't BitBlt transparently.
1396
1397 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
1398 (x_from_xcolors): Adjust RGB values for W32.
1399 (image_background, image_background_transparent)
1400 (postprocess_image, x_to_xcolors, x_disable_image)
1401 (x_build_heuristic_mask): Adapt for W32 and enable.
1402 (x_create_x_image_and_pixmap): Mark images with palettes as such.
1403 (xbm_load): Remove unused variable.
1404
03670a65
RS
14052002-11-14 Richard M. Stallman <rms@gnu.org>
1406
1407 * buffer.c (syms_of_buffer): Doc fix.
1408
59daa29a
DL
14092002-11-14 Dave Love <fx@gnu.org>
1410
1411 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
1412
8e685dc6
SM
1413 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
1414 * xmenu.c (unuse_menu_items, digest_single_submenu):
1415 * xfns.c (x_put_x_image):
1416 * xdisp.c (message2_nolog, set_message):
1417 * undo.c (record_point):
1418 * terminfo.c (tparam):
1419 * syntax.c (scan_sexps_forward):
1420 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
1421 * composite.c (update_compositions):
1422 * cm.c (calccost, cmgoto):
59daa29a
DL
1423 * charset.c (c_string_width): Declare all args (per C99).
1424
8e685dc6 1425 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a
DL
1426
1427 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
1428 Don't declare.
1429
1430 * emacs.c (main) [!VMS]: Avoid third arg.
1431
1432 * fns.c (Fcopy_sequence): Doc fix.
49f8f50a 1433 (Fmap_char_table): Cast `call2'.
59daa29a 1434
407fa601
FP
14352002-11-14 Francesco Potorti` <pot@gnu.org>
1436
1437 * s/sol2-8.h: New file.
1438
58a7e98d
KS
14392002-11-14 Kim F. Storm <storm@cua.dk>
1440
1441 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
1442 dependency on `risky-local-variable' and the :propertize form.
1443
3ceb4629
SM
14442002-11-12 Stefan Monnier <monnier@cs.yale.edu>
1445
8e685dc6
SM
1446 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
1447
3ceb4629
SM
1448 * syntax.c (scan_sexps_forward): Undo last patch.
1449 Use a more obvious fix: check eob before updating the syntax table.
1450
b7305e01
SM
14512002-11-09 Stefan Monnier <monnier@cs.yale.edu>
1452
1453 * syntax.c (scan_sexps_forward): Update syntax table before reading
1454 a char rather than after so we don't update the table past eob.
1455
2671e4de
DL
14562002-11-09 Dave Love <fx@gnu.org>
1457
1458 * buffer.c (Fset_buffer_major_mode): Fix last change.
1459
1460 * regex.c (regexec): Fix pmatch declaration.
1461
1462 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
1463
1464 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
1465 to self-inserting characters.
1466 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
1467
1468 * coding.c (Vtranslation_table_for_input): New.
1469 (syms_of_coding): DEFVAR it.
1470
63e9e99c
JB
14712002-11-08 Juanma Barranquero <lektu@terra.es>
1472
1473 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
1474 window.
1475
a959f11e
KS
14762002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1477
1478 * process.c (Fformat_network_address): Removed unused locals p,
1479 cp, and i.
1480
b8b60362
DL
14812002-11-06 Dave Love <fx@gnu.org>
1482
1483 * buffer.c (Qset_buffer_major_mode_hook): New.
1484 (Fset_buffer_major_mode): Use it.
1485
318db6cb
RS
14862002-11-06 Richard M. Stallman <rms@gnu.org>
1487
1488 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
1489 and stop_polling.
1490
1491 * process.c (wait_reading_process_input):
1492 Test POLLING_PROBLEM_IN_SELECT, not hpux.
1493 Avoid initialization for auto Lisp_Object var.
1494
1495 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
1496
1497 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
1498
44248360
RS
14992002-11-05 Richard M. Stallman <rms@gnu.org>
1500
1501 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
1502
1503 * callint.c (Fcall_interactively): New local filter_specs.
1504 (Fcall_interactively): Check for progn as well as let.
1505 Add a gcpro.
1506 (Qprogn): New variable.
1507 (syms_of_callint): Staticpro and init Qprogn.
1508
3f9ab804
JPW
15092002-11-04 John Paul Wallington <jpw@shootybangbang.com>
1510
1511 * lread.c (Feval_buffer): Doc fix.
1512
5e3cb80d
DL
15132002-11-04 Dave Love <fx@gnu.org>
1514
1515 * keyboard.c (read_char): Always translate iff
1516 Vkeyboard_translate_table is a char table and c is valid.
1517
1518 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
1519 and fix C types.
1520
7e16ef60
SM
15212002-11-03 Stefan Monnier <monnier@cs.yale.edu>
1522
266b4e3a
SM
1523 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
1524
1525 * editfns.c (get_pos_property): Don't hardcode Qfield.
1526
7e16ef60
SM
1527 * keyboard.c (adjust_point_for_property): Handle `display' prop on
1528 overlays. Also handle `invisible' prop.
1529
15302002-11-02 Stefan Monnier <monnier@cs.yale.edu>
1531
1532 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
1533 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
1534
304f1f12
AS
15352002-11-01 Andreas Schwab <schwab@suse.de>
1536
2c568af5 1537 * editfns.c (Fmessage): Revert last change to properly handle %%.
304f1f12 1538
86fad4ec
SM
15392002-11-01 Stefan Monnier <monnier@cs.yale.edu>
1540
1541 * xmenu.c (unuse_menu_items): New fun.
1542 (menu_items_inuse): New var.
1543 (syms_of_xmenu): Initialize it.
1544 (init_menu_items): Use it to detect re-entrance.
b2b41304 1545 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
86fad4ec
SM
1546 (Fx_popup_menu): Remove spurious XSETFRAME.
1547
1548 * editfns.c (find_field): Make an exception for nil fields.
1549
97098195
DL
15502002-11-01 Dave Love <fx@gnu.org>
1551
1552 * m/gec63.h: Deleted.
1553
296b9246
DL
15542002-10-31 Dave Love <fx@gnu.org>
1555
1556 * xterm.c (XTread_socket): Fix last change.
1557 (xaw_scroll_callback): Cast call_data to long to avoid warning.
1558
8d2ff840
SM
15592002-10-31 Stefan Monnier <monnier@cs.yale.edu>
1560
1561 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
1562
68eb8bd5
SM
15632002-10-30 Stefan Monnier <monnier@cs.yale.edu>
1564
1565 * editfns.c (overlays_around, get_pos_property): New funs.
1566 (find_field): Use them.
1567 Also be careful not to modify POS before its last use.
1568 (Fmessage): Don't Fformat if there's nothing to format.
1569
2baf1bfa
DL
15702002-10-30 Dave Love <fx@gnu.org>
1571
1572 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
1573 [HAVE_PTY_H]; Include pty.h.
1574
1575 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
1576
1577 * xterm.c (Qeql): Declare.
1578 (Vx_keysym_table): New.
1579 (syms_of_xterm): Initialize it.
1580 (XTread_socket): Use it. Deal with ASCII keysyms.
1581 (XSetIMValues) [HAVE_X11R6]: Prototype.
1582
1583 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
1584 (lispy_kana_keys): Comment out.
1585 (make_lispy_event) [XK_kana_A]: Comment out.
68eb8bd5
SM
1586 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
1587 Fix sprintf call.
2baf1bfa
DL
1588
1589 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
1590 regexp.h change).
1591 (TERMINFO, LIBS_TERMCAP): Define.
1592
1593 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
1594 (bcmp): Define conditional on HAVE_BCMP.
1595 (NO_SIOCTL_H): Don't define.
1596 (TIOCSIGSEND): Don't make conditional on IRIX6.
1597
1598 * s/sol2-5.h: Don't include strings.h.
1599 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
1600
1601 * s/irix6-0.h (IRIX6): Don't define.
1602 (bcopy, bcmp, bzero): Don't undef.
1603
1604 * s/irix6-5.h: Don't include strings.h.
1605 (IRIX6): Don't define.
1606 (bcopy, bcmp, bzero): Don't undef.
1607
1608 * syntax.c (Fforward_comment): Doc fix.
1609
e8a32599
KS
16102002-10-29 Kim F. Storm <storm@cua.dk>
1611
1612 * process.c (Fsignal_process): Allow PROCESS to be specified by
1613 name in addition to pid (as integer or string).
1614
b37db7b4 16152002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
ce20e03e
JB
1616
1617 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
b37db7b4 1618 environments.
ce20e03e 1619
ee7ddec4
KS
16202002-10-27 Kim F. Storm <storm@cua.dk>
1621
1622 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
1623
1624 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
1625
1626 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
1627
1628 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
1629
5ab0ceed
RS
16302002-10-26 Richard M. Stallman <rms@gnu.org>
1631
1632 * editfns.c (Fformat): Detect invalid format letters for floats.
1633
be354eca
KH
16342002-10-25 Kenichi Handa <handa@m17n.org>
1635
1636 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
1637 (x_set_title): Likewise.
1638
68c7e82a
JB
16392002-10-25 Juanma Barranquero <lektu@terra.es>
1640
1641 * macgui.h:
1642 * w32gui.h: Remove definition of XColor.
1643
1644 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
1645
7a21b1f0
KS
16462002-10-24 Kim F. Storm <storm@cua.dk>
1647
1648 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
1649 Callers changed (supply dummy arg).
1650
1651 * lisp.h (get_window_cursor_type): Update prototype.
68c7e82a 1652
7a21b1f0
KS
1653 * w32term.c (x_display_and_set_cursor): Get active_cursor from
1654 get_window_cursor_type to track system caret.
1655
9c1e9d54
KS
16562002-10-24 Kim F. Storm <storm@cua.dk>
1657
1658 * process.c (Fformat_network_address): New function.
1659 (syms_of_process): Defsubr it.
1660 (list_processes_1): Use it to format :local/:remote address if
1661 service/host is not set; before emacs would crash in that case.
1662 (Fmake_network_process): Don't use Ffind_operation_coding_system
1663 to setup coding system if host or service is not set.
1664
e99833ca
JB
16652002-10-23 Juanma Barranquero <lektu@terra.es>
1666
1667 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
1668
1669 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
1670 COLORREF.
1671
1672 * macgui.h:
1673 * w32gui.h: Add definition of XColor.
1674
1675 * macfns.c:
1676 * w32fns.c:
1677 * xfaces.c: Remove definition of XColor.
1678
5e8b072b
SM
16792002-10-22 Stefan Monnier <monnier@cs.yale.edu>
1680
1681 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
1682
1683 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
1684 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
1685 window if it is dedicated.
1686 (Fshrink_window): Add preserve_before as was done for enlarge_window.
1687 (Vspecial_display_function): Update docstring.
1688
1689 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
1690 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
1691 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
1692
635d2972
SM
16932002-10-21 Stefan Monnier <monnier@cs.yale.edu>
1694
1695 * casefiddle.c (casify_region): Don't treat a prefix char as part
1696 of a word when at the beginning.
1697
d9c25020
JB
16982002-10-17 Juanma Barranquero <lektu@terra.es>
1699
1700 * lread.c (syms_of_lread): Fix typos.
1701
519a4a70
DL
17022002-10-17 Dave Love <fx@gnu.org>
1703
1704 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
1705
a8c44e39
RS
17062002-10-16 Richard M. Stallman <rms@gnu.org>
1707
1708 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
1709
41a48e45
JB
17102002-10-14 Juanma Barranquero <lektu@terra.es>
1711
1712 * w16select.c (syms_of_win16select): Fix docstring for
1713 `selection-coding-system'.
1714
1715 * w32select.c (syms_of_w32select): Likewise.
1716
240c43e8
SM
17172002-10-14 Stefan Monnier <monnier@cs.yale.edu>
1718
1719 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
1720 a backslash-quoted char.
1721 (scan_lists, scan_sexps_forward): Pacify the compiler.
1722
411df82f
RS
17232002-10-13 Richard M. Stallman <rms@gnu.org>
1724
1725 * window.c (window_scroll): Set immediate_quit.
1726
1727 * print.c (print): When backquote form is the car of a list,
1728 output in old style. Use old_backquote_output to output all
1729 comma forms inside it in old style too.
1730
1731 * buffer.h (struct buffer): Move `undo_list' down below `name'.
1732
d77b70e5
MR
17332002-10-11 Markus Rost <rost@math.ohio-state.edu>
1734
1735 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
1736 batch mode).
1737
1738 * lread.c (Fload): Doc fix (load-suffixes).
1739
d6abf018
ST
17402002-10-10 Steven Tamm <steventamm@mac.com>
1741
240c43e8
SM
1742 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
1743 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
1744 Also switch the default to Qnil from Qt.
d6abf018 1745
9793be06
KH
17462002-10-08 Kenichi Handa <handa@m17n.org>
1747
1748 * coding.c (code_convert_region): When we need more GAP for
1749 conversion, pay attention to the case that coding->produced is not
1750 greater than coding->consumed.
1751
4d46d6da
RS
17522002-10-07 Richard M. Stallman <rms@gnu.org>
1753
1754 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
1755
95fb7577
AC
17562002-10-06 Andrew Choi <akochoi@shaw.ca>
1757
1758 * macmenu.c (mac_menu_show): Add j to count menu items; match
1759 menu_item_selection to it to find selected item.
1760
a97e4138 17612002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
f7d43438
JD
1762
1763 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
1764 cases. The correct fix is to pass ReparentNotify to Xt.
1765 The shell widget interprets ConfigureNotify differently depending
1766 on if it has been reparented or not.
1767
a67a233b
MR
17682002-10-05 Markus Rost <rost@math.ohio-state.edu>
1769
1770 * editfns.c (Fformat_time_string): Doc fix.
1771
f5965ada
JPW
17722002-10-05 John Paul Wallington <jpw@shootybangbang.com>
1773
1774 * fns.c (Flength): Doc fix.
1775
8d2ff840
SM
17762002-10-04 Stefan Monnier <monnier@cs.yale.edu>
1777
1778 * keyboard.c (keyremap): New struct.
1779 (read_key_sequence): Use it: globally replace keytran_foo with
1780 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
1781 keytran_next and fkey_next to just `next'.
1782
e989b9bc
ST
17832002-10-04 Steven Tamm <steventamm@mac.com>
1784
240c43e8 1785 * macterm.c (keycode_to_xkeysym_table): Change return to be
8d2ff840 1786 treated like an X keysym.
e989b9bc 1787
a97e4138 17882002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
03318838
JD
1789
1790 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
1791 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
1792 This is to also handle x/y changes that occur because of a resize.
1793
cd1d850f
JPW
17942002-10-02 John Paul Wallington <jpw@shootybangbang.com>
1795
1796 * frame.c (Vdelete_frame_functions): New variable.
1797 (syms_of_frame): Initialize and defvar it.
1798 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
1799 it when frame's `tooltip' parameter is non-nil.
1800
1801 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
1802
f5965ada 1803 * w32fns.c (x_create_tip_frame): Likewise.
cd1d850f
JPW
1804
1805 * macfns.c (x_create_tip_frame): Likewise.
1806
5039407b
KH
18072002-09-30 Kenichi Handa <handa@m17n.org>
1808
1809 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
1810 -1 before calling ccl_driver.
1811
1812 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
1813 Only when it is non-nil, handle composition sequence.
1814 (setup_coding_system) <0>: Don't force composition handling.
1815
1816 * Makefile.in (lisp, shortlisp): Add utf-16.elc
1817
aac2d8b2
RS
18182002-09-29 Richard M. Stallman <rms@gnu.org>
1819
7058ef34
RS
1820 * search.c (Freplace_match): Adjust match data for the substitution
1821 just made in the buffer.
1822
aac2d8b2
RS
1823 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
1824 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
1825
18262002-09-27 Richard M. Stallman <rms@gnu.org>
1827
1828 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
1829 (read_char): Use them. Do all exits thru the end of the function.
1830
e21880c6
KH
18312002-09-27 Kenichi Handa <handa@etl.go.jp>
1832
1833 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
1834 is nil.
1835
563c037f
RS
18362002-09-26 Richard M. Stallman <rms@gnu.org>
1837
1838 * regex.h (__restrict_arr): Don't define if already defined.
1839
1840 * coding.c (run_pre_post_conversion_on_str):
1841 Save and restore Vdeactivate_mark.
1842
6d1b1d7b
JPW
18432002-09-26 John Paul Wallington <jpw@shootybangbang.com>
1844
1845 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
1846
54580ab2
KH
18472002-09-26 Kenichi Handa <handa@etl.go.jp>
1848
1849 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
240c43e8 1850 nonzero, try face's family at first. Otherwise try FAMILY at first.
54580ab2
KH
1851 (choose_face_font): If C is a single byte char or latin-1, call
1852 try_font_list with PREFER_FACE_FAMILY 1.
1853
282f7831
RS
18542002-09-21 Richard M. Stallman <rms@gnu.org>
1855
1856 * window.c (select_window_1): Don't select frame.
1857 Set frame's selected window only when frame itself is selected.
1858 (Fselect_window): Doc fix.
1859
454d0d5e
KS
18602002-09-18 Kim F. Storm <storm@cua.dk>
1861
1862 * process.c (make-network-process): Doc fix (there is no
1863 network-server-log-function hook).
1864
3116d142
RS
18652002-09-18 Richard M. Stallman <rms@gnu.org>
1866
1867 * print.c (print): Clear out the unused parts of Vprint_number_table.
1868 (syms_of_print): Doc fix for `print-number-table'.
1869
1870 * unexelf.c (unexec): Undo previous change.
1871
99d85a90
AS
18722002-09-17 Andreas Schwab <schwab@suse.de>
1873
1874 * m/alpha.h [LINUX]: Don't define DATA_START.
1875
c721078e
RS
18762002-09-16 Dave Love <fx@gnu.org>
1877
1878 * unexelf.c (unexec): Deal with .got, reinstating change from
1879 25-08-1999.
1880
95fb966a
RS
18812002-09-13 Richard M. Stallman <rms@gnu.org>
1882
1883 * s/sol2-6.h (UNEXEC): Comment out definition.
1884
1885 * unexsol.c (unexec): Don't downcase first letter of error msg.
1886
1887 * xfaces.c (Fcolor_supported_p): Just one arg is required.
1888
6c009b5b
MR
18892002-09-12 Markus Rost <rost@math.ohio-state.edu>
1890
1891 * unexsol.c: Include buffer.h, charset.h, coding.h.
1892
7c3cb37d
RS
18932002-09-11 Richard M. Stallman <rms@gnu.org>
1894
1895 * unexsol.c: Don't use report_file_error; do it by hand
1896 using dlerror.
1897
1898 * process.c (wait_reading_process_input, both versions):
1899 Before calling turn_on_atimers, call stop_polling.
1900
1901 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
1902
1903 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
1904 we go to too_near_end, call clear_glyph_matrix.
1905 (redisplay_window): After make_cursor_line_fully_visible,
1906 call clear_glyph_matrix and bypass `goto done'.
1907
1908 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
1909 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
1910
f95c03c6
RS
19112002-09-10 Richard M. Stallman <rms@gnu.org>
1912
1913 * fileio.c (Fdo_auto_save): Catch error making directory.
1914 Only call push_message if we need to.
1915 At the same time, make an unwind-protect to pop it.
1916 Rename local message_p to old_message_p.
1917 (do_auto_save_make_dir, do_auto_save_eh): New functions.
1918 (do_auto_save_unwind): Don't call pop_message.
1919
1920 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
1921
1922 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
1923
1924 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
1925
1926 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
1927
0a28e1ca
SM
19282002-09-10 Stefan Monnier <monnier@cs.yale.edu>
1929
1930 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
1931 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
1932 (re_match_2_internal): Be more careful with infinite loops.
1933
e00a1361 19342002-09-10 Kim F. Storm <storm@cua.dk>
2bbfbf25
KS
1935
1936 * macros.c (end_kbd_macro): New function.
1937 (Fend_kbd_macro): Use it.
1938
1939 * macros.h (end_kbd_macro): Declare extern.
1940
1941 * keyboard.c (Fdiscard_input): If defining keyboard macro,
1942 end and save it instead of discarding it.
1943
e986c175
MR
19442002-09-09 Markus Rost <rost@math.ohio-state.edu>
1945
1946 * s/sol2-6.h: Fix typo. Add comment.
1947
50332dc1
RS
19482002-09-09 Richard M. Stallman <rms@gnu.org>
1949
1950 * regex.c (regnum_t): Use signed int, not unsigned int.
1951
1952 * s/sol2-6.h: New file.
1953
1954 * s/sol2-5.h (UNEXEC): Definition deleted.
1955
de8e3806
KS
19562002-09-08 Kim F. Storm <storm@cua.dk>
1957
1958 * macros.c (executing_macro_index): Change type to EMACS_INT.
1959 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
1960
1961 * macros.h (executing_macro_index): Change type to EMACS_INT.
0a28e1ca 1962
426f6c23
RS
19632002-09-06 Richard M. Stallman <rms@gnu.org>
1964
1965 * casetab.c (set_case_table): Make canon table point to eqv table.
1966
f8f8d464
JB
19672002-09-06 Juanma Barranquero <lektu@terra.es>
1968
1969 * coding.c (syms_of_coding): Fix spacing.
1970
1971 * composite.c (Fcompose_region_internal)
1972 (Fcompose_string_internal): Likewise.
1973
1974 * data.c (Flsh): Likewise.
1975
1976 * fontset.c (Fset_fontset_font): Likewise.
1977
1978 * macfns.c (Fx_server_max_request_size): Likewise.
1979
1980 * w16select.c (syms_of_win16select): Likewise.
1981
1982 * w32select.c (syms_of_w32select): Likewise.
1983
1984 * xselect.c (syms_of_xselect): Likewise.
1985
b7c12565
RS
19862002-09-05 Richard M. Stallman <rms@gnu.org>
1987
1988 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
1989 call EXTEND_RANGE_TABLE and return a proper value.
1990 (set_image_of_range): Don't call set_image_of_range_1
1991 if no TRANSLATE or if range includes all of Latin-1.
1992 Only call it for the Latin-1 part of the range.
1993 For other cases, make two separate ranges,
1994 one for the original specified characters and one for
1995 their case-conversions.
1996
4d8da98b
RS
19972002-09-04 Richard M. Stallman <rms@gnu.org>
1998
1999 * s/sol2-5.h (UNEXEC): Use unexsol.o.
2000
2001 * window.c (displayed_window_lines): Correct for one-off bug
2002 in HEIGHT on non-window displays.
2003
2004 * regex.c (set_image_of_range_1): New function.
2005 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
2006 Return a value to indicate running out of memory.
2007 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
2008 (extend_range_table_work_area): New subroutine.
2009 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
2010 Different calling conventions, and used from set_image_of_range{,_1}.
2011 (IMMEDIATE_QUIT_CHECK): Definitions moved.
2012
6218196f
JB
20132002-09-04 Juanma Barranquero <lektu@terra.es>
2014
2015 * makefile.w32-in: All dependencies updated.
2016
dfe15ea3
RS
20172002-09-01 Richard M. Stallman <rms@gnu.org>
2018
69506e67
RS
2019 * unexsol.c: New file.
2020
2021 * xfns.c (Qbox): Declare external, don't define.
2022
2023 * xdisp.c (redisplay_window) <force-start case>:
2024 If point is on semi-visible last line, reposition
2025 it at previous line.
2026
dfe15ea3
RS
2027 * alloc.c (display_malloc_warning): Use display-warning.
2028 (malloc_warning_1): Function deleted.
2029
2030 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
2031
2032 * lread.c (read1): Handle #! by skipping the line.
2033
20342002-08-31 Richard M. Stallman <rms@gnu.org>
2035
2036 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
2037 Don't include LDFLAGS.
2038 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
2039
97acc803
EZ
20402002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
2041
2042 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
2043 member of x_display_info unless we compile for some window system.
2044
e0f7b1a8
KS
20452002-08-31 Kim F. Storm <storm@cua.dk>
2046
2047 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
2048 (get_window_cursor_type): Don't use them.
2049 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
2050
a30c876a
KH
20512002-08-30 Kenichi Handa <handa@etl.go.jp>
2052
2053 * xdisp.c (get_next_display_element): Fix previous change.
2054
e2d9d8a1
AC
20552002-08-30 Andrew Choi <akochoi@shaw.ca>
2056
2c568af5 2057 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
ca45961d
AC
2058 (expose_window): Use it to fix the display of overlapping
2059 rows (merge code from xterm.c).
2060
e2d9d8a1
AC
2061 * macfns.c (Qbox): Add extern declaration.
2062
842a9389
JB
20632002-08-30 Juanma Barranquero <lektu@terra.es>
2064
ab0bb234
JB
2065 * w32fns.c (Qbox): Make extern.
2066 (syms_of_w32fns): Remove initialization of Qbox.
2067
b37db7b4
JB
20682002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
2069
2070 * xfns.c (Fx_open_connection): Fix error message.
842a9389 2071
654d5b91
KS
20722002-08-30 Kim F. Storm <storm@cua.dk>
2073
2074 The following changes consolidates the handling of the cursor
2075 type in xdisp.c, moving duplicate code and functionality from
2076 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
2077
2078 * frame.h (enum text_cursor_kinds): Consolidated here.
2079 Added DEFAULT_CURSOR value.
2080 (struct frame) <desired_cursor, cursor_width>
2081 <blink_off_cursor, blink_off_cursor_width>: New fields.
2082 Consolidated from output_x, output_w32 and output_mac structs.
2083 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2084 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
2085
2086 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
2087 Variables consolidated here.
2088 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
2089 (Vcursor_in_non_selected_windows): Renamed from
2090 cursor_in_non_selected_windows and changed to Lisp_Object.
2091 (syms_of_xdisp): Define and staticpro new and moved variables.
2092 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
2093 consolidated here. Recognize Qhollow setting.
2094 (set_frame_cursor_types): New function to set frame cursor types
2095 based on the frame parameters.
2096 (get_window_cursor_type): New function to calculate new cursor
2097 type and width for the specified window. Based on duplicated
2098 code consolidated here.
2099 Enhancements: cursor-in-non-selected-windows may be a cursor type,
2100 check buffer-local alternate-cursor-type and blink-cursor-alist
2101 before using built-in blink off methods.
2102
2103 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
2104
2105 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
2106 (get_specified_cursor_type, get_window_cursor_type)
2107 (set_frame_cursor_types): Added prototypes.
2108
2109 * macfns.c (x_specified_cursor_type): Removed.
2110 (x_set_cursor_type): Use set_frame_cursor_types.
c76654a2
KS
2111 (Qbar, Qbox): Removed.
2112 (syms_of_macfns): Don't intern or staticpro them.
842a9389 2113
654d5b91
KS
2114 * macterm.c (x_specified_cursor_type): Remove prototype.
2115 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2116 (x_display_and_set_cursor): Use get_window_cursor_type.
2117 Remove unused local variables cursor_non_selected, active_cursor.
2118 Redraw cursor if hbar cursor width changes.
2119 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
2120
2121 * macterm.h (enum text_cursor_kinds): Removed.
2122 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
2123 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2124 (FRAME_DESIRED_CURSOR): Macro removed.
842a9389 2125
654d5b91
KS
2126 * w32fns.c (Vblink_cursor_alist): Removed.
2127 (Qbar, Qhbar, Qbox, Qhollow): Removed.
2128 (syms_of_w32fns): Don't intern, staticpro, or define them.
2129 (x_specified_cursor_type): Removed.
2130 (x_set_cursor_type): Use set_frame_cursor_types.
2131
2132 * w32term.c (x_specified_cursor_type): Remove prototype.
2133 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2134 (x_display_and_set_cursor): Use get_window_cursor_type.
2135 Remove unused local variables cursor_off_state.
2136 Redraw cursor if hbar cursor width changes.
6b3acc48 2137 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
842a9389 2138
654d5b91
KS
2139 * w32term.h (enum text_cursor_kinds): Removed.
2140 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
2141 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2142 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2143 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
6b3acc48
KS
2144 (struct w32_display_info) <x_highlight_frame>: Renamed member from
2145 w32_highlight_frame.
842a9389 2146
654d5b91
KS
2147 * xfns.c (Vblink_cursor_alist): Removed.
2148 (Qbar, Qhbar, Qbox, Qhollow): Removed.
2149 (syms_of_xfns): Don't intern, staticpro, or define them.
2150 (x_specified_cursor_type): Removed.
2151 (x_set_cursor_type): Use set_frame_cursor_types.
2152
2153 * xterm.c (x_specified_cursor_type): Remove prototype.
2154 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2155 (x_display_and_set_cursor): Use get_window_cursor_type.
2156 Remove unused local variables cursor_off_state.
2157 Redraw cursor if hbar cursor width changes.
2158
2159 * xterm.h (enum text_cursor_kinds): Removed.
2160 (struct output_x) <current_cursor, desired_cursor, cursor_width>
2161 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2162 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2163 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
2164 (x_specified_cursor_type): Remove prototype.
842a9389 2165
a007b9d2
RS
21662002-08-28 Richard M. Stallman <rms@gnu.org>
2167
2168 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2169 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2170 (Vblink_cursor_alist): New variable.
2171 (syms_of_w32fns): Initialize and defvar it.
2172 (x_specified_cursor_type): Recognize Qbox for filled box.
2173 Exceptions are hollow boxes.
2174 (Qbox, Qhollow): New variables.
2175 (syms_of_w32fns): Initialize and staticpro them.
2176
2177 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2178 New macros.
2c568af5
SM
2179 (struct w32_output): New fields blink_off_cursor,
2180 blink_off_cursor_width.
a007b9d2
RS
2181 (FRAME_CURSOR_WIDTH): New macro.
2182
2183 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2184 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2185
2186 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
2187 for bar cursor.
2188
2189 * w32term.c (expose_overlaps): New function.
2190 (expose_window): Use it to fix the display of overlapping rows.
2191
2dc520b6
SJ
21922002-08-28 Simon Josefsson <jas@extundo.com>
2193
2194 * xfns.c (Fx_open_connection): Improve help when X connection
2195 fails, xhost is insecure and xauth is better.
2196
402b32b5
JB
21972002-08-28 Juanma Barranquero <lektu@terra.es>
2198
a821edb8
JB
2199 * makefile.w32-in: Add missing dependencies on w32term.h and
2200 composite.h.
2201
402b32b5
JB
2202 * emacs.c (USAGE1): Add missing newline.
2203
ad8d730c
AC
22042002-08-27 Andrew Choi <akochoi@shaw.ca>
2205
2206 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
2207
6e910e07
RS
22082002-08-27 Richard M. Stallman <rms@gnu.org>
2209
2210 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2211 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2212 (Vblink_cursor_alist): New variable.
2213 (syms_of_xfns): Initialize and defvar it.
2214 (x_specified_cursor_type): Recognize Qbox for filled box.
2215 Exceptions are hollow boxes.
2216 (Qbox, Qhollow): New variables.
2217 (syms_of_xfns): Initialize and staticpro them.
2218
2219 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2220 New macros.
2221 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
402b32b5 2222
6e910e07
RS
2223 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2224 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2225
2226 * emacs.c (main): Handle --script.
2227 (USAGE1): Mention --script.
2228 (standard_args): Define sort order for --script.
2229
22302002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
2231
2232 * xdisp.c (redisplay_updating_p): Variable removed.
2c568af5
SM
2233 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
2234 New variables.
6e910e07
RS
2235 (init_iterator): Don't free realized faces if
2236 inhibit_free_realized_faces is set.
2237 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
2238 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
2239 initialize Qinhibit_free_realized_faces.
2240
2241 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
2242 when iterator is adding glyphs to a glyph matrix.
2243
456c80d6
KH
22442002-08-27 Kenichi Handa <handa@etl.go.jp>
2245
2246 * xdisp.c (get_next_display_element): In unibyte case, don't use
2247 octal form for such eight-bit characters that can be converted to
2248 multibyte char.
2249
6bc85c3b
KS
22502002-08-26 Kim F. Storm <storm@cua.dk>
2251
2c568af5
SM
2252 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
2253 and background colors. From Joe Buehler (tiny change).
6bc85c3b 2254
f49656ec
MB
22552002-08-26 Miles Bader <miles@gnu.org>
2256
2257 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
2258
19580e2c
AC
22592002-08-25 Andrew Choi <akochoi@shaw.ca>
2260
a6311b2f
AC
2261 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
2262 defined instead of MAC_OSX.
2263
2264 * s/darwin.h (select): Define select to sys_select only if
2265 HAVE_CARBON is defined.
2266 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
5cb724f0 2267 (DONT_REOPEN_PTY): #def it.
402b32b5 2268
19580e2c
AC
2269 * macterm.c (XTread_socket): Remove code to call
2270 SendEventToEventTarget for keys with command modifiers when
2271 mac_command_key_is_meta is nil.
2272
addf35fd
AS
22732002-08-24 Andreas Schwab <schwab@suse.de>
2274
2275 * eval.c (Fdefvar): Fix last change.
2276
729d9038
RS
22772002-08-23 Richard M. Stallman <rms@gnu.org>
2278
2279 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
2280 Record variables in load history as (defvar . VAR).
2281 (Fdefvar): Don't record in load history if no initial value.
2282 (Qdefvar): New variable.
2283 (syms_of_eval): Init and staticpro it.
2284
2285 * lread.c (syms_of_lread): Doc fix.
2286 (build_load_history): Use Fmember to see if a definition
2287 is already in the Vload_history element.
2288
2289 * process.c (Fstart_process): Remove /: from program name.
2290
2291 * emacs.c (decode_env_path): Don't add /: if file name handler
2292 has a `safe-magic' property.
2293
2294 * callproc.c (Fcall_process): Remove /: from program name.
2295
36595814
SM
22962002-08-23 Stefan Monnier <monnier@cs.yale.edu>
2297
2298 * regex.c (PATFETCH): Remove the translating fetch.
2299 (PATFETCH_RAW): Rename to PATFETCH.
2300 (set_image_of_range): New fun.
2301 (SET_RANGE_TABLE_WORK_AREA): Use it.
2302 (regex_compile): Don't translate the pattern chars so eagerly.
2303 Only do it when inserting an `exactn' bytecode or when handling
2304 a char-range.
2305 (mutually_exclusive_p): Avoid empty statement.
2306
f92ae6be
KS
23072002-08-22 Kim F. Storm <storm@cua.dk>
2308
2309 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
2310 end up on a partially visible line; this reverts a specific part
2311 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
2312 display error which has been reported several times now.
2313 However it introduces the problem that changes was supposed to fix.
2314 See my comments in the source if you want to debug this further.
2315
9bbe0341
KH
23162002-08-20 Kenichi Handa <handa@etl.go.jp>
2317
2318 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
2319
100c44b7
EZ
23202002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2321
aac06fd4
EZ
2322 * msdos.c (croak): Add `void' to definition.
2323
92b304ac
RS
2324 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
2325 Don't define them, they are defined in msdos.c.
feb67dfe 2326
a8c1733b
EZ
2327 * mem-limits.h [MSDOS]: Declare etext.
2328
100c44b7
EZ
2329 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
2330 `const' since CORRECT_DIR_SEPS modifies its target.
2331
dec7e302
KS
23322002-08-19 Kim F. Storm <storm@cua.dk>
2333
2334 * keyboard.c (Fclear_this_command_keys): Added optional arg
2335 KEEP-RECORD to avoid clearing lossage when we just want to clear
2336 the current key sequence (kmacro needs this).
2337
775b3d2d
KH
23382002-08-19 Kenichi Handa <handa@localhost>
2339
2c568af5 2340 * composite.c (run_composition_function): Call FUNC if it is fboundp.
775b3d2d
KH
2341
2342 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
2343 cons, return Qnil.
2344
c387c986
RS
23452002-08-17 Richard M. Stallman <rms@gnu.org>
2346
2347 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
2348
2349 * sysdep.c [!VMS]: Include sys/files.h.
2350
2351 * editfns.c (save_restriction_restore): Defend from unchained marker.
2352
2353 * buffer.c (overlays_at): Handle extending vec uniformly.
2354 (overlays_in): Handle extending vec from length 0 as in overlays_at.
2355
1000788b
AC
23562002-08-15 Andrew Choi <akochoi@shaw.ca>
2357
2358 * mac.c (init_mac_osx_environment): New function.
2359
2360 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
2361
82802164
KS
23622002-08-14 Kim F. Storm <storm@cua.dk>
2363
2364 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
2365 executing macro before appending to it (when used from Lisp).
2366 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
2367 which is called prior to each iteration of macro (for kmacro.el).
2368 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
2369
2370 * lisp.h (Fexecute_kbd_macro): Update prototype.
2371
2372 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
402b32b5 2373
13a45e6c
KH
23742002-08-14 Kenichi Handa <handa@etl.go.jp>
2375
2376 * xselect.c (QUTF8_STRING): New variable.
2377 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
2378 (x_atom_to_symbol): Likewise.
2379 (x_get_local_selection): New argument local_request. If it is
2380 nonzero, call handler_fn with the second arg nil.
2381 (x_handle_selection_request): Call x_get_local_selection with
2382 local_request 0.
2383 (lisp_data_to_selection_data): Don't encode the string here.
2384 (Fx_get_selection_internal): Call x_get_local_selection with
2385 local_request 1.
2386 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
2387
2388 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
2389
2390 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
2391
79fab26b
RS
23922002-08-13 Richard M. Stallman <rms@gnu.org>
2393
2394 * minibuf.c (Fminibufferp): New function.
2395 (syms_of_minibuf): Defsubr it.
2396 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
2397
96d2e64d
GM
23982002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
2399
2400 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
2401
450565cb
RS
24022002-08-12 Richard M. Stallman <rms@gnu.org>
2403
2404 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
402b32b5 2405 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
450565cb
RS
2406 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
2407 already.
2408
2409 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
2410
5883787c
AC
24112002-08-11 Andrew Choi <akochoi@shaw.ca>
2412
2413 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
2414 (Vmac_pass_command_to_system): New variable.
2415 (Vmac_pass_control_to_system): New variable.
2416 (do_mouse_moved): Check wp with is_emacs_window.
2c568af5
SM
2417 (XTread_socket): Check window_ptr with is_emacs_window.
2418 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
5883787c
AC
2419 events back to Mac Toolbox for processing, depending on values of
2420 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
2421 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
2422 Vmac_pass_control_to_system.
2423
054e62ae
KH
24242002-08-10 Kenichi Handa <handa@etl.go.jp>
2425
2426 * coding.c (unencodable_char_position): New function.
2427 (Funencodable_char_position): New function.
2428 (syms_of_coding): Defsubr Funencodable_char_position.
2429
8030369c
AC
24302002-08-10 Andrew Choi <akochoi@shaw.ca>
2431
2432 * mac.c (sys_select) [MAC_OSX]: New function.
2433
2434 * macterm.c (MakeMeTheFrontProcess): New function.
2435 (mac_initialize): Call MakeMeTheFrontProcess.
2436
2437 * s/darwin.h: Define select to sys_select.
2438
1e7c162f
RS
24392002-08-09 Richard M. Stallman <rms@gnu.org>
2440
2441 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
2442
d43be70c
GM
24432002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
2444
2445 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
2446 end of the buffer.
2447
d90ed3b4
KR
24482002-08-08 Ken Raeburn <raeburn@mit.edu>
2449
2c568af5 2450 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
d90ed3b4 2451
b177738e
KR
2452 * puresize.h (BASE_PURESIZE): Increase to 910000.
2453
b12a8058
KH
24542002-08-08 Kenichi Handa <handa@etl.go.jp>
2455
2456 * coding.c (Ffind_operation_coding_system): For write-region, if
2457 VISIT is a filename, make it the target.
2458
46e3984f
RS
24592002-08-07 Richard M. Stallman <rms@gnu.org>
2460
2461 * alloc.c (mark_object): Detect long lists for debugging.
2462 (mark_object_loop_halt): New variable.
2463
2464 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
2465
2466 * data.c (Fmake_variable_frame_local): Doc fix.
2467
86d98c33
RS
24682002-08-01 David Ponce <david@dponce.com>
2469
2470 * w32menu.c (local_heap, local_alloc, local_free): New macros.
2471 (malloc_widget_value, free_widget_value)
2472 (w32_free_submenu_strings): Use them.
2473
2474 (push_submenu_start, push_submenu_end, push_left_right_boundary)
2475 (push_menu_pane, push_menu_item, single_keymap_panes)
2476 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
2477 (single_submenu, set_frame_menubar)
2478 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
2479
6c465a15 2480 (Fx_popup_menu): Don't show pop up menu until preceding one is
86d98c33
RS
2481 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
2482
2483 * w32menu.c: Changes adapted from xmenu.c
2484 (set_frame_menubar): First parse all submenus,
2485 then make widget_value trees from them.
2486 Don't allocate any widget_value objects
2487 until we are done with the parsing.
2488 (parse_single_submenu): New function.
2489 (digest_single_submenu): New function.
2490 (single_submenu): Function deleted, replaced by those two.
2491
44fab9c1
AC
24922002-08-04 Andrew Choi <akochoi@shaw.ca>
2493
2494 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
2495 returns a valid window pointer before proceeding for keyDown and
2496 autoKey events.
2497
742fbed7
AC
24982002-08-03 Andrew Choi <akochoi@shaw.ca>
2499
2500 * macterm.c (USE_CARBON_EVENTS): New macro.
2501 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
2502 (x_iconify_frame): Call CollapseWindow.
2503 (Vmac_reverse_ctrl_meta): New variable.
2504 (Vmac_wheel_button_is_mouse_2): New variable.
2505 (init_mac_drag_n_drop): New function.
2506 (mac_do_receive_drag): New function.
2507 (mac_handle_service_event): New function.
2508 (init_service_handler): New function.
2509 (mac_to_emacs_modifiers): New function.
2510 (mac_event_to_emacs_modifiers): New function.
2511 (mac_get_mouse_btn): New function.
2512 (mac_convert_event_ref): New function.
2513 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
2514 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
2515 mac_get_mouse_btn.
2c568af5 2516 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
742fbed7
AC
2517
2518 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
2519 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
2520 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
2521 TOOL_BAR_EVENT for MAC_OS as well.
2522 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
2523 as for WINDOWS_NT.
2524 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
2525
2c568af5 2526 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
402b32b5 2527
db0bb807
GM
25282002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
2529
2530 * xdisp.c (forward_to_next_line_start): Fix a condition that
2531 lead to a newline being skipped.
2532
36426689
AC
25332002-08-02 Andrew Choi <akochoi@shaw.ca>
2534
2535 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
2536
ad44f2a1
RS
25372002-08-01 Richard M. Stallman <rms@gnu.org>
2538
2539 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
2540
9794a8cd
AC
25412002-07-31 Andrew Choi <akochoi@shaw.ca>
2542
41428ec4
AC
2543 * macfns.c: #undef init_process before #define-ing it.
2544
9794a8cd
AC
2545 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
2546 HAVE_CARBON is defined.
2547
ced89c24
RS
25482002-07-31 Richard M. Stallman <rms@gnu.org>
2549
2550 * xmenu.c (set_frame_menubar): First parse all submenus,
2551 then make widget_value trees from them.
2552 Don't allocate any widget_value objects
2553 until we are done with the parsing.
2554 (parse_single_submenu): New function.
2555 (digest_single_submenu): New function.
2556 (single_submenu): Function deleted, replaced by those two.
2557
45de4a6f
JB
25582002-07-30 Juanma Barranquero <lektu@terra.es>
2559
2560 * w32proc.c (syms_of_ntproc): Fix docstring of
2561 `w32-get-true-file-attributes'.
2562
3ea1bfb2
RS
25632002-07-28 Richard M. Stallman <rms@gnu.org>
2564
2565 * s/hpux8.h (HPUX8): Define this before including hpux.h.
2566 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
45de4a6f 2567
3ea1bfb2
RS
2568 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
2569
2570 * keyboard.c (make_lispy_event):
2571 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
2572 Explicitly clear up_modifier in event->modifiers.
2573
01af8a38
RS
25742002-07-27 Richard M. Stallman <rms@gnu.org>
2575
2576 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
2577
2578 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
2579 for bar cursor.
2580
5483cd4e
KH
25812002-07-26 Kenichi Handa <handa@etl.go.jp>
2582
2583 * coding.c (detect_coding_iso2022): While checking a byte sequence
2584 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
2585 it in the normal loop.
2586
acfca545
RS
25872002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
2588
2589 * xterm.c (expose_overlaps): New function.
2590 (expose_window): Use it to fix the display of overlapping rows.
2591
2592 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
2593
be3abfa2
KR
25942002-07-23 Ken Raeburn <raeburn@gnu.org>
2595
2596 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
2597 since it only depends on XUINT.
2598
2599 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
2600 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
2601 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
2602 Macros deleted.
2603
2604 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
2605 its value over other approaches.
2606 * sysdep.c (start_of_data): Don't define the function if a macro
2607 form has been defined.
2608
9a654855
RS
26092002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
2610
2611 * xdisp.c (redisplay_updating_p): New variable.
2612 (init_iterator): Don't free realized faces when
2613 redisplay_updating_p is set.
2614 (redisplay_internal): Set redisplay_updating_p while updating
2615 the display.
2616
6076e561
RS
26172002-07-23 Richard M. Stallman <rms@gnu.org>
2618
2619 * editfns.c (Fmessage): Treat "" like nil.
2620
1d1b6e6a
KH
26212002-07-23 Kenichi Handa <handa@etl.go.jp>
2622
2c568af5
SM
2623 * xdisp.c (face_before_or_after_it_pos):
2624 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
1d1b6e6a 2625
c9a883b8
JB
26262002-07-22 Juanma Barranquero <lektu@terra.es>
2627
2c568af5
SM
2628 * callproc.c (init_callproc) [DOS_NT]:
2629 Initialize Vshared_game_score_directory to nil.
c9a883b8
JB
2630 (syms_of_callproc) [DOS_NT]: Likewise.
2631
72b8c434
RS
26322002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
2633
2634 * xdisp.c (display_line): Replace an abort with xassert.
2635
a8bbe549
RS
26362002-07-21 Richard M. Stallman <rms@gnu.org>
2637
2638 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
2639 and END_UNCHANGED when setting buffer_unchanged_p.
2640 Use current_matrix_up_to_date_p to decide whether to use
2641 try_cursor_movement.
2642
2643 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
2644
2645 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
2646
2647 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
2648 Set to nil if dir does not exist.
2649 (syms_of_callproc): Init unconditionally and simply.
2650
2651 * buffer.c (Fbuffer_list): Doc fix.
2652
bb63c5c9
KR
26532002-07-21 Ken Raeburn <raeburn@gnu.org>
2654
56468649
KR
2655 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
2656
bb63c5c9 2657 * buffer.c (mmap_realloc): When shrinking, make sure number of
3fb7ef6f 2658 pages to unmap is rounded towards zero.
bb63c5c9 2659
4648267b 2660 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
915882da 2661 (XSETINT): Deleted.
4648267b 2662
b0e057bc
KR
2663 * m/att3b.h (XINT): Don't define.
2664 (VALBITS, VALMASK, XTYPE): Deleted.
2665 (DATA_SEG_BITS): Define.
2666 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
2667 ARRAY_MARK_FLAG): Deleted.
2668 (DATA_SEG_BITS): Define.
2669 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
2670 (DATA_SEG_BITS): Define.
2671
56592beb
RS
26722002-07-20 Richard M. Stallman <rms@gnu.org>
2673
2674 * print.c (print_error_message): New args CONTEXT and CALLER.
2675 Calls changed.
45de4a6f 2676
56592beb
RS
2677 * lisp.h (print_error_message): Declare new args.
2678
2679 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
2680 and CONTEXT to print_error_message, don't print them here.
2681 For a Quit, don't use Vsignaling_function.
2682 Call message_log_maybe_newline.
45de4a6f 2683
56592beb
RS
2684 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
2685
26862002-07-20 Kim F. Storm <storm@cua.dk>
2687
2688 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
2689
dffb0c47
KR
26902002-07-19 Ken Raeburn <raeburn@gnu.org>
2691
2692 * bytecode.c (struct byte_stack): Pointers into byte string now
2693 point to const.
2694 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
2695 const.
2696 * charset.h (BCOPY_SHORT): Source pointer now points to const.
2697 * coding.c (encode_eol, detect_coding, detect_eol):
2c568af5
SM
2698 (decode_coding, encode_coding, detect_coding_system):
2699 Source strings now treated as const.
dffb0c47
KR
2700 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
2701 modify Lisp string contents.
2702 * coding.h (decode_coding, encode_coding, detect_coding,
2703 detect_eol): Declarations updated.
2704 * composite.c (compose_chars_in_text): Treat Lisp string contents
2705 as const.
2706 * dispnew.c (safe_bcopy): Source pointer now points to const.
2707 * lisp.h (STRING_COPYIN): New macro.
2708 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
2709 (internal_with_output_to_temp_buffer): Declarations updated.
2710 * print.c (temp_output_buffer_setup):
2711 (internal_with_output_to_temp_buffer): Buffer name argument is now
2712 pointer to const.
2713 * sound.c (struct sound_device): Function pointer field "write"
2714 buffer argument now points to const.
2715 (vox_write): Buffer argument points to const.
2716 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
2717 contents as const.
405ea71c
KR
2718 * sysdep.c (emacs_write): Buffer pointer now const.
2719 * term.c (encode_terminal_code): Buffer pointer now const.
2c568af5 2720 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
dffb0c47 2721 (x_face_list_fonts, x_update_menu_appearance):
2c568af5 2722 (hash_string_case_insensitive): Treat Lisp string contents as const.
dffb0c47 2723
dd8d66ad
JB
27242002-07-19 Juanma Barranquero <lektu@terra.es>
2725
0dac4f85 2726 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
8cfd6446 2727 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
0dac4f85 2728
dd8d66ad
JB
2729 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
2730
2731 * fileio.c (syms_of_fileio): Likewise.
2732
f33f4398
RS
27332002-07-18 Richard M. Stallman <rms@gnu.org>
2734
2735 * data.c (Fdefalias): Doc fix.
2736
f860212e
DL
27372002-07-17 Dave Love <fx@gnu.org>
2738
46f4bf30
DL
2739 * intervals.h (text_property_stickiness): Use P_.
2740
f860212e
DL
2741 * ccl.c: Remove `emacs' conditionals.
2742 (ccl_backtrace_table): Fix size spec.
2743 (ccl_driver): Fix type errors.
2744
674537ea
KR
27452002-07-16 Ken Raeburn <raeburn@gnu.org>
2746
bd66096a
KR
2747 * alloc.c (xstrdup, make_string, make_unibyte_string)
2748 (make_multibyte_string, build_string): String pointer args now
2749 point to const.
2750 * charset.c (find_charset_in_text, c_string_width):
2751 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
2752 * fileio.c (report_file_error):
2753 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
2754 (count_combining_before, count_combining_after, insert_1_both):
2755 (insert, insert_and_inherit, insert_string):
2756 (insert_before_markers, insert_before_markers_and_inherit):
2757 * lread.c (intern, oblookup, hash_string):
2758 * minibuf.c (temp_echo_area_glyphs):
2759 * search.c (fast_c_string_match_ignore_case):
2760 * sysdep.c (emacs_open, set_file_times):
2761 * xfaces.c (xstricmp):
2762 * xdisp.c (store_frame_title, string_char_and_length):
2763 (message_dolog, message2, message2_nolog, set_message): Likewise.
2764 (set_message_1): Cast message string argument to const pointer.
2765 * editfns.c (general_insert_function): Insertion function now
2766 takes pointer to const for input data.
2767 * charset.h (find_charset_in_text, c_string_width):
2768 (parse_str_as_multibyte): Declarations updated.
2769 * dispextern.h (xstricmp): Declaration updated.
2770 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
2771 (count_size_as_multibyte, count_combining_before):
2772 (count_combining_after, insert_1, insert_1_both, message_dolog):
2773 (insert, insert_and_inherit, insert_before_markers)
2774 (insert_before_markers_and_inherit, set_message, message2):
2775 (message2_dolog, build_string, make_string, make_unibyte_string):
2776 (make_multibyte_string, intern, oblookup, report_file_error):
2777 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
2778 (emacs_open, xstrdup): Declarations updated.
2779 * systime.h (set_file_times): Declaration updated.
2780
2781 * charset.c (find_charset_in_text, lisp_string_width): Use const
2782 for pointer to lisp string data.
2783 * charset.h (FETCH_STRING_CHAR_ADVANCE):
2784 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
2785 * coding.c (Ffind_coding_systems_region_interval):
2786 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
2787 (Fmake_directory_internal, Fdelete_directory):
2788 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
2789 * fontset.c (font_family_registry, fs_query_fontset):
2790 (list_fontsets):
2791 * frame.c (Fframe_parameter):
2792 * keyboard.c (cmd_error_internal):
2793 * keymap.c (Fdescribe_buffer_bindings):
2794 * lread.c (complete_filename_p, openp):
2795 * minibuf.c (Fminibuffer_complete_word):
2796 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
2797 (face_before_or_after_it_pos, next_element_from_string):
2798 (get_overlay_arrow_glyph_row, display_mode_element):
2799 (decode_mode_spec_coding):
2800 * xterm.c (same_x_server): Likewise.
2801
943afcc7
KR
2802 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
2803 settings of non-existent fields.
2804
2805 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
2806 copy a lisp value.
2807
2808 * lread.c (Fintern_soft): Use string macros instead of
2809 Lisp_String fields.
1b049b51
KR
2810 * keyboard.c (echo_char, parse_modifiers_uncached):
2811 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
943afcc7
KR
2812 * textprop.c (validate_interval_range, interval_of): Likewise.
2813
36595814 2814 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9f5348e3 2815
36595814
SM
2816 * charset.h (FETCH_STRING_CHAR_ADVANCE)
2817 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9f5348e3
KR
2818 XSTRING()->size_byte.
2819
7da167cd
KR
2820 * lisp.h (SDATA, SREF): Produce rvalue.
2821 (SSET): New macro.
2822 * alloc.c (make_event_array): Use SSET for storing into a string.
2823 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
2824 a string.
2825 * casefiddle.c (casify_object): Use SSET.
36595814
SM
2826 * charset.h (FETCH_STRING_CHAR_ADVANCE)
2827 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
7da167cd
KR
2828 address of string contents.
2829 * data.c (Faref): Use SDATA.
2830 (Faset): Use SDATA, SSET.
2831 * dired.c (directory_files_internal): Use SSET.
2832 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
2833 (Fread_file_name): Use SREF, SSET.
2834 * fns.c (concat): Use SSET.
2835 (concat, Fdelete): Use SDATA.
2836 * insdel.c (insert_from_string_1): Use SDATA.
2837 * keyboard.c (Fevent_convert_list): Use SREF.
2838 * lread.c (Fload): Use SDATA, SSET.
2839 * macfns.c (validate_x_resource_name): Use SSET.
2840 * process.c (status_message): Use SSET.
2841 * search.c (wordify): Use SDATA.
2842 (Freplace_match): Use SREF.
2843 * w32fns.c (validate_x_resource_name): Use SSET.
2844 * xfns.c (validate_x_resource_name): Use SSET.
2845 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
674537ea 2846
9ee49ebc
RS
28472002-07-16 Richard M. Stallman <rms@gnu.org>
2848
2849 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
2850
2851 * xdisp.c (reconsider_clip_changes):
2852 Don't test prevent_redisplay_optimizations_p.
2853 (redisplay_internal): Test prevent_redisplay_optimizations_p
2854 along with clip_changed in some cases.
2855 (try_window_id): Likewise.
2856 (redisplay_window): New local var buffer_unchanged_p.
2857
2858 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
2859
2860 * process.c (create_process): Test USG_SUBTTY_WORKS.
2861 (process_send_signal): Clean up handling of GID.
2862 Detect errors in ioctls meant to set GID.
2863
2864 * window.c (temp_output_buffer_show):
2865 Don't set prevent_redisplay_optimizations_p.
2866
d907a3bf
JB
28672002-07-15 Juanma Barranquero <lektu@terra.es>
2868
2869 * eval.c (Fdefvaralias): Add docstring argument.
2870
9056febe
KR
28712002-07-15 Ken Raeburn <raeburn@gnu.org>
2872
2873 * lisp.h (STRING_INTERVALS): Produce rvalue.
2874 (STRING_SET_INTERVALS): New macro.
2875 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
2876 * fns.c (Fstring_as_multibyte): Likewise.
979a8abc
SM
2877 * intervals.c (balance_possible_root_interval, delete_interval)
2878 (create_root_interval, copy_intervals_to_string): Likewise.
9056febe
KR
2879 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
2880 instead of 0.
2881
d5db4077
KR
28822002-07-14 Ken Raeburn <raeburn@gnu.org>
2883
bee91904
KR
2884 * lisp.h (STRING_SET_CHARS): New macro.
2885 (SCHARS, SBYTES): Produce rvalues.
2886 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
2887 * fns.c (concat): Likewise.
2888 * lread.c (read_vector): Likewise.
2889
d5db4077
KR
2890 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
2891 (STRING_SET_UNIBYTE): New macro.
2892 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
2893 length of -1) changed to use STRING_SET_UNIBYTE.
d5db4077
KR
2894 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2895 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
2896 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
2897 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
2898 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
2899 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
2900 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
2901 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
2902 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2903 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
2904 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
2905 STRING_BYTES or indirection changed to SCHARS, SBYTES,
2906 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
2907 unchanged for now.
2908
aae2ce50
KS
29092002-07-13 Kim F. Storm <storm@cua.dk>
2910
2911 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
2912
a8fda945
RS
29132002-07-12 Richard M. Stallman <rms@gnu.org>
2914
32a86c99
RS
2915 * fileio.c (Fwrite_region): Doc fix.
2916
a8fda945
RS
2917 * print.c (print_error_message): Don't handle Vsignaling_function here.
2918
2919 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
2920 (command_loop_1): Avoid certain actions after memory-full error.
2921
2922 * eval.c (Fsignal): Don't call cancel_hourglass.
2923 For a memory-full error, don't call Vsignal_hook_function
2924 and don't set Vsignaling_function.
2925
2926 * process.c (process_send_signal): Add abort call.
2927
35936c5c
MR
29282002-07-11 Markus Rost <rost@math.ohio-state.edu>
2929
2930 * keymap.c (Fkey_binding): Fix typo.
2931
42cec426
RS
29322002-07-11 Richard M. Stallman <rms@gnu.org>
2933
a8fda945
RS
2934 * alloc.c (Vmemory_full): New variable.
2935 (Vmemory_signal_data): Renamed from memory_signal_data.
2936 Uses changed.
2937 (syms_of_alloc): Defvar them.
2938 (memory_full, buffer_memory_full): Set Vmemory_full.
979a8abc 2939
a8fda945
RS
2940 * lisp.h (Vmemory_full): Add declaration.
2941 (current_column, indented_beyond_p): Change declaration.
2942
2943 * indent.c (last_known_column): Declare as double, not float.
2944 (current_column, current_column_1, string_display_width)
2945 (position_indentation): Return `double'.
2946 (indented_beyond_p): Arg `column' is `double'. Callers changed.
979a8abc 2947
a8fda945 2948 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
979a8abc
SM
2949 (back_to_previous_visible_line_start)
2950 (reseat_at_next_visible_line_start, next_element_from_buffer):
a8fda945
RS
2951 Use `double', not `float', when calling indented_beyond_p.
2952
42cec426
RS
2953 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
2954
2955 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
2956
89297f23
JB
29572002-07-11 Juanma Barranquero <lektu@terra.es>
2958
71c5e9bb
JB
2959 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
2960 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
2961 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
2962 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
2963 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
2964 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
89297f23 2965
3cca0d40
JB
29662002-07-10 Juanma Barranquero <lektu@terra.es>
2967
2968 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
2969 changed.
2970
f61cd322
SM
29712002-07-09 Stefan Monnier <monnier@cs.yale.edu>
2972
979a8abc
SM
2973 * data.c (Fdefalias): Add an optional `docstring' argument.
2974 (set_internal, Fsetq_default): Use XCAR/XCDR.
2975
2976 * composite.c (HASH_VALUE, HASH_KEY):
f61cd322
SM
2977 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
2978
282b5fb7
KH
29792002-07-09 Kenichi Handa <handa@etl.go.jp>
2980
2981 * callproc.c (Fcall_process): Fix previous change.
2982
5d733a9c
SM
29832002-07-07 Stefan Monnier <monnier@cs.yale.edu>
2984
2985 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2986 Add support for hash-tables.
2987 (Ftry_completion): Return t even if the string appears multiple times.
2988
2989 * fns.c (Fnconc): Use XCDR.
2990 (Fprovide): Use CONSP and XCDR.
2991 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
2992 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
2993 (Fmake_hash_table): Accept `:size nil'.
2994 (Fmakehash): Delete: moved to subr.el.
2995 (syms_of_fns): Don't defsubr makehash.
2996
2997 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
2998 (HASH_TABLE_SIZE): Move from fns.c.
2999
af7272b1
RS
30002002-07-07 Richard M. Stallman <rms@gnu.org>
3001
3002 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
3003 Instead just return 0 when there is something to be done.
3004 (try_scrolling): If make_cursor_line_fully_visible returns 0,
3005 retry scrolling as if cursor were off the bottom.
3006 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
3007 return CURSOR_MOVEMENT_MUST_SCROLL.
3008 (redisplay_window): If make_cursor_line_fully_visible returns 0,
3009 go to try_to_scroll.
3010
3011 * buffer.c (Fbuffer_local_value): Store current value into its binding
3012 so we get the up-to-date value for the binding that is loaded.
3013
3014 * eval.c (Fdefmacro): Doc fix.
3015
9406d1d9
DL
30162002-07-05 Dave Love <fx@gnu.org>
3017
3018 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
3019 correctly.
3020
3021 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
3022 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
3023 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
3024 CCL_LookupCharConstTbl.
3025 (syms_of_ccl): Defvar translation-hash-table-vector.
3026
89297f23 30272002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e9b60209
PJ
3028
3029 * xdisp.c: Remove unused variable `face'.
3030
cf9b6656
JB
30312002-07-04 Juanma Barranquero <lektu@terra.es>
3032
3033 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
3034 obsolescence information.
3035
a0f593ff
AC
30362002-07-03 Andrew Choi <akochoi@shaw.ca>
3037
10ba2aec
AC
3038 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
3039 pattern. Search cache first.
3040 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
3041 for Japanese font.
a0f593ff
AC
3042 (XLoadQueryFont): Use it.
3043
64805fb0
RS
30442002-07-02 Richard M. Stallman <rms@gnu.org>
3045
3046 * keymap.c (Fdefine_key): Doc fix.
3047
3048 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
3049
df1890b0
JB
30502002-07-02 Juanma Barranquero <lektu@terra.es>
3051
3052 * keymap.c (syms_of_keymap): Fix typo.
3053
bc21bf11
AC
30542002-07-01 Andrew Choi <akochoi@shaw.ca>
3055
09740ad8
AC
3056 * s/darwin.h: Define POSIX_SIGNALS.
3057
bc21bf11
AC
3058 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
3059 and FSRefMakePath to convert FSSpec returned with Apple Event to
3060 Posix pathname.
5d733a9c
SM
3061 (mac_initialize) [TARGET_API_MAC_CARBON]:
3062 Call init_required_apple_events and disable the `Quit' menu item
bc21bf11
AC
3063 provided automatically by the Carbon Toolbox.
3064
dc976f2c
DL
30652002-07-01 Dave Love <fx@gnu.org>
3066
3067 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
3068 for K&R.
3069
3070 * xterm.c: Fix prototype for K&R.
3071
3072 * term.c (costs_set): Declare static, non-initialized for pcc.
3073
ec962374
RS
30742002-07-01 Richard M. Stallman <rms@gnu.org>
3075
3076 * keyboard.c (timer_last_idleness_start_time): New variable.
3077 (timer_start_idle): Set that.
3078 (read_key_sequence): Use that to reset timer_idleness_start_time
3079 to previous value.
cf9b6656 3080
ec962374
RS
3081 * window.c (Frecenter): With arg, set optional_new_start.
3082
3083 * xdisp.c (redisplay_internal): Make optional_new_start really work.
3084
3085 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
3086 buffer for completion.
3087
c8224325
KR
30882002-06-29 Ken Raeburn <raeburn@gnu.org>
3089
3090 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
3091
a97e4138 30922002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20057d52
JD
3093
3094 * keyboard.c (readable_filtered_events): New function that filters
3095 FOCUS_IN_EVENT depending on parameter.
3096 (readable_events): Calls readable_filtered_events, not filtering
3097 FOCUS_IN_EVENT.
3098 (get_filtered_input_pending): New function, filtering parameter passed
3099 to readable_filtered_events.
3100 (get_input_pending): Calls get_filtered_input_pending, not filtering
3101 FOCUS_IN_EVENT.
3102 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
3103 FOCUS_IN_EVENT.
3104
3105 * xterm.h (struct x_output): Add focus_state.
3106
3107 * xterm.c (x_focus_changed): New function.
3108 (x_detect_focus_change): New function.
3109 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
3110 EnterNotify and LeaveNotify to track X focus changes.
3111
1aa1cb66
AS
31122002-06-28 Andreas Schwab <schwab@suse.de>
3113
2c568af5 3114 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
1aa1cb66 3115
377408cf
KS
31162002-06-27 Kim F. Storm <storm@cua.dk>
3117
3118 * xdisp.c: (mode_line_string_list, mode_line_string_face)
3119 (mode_line_string_face_prop): New variables.
3120 (store_mode_line_string): New function.
3121 (display_mode_element): Use store_mode_line_string to
3122 add mode-line string elements to mode_line_string_list
3123 when mode_line_string_list is non-nil.
3124 (Fformat_mode_line): Now returns propertized string by
3125 default. New arg NO-PROPS to ignore properties.
3126 (decode_mode_spec): Only add two dashes for %- in propertized
3127 mode-line string.
3128 (syms_of_xdisp): Init and staticpro mode_line_string_list.
cf9b6656 3129
5b62b301
SM
31302002-06-27 Stefan Monnier <monnier@cs.yale.edu>
3131
3132 * minibuf.c (minibuffer_completion_contents): Add return type.
3133
23a3b598
JB
31342002-06-27 Juanma Barranquero <lektu@terra.es>
3135
5b62b301 3136 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23a3b598 3137
7182e608
JB
31382002-06-26 Juanma Barranquero <lektu@terra.es>
3139
3140 * fileio.c (read_file_name_cleanup): Add missing return.
3141
6c488ddb
RS
31422002-06-26 Richard M. Stallman <rms@gnu.org>
3143
8ce9dfc1
RS
3144 * window.c (Frecenter): Don't set force_start flag.
3145
5b62b301 3146 * minibuf.c (do_completion, Fminibuffer_complete_word)
8ce9dfc1
RS
3147 (Fminibuffer_completion_help): Complete just the text before point.
3148 (minibuffer_completion_contents): New function.
3149
6c488ddb
RS
3150 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
3151
3152 * frame.c (frames_bury_buffer): Function deleted.
3153
c2b736ca
MB
31542002-06-25 Miles Bader <miles@gnu.org>
3155
3156 * callint.c (Fcall_interactively): When checking to see if doprnt hit
3157 the end of callint_message, allow for a terminating '\0'.
3158
d0db8f56
JB
31592002-06-24 Juanma Barranquero <lektu@terra.es>
3160
3161 * w32select.c: Include composite.h
3162
f7d05dc4
JB
3163 * w16select.c: Likewise.
3164
24df0f36
KH
31652002-06-24 Kenichi Handa <handa@etl.go.jp>
3166
3167 * callproc.c (Fcall_process): If code detection is necessary,
3168 call detect_coding directly here.
3169
3170 * coding.c (detect_eol): Preserve coding->cmp_data.
3171
2c568af5
SM
3172 * w16select.c (Fw16_get_clipboard_data):
3173 * w32fns.c (w32_to_x_font):
3174 * w32select.c (Fw32_get_clipboard_data):
3175 * xselect.c (selection_data_to_lisp_data):
24df0f36
KH
3176 * xterm.c (XTread_socket): Disable composition handling.
3177
04f13f39
SM
31782002-06-24 Stefan Monnier <monnier@cs.yale.edu>
3179
3180 * print.c (temp_output_buffer_setup): Kill all local variables.
3181
f352c826
SM
31822002-06-22 Stefan Monnier <monnier@cs.yale.edu>
3183
11554bdd
SM
3184 * lread.c (Fread): Remove redundant and imprecise declaration.
3185
3186 * xfns.c (check_x_display_info): Use check_x_frame.
3187
f352c826
SM
3188 * .gdbinit (xprintsym): Use the new `xname' field.
3189 (xsymbol): Use it.
3190
1030b26b
JR
31912002-06-22 Jason Rumney <jasonr@gnu.org>
3192
3193 * w32fns.c (file_dialog_callback): New function.
3194 (Fx_file_dialog): Allow selecting directories as well as files.
3195
bc21bf11 31962002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
29c3cbf0
PJ
3197
3198 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
3199 OpenBSD. Add support for mipseb-*-netbsd* machines.
3200
b432b442
AC
32012002-06-17 Andrew Choi <akochoi@shaw.ca>
3202
2d97ff8c
AC
3203 * macterm.c (mac_scroll_area): Set foreground and backcolor to
3204 black and white before scrolling. Restore frame background and
3205 foreground color after scrolling.
3206 (do_window_update): Call XClearWindow before calling expose_frame.
3207 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
3208 FRAME_FOREGROUND_PIXEL of frame.
f352c826 3209
b432b442
AC
3210 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
3211 test Mac command key as <ALT> key.
3212
f9c0c10f
SM
32132002-06-17 Stefan Monnier <monnier@cs.yale.edu>
3214
65e0fbbf
SM
3215 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
3216
3217 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
3218 Lookup keys in function-key-map immediately so that key-translation-map
3219 can be applied earlier.
3220 Remove function_key_possible and key_translation_possible, replaced
3221 by checking `keytran_start < t'.
3222
f352c826 3223 * .gdbinit (xsymbol): Use the new `xname' field.
f9c0c10f 3224
84c0c2cc
AC
32252002-06-17 Andrew Choi <akochoi@shaw.ca>
3226
b432b442
AC
3227 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
3228 test Mac command key as <ALT> key.
3229
84c0c2cc 3230 * mac.c (do_applescript): Call initialize_applescript if necessary
f9c0c10f 3231 when first called. Dispose of result_desc only when there is no error.
84c0c2cc 3232 (Fdo_applescript): Use %d format specifier instead of %ld.
f9c0c10f 3233
f00691a3
AC
32342002-06-16 Andrew Choi <akochoi@shaw.ca>
3235
b6cce0b7
AC
3236 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
3237 of FrontWindow for cases keyDown and autoKey.
3238
f00691a3
AC
3239 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
3240 Vdefault_fontset to Monaco with mac-roman coding.
3241
3242 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
3243 init_process before and after inclusion of Carbon/Carbon.h, resp.
3244
3245 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
3246 cursor_gc.
3247 (add_font_name_table_entry): New function.
3248 (init_font_name_table): Use add_font_name_table_entry; add italic,
3249 bold, and bold-italic entries for truetype fonts.
3250
3251 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
3252 for Mac too.
3253 (try_font_list) [MAC_OS]: If no font matches given registry, try
3254 fonts with any registry matching face_family.
f9c0c10f 3255 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
f00691a3
AC
3256
3257 * s/darwin.h: If autoconf detects the Ncurses library, define
3258 LIBS_TERMCAP to -lncurses to use it.
f9c0c10f 3259
5fd4d159
EZ
32602002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
3261
3262 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
3263
93731c54
RS
32642002-06-15 Richard M. Stallman <rms@gnu.org>
3265
3266 * window.c (Fset_window_configuration): Explicitly preserve
3267 the point value that new_current_buffer had at the start.
3268
2268661a
JB
32692002-06-14 Juanma Barranquero <lektu@terra.es>
3270
3271 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
3272 Fix typos.
3273
e4f10c83
KS
32742002-06-14 Kim F. Storm <storm@cua.dk>
3275
3276 * insdel.c (insert_1_both, insert_from_string_1)
3277 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
3278 insert happened in the end_unchanged region. Otherwise, the
3279 redisplay may be confused and duplicate the last line in the
3280 buffer [seen after save-buffer when require-final-newline==t].
3281
960f21ae
JR
32822002-06-13 Jason Rumney <jasonr@gnu.org>
3283
3284 * w32.c (init_environment): Remove EMACSLOCKDIR.
91224f9e 3285 (stat): Swap _S_IFDIR and _S_IFREG.
960f21ae 3286
f00691a3 32872002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e43bd4f5 3288
cc1b792b
PJ
3289 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
3290 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
3291 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
3292 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
3293 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
3294 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
3295 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
3296 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
3297 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
3298 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
e43bd4f5
PJ
3299 SELECTION_REQUEST_EVENT, selection_clear_event to
3300 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
3301 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
3302 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
3303 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
cc1b792b
PJ
3304 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
3305 no_event to NO_EVENT.
e43bd4f5 3306
f00691a3 33072002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3e8cc4d
PJ
3308
3309 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
3310
91b53904
SM
33112002-06-12 Stefan Monnier <monnier@cs.yale.edu>
3312
3313 * intervals.c (textget): Don't forget to `return'.
3314 (lookup_char_property): Use XCAR/XCDR.
3315
8b22c65a
JB
33162002-06-12 Juanma Barranquero <lektu@terra.es>
3317
3318 * xdisp.c (Fformat_mode_line): Fix typo.
3319
aba91547
KS
33202002-06-12 Kim F. Storm <storm@cua.dk>
3321
3322 * xdisp.c (Fformat_mode_line): New function.
3323 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
3324 (store_frame_title_char, store_frame_title): Use unconditionally.
3325 (init_xdisp): Defsubr Fformat_mode_line.
3326 Initialize frame_title_buf etc. unconditionally.
3327
2cf4b7b2
SM
33282002-06-11 Stefan Monnier <monnier@cs.yale.edu>
3329
3330 * keyboard.c (read_key_sequence):
3331 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
3332 things through those maps after downcasing events.
3333 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
3334 applies after function-key-map.
3335 Make sure that keytran can be done in the middle in the sequence.
3336 Be careful not to throw away events past the one we downcase.
3337
3338 * lread.c (read_integer): Remove unused var `tem'.
3339 (read1): Fix int/Lisp_Object mixup.
3340
3341 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
3342
0672b5a0
RS
33432002-06-11 Richard M. Stallman <rms@gnu.org>
3344
3345 * keyboard.c (readable_events): Ignore any number of
3346 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
3347
ab2e49a0
MB
33482002-06-09 Miles Bader <miles@gnu.org>
3349
3350 * xfaces.c (Ftty_supports_face_attributes_p): New function.
3351 (parse_rgb_list, tty_lookup_color): New functions.
3352 (tty_defined_color): Use `tty_lookup_color' to do all the work.
3353 (color_distance, Fcolor_distance): New functions.
3354 (TTY_SAME_COLOR_THRESHOLD): New macro.
3355 (Qtty_color_standard_values): New variable.
3356 (syms_of_xfaces): Initialize new vars & functions.
3357
a8f57660
CW
33582002-06-08 Colin Walters <walters@verbum.org>
3359
3360 * textprop.c (Vchar_property_alias_alist): New variable.
2cf4b7b2 3361 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
a8f57660
CW
3362
3363 * intervals.c (lookup_char_property): New function for looking up
3364 overlay and text properties, created from textget.
3365 (textget): Use it.
2cf4b7b2 3366
a8f57660
CW
3367 * intervals.h (lookup_char_property): Declare.
3368 (Vchar_property_alias_alist): Declare.
3369
3370 * buffer.c (Foverlay_get): Use lookup_char_property.
3371
1b65481e
SS
33722002-06-07 Sam Steingold <sds@gnu.org>
3373
3374 * xselect.c (lisp_data_to_selection_data): Fix last change:
3375 *data_ret is not a Lisp string, while unibyte_string is.
3376
9cbd5852
EZ
33772002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
3378
2cf4b7b2
SM
3379 * xselect.c (lisp_data_to_selection_data): Fix last change:
3380 set size_ret.
9cbd5852 3381
3fa4ac47
AS
33822002-06-07 Andreas Schwab <schwab@suse.de>
3383
3384 * m/amdx86-64.h: New file.
3385
ebadb1e4
EZ
33862002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
3387
4ddc38a1
EZ
3388 * fns.c (Fstring_make_unibyte): Doc fix.
3389
8f9b87b5
EZ
3390 * xselect.c (lisp_data_to_selection_data): If the requested type
3391 is STRING, call string_make_unibyte to encode the selected text
3392 as a string.
3393
ebadb1e4
EZ
3394 * window.c (Fset_window_hscroll): Doc fix.
3395
f00691a3 33962002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1909941a 3397
2cf4b7b2
SM
3398 * fileio.c (choose_write_coding_system):
3399 Call select-safe-coding-system properly.
1909941a 3400
3a2ff803
RS
34012002-06-03 Richard M. Stallman <rms@gnu.org>
3402
3403 * xdisp.c (message_with_string): Error if STRING is not a string.
3404
3405 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
3406
3407 * fileio.c (choose_write_coding_system): Pass FILE arg to
3408 Vselect_safe_coding_system_function.
3409
382f558b 34102002-06-03 Ken Raeburn <raeburn@gnu.org>
504322ad 3411
2cf4b7b2 3412 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
504322ad 3413
e2c0561e
TTN
34142002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
3415
3416 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
3417 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
3418 * keymap.c (describe_command): Likewise.
3419 * minibuf.c (read_minibuf): Likewise.
3420
3421 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
3422 Cast `current_column' return value to int.
2cf4b7b2
SM
3423 (back_to_previous_visible_line_start)
3424 (reseat_at_next_visible_line_start, next_element_from_buffer):
e2c0561e
TTN
3425 Cast `indented_beyond_p' 3rd arg to float.
3426
3427 * indent.c (last_known_column): Now a float.
2cf4b7b2
SM
3428 (current_column_1, position_indentation, current_column)
3429 (string_display_width): Return float.
e2c0561e
TTN
3430 (Fcurrent_column): Cast `current_column' return value to int.
3431 (Fcurrent_indentation): Cast `position_indentation' retval to int.
3432 (indented_beyond_p): Third arg now a float.
3433 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
3434
3435 * lisp.h (current_column): Now returns float.
3436 (indented_beyond_p): 3rd arg now a float.
3437
420a345c
EZ
34382002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
3439
43dc73f1
EZ
3440 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
3441 is Qcompound_text_with_extensions.
3442
3443 * xselect.c (lisp_data_to_selection_data): Always set selection
3444 type as string if x_encode_text returns streingp non-NULL.
3445
420a345c
EZ
3446 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
3447
a71867c5
RS
34482002-05-30 Richard M. Stallman <rms@gnu.org>
3449
3450 * window.c (Fset_window_configuration): Correct the handling
3451 of point in current buffer, to work with multiple windows.
3452
96801005
CW
34532002-05-29 Colin Walters <walters@verbum.org>
3454
3455 * lread.c (Fread_from_string): Don't depend on order of evaluation
3456 for C function parameters.
3457
f7e039de
RS
34582002-05-28 Richard M. Stallman <rms@gnu.org>
3459
3460 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
3461 way for blinked-off state and for a nonselected window.
3462
3463 * window.c (window_scroll_pixel_based): Don't call Fbolp;
3464 instead, see if the new start pos is at beginning of line.
3465
3466 * fileio.c (Fwrite_region): If START is a string, don't
3467 make any annotations.
3468
3469 * eval.c (syms_of_eval): Doc fix.
3470
532a8e8b
CW
34712002-05-28 Colin Walters <walters@debian.org>
3472
3473 * emacs.c (USAGE1): Add --no-splash.
3474 (standard_args): Ditto.
3475
34762002-05-28 Colin Walters <walters@gnu.org>
3477
3478 * lread.c (readchar_count): New variable.
3479 (readchar): Increment it.
3480 (unreadchar): Decrement it.
3481 (read_multibyte): Decrement it.
3482 (Vread_with_symbol_positions): New variable.
3483 (Vread_symbol_positions_list): New variable.
3484 (read_internal_start): New function, created from Fread and
3485 Fread_from_string. Handle Vread_symbol_positions_list and
3486 Vread_with_symbol_positions.
3487 (readevalloop, Fread, Fread_from_string): Use it.
3488 (read1): Use readchar_count to add symbol positions to
2cf4b7b2 3489 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
532a8e8b
CW
3490 (syms_of_lread): DEFVAR_LISP and initialize them.
3491
3492 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
3493 (substitute_object_recurse, substitute_object_in_subtree)
3494 (substitute_in_interval): Prototype.
3495 (read_multibyte): Return c if it's less than zero.
e2c0561e 3496
02f20f98
KS
34972002-05-28 Kim F. Storm <storm@cua.dk>
3498
b44ec8e3
KS
3499 * fileio.c (Fread_file_name_internal): Added brute-force
3500 speed up for using predicate file-directory-p.
3501
35022002-05-28 Kim F. Storm <storm@cua.dk>
3503
3504 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
02f20f98
KS
3505 New variables.
3506 (syms_of_fileio): DEFVAR_LISP them.
3507 (read_file_name_cleanup): New unwind function.
3508 (Fread_file_name_internal): Only return completions satifying
3509 Vread_file_name_predicate. Temporarily unwind protect and rebind
3510 default-directory while checking completions against the predicate.
3511 (Fread_file_name): Added PREDICATE argument. Specbind it to
3512 Vread_file_name_predicate during completion.
3513 Call Vread_file_name_function to read the file name if non-nil.
3514
3515 * lisp.h (Fread_file_name): Now has 6 args.
e2c0561e 3516
02f20f98
KS
3517 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
3518 predicate for Fread_file_name when reading directory name.
3519 Supply Qnil for predicate in other calls to Fread_file_name.
3520
9e8abde7
MB
35212002-05-26 Miles Bader <miles@gnu.org>
3522
3523 * term.c (tty_capable_p): New function.
3524 * dispextern.h (tty_capable_p): New function declaration.
3525 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
3526 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
3527
3751c81b
SM
35282002-05-23 Stefan Monnier <monnier@cs.yale.edu>
3529
3530 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
3531 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
3532 (Vwrite_region_annotate_functions): Docstring fix.
3533
6065f9e2 35342002-05-23 Kim F. Storm <storm@cua.dk>
39bb5900
KS
3535
3536 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
3537 phys_cursor's hpos is overwritten. This is still not completely
3538 correct, as it doesn't really make sense to use hpos at all to
3539 get the cursor glyph (as that is relative to the width of the
3540 characters on the line, which may have changed during the update).
3541
17456df1
JR
35422002-05-22 Jason Rumney <jasonr@gnu.org>
3543
3544 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
3545 Lisp_Object.
3546 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
3547 Use modified enumfont_t struct.
3548
3549 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3751c81b 3550
17456df1
JR
3551 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
3552 Handle the `hbar' cursor type.
3553 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
3554
3555 * w32fns.c (Qhbar): New variable.
3556 (x_specified_cursor_type): Use it.
3557
1b65564c
KR
35582002-05-21 Ken Raeburn <raeburn@gnu.org>
3559
3560 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
3561 now, when the address is needed.
3562
a7c4d9c8
CW
35632002-05-21 Colin Walters <walters@gnu.org>
3564
3565 * Makefile.in (shortlisp): Add font-core.el.
3566
301d4a3f
RS
35672002-05-20 Richard M. Stallman <rms@gnu.org>
3568
cd8d5236
RS
3569 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3570
301d4a3f
RS
3571 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
3572 equivalent key bindings here.
3573
07e9823c
KR
35742002-05-20 Ken Raeburn <raeburn@gnu.org>
3575
3576 Change symbol structure to contain a lisp object for the symbol
3577 name:
3578 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
3579 object field named "xname".
3580 (SYMBOL_NAME): New macro.
3581 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
3582 name field.
3583 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
3584 (mark_object, gc_sweep): Use symbol xname field and XSTRING
3585 instead of name field.
3586 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
3587 SYMBOL_NAME instead of XSYMBOL and name field.
3588 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
3589 instead of XSYMBOL and name field.
3590 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
3591 and SYMBOL_NAME instead of XSYMBOL and name field.
3592 * coding.c (Fread_coding_system, code_convert_region1)
3593 (code_convert_string1, code_convert_string_norecord)
3594 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
3595 XSYMBOL and name field.
3751c81b
SM
3596 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
3597 (Fmake_variable_buffer_local, Fmake_local_variable)
07e9823c
KR
3598 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
3599 of XSYMBOL and name field.
3600 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
3601 XSYMBOL and name field.
3602 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
3603 instead of XSYMBOL and name field.
3604 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
3605 XSYMBOL and name field.
3751c81b
SM
3606 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
3607 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c
KR
3608 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
3609 instead of XSYMBOL and name field.
3751c81b
SM
3610 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
3611 (parse_modifiers, apply_modifiers, Fevent_convert_list)
3612 (parse_solitary_modifier, Fexecute_extended_command):
3613 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3614 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
07e9823c
KR
3615 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
3616 of XSYMBOL and name field.
3617 (describe_command, describe_translation): Use SYMBOL_NAME and
3618 assignment instead of XSYMBOL and name field and XSETSTRING.
3619 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
3620 instead of XSYMBOL and name field.
3621 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
3622 name field and XSETSTRING.
3623 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
3624 of XSYMBOL and name field.
3625 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
3626 assignment instead of XSYMBOL and name field and XSETSTRING.
3627 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
3628 XSTRING instead of XSYMBOL and name field.
3629 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
3630 and XSTRING instead of XSYMBOL and name field.
3631 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
3632 and XSTRING instead of XSYMBOL and name field.
3633 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
3634 XSTRING instead of XSYMBOL and name field.
3635 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
3636 of XSYMBOL and name field.
3751c81b
SM
3637 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
3638 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c 3639
7340cc50
KR
36402002-05-19 Ken Raeburn <raeburn@gnu.org>
3641
3642 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
3643 and XCDR real rvalues in most configurations.
3644
3751c81b
SM
3645 * buffer.c (fix_overlays_in_range, fix_overlays_before):
3646 Don't take the address of the cdr part of a cons cell; instead, track
7340cc50
KR
3647 the parent cell and call XSETCDR, or set the variable for the head
3648 of the list if we haven't started down the list yet.
3649
8bad880b
RS
36502002-05-19 Richard M. Stallman <rms@gnu.org>
3651
3652 * doc.c (reread_doc_file): Don't ask for confirmation.
3653
0708de07
JR
36542002-05-18 Jason Rumney <jasonr@gnu.org>
3655
3656 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
3657 (xbm_load_image): Use it.
3658 (xbm_load): Ditto.
3659 (xbm_read_bitmap_data): Reverted to xfns.c version.
3660 From David Ponce <david@dponce.com>.
3661
2c978faf
EZ
36622002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
3663
3664 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
3665 2.02 and later.
3666
b96fb65c
JB
36672002-05-16 Juanma Barranquero <lektu@terra.es>
3668
3751c81b 3669 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
b96fb65c 3670
daaf4dfc
SM
36712002-05-15 Stefan Monnier <monnier@cs.yale.edu>
3672
3673 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
3674 meaningful test.
3675 (read_char_minibuf_menu_prompt): Fix typo.
3676
f8229bf6
EZ
36772002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3678
3679 * eval.c (Fcommandp): Doc fix.
3680
31bea176
SM
36812002-05-13 Stefan Monnier <monnier@cs.yale.edu>
3682
3683 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
3684 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
3685 (Fset_keymap_parent): Gcpro a bit more.
3686 (access_keymap): Gcpro around meta_map call and around the main loop.
3687 (get_keyelt): Gcpro when following indirect references.
3688 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
3689 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
3690 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
3691 Remove useless ad-hoc remap code.
3692
4d8ff34d
KH
36932002-05-13 Richard M. Stallman <rms@gnu.org>
3694
3695 * search.c (search_buffer): Give up boyer moore search if inverse
3696 translation change charset_base.
3697
9861e777
EZ
36982002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3699
3700 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
3701 characters is carried over from the previous block of text, adjust
3702 coding->produced to account for the extra character.
3703
eef762fc
AS
37042002-05-11 Andreas Schwab <schwab@suse.de>
3705
3706 * coding.c (intersection): Keep the elements of the returned list
3707 in the same order as in the first list.
3708
6d8c02ae
KS
37092002-05-11 Kim F. Storm <storm@cua.dk>
3710
3711 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
3712 only update cmm_size if realloc actually succeeds.
3713 Testing with initial size of 2 elements revealed that using
3714 realloc on GNU/Linux would cause a random trap in xmalloc
3715 later on, so I rewrote the code to use malloc/bcopy/free instead
3716 of realloc.
3717
6358474d
JR
37182002-05-10 Jason Rumney <jasonr@gnu.org>
3719
3720 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
3721
22a2a460
EZ
37222002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
3723
3724 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
3725 parens, to ensure correct evaluation order.
3726
05b2c53f
KS
37272002-05-10 Kim F. Storm <storm@cua.dk>
3728
3729 * keymap.c (Vemulation_mode_map_alists): New variable.
3730 (syms_of_keymap): DEFVAR_LISP it.
3731 (current_minor_maps): Process keymap alists in that list before
3732 minor-mode-overriding-map-alist and minor-mode-map-alist.
3733
ccc8c8bb
RS
37342002-05-09 Richard M. Stallman <rms@gnu.org>
3735
3736 * search.c (Freplace_match): Doc fix.
3737
f2131323
KS
37382002-05-09 Kim F. Storm <storm@cua.dk>
3739
3751c81b 3740 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
3741 Enlarge cursor rectangle drawn around image with non-zero relief.
3742
3751c81b 3743 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
f2131323
KS
3744 Enlarge cursor rectangle drawn around image with non-zero relief.
3745
3751c81b 3746 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
3747 Enlarge cursor rectangle drawn around image with non-zero relief.
3748
7b9ae523
EZ
37492002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
3750
3751 * xselect.c (lisp_data_to_selection_data): Don't set selection
3752 type if comes from the Lisp object's car. If the selection
3753 contains a pure ASCII text, always return QSTRING as its type.
3754
f00691a3 37552002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14bda6db
PJ
3756
3757 * mac.c (mac-cut-function): Doc fix.
3758
6b529d78
RS
37592002-05-05 Richard M. Stallman <rms@gnu.org>
3760
3761 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
3762
1d5e0b52
JR
37632002-05-04 Jason Rumney <jasonr@gnu.org>
3764
5259a0d0
JR
3765 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
3766 for event-click-count.
3767
1d5e0b52
JR
3768 * process.c (init_process): Only add server subfeature if we can
3769 use non-blocking I/O.
3770
c7764932
AC
37712002-05-04 Andrew Choi <akochoi@shaw.ca>
3772
3773 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
3774 repeatedly.
3775
e151372d
JR
37762002-05-03 Jason Rumney <jasonr@gnu.org>
3777
3778 * process.c (Fmake_network_process): Only support server sockets
3779 when we can make them non-blocking.
3780
3781 * s/ms-w32.h (HAVE_SELECT): Define.
3782
3783 * w32.h (FILE_NDELAY): New flag.
3784
3785 * w32.c (sys_getpeername, fcntl): New functions.
3786 (_sys_read_ahead): Temporarily block on non-blocking sockets.
3787
3788 * w32proc.c: include sys/file.h.
3789
43936bf4
CW
37902002-05-03 Colin Walters <walters@verbum.org>
3791
3792 * callproc.c (Vgame_score_directory): Renamed to
3793 Vshared_game_score_directory.
3794
0c8c6322
RS
37952002-04-30 Richard M. Stallman <rms@gnu.org>
3796
397214d4
RS
3797 * s/gnu.h [emacs]: Include stdio.h.
3798 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
3799
0c8c6322
RS
3800 * eval.c (do_autoload): Error if called while preparing to dump.
3801
3802 * fns.c (Frequire): Error if need to load while preparing to dump.
3803
5a234d25
CW
38042002-04-28 Colin Walters <walters@verbum.org>
3805
5167cfda
CW
3806 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
3807 Default to "~/.emacs.d/games".
5a234d25 3808
96035dca
SM
38092002-04-29 Stefan Monnier <monnier@cs.yale.edu>
3810
de2413e9
SM
3811 * lread.c (openp): Change arg exec_only to predicate.
3812 (build_load_history): Use XCAR/XCDR.
3813 (Flocate_file_internal): New fun.
3814 (syms_of_lread): Defsubr it.
3815 (Fload): Update call to openp.
3816
3817 * lisp.h (openp): Update prototype.
3818
3819 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3820 * w32proc.c (sys_spawnve):
3821 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3822 * w32.c (check_windows_init_file):
3823 * sound.c (Fplay_sound_internal):
3824 * process.c (Fstart_process):
3825 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
3826 * mac.c (run_mac_command):
3827 * emacs.c (init_cmdargs):
3828 * callproc.c (Fcall_process): Update call to openp.
3829
962ba97c
SM
3830 * textprop.c (remove_properties): Don't use XCAR without CONSP.
3831
96035dca
SM
3832 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
3833
f00691a3 38342002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e656fc9d
PJ
3835
3836 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
3837 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
3838
43bbe516
RS
38392002-04-28 Richard M. Stallman <rms@gnu.org>
3840
3841 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
3842
3843 * eval.c (Fcommandp): New arg for_call_interactively.
3844 * lisp.h (Fcommandp): Declare new arg.
3845
6fb6f3ac
JR
38462002-04-28 Jason Rumney <jasonr@gnu.org>
3847
3848 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
3849
3850 * w32.c (stat, fstat): Use file index information to generate
3851 inodes for directories where available.
3852
e0f712ba
AC
38532002-04-26 Andrew Choi <akochoi@shaw.ca>
3854
3855 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
3856 [HAVE_CARBON]: Include Mac object files.
3857
3858 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
3859 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
3860 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
3861 MAC_OSX, and MAC_OS instead of macintosh.
3862
3863 * editfns.c [MAC_OS8]: Include stdio.h.
3864
3865 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
3866
3867 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
3868 Apple Monaco.
3869
3870 * process.c: Declare QCfamily and QCfilter as extern.
3871 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
3872 calling select.
3873
96035dca
SM
3874 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
3875
e0f712ba 3876 * tparam.c [MAC_OSX]: Don't define BC and UP.
96035dca 3877
e0f712ba
AC
3878 * config.in [HAVE_CARBON]: Add.
3879
96035dca
SM
3880 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
3881 Move here from mac/src and mac/inc.
e0f712ba
AC
3882
3883 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
96035dca 3884
56a0382c
GM
38852002-04-26 Gerd Moellmann <gerd@gnu.org>
3886
96035dca
SM
3887 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
3888 Compute phys_cursor_width from the x position returned
3889 by x_draw_glyhs, which is cheaper.
56a0382c
GM
3890 (x_display_and_set_cursor): Compute the buffer-local value
3891 of `cursor-in-non-selected-windows' only when needed.
3892
ef58a7ec
GM
38932002-04-25 Gerd Moellmann <gerd@gnu.org>
3894
3895 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
3896 cursor on a stretch glyph has a width that depends on
3897 x_stretch_cursor_p.
3898
f00691a3 38992002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6f442633 3900
ca70e62f
PJ
3901 * abbrev.c (abbrev-start-location): Doc fix.
3902
6f442633
PJ
3903 * indent.c (Fvertical_motion): Fix last change.
3904
3a46a5de
GM
39052002-04-25 Gerd Moellmann <gerd@gnu.org>
3906
3907 * indent.c (Fvertical_motion): Move to the start of the line
3908 containing PT before moving up or down.
3909
f7c5994d
GM
39102002-04-24 Gerd Moellmann <gerd@gnu.org>
3911
60f2f3f1
GM
3912 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
3913 case of writing a whole row, more or less analogous to the case of
3914 writing only parts of a row.
3915
3916 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
3917 0 for NO_CURSOR.
96035dca 3918
f7c5994d
GM
3919 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
3920
973c3c87
CW
39212002-04-23 Colin Walters <walters@verbum.org>
3922
3923 * buffer.c (syms_of_buffer): Doc fix.
3924
b3738089
GM
39252002-04-23 Gerd Moellmann <gerd@gnu.org>
3926
516074a1
GM
3927 * xterm.c (notice_overwritten_cursor): Handle the special case
3928 of the cursor being in the first blank non-text line at the
3929 end of a window.
96035dca 3930
b3738089
GM
3931 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
3932 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
3933 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
3934 bar cursors only, to make phys_cursor_width contain what its name
3935 suggests.
3936 (notice_overwritten_cursor): Consider the cursor image erased if
3937 the output area intersects the cursor image in y-direction.
3938
5d449b17
RS
39392002-04-23 Simon Marshall <simon@gnu.org>
3940
3941 * xfns.c (x_set_mouse_color): Change default for cross_cursor
3942 to XC_hand2.
3943
f00691a3 39442002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e6b6f919 3945
96035dca 3946 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
e6b6f919 3947
f25d60d6
KS
39482002-04-22 Kim F. Storm <storm@cua.dk>
3949
3950 * textprop.c (remove_properties): Fixed trap for malformed plist.
3951
6b448755
RS
39522002-04-22 Richard M. Stallman <rms@gnu.org>
3953
df218ce6
RS
3954 * cmds.c (Fend_of_line): Handle intangible text in mid line.
3955
6b448755
RS
3956 * window.c (make_window): Initialize height_fixed_p,
3957 last_cursor_off_p, and p->cursor_off_p slots.
3958
f00691a3 39592002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7769818b
PJ
3960
3961 * fns.c (use-dialog-box): Doc fix.
3962
f00691a3 39632002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ad6535b
PJ
3964
3965 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
3966 variables `row', `i' and `area'.
3967 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
3968 toolkit library.
3969
3d90c96c
SM
39702002-04-19 Stefan Monnier <monnier@cs.yale.edu>
3971
3972 * xfaces.c (clear_font_table): Don't free the default font of
3973 a frame even if it's on another display.
3974 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
3975 that could be Qt.
3976
58b1103e
JB
39772002-04-19 Juanma Barranquero <lektu@terra.es>
3978
3979 * indent.c (Fmove_to_column): Remove unused local variable
3980 `next_boundary_byte'.
3981 (current_column_1): Likewise.
3982
175e150b
EZ
39832002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3984
3985 * msdos.c (Qhbar): New variable.
3d90c96c 3986 (syms_of_msdos): Intern and staticpro it.
175e150b
EZ
3987 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
3988 cursor type.
3989
d9c25020 39902002-04-19 Dave Lambert <dlambert@acm.org>
6fab1572
EZ
3991
3992 Theses change implement an underscore-like (`hbar') cursor.
3993
3994 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3995
3996 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
3997 Handle the `hbar' cursor type.
3998 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
3999
4000 * xfns.c (Qhbar): New variable.
3d90c96c 4001 (syms_of_xfns): Intern and staticpro it.
6fab1572 4002 (x_specified_cursor_type): Handle `hbar' cursor.
5e3238f4
EZ
4003
4004 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
4005 not defined.
4006
0cf5c1e7
RS
40072002-04-18 Richard M. Stallman <rms@gnu.org>
4008
4009 * textprop.c (remove_properties): New arg LIST allows scanning
4010 either a list or a plist.
4011 (interval_has_some_properties_list): New function, like
4012 interval_has_some_properties using list instead of plist.
4013 All callers changed.
4014 (Fremove_list_of_text_properties): New function.
4015 (syms_of_textprop): Defsubr it.
4016
1a4140b0
EZ
40172002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4018
4019 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
4020
59b7fa65
JB
40212002-04-17 Juanma Barranquero <lektu@terra.es>
4022
3d90c96c 4023 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
59b7fa65 4024
ac431108
EZ
40252002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4026
4027 * window.c (coordinates_in_window): Don't report on margin area
4028 if its width is zero.
4029
1c565847
JR
40302002-04-16 Jason Rumney <jasonr@gnu.org>
4031
4032 * w32fns.c (Fx_file_dialog): Decode file name before using.
4033
4034 * w32term.c (construct_drag_n_drop): Likewise.
3d90c96c 4035
852eef40
EZ
40362002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
4037
4038 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
4039 store load-history in pure space.
4040
4041 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
4042
c997eae5
SM
40432002-04-16 Stefan Monnier <monnier@cs.yale.edu>
4044
4045 * xterm.c (Qlatin_1, Qutf_8): New vars.
4046 (syms_of_xterm): Initialize them.
4047 (XTread_socket): Eliminate incorrect optimization that tried to avoid
4048 decoding the output of X*LookupString.
4049 Always use latin-1 to decode the output of XLookupString.
4050 Try Xutf8LookupString if XmbLookupString failed.
4051
4052 * region-cache.c (new_region_cache): Use BEG.
4053
08327b22
GM
40542002-04-16 Gerd Moellmann <gerd@gnu.org>
4055
4056 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
4057 configuration files.
4058 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
4059 returns 0.
4060
d8f6d720
AS
40612002-04-15 Andreas Schwab <schwab@suse.de>
4062
4063 * config.in: Regenerated using autoheader.
4064
4065 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
4066 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
4067 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
4068 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
4069 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
4070 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
4071 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
4072 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
4073 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
4074 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
4075 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
4076 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
4077 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
4078 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
4079 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
4080 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
4081 STACK_DIRECTION, now set by autoconf.
4082
f00691a3 40832002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0e03b0c2
PJ
4084
4085 * dispnew.c (marginal_area_string): Sort arguments.
4086
4087 * dispextern.h (marginal_area_string): Add prototype.
4088
685fc579
RS
40892002-04-13 Richard M. Stallman <rms@gnu.org>
4090
c997eae5 4091 * fileio.c (Finsert_file_contents):
685fc579
RS
4092 Don't call temp_output_buffer_setup--do just part, by hand.
4093
4094 * coding.c (run_pre_post_conversion_on_str):
4095 Don't call temp_output_buffer_setup--do just part, by hand.
4096
4097 * keyboard.c (command_loop_1): Don't call start_hourglass
4098 or cancel_hourglass when executing a macro.
4099
4100 * marker.c (count_markers): New function.
4101
4102 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
4103 grow without limit. Move recently used elements to the front.
4104
e144dfa8
EZ
41052002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4106
4107 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
4108
e9f8a3ab
GM
41092002-04-12 Gerd Moellmann <gerd@gnu.org>
4110
7d4cc828
GM
4111 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
4112 rows marginal areas.
4113 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
4114 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4115
e9f8a3ab
GM
4116 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
4117
41182002-04-12 Dave Love <fx@gnu.org>
4119
4120 * dispnew.c (marginal_area_string): New.
4121
4122 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
4123 (Qleft_margin, Qright_margin): Declare.
c997eae5 4124 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
e9f8a3ab
GM
4125
4126 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
4127 note_mode_line_highlight and extended.
4128
4129 * keyboard.c (Qleft_margin, Qright_margin): Declare.
4130 (make_lispy_event): Deal with mouse events in margins.
4131
d7565649
SM
41322002-04-12 Stefan Monnier <monnier@cs.yale.edu>
4133
4134 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
4135
4136 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
4137 than deactivating the mark if tmm is set to `lambda'.
4138 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
4139 Use a single event for HELP_EVENT.
4140 (Fexecute_extended_command): Save last_point_position.
4141
f00691a3 41422002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
034a7130
PJ
4143
4144 * lisp.h (Fpropertize): Add prototype.
4145
4146 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
4147
e82defd1
CW
41482002-04-10 Colin Walters <walters@verbum.org>
4149
b9b966e0
CW
4150 * config.in: Add HAVE_SHARED_GAME_DIR.
4151
e82defd1
CW
4152 * callproc.c: (Vgame_score_directory): New variable.
4153 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
4154
05ea8efd
RS
41552002-04-10 Richard M. Stallman <rms@gnu.org>
4156
4157 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
4158
f9cf4c2c
SM
41592002-04-09 Stefan Monnier <monnier@cs.yale.edu>
4160
4161 * minibuf.c (read_minibuf): Use empty_string.
4162 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
4163 Short-circuit the search as soon as it "failed".
4164 (Fall_completions): Allow lambda forms and lists of strings for alist.
4165 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
4166 when require_match is nil.
4167 (Ftest_completion): Rename from `test_completion' and export to elisp.
4168 Call the predicate also when alist is a list.
4169 Obey Vcompletion_regexp_list.
4170 (do_completion, Fminibuffer_complete_and_exit): Use it.
4171 (Fassoc_string): Rename from `assoc_for_completion'.
4172 Allow list of strings as well and export to elisp.
4173
dba57d89
SM
41742002-04-08 Stefan Monnier <monnier@cs.yale.edu>
4175
4176 * puresize.h (BASE_PURESIZE): Increase to 900KB.
4177
a0ad1860
JB
41782002-04-08 Juanma Barranquero <lektu@terra.es>
4179
4180 * w32.c (sys_accept): Don't hide variable `s'.
4181
b9f0b172
GM
41822002-04-05 Gerd Moellmann <gerd@gnu.org>
4183
0d1bf3f7 4184 * callint.c (Fcall_interactively): Use INTEGERP instead of
b9f0b172
GM
4185 NUMBERP for checking Vhistory_length.
4186
f00691a3 41872002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
368ab68f
PJ
4188
4189 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
4190 Doc fix to reflect it.
4191
d3012189
RS
41922002-04-04 Richard M. Stallman <rms@gnu.org>
4193
4194 * xdisp.c (display_mode_element): New arg RISKY.
4195 Disregard text props found or specified within a variable
4196 that isn't marked risky-local-variable.
4197 (Qrisky_local_variable): New variable.
4198 (syms_of_xdisp): Init and staticpro it.
4199
0d1bf3f7
SM
42002002-04-04 Stefan Monnier <monnier@cs.yale.edu>
4201
4202 * undo.c (record_point): New fun.
4203 (record_delete, record_insert): Use it.
4204
8caa93d2
JB
42052002-04-03 Juanma Barranquero <lektu@terra.es>
4206
4207 * doc.c (Fdocumentation): Add missing parentheses.
4208 (Fdocumentation_property): Likewise.
4209
b3bbfb96
SM
42102002-04-03 Stefan Monnier <monnier@cs.yale.edu>
4211
4212 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
4213 data is 0, just return nil.
4214
db4a142a
EZ
42152002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
4216
4217 * msdos.c (syms_of_msdos): Fix last change with
4218 mouse_autoselect_window.
4219
f00691a3 42202002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dc8cd652
PJ
4221
4222 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
4223 mouse_autoselect_window.
4224
e5aa79fa
SM
42252002-04-02 Stefan Monnier <monnier@cs.yale.edu>
4226
4c8bc894
SM
4227 * keyboard.c (make_lispy_event): Handle unknown keysyms together
4228 with system-specific keysyms. Use it also for unknown function keys.
4229
e5aa79fa
SM
4230 * doc.c (reread_doc_file): Return whether reload was attempted.
4231 (Fdocumentation, Fdocumentation_property): Don't try to reload
4232 if the doc is 0 and only ask once.
4233
4234 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
4235
5d12f14d
EZ
42362002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
4237
4238 * keyboard.c (read_char): If the event was Qselect_window,
4239 restore timer_idleness_start_time to its previous value.
4240
e5aa79fa 4241 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5d12f14d 4242
bed9664a
SM
42432002-04-01 Stefan Monnier <monnier@cs.yale.edu>
4244
c5e5e1f8
SM
4245 * region-cache.c (new_region_cache): Use BEG.
4246
4247 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
4248 Use BEG and BEG_BYTE.
4249
e5aa79fa 4250 * doc.c (get_doc_string): Return nil if the location is wrong.
c5e5e1f8
SM
4251 (reread_doc_file): New fun.
4252 (Fdocumentation, Fdocumentation_property):
4253 Call it if get_doc_string fails.
4254 (Fsnarf_documentation): Make it work for a dumped Emacs.
4255
4256 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
4257 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
4258
4259 * charset.c (Fstring): Allow 0 arguments.
4260
bed9664a
SM
4261 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
4262
4263 * process.c (DATAGRAM_CONN_P, list_processes_1)
4264 (Fprocess_datagram_address, Fset_process_datagram_address)
4265 (Fset_network_process_options, server_accept_connection):
4266 Fix some int/Lisp_Object confusions (thank you union types).
4267
f00691a3 42682002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
83512b21
PJ
4269
4270 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
4271
4272 * w32term.c: Likewise.
bed9664a 4273 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
83512b21
PJ
4274
4275 * keyboard.c (Qselect_window): New symbol.
4276 (head_table): Use it.
bed9664a
SM
4277 (keys_of_keyboard): Bound select-window event to handle-select-window.
4278 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
83512b21
PJ
4279
4280 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
4281 (last_window): New variable.
4282 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
4283 (note_mouse_movement): Remove reimplemented code in #if 0.
093484c7
PJ
4284 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
4285 Emacs windows.
83512b21 4286
bed9664a 4287 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
83512b21 4288
abfb6b46
GM
42892002-03-31 Gerd Moellmann <gerd@gnu.org>
4290
4291 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
4292 Callers changed.
4293
9b2bba76
RS
42942002-03-30 Richard M. Stallman <rms@gnu.org>
4295
4296 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
4297 loop whenever it stops making progress.
4298
4299 * widget.c (set_frame_size): Don't call change_frame_size.
4300
fd524c21
GM
43012002-03-30 Gerd Moellmann <gerd@gnu.org>
4302
bed9664a
SM
4303 * dispnew.c (direct_output_for_insert):
4304 Call mark_window_display_accurate.
fd524c21 4305
df3bd29d
JR
43062002-03-29 Jason Rumney <jasonr@gnu.org>
4307
4308 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
4309
eb191db2
EZ
43102002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4311
8bff61e5
EZ
4312 * Makefile.in (lread.o): Depend on coding.h.
4313
544bf8ad 4314 * lread.c (openp, Fload): Encode the file name before passing it
eb191db2
EZ
4315 to `stat', `access', and `emacs_open'.
4316 (openp): GCPRO the encoded file name. Don't recompute Lisp
4317 strings unnecessarily.
4318
f9b33abb
KS
43192002-03-29 Kim F. Storm <storm@cua.dk>
4320
4321 * fns.c (Flax_plist_put): Doc fix.
4322
d4648402
MB
43232002-03-28 Miles Bader <miles@gnu.org>
4324
4325 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
4326
f00691a3 43272002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
320aebc9
PJ
4328
4329 * process.c (set-network-process-options): Add usage.
4330 (make-network-process): Doc fix.
4331
4aaa3607
EZ
43322002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4333
4334 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
4335
a5f08374
RS
43362002-03-26 Richard M. Stallman <rms@gnu.org>
4337
9356fe5a
RS
4338 * fns.c (Fsubstring_no_properties): New function.
4339 (Flax_plist_get, Flax_plist_put): New functions.
4340 (syms_of_fns): defsubr them.
4341
a5f08374
RS
4342 * xdisp.c (update_menu_bar): Test only update_mode_lines;
4343 don't test or alter w->update_mode_line.
4344
4345 * window.c (Fdisplay_buffer): Doc fix.
4346
43472002-03-24 Richard M. Stallman <rms@gnu.org>
4348
4349 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
4350
0af6533d
GM
43512002-03-24 Gerd Moellmann <gerd@gnu.org>
4352
4353 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
4354 (Fdefmacro): Handle `(declare ...)'.
4355 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
4356 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
4357
217e5be0
JR
43582002-03-24 Jason Rumney <jasonr@gnu.org>
4359
4360 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
4361 (xbm_file_p): Add prototypes.
4362 (xbm_format, xbm_image_p): Sync with xfns.c.
4363 (reflect_byte): New function.
4364 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
4365 (xbm_load_image): Create bitmaps with a depth of 1.
4366 (init_xfns): Enable XBM images.
4367
919f1e88
JR
43682002-03-23 Jason Rumney <jasonr@gnu.org>
4369
4370 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
4371 correctly. Do not pass up_modifier to keyboard buffer.
4372
4373 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
4374
44d38e8d
SM
43752002-03-22 Stefan Monnier <monnier@cs.yale.edu>
4376
4377 * Makefile.in (bootstrapclean): New target.
4378 (bootstrap-temacs, bootstrap-doc): Remove.
4379 (bootstrap-emacs): Use a bog-standard `temacs'.
4380 Don't bother to build a DOC file.
4381
4382 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
4383
4384 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
4385 in temacs even if !CANNOT_DUMP.
4386 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
4387
4388 * alloc.c (check_pure_size): Only output a warning.
4389
b8b47c19
JR
43902002-03-22 Jason Rumney <jasonr@gnu.org>
4391
d3109773
JR
4392 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
4393 supported.
4394
ef07a497 4395 * w32term.c (zv_bits): Declare as short, for word alignment.
b8b47c19
JR
4396 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
4397 (syms_of_w32term): Define x-use-underline-position-properties.
4398
4399 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
4400 (clear_image_cache): Block input, fix logic, clear matrices in
4401 all frames that share this cache.
4402
b9b1a853
EZ
44032002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
4404
483812ae
EZ
4405 * emacs.c (main): Update the Copyright year in the blurb printed
4406 by "emacs --version".
4407
78e17433
EZ
4408 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
4409
b9b1a853
EZ
4410 * xterm.c (XTread_socket): If XK_ISO_Lock and
4411 XK_ISO_Last_Group_Lock are defined, handle keysyms between
4412 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
4413
fd646341
KS
44142002-03-21 Kim F. Storm <storm@cua.dk>
4415
4416 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
4417 menu-bar bindings in keymap and local-map properties _are_ used.
4418 But try keymap property first in accordance with 2002-01-03 patch.
4419 Added comment describing why this is not always reliable.
4420 (tool_bar_items): Ditto for tool-bar.
4421
bf76fe9c
JR
44222002-03-21 Jason Rumney <jasonr@gnu.org>
4423
4424 * w32fns.c (x_clear_image_1): Disable color table code.
4425
41ad6233
KS
44262002-03-21 Kim F. Storm <storm@cua.dk>
4427
4428 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
4429 removed the wrong version of the DEFUN macro; fixed it.
4430
4431 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
4432 Fmember rather than Fmemq).
4433 (Fprovide): Check that subfeatures is a list.
4434
4435 * process.c (QCfeature, QCdatagram): Removed variables.
4436 (QCtype, Qdatagram): New variables.
4437 (network_process_featurep): Removed function.
4438 (Fmake_network_process): Removed :feature check.
4439 Use :type 'datagram instead of :datagram t to create a datagram
4440 socket. This allows us to add other connection types (e.g. raw
4441 sockets) later in a consistent manner.
3ae1b884
KS
4442 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
4443 supported subfeatures for feature make-network-process.
41ad6233
KS
4444 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
4445 Intern and staticpro QCtype and Qdatagram.
4446 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
4447
4448 * xfns.c: (QCtype): Remove duplicate declaration and
4449 initialization (is now declared in process.c).
4450
4451 * w32fns.c: (QCtype): Remove duplicate declaration and
4452 initialization (is now declared in process.c).
4453
27950b47
RS
44542002-03-21 Richard M. Stallman <rms@gnu.org>
4455
f6df485f
RS
4456 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
4457 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
4458 when jumping to `fail' to avoid undoing reg changes in the
4459 last iteration of the loop.
4460 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
4461
27950b47
RS
4462 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
4463 Depend on process.h.
4464
3be38152
JR
44652002-03-20 Jason Rumney <jasonr@gnu.org>
4466
4467 Most of the following changes are still conditional on HAVE_IMAGES
4468 which is not set by default on Windows.
4469
47bcdab2
JR
4470 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
4471
3be38152
JR
4472 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
4473 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
4474 (four_corners_best, x_clear_image_1, x_clear_image)
e2c0561e
TTN
4475 (x_alloc_image_color, postprocess_image)
4476 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
3be38152
JR
4477 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
4478 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
4479
4480 * w32gui.h (struct XImage): Define.
4481
4482 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
4483 extract mouse co-ordinates.
4484
f37577f9
JR
44852002-03-20 Jason Rumney <jasonr@gnu.org>
4486
4487 * w32.c (init_winsock): Dynamically load new server and UDP
4488 socket functions.
4489 (socket_to_fd): New function.
4490 (sys_socket): Use it.
e2c0561e 4491 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
f37577f9
JR
4492 (sys_recvfrom, sys_sendto): New wrapper functions.
4493
4494 * process.c (QCfamily, QCfilter): Remove duplicate declaration
4495 and initialization.
4496
4497 * makefile.w32-in (LIBS): Remove $(WSOCK32).
4498
ab8a75de
EZ
44992002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
4500
2c568af5
SM
4501 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
4502 Don't use "sun" as a variable, it's a predefined constant on Sun
ab8a75de
EZ
4503 machines.
4504
f00691a3 45052002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ab7ff8b
PJ
4506
4507 * bytecode.c (Fbyte_code): Revert last change.
4508
d1ef18f2
KS
45092002-03-19 Kim F. Storm <storm@cua.dk>
4510
4511 * makefile.w32-in (LIBS): Add $(WSOCK32).
4512 From David Ponce <dponce@voila.fr>.
4513
f00691a3 45142002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
99982883 4515
44c887be
PJ
4516 * process.c (wait_reading_process_input): Move variables `pname'
4517 and `pnamelen' down where they are used.
4518
18f85cdd
PJ
4519 * bytecode.c (Fbyte_code): Discard unused computed value to
4520 prevent gcc warning.
4521
99982883
PJ
4522 * lisp.h (Fplist_member): Add prototype.
4523
10ce34dc
KS
45242002-03-18 Kim F. Storm <storm@cua.dk>
4525
4526 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
2c568af5 4527 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
10ce34dc 4528
744d746b 4529 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10ce34dc
KS
4530 Remove explicit GNU_LINUX settings for datagram support.
4531
f00691a3 45322002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa9d4315
PJ
4533
4534 * process.c (Fmake_network_process): Remove unused variable `sa'.
4535 Doc fix. Add usage:.
2c568af5 4536 (set_socket_options): Remove unused variables `optnum' and `opttype'.
fa9d4315 4537
6147334f
RS
45382002-03-17 Richard M. Stallman <rms@gnu.org>
4539
4540 * xdisp.c (cursor_type_changed): New variable.
4541 (redisplay_internal): Redisplay all windows if cursor_type_changed.
4542 Clear it when clearing windows_or_buffers_changed.
4543 (try_cursor_movement, redisplay_window, try_window_id)
4544 (try_window_reusing_current_matrix): Test cursor_type_changed
4545 along with windows_or_buffers_changed.
4546
623fa9e7 4547 * window.h (cursor_type_changed): New variable.
6147334f
RS
4548
4549 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
4550 not update_mode_lines, and always set it to 1.
4551
4552 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
4553 if no frames needed redrawing.
4554
5439f987
KS
45552002-03-17 Kim F. Storm <storm@cua.dk>
4556
623fa9e7 4557 The following changes add support for network server processes,
5439f987
KS
4558 datagram connections, and local (unix) sockets.
4559
4560 * process.h (struct Lisp_Process): New member log.
4561 Doc fix: Member command used to indicate stopped network process.
4562 Doc fix: Member childp contains plist for network process.
4563 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
4564
4565 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
4566 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
4567 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
4568 New variables.
4569 (NETCONN1_P): New macro.
4570 (DATAGRAM_SOCKETS): New conditional symbol.
4571 (datagram_address): New array.
4572 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
4573 (status_message): Use concat3.
4574 (Fprocess_status): Add `listen' status to doc string. Return `stop'
4575 for a stopped network process.
4576 (Fset_process_buffer): Update contact plist for network process.
4577 (Fset_process_filter): Ditto. Don't enable input for stopped
4578 network processes. Server must listen, even if filter is t.
4579 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
4580 New functions.
4581 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
4582 (Fprocess_contact): Added KEY argument. Handle datagrams.
4583 (list_processes_1): Optionally show only processes with the query
4584 on exit flag set. Dynamically adjust column widths. Omit tty
4585 column if not needed. Report stopped network processes.
4586 Identify server and datagram network processes.
4587 (Flist_processes): New optional arg `query-only'.
4588 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
4589 (conv_lisp_to_sockaddr, set_socket_options)
4590 (network_process_featurep, unwind_request_sigio): New helper functions.
4591 (Fprocess_datagram_address, Fset_process_datagram_address):
4592 (Fset_network_process_options): New lisp functions.
4593 (Fopen_network_stream): Removed. Now defined in simple.el.
4594 (Fmake_network_process): New lisp function. Code is based on previous
4595 Fopen_network_stream, but heavily reworked with new property list based
4596 argument list, support for datagrams, server processes, and local
4597 sockets in addition to old client-only functionality.
4598 (server_accept_connection): New function.
4599 (wait_reading_process_input): Use it to handle incoming connects.
4600 Do not enable input on a new connection if process is stopped.
4601 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
4602 (send_process): Handle datagram sockets.
4603 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
4604 network process is indicated by setting command field to t .
4605 (Fprocess_send_eof): No-op if datagram connection.
4606 (Fstatus_notify): Don't read input for a stream server socket or a
4607 stopped network process.
4608 (init_process): Initialize datagram_address array.
4609 (syms_of_process): Intern and staticpro new variables, defsubr new
4610 functions.
4611
f779bd4c
JR
46122002-03-16 Jason Rumney <jasonr@gnu.org>
4613
4614 * w32fns.c (w32_to_all_x_charsets): Return correct type in
4615 startup case.
4616
a9c1a157
RS
46172002-03-16 Richard M. Stallman <rms@gnu.org>
4618
e2c0561e 4619 * xdisp.c (redisplay_internal, redisplay_windows):
a9c1a157
RS
4620 Use list_of_error to call internal_condition_case_1.
4621 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
4622 so as to catch all errors with no possibility of debugger redisplay.
4623 (list_of_error): New variable.
4624 (syms_of_xdisp): Init and staticpro it.
4625
4626 * print.c (print_object): Delete `\ ' from printed rep of frame.
4627
7264f28d
EZ
46282002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
4629
4630 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
4631 until its implementation is fixed.
4632
f00691a3 46332002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ee8e167
PJ
4634
4635 * xfns.c (png_load): Remove unused variable `gamma_str'.
4636
7c3f9166
RS
46372002-03-14 Richard M. Stallman <rms@gnu.org>
4638
4639 * xfns.c (x_real_positions): Handle failure in XQueryTree.
4640
5b905677
MB
46412002-03-14 Miles Bader <miles@gnu.org>
4642
4643 * intervals.c (adjust_for_invis_intang): New function.
4644 (set_point_both): Use `adjust_for_invis_intang' to do most of the
4645 work for dealing with invisible+intangible regions. Do so before
4646 and after both forward and backward movements, to handle both
4647 front-sticky and rear-sticky cases.
4648 * textprop.c (text_property_stickiness): Function moved here from
4649 `editfns.c'.
4650 * intervals.h (text_property_stickiness): New declaration.
4651 * editfns.c (char_property_eq): Function removed.
4652 (text_property_stickiness): Function moved to `textprop.c'.
4653
73792b51
JR
46542002-03-13 Jason Rumney <jasonr@gnu.org>
4655
4656 * config.in: Add STRFTIME_NO_POSIX2.
4657
4658 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
4659 and %OX when underlying strftime does not.
4660
dc3b2c8b
SM
46612002-03-13 Stefan Monnier <monnier@cs.yale.edu>
4662
6f2a7a68
SM
4663 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
4664 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
4665 line) to avoid annoying flicker.
4666 (xm_scroll_callback): Get rid of the now unnecessary kludge.
4667 (XTread_socket): Mark it static.
4668
dc3b2c8b
SM
4669 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
4670
98243275
KS
46712002-03-13 Kim F. Storm <storm@cua.dk>
4672
4673 * puresize.h (BASE_PURESIZE): Increase to 775000.
4674
7dcece14
JB
46752002-03-12 Juanma Barranquero <lektu@terra.es>
4676
4677 * editfns.c (syms_of_editfns): Fix typo.
4678
656132eb
GM
46792002-03-12 Gerd Moellmann <gerd@gnu.org>
4680
4681 * xsmfns.c: Include stdio.h because termhooks.h needs it.
4682 Include termopt.h for interrupt_input.
4683
ff955d90
AS
46842002-03-11 Andreas Schwab <schwab@suse.de>
4685
4686 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
4687
714d8c39
GM
46882002-03-11 Gerd Moellmann <gerd@gnu.org>
4689
073448c5
GM
4690 * xterm.c (note_mouse_movement): Put code for
4691 x_autoselect_window_p in #if 0.
4692
4006b74e 4693 * lread.c (Fload): Don't assume that message_with_string uses the
714d8c39
GM
4694 string it is given like a C string.
4695
a97e4138 46962002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
089fba41 4697
7c3f9166 4698 * xterm.h (x_session_check_input, x_session_initialize): Declared.
089fba41 4699
363a4df6
JD
4700 * xterm.c: (XTread_socket): Add call to x_session_check_input and
4701 x_session_have_connection.
4702 (x_initialize): Add call to x_session_initialize.
089fba41 4703
4006b74e 4704 * termhooks.h (enum event_kind): Add save_session_event.
089fba41 4705
4006b74e 4706 * keyboard.c: Add Emacs event save_session_event.
089fba41 4707
4006b74e 4708 * emacs.c (main): Add call to syms_of_xsmfns.
089fba41 4709
4006b74e 4710 * lisp.h: Declare syms_of_xsmfns as extern.
089fba41 4711
4006b74e 4712 * config.in: Add HAVE_X_SM.
089fba41 4713
7c3f9166
RS
4714 * Makefile.in (LIBXT): Add -lSM -lICE
4715 if HAVE_X_SM and not USE_X_TOOLKIT.
4716 (XOBJ): New file xsmfns.c added.
089fba41
JD
4717
4718 * xsmfns.c: New file for X session management.
4719
ad497129
JR
47202002-03-09 Jason Rumney <jasonr@gnu.org>
4721
4722 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
4723 read-only when setting modified time.
4724
f2c7b04f
GM
47252002-03-08 Gerd Moellmann <gerd@gnu.org>
4726
2c568af5
SM
4727 * xdisp.c (move_it_vertically_backward): At the end of the function,
4728 when moving forward by lines, treat terminal frames specially.
c7ad4937 4729
0d121f7c
GM
4730 * keyboard.c (echo_char): Make sure to add a separator between
4731 keys even if echo_dash hasn't been called.
4732
2051c264
GM
4733 * xdisp.c: Use new string macros.
4734 (update_echo_area): Pass number of bytes to message3 instead of
4735 number of chars.
4736 (set_message_1): Don't access a string's size_byte directly.
4737 (decode_mode_spec_coding): Use number of bytes of eoltype string
4738 instead number of chars.
4739
f2c7b04f
GM
4740 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
4741
007776bc
JB
47422002-03-08 Juanma Barranquero <lektu@terra.es>
4743
4744 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
4745 24-bit.
4746
893a741e
JR
47472002-03-06 Jason Rumney <jasonr@gnu.org>
4748
4749 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
4750
8b5eabe0
GM
47512002-03-06 Gerd Moellmann <gerd@gnu.org>
4752
d88c5449 4753 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
e60b0c44
GM
4754 (cancel_echoing, echo_length, echo_truncate): Changed to
4755 work with new kboard definition.
4756 (echo_now): Use message3_nolog instead of message2_nolog.
4757
4758 * alloc.c (mark_kboards): Mark echo_string.
4759
4760 * keyboard.h (ECHOBUFSIZE): Removed.
4761 (struct kboard): Member echoptr removed, member echobuf renamed
4762 to echo_string.
4763
8b5eabe0
GM
4764 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
4765 message3 instead of message2 to display the message using STRING's
4766 text properties.
4767
5d335845
AS
47682002-03-05 Andreas Schwab <schwab@suse.de>
4769
4770 * xdisp.c (hscroll_margin): Change to EMACS_INT.
4771
67334131
PA
47722002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
4773
4774 * frame.c (default-frame-alist): Explain that setting it doesn't
4775 affect existing frames.
4776
d88c5449
SM
47772002-03-05 Stefan Monnier <monnier@cs.yale.edu>
4778
4779 * indent.c (skip_invisible): Fix my brain fart.
4780
4781 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
4782
31ade731
SM
47832002-03-04 Stefan Monnier <monnier@cs.yale.edu>
4784
4785 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
4786 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
4787 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
4788 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
4789 and variables to use EMACS_INT instead of just int.
4790
d88c5449
SM
4791 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
4792
c0917202
EZ
47932002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4794
4795 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
4796 environment, pass it down with corrected value.
4797
f00691a3 47982002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6dc7fdd
PJ
4799
4800 * lread.c (read_filtered_event): Do not call start_hourglass
4801 before returning.
4802
9652402e
JB
48032002-03-04 Juanma Barranquero <lektu@terra.es>
4804
4805 * w32term.c (x_display_and_set_cursor): Fix typo.
4806
73344256
RS
48072002-03-03 Richard M. Stallman <rms@gnu.org>
4808
4809 * fileio.c (Fmake_temp_name): Doc fix.
4810
71091322
RS
48112002-03-03 Gary Wong <gtw@gnu.org>
4812
4813 * termcap.c [!emacs]: Replace ospeed for building standalone
4814 libtermcap, for binary compatibility.
4815
4816 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
4817
aa7e4660
RS
48182002-03-03 Richard M. Stallman <rms@gnu.org>
4819
4820 * xrdb.c (file_p): Rename arg `path' to `filename'.
4821
4822 * abbrev.c (Fexpand_abbrev): Increment plist as use count
4823 only if it is an integer.
4824
4825 * xfns.c (png_load): Set screen_gamma based on f->gamma.
4826 If png_get_sRGB gives an answer, call png_set_gamma
4827 using the default image gamma value.
4828
4829 * lread.c (read1): When reading from a file, default string to
4830 multibyte only if it has some multibyte characters.
4831
4832 * print.c (print_object): Output multibyte chars 128...255
4833 using \x even if ! print_escape_multibyte.
4834
4835 * xdisp.c (display_mode_element): Move the places where
4836 bytepos, charpos, this, and lisp_string are set.
4837 Use lisp_string to set bytepos.
4838
4839 * xdisp.c (redisplay_internal):
4840 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
4841
4842 * xdisp.c (display_mode_element): Merge properties specified with
4843 :propertize onto those that come with the string.
4844
63d5d1ee
EZ
48452002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
4846
4847 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
4848 automatic-hscrolling. Users changed.
31ade731
SM
4849 <hscroll-margin>: Renamed from automatic-hscroll-margin.
4850 Users changed.
4851 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
63d5d1ee 4852
31a6cb06
EZ
48532002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4854
4855 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
4856
ee57fd91
KS
48572002-03-02 Kim F. Storm <storm@cua.dk>
4858
4859 * window.c (Fminibuffer_selected_window): New function.
4860 (syms_of_window): Defsubr it.
4861
922eae56
KS
48622002-03-01 Kim F. Storm <storm@cua.dk>
4863
eacb44ad
KS
4864 * window.h (struct window): New member phys_cursor_width.
4865
4866 * window.c (make_window, replace_window): Init phys_cursor_width.
31ade731 4867
eacb44ad
KS
4868 * xterm.c (x_display_and_set_cursor): Blink box cursor using
4869 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
4870
4871 * w32term.c (x_display_and_set_cursor): Blink box cursor using
4872 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
4873
922eae56
KS
4874 * lisp.h (GCPRO6): New macro.
4875
4876 * process.c (Fopen_network_stream): Use GCPRO6.
4877
81d5af8b
KS
48782002-03-01 Kim F. Storm <storm@cua.dk>
4879
4880 * process.c (Qconnect, Qfailed): New variables.
4881 (syms_of_process): Intern and staticpro them.
e4984112 4882 (Fprocess_status): Document connect and failed return values.
81d5af8b
KS
4883 [NON_BLOCKING_CONNECT]: New conditional.
4884 (connect_wait_mask, num_pending_connects): New variables.
4885 (status_message): Convert Qfailed status.
4886 (Fopen_network_stream): Added support for non-blocking connect.
4887 New optional args: filter, sentinel, non_blocking. Doc updated.
6c465a15 4888 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
81d5af8b
KS
4889 (deactivate_process): Handle pending non-blocking connect.
4890 (wait_reading_process_input): Poll for status of non-blocking
4891 connects. Exec sentinel directly when connect succeeds.
4892 (status_notify): Don't read process output if not yet connected.
31ade731 4893
5705966b
KS
48942002-02-28 Kim F. Storm <storm@cua.dk>
4895
4896 * window.c: (minibuf_selected_window): Renamed from
4897 Vminibuf_selected_window. Users changed.
4898 (syms_of_window): Staticpro it.
4899
beb0acdf
KS
49002002-02-26 Kim F. Storm <storm@cua.dk>
4901
4902 The following changes add a new Vminibuf_selected_window variable
4903 which is similar to Vminibuf_scroll_window, but which is only set
4904 on entry to the minibuffer (from a non-minibuffer window):
31ade731 4905
beb0acdf
KS
4906 * window.c: (Vminibuf_selected_window): New variable.
4907 (struct save_window_data): New member minibuf_selected_window.
4908 (Fset_window_configuration): Restore Vminibuf_selected_window.
4909 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
4910 Set minibuf_scroll_window member to nil if minibuf_level is 0.
4911 (compare_window_configurations): Compare minibuf_selected_window.
4912
4913 * window.h: (Vminibuf_selected_window): Declare extern.
4914
4915 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
4916 entry to minibuffer or on entry from a non-minibuffer window.
4917
4918 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
4919 Vminibuf_selected_window instead of Vminibuf_scroll_window.
4920
4921 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
4922 instead of Vminibuf_scroll_window when deciding in which window
4923 the region should be highlighted. Consequently, the region remains
4924 highlighteded even when a completion buffer is also displayed.
4925
3dfdc066
EZ
49262002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
4927
2c568af5 4928 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
b135bd4c 4929
3dfdc066
EZ
4930 * xselect.c (Qcompound_text_with_extensions): Renamed from
4931 Qcompound_text_no_extensions.
4932 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
4933
804d894a
JB
49342002-02-26 Juanma Barranquero <lektu@terra.es>
4935
4936 * w32proc.c (syms_of_ntproc): Doc fix.
4937
f00691a3 49382002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0277b535
PJ
4939
4940 * intervals.h: Include "dispextern.h" unconditionally.
4941
1f1bce0e
JR
49422002-02-24 Jason Rumney <jasonr@gnu.org>
4943
4944 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
4945 and disp-table.elc.
82a399d2 4946 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 4947
5f245371
KS
49482002-02-24 Kim F. Storm <storm@cua.dk>
4949
4950 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
4951 The validation of the event type was too strict as it didn't
4952 allow string events; buffer names are used in bindings for
4953 menu-bar-select-buffer (see `menu-bar-update-buffers').
4954
b66bc4a4 49552002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674 4956
31ade731 4957 The following changes rework my patch of 2002-02-06 which
a34cb674
KS
4958 added command remapping by entering the commands directly into
4959 the keymaps. Now, command remapping uses an explicit `remap'
4960 prefix in the keymaps, i.e. [remap COMMAND].
31ade731 4961
a34cb674
KS
4962 * keymap.c (Qremap, remap_command_vector): New variables.
4963 (is_command_symbol): Removed function.
31ade731
SM
4964 (Fdefine_key): No longer accept a symbol for KEY.
4965 Added validation of [remap COMMAND] argument for KEY.
4966 The DEF is no longer required to be a symbol when remapping a command.
a34cb674
KS
4967 (Fremap_command): New function to remap command through keymaps.
4968 (Flookup_key): Perform command remapping initiated by
4969 Fremap_command directly for speed.
4970 (Fkey_binding): Use Fremap_command for command remapping.
4971 (where_is_internal): Handle new command remapping representation.
4972 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
4973 staticpro them. Defsubr Fremap_command.
4974
4975 * keymap.h (Fremap_command): Declare extern.
4976 (is_command_symbol): Remove extern.
31ade731 4977
a34cb674
KS
4978 * keyboard.c (command_loop_1): Use Fremap_command for command
4979 remapping; now try command remapping for all symbols.
4980
f227fded
EZ
49812002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
4982
4983 * coding.h (run_pre_post_conversion_on_str): Add prototype.
4984
54a0c8a6
JR
49852002-02-23 Jason Rumney <jasonr@gnu.org>
4986
4987 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
4988 on the string before encoding it.
4989 (Fw32_get_clipboard_data): Run post-read-conversion on the string
4990 after decoding it.
4991
4992 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
4993
f00691a3 49942002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
042c33d3
PJ
4995
4996 * w32term.c (enter_timestamp): Remove unused static variable to
4997 prevent warning.
4998
4999 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
5000
b72d9870
EZ
50012002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
5002
5003 * w16select.c (Fw16_get_clipboard_data): Fix last change.
5004
5005 * xselect.c (selection_data_to_lisp_data): Fix last change.
5006
48094ace
JR
50072002-02-22 Jason Rumney <jasonr@gnu.org>
5008
5009 * w32term.h (struct w32_output): New member menu_command_in_progress.
5010
5011 * w32menu.c (menubar_selection_callback): Free the menu and
5012 clear the menu_command_in_progress flag.
5013
5014 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
5015 (menu_free_timer): New variable.
5016 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
5017 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
5018 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
5019 menu command is in progress.
31ade731
SM
5020 <WM_COMMAND>: Set the menu_command_in_progress flag.
5021 Kill any menu_free_timer that is running.
48094ace
JR
5022
5023 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
5024 Call ExtTextOutA rather than ExtTextOut.
5025
9feba281
EZ
50262002-02-22 Eli Zaretskii <eliz@gnu.org>
5027
5028 * puresize.h (BASE_PURESIZE): Increase to 755000.
5029
3276b4fe
EZ
50302002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5031
5032 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
5033 on the string before encoding it.
5034 (Fw16_get_clipboard_data): Run post-read-conversion on the string
5035 after decoding it.
5036
fbbe0ace
EZ
50372002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5038
5039 Support for ICCCM Extended Segments in X selections:
5040
23e16093 5041 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
5042 (syms_of_xselect): Intern and staticpro it.
5043 (selection_data_to_lisp_data): Run post-read-conversion on decoded
5044 selection text.
5045 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 5046 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
5047 compound-text.
5048
5049 * xterm.h (x_encode_text): Update prototype.
5050
5051 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
5052 callers changed. If SELECTIONP is non-zero, run the
5053 pre-write-conversion function before encoding the selection text.
5054
2a28d471
KS
50552002-02-21 Kim F. Storm <storm@cua.dk>
5056
5057 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3 5058
31ade731
SM
5059 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
5060 Correct composing of language-change event.
15fdc2e3 5061
9de46181
KS
50622002-02-20 Kim F. Storm <storm@cua.dk>
5063
5064 * keyboard.c (menu_bar_items): Don't include keymap or local-map
5065 bindings at PT when building menu (the menu is not updated often
5066 enough for this to work reliable).
5067 (tool_bar_items): Likewise.
5068 (current_active_maps): Removed unused (and buggy) function.
5069
f00691a3 50702002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c7f07c4c
PJ
5071
5072 * xfns.c (gif_load): Use correct width and height for GIF images.
5073
f8565280
EZ
50742002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
5075
5076 * floatfns.c (Fatan): Accept an optional second arg and call
5077 atan2 if passed 2 args.
5078
5be86f54
JR
50792002-02-18 Jason Rumney <jasonr@gnu.org>
5080
5081 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
5082
f7b9d4d1
JR
50832002-02-17 Jason Rumney <jasonr@gnu.org>
5084
5085 * w32term.c (x_autoselect_window_p): New variable.
5086 (syms_of_w32term): DEFVAR_BOOL and initialize it.
5087 (note_mouse_movement): Use it.
5088
5089 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
5090
5091 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
5092
5093 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
5094 New variables.
5095 (syms_of_w32fns): Intern and staticpro them.
5096 (x_frame_parms) <"fullscreen">: New parameter.
5097 (x_fullscreen_move, x_set_fullscreen): New functions.
5098 (x_set_frame_parameters): Support Qfullscreen.
31ade731 5099 (x_real_positions): Save x/y_pixels_diff frame params.
f7b9d4d1
JR
5100 (x_figure_window_size): Support full-screen frames.
5101 (Fx_create_frame): Default the fullscreen parameter.
5102
31ade731 5103 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
f7b9d4d1 5104 (x_fullscreen_adjust): New functions.
6c465a15 5105 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
f7b9d4d1 5106 fullscreen. Call x_check_fullscreen_move, and set the
31ade731 5107 want_fullscreen member of output_data.w32
f7b9d4d1
JR
5108 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
5109
5110 * w32term.h: New enum for FULLSCREEN_* constants.
5111 (struct w32_output): New members want_fullscreen, x_pixels_diff,
5112 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
5113 (x-fullscreen-adjust): New prototype.
5114
ce16e8d9
KS
51152002-02-17 Kim F. Storm <storm@cua.dk>
5116
5117 * frame.c: (Vmouse_highlight): New variable.
5118 (syms_of_frame): DEFVAR_LISP it.
5119
5120 * frame.h: (Vmouse_highlight): Declare extern.
5121
5122 * xterm.h (struct x_display_info): Add mouse_face_hidden.
5123
5124 * xterm.c (disable_mouse_highlight): Removed variable.
5125 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5126 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
5127 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
5128 and on after keyboard input.
5129 (x_term_init): Initialize mouse_face_hidden.
5130
5131 * msdos.h (struct display_info): Add mouse_face_hidden.
5132
5133 * msdos.c (disable_mouse_highlight): Removed variable.
5134 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
5135 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
5136 (internal_terminal_init): Initialize mouse_face_hidden.
5137 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
5138 and on after keyboard input.
5139
5140 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
5141
5142 * w32term.c (disable_mouse_highlight): Removed variable.
5143 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
5144 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
5145 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
5146 and on after keyboard input.
5147 (w32_initialize_display_info): Initialize mouse_face_hidden.
5148
386c4076
EZ
51492002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
5150
9005a471
EZ
5151 * msdos.c (last_mouse_window): New variable.
5152 (dos_rawgetc): Fix last change--if the mouse is in the same window
5153 as recorded in last_mouse_window, don't select this window.
5154
31ade731 5155 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
760627fa 5156
4a137db1
EZ
5157 * msdos.c (x_autoselect_window_p): New variable.
5158 (syms_of_msdos): Defvar it.
2c568af5
SM
5159 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
5160 which the last mouse movement occured, unless it is already selected.
4a137db1 5161
31ade731
SM
5162 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
5163 New variables.
386c4076
EZ
5164 (syms_of_xdisp): DEVFAR them.
5165 (hscroll_window_tree): Use automatic_hscroll_margin and
5166 Vautomatic_hscroll_step to compute the amount of window scrolling.
5167
f00691a3 51682002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5d2200aa 5169
3996d07a
PJ
5170 * xterm.c (x-autoselect-window): New variable.
5171 (note_mouse_movement): Use it.
5172
5d2200aa
PJ
5173 * keyboard.c: Do not include "systime.h" twice.
5174
bdf67c59
AS
51752002-02-15 Andreas Schwab <schwab@suse.de>
5176
5407e8a7
AS
5177 * puresize.h (BASE_PURESIZE): Increase to 9/5.
5178
bdf67c59
AS
5179 * alloc.c (NSTATICS): Increase to 1280.
5180
98659da6
KG
51812002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
5182
f9904178
KG
5183 * alloc.c (NSTATICS): Bump to 1026.
5184
98659da6
KG
5185 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
5186 (Vx_super_keysym): New variables.
5187 (syms_of_xterm): DEFVAR_LISP them.
5188 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
31ade731 5189 variables to determine which keys to use for the various modifiers.
98659da6 5190
a48b709b 51912002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
5192
5193 * window.c: (Vmode_line_in_non_selected_windows): Removed.
5194 (mode_line_in_non_selected_windows): New variable.
5195 (syms_of_window): DEFVAR_BOOL it.
5196
31ade731
SM
5197 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
5198 Use mode_line_in_non_selected_windows.
1c9f5f23
KS
5199 (mode_line_in_non_selected_windows): Declare extern.
5200 (Vmode_line_in_non_selected_windows): Removed extern.
5201
db54c53a
RS
52022002-02-13 Richard M. Stallman <rms@gnu.org>
5203
31ade731
SM
5204 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
5205 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
db54c53a
RS
5206 (Fclear_this_command_keys): Doc fixes.
5207
31ade731 5208 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
db54c53a
RS
5209 (update_face_from_frame_parameter): Increment face_change_count
5210 and windows_or_buffers_changed to force redisplay using changed faces.
5211
5212 * xdisp.c (QCpropertize): New variable.
5213 (mode_line_proptrans_alist): New variable.
5214 (display_mode_element): New arg PROPS; all calls changed.
5215 Implement this, for strings.
5216 Handle literal output of strings by sharing the
5217 main-line code for strings, using local var `literal'.
5218 Handle :propertize feature.
31ade731 5219 (syms_of_xdisp): Initialze and staticpro QCpropertize and
db54c53a 5220 mode_line_proptrans_alist.
31ade731 5221
a48b709b 52222002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
5223
5224 * window.c: (Vmode_line_in_non_selected_windows): New variable.
5225 (syms_of_window): DEFVAR_LISP it.
5226
5227 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
5228 (CURRENT_MODE_LINE_FACE_ID): Use it.
5229 (Vmode_line_in_non_selected_windows): Declare extern.
5230
5231 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
5232 to get mode line face.
5233
573a237a
EZ
52342002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
5235
5236 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
5237 variables; cus-start.el doesn't need them anymore.
5238
73df3b72
KS
52392002-02-09 Kim F. Storm <storm@cua.dk>
5240
5241 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
5242 reduction. This fixes a display problem where stray newlines were
5243 inserted in the window (corrected by C-l). Clarified code (IMHO).
5244
18b0be7c
EZ
52452002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
5246
5247 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
5248
5249 * xdisp.c (display_mode_lines): Fix last change.
5250
442ca9ba
JR
52512002-02-09 Jason Rumney <jasonr@gnu.org>
5252
5253 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
5254 match each other.
3acfb461
JR
5255 (w32_load_system_font): Prevent Cleartype fonts from loading.
5256 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 5257
cdefda26
KS
52582002-02-09 Kim F. Storm <storm@cua.dk>
5259
5260 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
5261 (CURRENT_MODE_LINE_HEIGHT): Use it.
5262 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
5263
5264 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
5265 (pos_visible_p, handle_face_prop): Likewise.
5266 (display_mode_lines): Likewise, but for the real selected window.
5267 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
5268
5269 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
5270 in non-selected windows.
5271 (realize_basic_faces): Realize it.
5272 (syms_of_term): Intern and staticpro it.
5273
9f69e812
KS
52742002-02-08 Kim F. Storm <storm@cua.dk>
5275
31ade731 5276 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
9f69e812
KS
5277 Changed mail addresses to emacs-devel@gnu.org.
5278
6ded2c89
EZ
52792002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
5280
b5d40ceb 5281 * fileio.c (Fsubstitute_in_file_name): If the file name includes
31ade731 5282 ~user, and there's no such user, don't discard everything before ~user.
b5d40ceb 5283
6ded2c89
EZ
5284 * floatfns.c (Fround): Doc fix.
5285
f00691a3 52862002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
5287
5288 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
5289
6a229a63
SM
52902002-02-07 Stefan Monnier <monnier@cs.yale.edu>
5291
db54c53a 5292 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 5293
33b93ee5
KS
52942002-02-07 Kim F. Storm <storm@cua.dk>
5295
5296 * keymap.c (where_is_internal): Only check whether definition is
5297 remapped if it fulfills is_command_symbol.
5298
72bba9f2
AS
52992002-02-07 Andreas Schwab <schwab@suse.de>
5300
5301 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
5302
5303 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
5304
93607efd
KS
53052002-02-06 Kim F. Storm <storm@cua.dk>
5306
5307 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
5308 defining command remapping. Doc updated.
5309 (Flookup_key): Remap command through keymap if KEY is a symbol.
5310 (is_command_symbol): New function.
6a229a63
SM
5311 (Fkey_binding): Use it. New optional argument NO-REMAP.
5312 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
5313 recursive call unless that arg is non-nil.
5314 (where_is_internal): New argument no_remap. Callers changed.
5315 Call recursively to find original key bindings for a remapped
5316 comand unless that arg is non-nil.
6a229a63
SM
5317 (Fwhere_is_internal): New optional argument NO-REMAP.
5318 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
5319
5320 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
5321 (is_command_symbol): Added prototype.
5322
5323 * keyboard.c (Vthis_original_command): New variable.
5324 (syms_of_keyboard): DEFVAR_LISP it.
5325 (command_loop_1): Set it, and perform command remapping.
5326
f00691a3 53272002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e 5328
31ade731 5329 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2642a29e 5330
f4ed304f
JR
53312002-02-06 Jason Rumney <jasonr@gnu.org>
5332
5333 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
5334
b5309828
EZ
53352002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
5336
5337 * charset.c (get_charset_id): Use if-else instead of ?:.
5338
108eaabb
RS
53392002-02-06 Richard M. Stallman <rms@gnu.org>
5340
5341 * filelock.c (S_ISLNK): Define if not defined.
5342
bd3567fa
RS
53432002-02-03 Richard M. Stallman <rms@gnu.org>
5344
5345 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
5346
5347 * lread.c (read1): Redesign strategy for force_multibyte and
5348 force_singlebyte. Now is_multibyte records whether read_buffer
5349 is multibyte. Encountering any multibyte character makes it so.
6a229a63 5350
95c11956
SM
53512002-02-02 Stefan Monnier <monnier@cs.yale.edu>
5352
5353 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
5354 with the same sequence, map that sequence to f10 rather than f0.
5355
ee466d0b
AS
53562002-02-03 Andreas Schwab <schwab@suse.de>
5357
5358 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
5359 latter never being defined on GNU/Linux.
5360
f77157da
EZ
53612002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5362
2c568af5
SM
5363 * xfaces.c (realize_default_face): Don't set the weight and slant of
5364 the default face to Qnormal, unless these attributes are unspecified.
f77157da 5365
f00691a3 53662002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 5367
95c11956
SM
5368 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
5369 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
5370
5371 * eval.c (Fsignal): Remove duplicated declaration of
5372 the variable `display_hourglass_p'.
5373
5e101746
RS
53742002-01-31 Richard M. Stallman <rms@gnu.org>
5375
5376 * editfns.c (region_limit): Nicer error message.
5377
5378 * coding.c (decode_composition_emacs_mule):
5379 Give up if NCOMPONENT gets too large to index `component'.
5380
5381 * callint.c (check_mark): New arg to specify clearer error message.
5382 Callers changed.
5383
53842002-01-27 Richard M. Stallman <rms@gnu.org>
5385
5386 * minibuf.c (Fcompleting_read): Doc fix.
5387
f00691a3 53882002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
5389
5390 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
5391 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
5392 Fix doc-strings.
7a4b11ca 5393
f5798fbd
RS
53942002-01-26 Richard M. Stallman <rms@gnu.org>
5395
5396 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
5397
5398 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
5399 and scroll_up_aggressively.
5400
f00691a3 54012002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
5402
5403 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
5404
3a232704
SM
54052002-01-25 Stefan Monnier <monnier@cs.yale.edu>
5406
5407 * textprop.c (Fnext_property_change, Fnext_single_property_change)
5408 (Fprevious_property_change, Fprevious_single_property_change):
5409 Stay within the narrowed-buffer boundaries.
5410
dd939ea1
EZ
54112002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5412
5413 * term.c (Ftty_display_color_cells): New function.
5414 (syms_of_term): Defsubr it.
0011f346
EZ
5415 (Ftty_display_color_cells, Ftty_display_color_p): Change the
5416 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
5417
5418 * dispextern.h: Add prototype for set_tty_color_mode and
5419 tty_setup_colors.
5420
aa35b6ad
JR
54212002-01-24 Jason Rumney <jasonr@gnu.org>
5422
5423 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
5424 If region left to draw is not what was expected, mark the frame as
5425 garbaged.
5426
5427 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
5428 Combine the regions returned by BeginPaint and GetUpdateRect.
5429
ab76d376
JR
54302002-01-23 Jason Rumney <jasonr@gnu.org>
5431
5432 * w32term.c (x_update_window_begin): Only hide caret if
5433 w32_use_visible_system_caret is set.
5434 (x_update_window_end): Only show caret if
5435 w32_use_visible_system_caret is set.
5436 (syms_of_w32term): Handle SystemParametersInfo call failing.
5437
5438 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
5439
d89b617d
RS
54402002-01-22 Richard M. Stallman <rms@gnu.org>
5441
5442 * unexelf.c (unexec): Define n so as to cause compilation error
5443 for the code where people have often written n instead of nn.
5444
5445 * .gdbinit (hookpost-run): Defined.
5446
a97e4138 54472002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
f0b9a067
JD
5448
5449 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
5450
a97e4138 54512002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5f9338d5
JD
5452
5453 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
5454 if fullscreen is being set.
5455
f00691a3 54562002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
5457
5458 * minibuf.c (Fminibuffer_contents)
5459 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
5460 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
5461
8cc0e0cf
RS
54622002-01-21 Richard M. Stallman <rms@gnu.org>
5463
5464 * window.c (check_frame_size): Fix minimum height calculation.
5465
d7b8ee68
KR
54662002-01-20 Ken Raeburn <raeburn@gnu.org>
5467
5468 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
5469 height before comparison.
5470 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
5471
c3c14723
JR
54722002-01-20 Jason Rumney <jasonr@gnu.org>
5473
5474 * w32term.c (w32_system_caret_width): Remove.
5475 (w32_use_visible_system_caret): New user flag.
5476 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
5477 Windows reports a screen reader running.
5478 (x_update_window_begin): Hide the system caret.
5479 (x_update_window_end): Show the system caret.
5480 (x_display_and_set_cursor): Don't draw a cursor when
5481 w32_use_visible_system_caret is set. Do not adjust width.
5482
5483 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
5484 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
5485 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
5486 the user requests it. Use system default width when creating.
5487 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
5488
95c11956
SM
5489 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
5490 New window messages.
c3c14723 5491
75e20bec
RS
54922002-01-20 Richard M. Stallman <rms@gnu.org>
5493
5494 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
5495
f00691a3 54962002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
5497
5498 * doprnt.c (doprnt1): Fix typos in error call.
5499
3b927d14
EZ
55002002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5501
5502 * unexelf.c (unexec) [__sgi]: Support the .got sections.
5503
aa06cb9c
JR
55042002-01-20 Jason Rumney <jasonr@gnu.org>
5505
5506 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
5507 that Windows returns. If a double check fails, try to guess how
5508 ExtTextOut is going to act.
5509
5510 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
5511 in place of stricmp.
5512 (w32_list_synthesized_fonts): Removed.
5513 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
5514 (struct enumfont_t): New element; list.
5515 (enum_font_cb2): List all style and charset variations of a font.
5516 (Fw32_select_font): New optional argument; include_proportional.
5517 Exclude vertical fonts. Exclude proportional fonts unless
5518 include_proportional is non-nil.
5519 (w32_enable_synthesized_fonts): Change to a boolean.
5520 (Fw32_send_sys_command): Doc fix.
5521
f00691a3 55222002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
5523
5524 * dispnew.c (update_frame): Move the variable `tem' to the block
5525 where it is used.
5526
815d969e
JR
55272002-01-19 Jason Rumney <jasonr@gnu.org>
5528
5529 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
5530 call to face-set-after-frame-default.
5531
a1e3dda0
RS
55322002-01-18 Richard M. Stallman <rms@gnu.org>
5533
95c11956 5534 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
5535 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
5536
daf516d3
RS
55372002-01-17 Richard M. Stallman <rms@gnu.org>
5538
5539 * window.c (enlarge_window): When exceeding size of parent,
5540 directly delete all the siblings instead of trying to resize it.
5541
f00691a3 55422002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
5543
5544 * term.c (set_tty_color_mode): Remove unused variable `tem'.
5545
3ddff138
RS
55462002-01-16 Henrik Enberg <henrik@enberg.org>
5547
7adfc0d7 5548 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 5549
465c9390
KS
55502002-01-16 Kim F. Storm <storm@cua.dk>
5551
5552 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
5553 is invisible. This can happen if cursor is on top line of a
5554 window, and we switch to a buffer with a header line.
5555
95c11956 5556 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 5557
f00691a3 55582002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
5559
5560 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
5561 `dont_resize' only when used.
5562
5563 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
5564
26f622b3
EZ
55652002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
5566
5567 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 5568 on multibyteness of elt, not the text in field.
26f622b3 5569
f00691a3 55702002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a 5571
31ade731
SM
5572 * buffer.c (Fkill_all_local_variables):
5573 Increment `update_mode_lines' only once.
1a6db83a 5574
f00691a3 55752002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 5576
aa1977d7
PJ
5577 * lisp.h (adjust_after_replace_noundo)
5578 (Fupdate_coding_systems_internal): Add prototypes.
5579
95c11956 5580 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 5581
3947677c
EZ
55822002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
5583
5584 Support for the --color command-line argument and tty-color-mode
5585 frame parameter:
5586
5587 * term.c (tty_default_color_capabilities, tty_setup_colors)
5588 (set_tty_color_mode): New functions.
5589 (term_init): Call tty_default_color_capabilities.
5590 (Qtty_color_mode_alist): New variable.
5591 (syms_of_term): Intern and staticpro it.
5592
5593 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
5594 frames.
5595 (do_switch_frame): For termcap frames, switch the tty
5596 color mode as specified by the frame's parameters.
5597 (Qtty_color_mode): New variable.
5598 (syms_of_frame): Intern and staticpro it.
5599
5600 * emacs.c (USAGE2): Add the --color option.
5601 (standard_args): Ditto.
5602
a97e4138 56032002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8a8e19a3
EZ
5604
5605 * xterm.h (struct x_output): New members want_fullscreen,
5606 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
5607 y_pixels_outer_diff.
5608 New enum for FULLSCREEN_* constants.
5609 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
5610 is NULL.
5611 (x_fullscreen_adjust): Add prototype.
5612
5613 * emacs.c (USAGE2): Add the new full-screen arguments.
5614 (standard_args): Ditto.
5615
95c11956
SM
5616 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
5617 New variables.
8a8e19a3
EZ
5618 (syms_of_xfns): Intern and staticpro them.
5619 (x_frame_parms) <"fullscreen">: New parameter.
5620 (x_fullscreen_move, x_set_fullscreen): New functions.
5621 (x_set_frame_parameters): Support for Qfullscreen.
5622 (x_real_positions): More accurate computation of the frame position.
5623 (x_figure_window_size): Support full-screen frames.
5624 (Fx_create_frame): Default the fullscreen parameter.
5625
5626 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
5627 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
5628 <ConfigureNotify>: Don't resize to fullscreen.
5629 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
5630 output_data.x.
5631
4f1b1854
JR
56322002-01-13 Jason Rumney <jasonr@gnu.org>
5633
5634 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
5635 for mice with more than 3 buttons.
5636
5637 * w32term.c (parse_button): New parameter xbutton. Callers changed.
5638 (w32_read_socket): Handle new "XBUTTON" messages.
5639
5640 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
5641 (syms_of_w32fns): DEFVAR_BOOL it.
5642 (w32_wnd_proc): Handle new "XBUTTON" messages.
5643
f00691a3 56442002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 5645
95c11956 5646 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 5647
437dfb9f
AS
56482002-01-13 Andreas Schwab <schwab@suse.de>
5649
5650 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
5651
9f696a00
AS
56522002-01-12 Andreas Schwab <schwab@suse.de>
5653
5654 * .gdbinit (xbuffer): Remove address operator since data is now a
5655 pointer.
5656
d57966d7
RS
56572002-01-11 Richard M. Stallman <rms@gnu.org>
5658
5659 * insdel.c (adjust_after_replace_noundo): New function.
5660
5661 * coding.c (code_convert_region): Don't copy old text if undo disabled.
5662
74779f52
JR
56632002-01-09 Jason Rumney <jasonr@gnu.org>
5664
5665 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
5666 when checking for multiple frames.
5667
a474d59c
RS
56682002-01-08 Richard M. Stallman <rms@gnu.org>
5669
5670 * window.c (delete_window): Rewrite the code for changing the
5671 selected window to handle the case where WINDOW is not a leaf.
5672
fbb70ad9
EZ
56732002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
5674
5675 * process.c (send_process): Set src_multibyte to 1 after the call
5676 top setup_coding_system, not before the call.
5677
2d10309f
JR
56782002-01-07 Jason Rumney <jasonr@gnu.org>
5679
5680 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 5681 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
5682
5683 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
5684 (w32_dialog_show): Initialize wv->help to Qnil.
5685
7f2cddf3
JR
56862002-01-06 Jason Rumney <jasonr@gnu.org>
5687
0b1e6b54
JR
5688 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
5689
7f2cddf3
JR
5690 * w32menu.c (w32_menu_display_help): Revert last change.
5691
5692 * xmenu.c (menu_highlight_callback): Revert last change.
5693
e17144de
AS
56942002-01-06 Andreas Schwab <schwab@suse.de>
5695
5696 * insdel.c (make_gap_larger): Make sure buffer size does not
5697 overflow range of int.
5698
6637c996
JR
56992002-01-05 Jason Rumney <jasonr@gnu.org>
5700
44368f8f
JR
5701 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
5702 OVERLAPS_P.
5703
f884b6f4
JR
5704 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
5705
6637c996
JR
5706 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
5707 to the left or to the right of the pointer, put it against
5708 the left screen edge.
5709 (x_frame_parms): Add missing braces around initializer.
5710
5711 * w32term.c (x_setup_relief_colors): Don't compute an image's
5712 background color if it doesn't have a Pixmap.
5713 (notice_overwritten_cursor): Don't depend on
5714 output_cursor and updated_area. Compare pixel coordinates with
5715 window's cursor pixel coordinates.
3a232704
SM
5716 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5717 Call notice_overwritten_cursor with new arg list.
6637c996
JR
5718 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5719 unconditionally.
5720 (x_draw_image_relief): Use predefined macro instead of
5721 constant when the value of `tool_bar_button_relief' is negative.
5722
5723 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
5724
453c5510
RS
57252002-01-04 Richard M. Stallman <rms@gnu.org>
5726
5727 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
5728
d1d070e3
RS
57292002-01-03 Richard M. Stallman <rms@gnu.org>
5730
5731 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
5732 (Fkey_binding): Try the `keymap' property map first.
5733 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
5734 minor mode bindings.
5735
9ec1bdb6
KS
57362002-01-03 Kim F. Storm <storm@cua.dk>
5737
5738 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
5739
308dd672
RS
57402002-01-02 Richard M. Stallman <rms@gnu.org>
5741
edde72f6
RS
5742 * keyboard.c (read_key_sequence): Handle the keymap property
5743 before minor mode maps.
5744
308dd672
RS
5745 * editfns.c (Fformat): Update thissize from field_width
5746 based on the actual width, in the string case.
5747
f00691a3 57482002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 5749
03950b5b
PJ
5750 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
5751 when used as truth value to prevent gcc warnings.
5752
3c1e6b46
PJ
5753 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
5754 * w32proc.c: Include <config.h>.
5755
c1e11810
AS
57562002-01-01 Andreas Schwab <schwab@suse.de>
5757
5758 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
5759 not EMACS_INT, to make them compatible with DEFVAR_INT.
5760 * lisp.h (max_specpdl_size): Adjust declaration.
5761
1996baee
RS
57622002-01-01 Richard M. Stallman <rms@gnu.org>
5763
5764 * print.c (print_object): Test print_escape_nonascii only for
5765 unibyte strings.
5766 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
5767 when outputting to a multibyte buffer.
5768
0065bb74
RS
57692001-12-29 Richard M. Stallman <rms@gnu.org>
5770
5771 * print.c (print_object): In multibyte string, use hex escapes.
5772 Use octal only for unibyte strings.
5773 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
5774
5775 * lread.c (read_escape): New arg BYTEREP for reporting whether
5776 escape forces unibyte or multibyte.
5777 (read1): When reading a string, take note of that info.
5778
b5cb6072
KR
57792001-12-29 Ken Raeburn <raeburn@gnu.org>
5780
5781 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
5782 comparison to test lisp value returned by Fget.
5783
15fff01d
RS
57842001-12-29 Richard M. Stallman <rms@gnu.org>
5785
0065bb74
RS
5786 * lisp.h (max_specpdl_size): Add declaration.
5787
0d8466cc
RS
5788 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
5789
15fff01d
RS
5790 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
5791 Handle modifier bits. Correct typo in error message.
5792
2fae9111
RS
57932001-12-28 Richard M. Stallman <rms@gnu.org>
5794
2d6c1fc0
RS
5795 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
5796 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
5797 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
5798 Update calls to Fdefine_abbrev.
5799 (write_abbrev): Update for changed data format.
5800 Don't list "system" abbrevs.
5801 (Fexpand_abbrev): Update use count with new data format.
5802 (describe_abbrev): Update for changed data format.
5803 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
5804
07025a55
RS
5805 * config.in (HAVE_MBSINIT): Add #undef.
5806
5807 * strftime.c (mbsinit): Define as no-op if not available.
5808
5809 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
5810 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
5811
ce6eef6e
RS
5812 * keymap.c (Flookup_key): Error message if key has wrong data type.
5813 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 5814 (exclude_key): New variable.
3a232704 5815
539e92ad
GM
58162001-12-28 Gerd Moellmann <gerd@gnu.org>
5817
0cb8bb48
GM
5818 * xterm.c (x_setup_relief_colors): Don't compute an image's
5819 background color if it doesn't have a Pixmap.
3a232704 5820
60626bab
GM
5821 * xterm.c (notice_overwritten_cursor): Don't depend on
5822 output_cursor and updated_area. Compare pixel coordinates with
5823 window's cursor pixel coordinates.
3a232704
SM
5824 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5825 Call notice_overwritten_cursor with new arg list.
60626bab
GM
5826 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5827 unconditionally.
0cb8bb48 5828
539e92ad
GM
5829 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
5830 height of the cursor line to the amount to scroll.
5831
4e02881b
RS
58322001-12-27 Richard M. Stallman <rms@gnu.org>
5833
5834 * intervals.c (set_point_both): The position after an invisible,
5835 intangible character is not an acceptable stopping point.
5836
1ab964d7
KR
58372001-12-27 Ken Raeburn <raeburn@gnu.org>
5838
5839 * window.c (enlarge_window): In new preserve_before code, convert
5840 CURBEG from lisp object to integer before doing arithmetic.
5841
749f499f
RS
58422001-12-27 Richard M. Stallman <rms@gnu.org>
5843
5844 * bytecode.c (Fbyte_code): Undo previous change.
5845
b5d9aaba
KS
58462001-12-26 Kim F. Storm <storm@cua.dk>
5847
5848 * keyboard.c (record_char): Ignore duplicate help-echo events only
5849 separated by mouse-movement. When tracking mouse, only record
5850 first and last mouse-movement event in same window.
5851 Don't record mouse-movement events in keyboard macros.
3a232704 5852
d0fd26dd
RS
58532001-12-25 Richard M. Stallman <rms@gnu.org>
5854
b4c45162
RS
5855 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
5856 (Fenlarge_window): New arg PRESERVE_BEFORE.
5857
d0fd26dd
RS
5858 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
5859 instead of Fstring_as_unibyte.
5860
f00691a3 58612001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 5862
3a232704 5863 The following changes remove mocklisp support:
c95eaa61
PJ
5864
5865 * mocklisp.h, mocklisp.c: Files removed.
5866
5867 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
5868 `Qmocklisp' and `Qmocklisp_arguments'.
5869 Remove prototype of syms_of_mocklisp.
5870
3a232704 5871 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
5872
5873 * callint.c: Do not include mocklisp.h.
5874 (Fcall_interactively): Do not test for mocklisp case.
5875
5876 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
5877 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
5878 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
5879 Do not test for mocklisp case.
c95eaa61
PJ
5880 (Fwhile): Remove unused variable `tem'.
5881 (syms_of_eval): Remove variable `moclisp-arguments'.
5882
5883 * data.c (wrong_type_argument): Remove mocklisp case.
5884
5885 * doc.c (Fdocumentation): Remove mocklisp case.
5886
5887 * emacs.c (main): Do not call syms_of_mocklisp.
5888
31877e0a
RS
58892001-12-21 Richard M. Stallman <rms@gnu.org>
5890
5891 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
5892 to the left or to the right of the pointer, put it against
5893 the left screen edge.
5894
e2c3786a
EZ
58952001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
5896
5897 * Makefile.in (distclean): Remove .gdbinit if we are building
5898 outside the source tree.
5899
c513fc03
EZ
59002001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5901
bf794306
EZ
5902 * w32.c (emacs_root_dir): New function.
5903
5904 * msdos.c (emacs_root_dir): New function.
5905
5906 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
5907 of the current drive as the fallback for default_directory.
5908
62582985
EZ
5909 * dired.c (file_name_completion): Run the elements of
5910 completion-ignored-extensions through ENCODE_FILE.
5911
c513fc03
EZ
5912 * lisp.h (scmp): Remove prototype, since it's now a static
5913 function private to dired.c.
5914
3509a04c
RS
59152001-12-18 Richard M. Stallman <rms@gnu.org>
5916
5917 * dired.c (scmp): Function moved from minibuf.c.
5918 Delete multibyte handling--used only on encoded strings.
5919
5920 * minibuf.c (scmp): Function moved to dired.c.
5921
5922 * fns.c (merge): Add QUIT call.
5923
1e9a6186
DL
59242001-12-18 Dave Love <fx@gnu.org>
5925
5926 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
5927 language/georgian.el.
5928
e4e34e31
EZ
59292001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5930
5931 * Makefile.in (lisp, shortlisp): Synchronize with changes to
5932 lisp/Makefile.in:DONTCOMPILE.
5933
f00691a3 59342001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 5935
7c75be36
PJ
5936 * xdisp.c (window_box_height): Do not return negative values.
5937 From Gerd Moellmann <gerd@gnu.org>.
5938
4521d1fc
PJ
5939 * keyboard.c (head_table): Add missing braces around initializer.
5940
5941 * term.c (keys): Likewise.
5942
5943 * xfns.c (x_frame_parms, visual_classes): Likewise.
5944
93dec019
SS
59452001-12-17 Sam Steingold <sds@gnu.org>
5946
5947 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
5948 patch (COMPOSING_P, not COMPOSING).
5949
905cc05a
RS
59502001-12-17 Richard M. Stallman <rms@gnu.org>
5951
2ed06289
RS
5952 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
5953
0e79d667
RS
5954 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
5955 before calling decode_coding.
5956
5957 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
5958
5959 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
5960 instead of only for COMPOSITION_DISABLED.
5961
82a7ab23
RS
59622001-12-16 Richard M. Stallman <rms@gnu.org>
5963
d75bec6a
RS
5964 * alloc.c (pure_alloc): After overflow, allocate just a small block.
5965
52dcb476
RS
5966 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
5967
82a7ab23
RS
5968 * buffer.h (struct buffer): New field `display_error_modiff'.
5969 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
5970
5971 * window.c (Frecenter): Clear display_error_modiff field.
5972
5973 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
5974 Call redisplay_window, but not if display_error_modiff field says no.
5975 (redisplay_window_error): New function.
5976 (displayed_buffer): New variable.
5977 (redisplay_internal, redisplay_windows): Call the new functions
5978 instead of redisplay_window directly.
5979
4d0fa4f3
RS
59802001-12-15 Richard M. Stallman <rms@gnu.org>
5981
5982 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
5983
493faf20
AI
59842001-12-14 Andrew Innes <andrewi@gnu.org>
5985
325111e9
AI
5986 * makefile.w32-in (EMACSLOADPATH): Define.
5987 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
5988 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 5989
4971e491
EZ
59902001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
5991
397b3b50 5992 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
5993 parameter have a numeric value all the time.
5994
5995 * w32fns.c (x_report_frame_params): Likewise.
5996
d911a0fa
RS
59972001-12-12 Richard M. Stallman <rms@gnu.org>
5998
5999 * fileio.c (Fwrite_region): Doc fix.
6000
6001 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
6002 (redisplay_internal): Call clear_image_cache only for window terminals.
6003
201c831a
GM
60042001-12-12 Gerd Moellmann <gerd@gnu.org>
6005
6006 * xdisp.c (move_it_vertically_backward): Change heuristic
6007 for the case that we didn't move far enough initially.
6008
6009 * window.c (Frecenter): Simplify computation in the case of window
6010 system frames and ARG < 0; use window_box_height.
6011
34e39c95
RS
60122001-12-11 Richard M. Stallman <rms@gnu.org>
6013
6014 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
6015 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6016
d77fbc16
AI
60172001-12-11 Andrew Innes <andrewi@gnu.org>
6018
6019 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
6020 arg is negative.
6021
61e3b944
RS
60222001-12-11 Richard M. Stallman <rms@gnu.org>
6023
6024 * m/hp800.h: Split the __hpux conditional into the parts
6025 that are right for GNU/Linux too and the parts that are not.
6026 Use the former if GNU_LINUX.
6027 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
6028
6029 * s/gnu-linux.h (GNU_LINUX): Defined.
6030
f00691a3 60312001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
6032
6033 * macros.c, msdos.c, w16select.c: Change doc-string comments to
6034 `new style' [w/`doc:' keyword].
6035
8af01033
JR
60362001-12-10 Jason Rumney <jasonr@gnu.org>
6037
6038 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
6039 before using.
6040
f00691a3 60412001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
6042
6043 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
6044 keyword].
6045
d9e6c4b1
EZ
60462001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
6047
d20fc48a
EZ
6048 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
6049
d9e6c4b1
EZ
6050 * s/hpux10.h (srand48): Don't undefine.
6051
f1a85b89
JR
60522001-12-09 Jason Rumney <jasonr@gnu.org>
6053
3a232704
SM
6054 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
6055 Add comment to explain where the struct came from.
f1a85b89
JR
6056 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
6057 (add_menu_item): Process pop-up menus first to avoid memory leak.
6058 (add_menu_item, w32_menu_display_help): Use `help' field as
6059 Lisp_Object.
6060 (w32_free_submenu_strings): Only free owner-drawn strings.
6061
f00691a3 60622001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 6063
72244db2
PJ
6064 * COPYING: Moved back.
6065
3a62677f
PJ
6066 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
6067 Add parentheses around && within ||.
6068
6069 * indent.c (compute_motion): Likewise.
6070
6071 * intervals.c (merge_properties_sticky): Likewise.
6072
6073 * coding.c (setup_coding_system, shrink_encoding_region)
6074 (Fdecode_sjis_char): Likewise.
6075
9d113d9d
AS
60762001-12-07 Andreas Schwab <schwab@suse.de>
6077
b8523839
AS
6078 * xdisp.c (display_mode_element): Don't read past end of string if
6079 it ends with '%'.
6080
9464dea4
AS
6081 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
6082 can hold.
6083
2c568af5
SM
6084 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
6085 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
9d113d9d
AS
6086 type changed to Lisp_Object.
6087 (syms_of_data): DEFVAR_LISP them.
6088
70ec1377
RS
60892001-12-07 Richard M. Stallman <rms@gnu.org>
6090
6091 * callproc.c (init_callproc): Set Vdata_directory based on the source
6092 location whenever Emacs was run uninstalled.
6093
92f7dd37
PE
60942001-12-06 Paul Eggert <eggert@twinsun.com>
6095
6096 * config.in (HAVE_WORKING_VFORK): New #undefs.
6097 * process.c (create_process):
6098 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
6099 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
6100 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
6101 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
6102 * m/intel386.h (HAVE_VFORK): Likewise.
6103 * m/mips-siemens.h (HAVE_VFORK): Likewise.
6104 * m/mips.h (HAVE_VFORK): Likewise.
6105 * s/freebsd.h (vfork): Remove #define.
6106 * s/lynxos.h (HAVE_VFORK): Remove #undef.
6107 * s/usg5-4-2.h: Fix comment about vfork.
6108
c93674bb
RS
61092001-12-06 Richard M. Stallman <rms@gnu.org>
6110
6111 * s/hpux10.h (random): Add undef.
6112 (HAVE_RANDOM): Define it just once.
6113
59b59892
SM
61142001-12-06 Stefan Monnier <monnier@cs.yale.edu>
6115
6116 * eval.c: Undo last change: the standard syntax is not wanted.
6117
c6ea2775
EZ
61182001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
6119
6120 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
6121 scroll bars of the frame before deleting the frame itself. If the
6122 frame has a widget, delete the frame with XtDestroyWidget, and do
6123 not call XDestroyWindow before that.
6124
91175673
KS
61252001-12-06 Kim F. Storm <storm@cua.dk>
6126
6127 * xfns.c (x_report_frame_params): Return actual fringe widths.
6128
6129 * w32fns.c (x_report_frame_params): Return actual fringe widths.
6130
e0fead5d
AI
61312001-12-05 Andrew Innes <andrewi@gnu.org>
6132
6133 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
6134 excessively large.
6135
6136 * insdel.c (make_gap_larger): New function.
6137 (make_gap_smaller): New function.
2c568af5
SM
6138 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
6139 Call make_gap_smaller if arg is negative.
e0fead5d 6140
c186cdb3
SM
61412001-12-04 Stefan Monnier <monnier@cs.yale.edu>
6142
6143 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
6144 Pass a dummy argument when calling interrupt_signal.
6145 (parse_menu_item): Mark disabled items before checking for empty def.
6146 (read_char_minibuf_menu_prompt): Make safety more visible.
6147 (read_key_sequence): Add a `first_unbound' variable.
6148 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
6149 unbound prefix as soon as we can detect it.
6150
6151 * doc.c (Fsnarf_documentation): Add prototype.
6152 (get_doc_string): Handle negative arguments.
6153 (Fdocumentation): Use AREF and ASIZE.
6154 Move the calls to get_doc_string to a single place.
6155 Don't confuse an interactive-spec for a docstring reference.
6156 (Fdocumentation_property): Take advantage of the fact that
6157 get_doc_string now ignores the sign of the docstring position.
6158
6159 * eval.c: Use standard syntax for usage in docstrings.
6160
f00691a3 61612001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 6162
c186cdb3 6163 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 6164
f00691a3 61652001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
6166
6167 * xterm.c (x_draw_image_relief): Use predefined macro instead of
6168 constant when the value of `tool_bar_button_relief' is negative.
6169
656f46bb
RS
61702001-12-02 Richard M. Stallman <rms@gnu.org>
6171
6172 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
6173 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
6174
6175 * fileio.c (read_non_regular): Delete Fsignal call.
6176
036e218d
SM
61772001-12-01 Stefan Monnier <monnier@cs.yale.edu>
6178
6179 * lisp.h (run_hook_list_with_args): Undo last change.
6180
7ddb2c16
GM
61812001-12-01 Gerd Moellmann <gerd@gnu.org>
6182
6183 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
6184
ace9b298
JR
61852001-12-01 Jason Rumney <jasonr@gnu.org>
6186
90647b07
JR
6187 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
6188
6189 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
6190 [!WM_MOUSELEAVE]: Define.
6191
ace9b298
JR
6192 * w32menu.c (current_popup_menu, get_menu_item_info):
6193 (set_menu_item_info): New vars.
6194 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
6195 (w32_menu_show): Set current_popup_menu.
6196 (add_menu_item): Allocate new strings for owner-drawn menu items
6197 and help strings.
6198 Use owner-draw for disabled menu items again.
6199 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
6200 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
6201
6202 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
6203 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
6204 <WM_EXITMENULOOP>: Free menu strings.
6205 <WM_MOUSELEAVE>: Stop tracking mouse.
6206 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
6207
6208 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
6209 and mouse face.
6210
a9549909 62112001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
6212
6213 The following changes add left-fringe and right-fringe
6214 frame parameters to adjust fringe widths, or remove one or
6215 both fringes.
036e218d 6216
9fbc32aa
KS
6217 * frame.h (struct frame): Remove trunc_area_pixel_width and
6218 trunc_area_cols fields.
6219 (Qleft_fringe, Qright_fringe): Declare.
6220 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
6221
6222 * frame.c (Qleft_fringe, Qright_fringe): New vars.
6223 (syms_of_frame): Initialize them.
6224
6225 * window.c (coordinates_in_window): Handle separate left and right
6226 fringe widths.
6227
6228 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
6229 and fringe_cols fields.
6230 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
6231 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
6232 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
6233 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
6234 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
6235 (x_compute_fringe_widths): Add prototype.
6236
6237 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
6238 fill fringe evenly with small dashes.
6239 (x_draw_fringe_bitmap): Clear background if necessary. Align and
6240 clip the new ZV bitmap to avoid jitter between rows.
6241 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
6242 background. Don't draw fringe bitmaps if fringe width is zero.
6243 (x_compute_fringe_widths): New function.
6244 (x_new_font, x_set_window_size_1): Use it.
6245
6246 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 6247 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
6248 parameters as fringe widths depend on it.
6249 (x_set_fringe_width): New function.
6250 (x_figure_window_size): Use x_compute_fringe_widths.
6251 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
6252 parameters.
6253
6254 * widget.c (set_frame_size): Use x_compute_fringe_widths.
6255 (EmacsFrameSetCharSize): Ditto.
6256
6257 * w32term.h: Merged changes from xterm.h.
6258 * w32term.c: Merged changes from xterm.c.
6259 * w32fns.c: Merged changes from xfns.c.
6260
f00691a3 62612001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
6262
6263 * COPYING: Removed.
6264
d4824a5d
DL
62652001-11-29 Dave Love <fx@gnu.org>
6266
6267 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
6268 extra extra slot.
6269 (detect_coding_mask): Fix call of detect_coding_iso2022.
6270
f00691a3 62712001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
6272
6273 * fileio.c (file-name-coding-system)
6274 (default-file-name-coding-system): Doc fix (links to referenced
6275 variables added).
6276
3ce081f5
SM
62772001-11-28 Stefan Monnier <monnier@cs.yale.edu>
6278
99e380ee
SM
6279 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6280 Add dummy uses of gcproN variables.
6281
3ce081f5 6282 * category.c (describe_category, describe_category_1)
2ad56c09 6283 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
6284 (syms_of_category): Don't defsubr Sdescribe_categories.
6285
66458f32
RS
62862001-11-28 Richard M. Stallman <rms@gnu.org>
6287
6288 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
6289
6290 * Makefile.in (lispdir): New variable, referring to build dir.
6291 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
6292
59a86c99
AI
62932001-11-28 Andrew Innes <andrewi@gnu.org>
6294
6295 * w32menu.c (w32_menu_display_help): Actually add the new argument
6296 OWNER.
6297
eb77a5f4
JR
62982001-11-28 Jason Rumney <jasonr@gnu.org>
6299
6300 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
6301 menu items. From David Ponce <dponce@wanadoo.fr>.
6302 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
6303 conditionally.
6304 (w32_menu_display_help): New argument OWNER. Rewritten to store a
6305 help event in the owner frame's keyboard buffer.
6306
6307 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
6308 (Fx_show_tip): Don't subtract last width from row width.
6309
6310 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
6311 (w32_read_socket): Use EQ to compare frames.
6312
bb313871
GM
63132001-11-28 Gerd Moellmann <gerd@gnu.org>
6314
6315 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6316 OVERLAPS_P.
6317
f00691a3 63182001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 6319
6052529b
PJ
6320 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
6321 `gcpro3' and `gcpro4'.
6322
3ce081f5
SM
6323 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
6324
63252001-11-28 Stefan Monnier <monnier@cs.yale.edu>
6326
6327 * ccl.c: Use AREF and ASIZE.
6328
63292001-11-27 Stefan Monnier <monnier@cs.yale.edu>
6330
6331 * lisp.h (run_hook_list_with_args): Remove.
6332 (LIST_END_P): Fix call to wrong_type_argument.
6333 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 6334
111ed14e
SM
63352001-11-26 Stefan Monnier <monnier@cs.yale.edu>
6336
9fabb2f5
SM
6337 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
6338 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
6339
6340 * eval.c: Use AREF and ASIZE.
6341 (Ffetch_bytecode): Add the file name to the error message.
6342
6343 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
6344 which match the end of the file-name.
6345 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
6346 is not a valid env var, but leave it as is instead.
6347
111ed14e
SM
6348 * keymap.c (access_keymap): Handle t bindings like nil bindings.
6349 Make nil bindings in char-tables transparent.
6350 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
6351
2fa0eedf
RS
63522001-11-26 Richard M. Stallman <rms@gnu.org>
6353
d1420435
RS
6354 * textprop.c (set_text_properties_1): Allow START, END in either order.
6355 Do nothing if range is empty.
6356
2fa0eedf
RS
6357 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
6358
ebcbef4e
RS
6359 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
6360 (clean): Not here.
6361
5c131048
SM
63622001-11-25 Stefan Monnier <monnier@cs.yale.edu>
6363
6364 * textprop.c (set_text_properties_1): Clearly mark that the
6365 interval should not be empty.
6366
6367 * intervals.c (graft_intervals_into_buffer):
6368 Don't call set_text_properties_1 on an empty interval.
6369
96d276c3
RS
63702001-11-25 Richard M. Stallman <rms@gnu.org>
6371
6108b49c
RS
6372 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
6373
96d276c3
RS
6374 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
6375 don't lose the data in it.
6376
5eea19a4
RS
63772001-11-25 Juanma Barranquero <lektu@terra.es>
6378
6379 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
6380
6381 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
6382
6383 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
6384
438e57dd
SM
63852001-11-25 Stefan Monnier <monnier@cs.yale.edu>
6386
6387 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
6388
c88e5347
EZ
63892001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
6390
6391 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
6392 Niemitalo <kon@iki.fi>.
6393
59ce1461
JR
63942001-11-25 Jason Rumney <jasonr@gnu.org>
6395
6396 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
6397
6398 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
6399 (Fx_show_tip): Block input during frame creation.
6400 (Fx_show_tip, Fx_hide_tip): Enable.
6401
8727d588
RS
64022001-11-24 Richard M. Stallman <rms@gnu.org>
6403
6404 * lread.c (Fload): Detect recursive load error for more than 3
6405 nestings of the same file.
6406 (Vrecursive_load_depth_limit): Variable deleted.
6407 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
6408
cc63037e
JR
64092001-11-24 Jason Rumney <jasonr@gnu.org>
6410
6411 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
6412 mouse position if either left or top is not specified.
6413
6414 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
6415 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
6416 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
6417 (my_create_tip_window): Assign tip_window.
6418 (x_create_tip_frame): Use same defaults as X.
6419 (compute_tip_xy): Remove unused variable. Use full screen width.
6420 (Fx_show_tip): Do not double height. Call ShowWindow directly.
6421
6422 * w32term.c (x_after_update_window_line): Doc fix.
6423 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
6424 frames.
6425 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
6426
6427 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
6428 for all Windowed systems.
6429
deece6f5
EZ
64302001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6431
6432 * msdos.c (IT_clear_screen): If the frame's faces are not yet
6433 realized, use the initial screen colors to clear the screen.
6434
f00691a3 64352001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 6436
28ff4293
PJ
6437 * textprop.c (Fset_text_properties): Remove unused variables
6438 `unchanged', `prev_changed', `s' and `len'.
6439
56167cc5
PJ
6440 * search.c (Freplace_match): Remove unused variable `inslen'.
6441
1b944d9c
PJ
6442 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
6443
ca56d953
JR
64442001-11-22 Jason Rumney <jasonr@gnu.org>
6445
6446 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
6447 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
6448 (my_create_tip_window): New function.
6449 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 6450 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 6451
33399dce
JR
64522001-11-20 Jason Rumney <jasonr@gnu.org>
6453
6454 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
6455 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
6456
6457 * w32fns.c (Vw32_system_coding_system): Remove.
6458 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
6459
9b46de40
SM
64602001-11-19 Stefan Monnier <monnier@cs.yale.edu>
6461
6710ea06
SM
6462 * fileio.c (Fwrite_region): Move choose_write_coding_system to
6463 after build_annotations.
6464
a395ef6a
SM
6465 * syntax.c (describe_syntax): Add dummy arg.
6466 (describe_syntax_1): Update call to describe_vector.
6467
6468 * category.c (describe_category): Add dummy arg.
6469 (describe_category_1): Update call to describe_vector.
6470
6471 * keymap.c (Fdescribe_vector): Add `describer' parameter.
6472 (describe_command, describe_translation): Add dummy second param.
6473 (describe_map): Call elt_describer with two arguments.
6474 (describe_vector_princ): Add `fun' parameter.
6475 Call it instead of the hardcoded `princ'.
6476 (describe_vector): Add arg `args'.
6477 Pass it as a new second argument to elt_describer.
6478
6479 * keymap.h (describe_vector): Update prototype.
6480
9b46de40
SM
6481 * frame.c: Don't include keymap.h any more.
6482 (keys_of_frame): Remove.
6483
6484 * lisp.h (keys_of_frame): Remove declaration.
6485
6486 * emacs.c (main): Don't call `keys_of_frame' any more.
6487
aff37336
SS
64882001-11-14 Andreas Schwab <schwab@suse.de>
6489
6490 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
6491 if defined, 0 otherwise.
9b46de40 6492 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
6493 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
6494
b9937f07
RS
64952001-11-19 Richard M. Stallman <rms@gnu.org>
6496
6497 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
6498
2cd23960
JR
64992001-11-18 Jason Rumney <jasonr@gnu.org>
6500
6501 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
6502 (x_draw_bar_cursor): If the background color of the glyph under
6503 the cursor equals the frame's cursor color, use the glyph's
6504 foreground color for drawing the bar cursor.
6505 (x_after_update_window_line): Clear internal border in different
6506 circumstances.
6507 (w32_set_vertical_scroll_bar): Check for width and height > 0.
6508 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
6509 (x_set_glyph_string_background_width):
6510 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
6511 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
6512 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
6513 if cursor_in_non_selected_windows is false.
9b46de40 6514 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
6515 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
6516 Notice if cursor gets overwritten.
6517 (notice_overwritten_cursor): Renamed from
6518 note_overwritten_text_cursor. Rewritten to take glyph widths
6519 into account, and to take X positions as parameters.
6520 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
6521 around call to x_draw_glyphs.
6522 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
6523 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
6524 color to use for image glyph reliefs.
6525 (x_draw_image_relief): Accept zero tool_bar_button_relief.
6526 (glyph_rect): Remove unused variable `area'.
6527
6528 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
6529 some items.
6530 (x_set_internal_border_width): Set frame garbaged when window
6531 doesn't exist yet.
6532 (Fx_create_frame): Accept zero tool_bar_button_relief.
6533 (x_clear_image_1, four_corners_best, image_background)
6534 (image_background_transparent): New functions.
6535 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
6536 (gs_format): Add `:background' entry.
6537 (lookup_image): Set IMG's background color if specified.
6538 (pbm_load, xbm_load_image, png_load): Set IMG's background field
6539 when appropriate.
6540 (x_clear_image_1): Reset `background_valid' and
6541 `background_transparent_valid' fields.
6542 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
6543 calculating it here. Set IMG's background_transparent field.
6544 (enum xpm_keyword_index): Add XPM_BACKGROUND.
6545 (enum png_keyword_index): Add PNG_BACKGROUND.
6546 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
6547 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
6548 (enum gif_keyword_index): Add GIF_BACKGROUND.
6549 (enum gs_keyword_index): Add GS_BACKGROUND.
6550 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
6551 Pre-calculate image background color where necessary.
9b46de40
SM
6552 (x_create_x_image_and_pixmap, xbm_load, gs_load):
6553 Use display info's n_cbits entry for screen depth.
2cd23960
JR
6554 (Fx_show_tip): Remove unused variables `buffer', `top',
6555 `left', `max_width' and `max_height'.
6556
6557 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
6558
a4184c1c
GM
65592001-11-18 Gerd Moellmann <gerd@gnu.org>
6560
6561 * puresize.h (BASE_PURESIZE): Increase to 750000.
6562
f00691a3 65632001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
6564
6565 * frame.c (Fframe_live_p): Doc fix.
6566
f4ca4b00
RS
65672001-11-18 Richard M. Stallman <rms@gnu.org>
6568
6569 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
6570 (message_dolog_marker3): New static variables hold three markers.
6571 (syms_of_xdisp): Initialize and staticpro them.
6572 (message_dolog): Use message_dolog_marker1..3 instead of
6573 allocating markers each time. Unchain them when done.
6574
f4e25f94
RS
65752001-11-17 Richard M. Stallman <rms@gnu.org>
6576
6577 * doc.c (Fsnarf_documentation): Doc fix.
6578
91c153e2
AS
65792001-11-17 Andreas Schwab <schwab@suse.de>
6580
6581 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
6582
65b7d3e7
RS
65832001-11-17 Richard M. Stallman <rms@gnu.org>
6584
6585 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
6586
6b5f6311
JR
65872001-11-17 Jason Rumney <jasonr@gnu.org>
6588
6589 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
6590
be676094
GM
65912001-11-17 Gerd Moellmann <gerd@gnu.org>
6592
6593 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
6594 with invalid position.
6595
032a857d
RS
65962001-11-16 Richard M. Stallman <rms@gnu.org>
6597
6598 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
6599
6600 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
6601 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
6602 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
6603
6604 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
6605
b6270150
SM
66062001-11-16 Stefan Monnier <monnier@cs.yale.edu>
6607
6608 * fileio.c (build_annotations): Split off the tail.
6609 (build_annotations_2): New fun. Extracted from build_annotations.
6610 (Fwrite_region): Split the call to build_annotations into two
6611 calls to build_annotations and build_annotations_2.
6612
f00691a3 66132001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 6614
98cbb9fa
PJ
6615 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
6616 clear_waiting_for_input with argument.
6617
6618 * xterm.h (x_update_cursor): Remove duplicated prototype.
6619
b6270150 6620 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 6621
ea904403 6622 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 6623
ea904403 6624 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 6625
fa336b91
SM
66262001-11-16 Stefan Monnier <monnier@cs.yale.edu>
6627
6628 * fileio.c (choose_write_coding_system): New fun, extracted
6629 from Fwrite_region.
6630 (Fwrite_region): Use it.
6631
6632 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
6633 (funcall_lambda, run_hook_with_args): Make static and add prototype.
6634 (ml_apply, find_handler_clause): Add prototype.
6635
077907d4
EZ
66362001-11-16 Eli Zaretskii <eliz@gnu.org>
6637
aa2af83a
EZ
6638 * config.in: Add #undef HAVE_COFF_H.
6639
077907d4
EZ
6640 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
6641 Required for ISC 4.1.
6642
1756e2fb
EZ
66432001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
6644
6645 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
6646 Andrew Wiseman <a.wiseman@btclick.com>.
6647
06e8f738
KS
66482001-11-16 Kim F. Storm <storm@cua.dk>
6649
6650 The following changes are made to clean up the various internal
6651 references to the fringes to actually use the term `fringe' for
6652 them. Previously, they were called `flags areas', `bitmap areas',
6653 `left/right side of windows', or implicitly as `flags' or
6654 `bitmaps':
6655
6656 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
6657 Comments fixed. Use renamed symbols.
fa336b91 6658
06e8f738 6659 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 6660
06e8f738
KS
6661 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
6662 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
6663 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 6664
06e8f738 6665 * msdos.c: Comment fix.
fa336b91 6666
06e8f738 6667 * w32fns.c: Use renamed symbols.
fa336b91 6668
06e8f738
KS
6669 * w32term.c: Comment fixes. Use renamed symbols.
6670 (fringe_bitmap_type): Renamed from bitmap_type.
6671 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
6672 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
6673 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 6674
06e8f738
KS
6675 * w32term.h: Comment fixes. Use renamed symbols.
6676 (fringes_extra): Renamed from flags_areas_extra.
6677 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
6678 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
6679 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
6680 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
6681 (FRAME_X_LEFT_FRINGE_WIDTH):
6682 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
6683 (FRAME_X_RIGHT_FRINGE_WIDTH):
6684 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
6685
06e8f738 6686 * widget.c: Use renamed symbols.
fa336b91 6687
06e8f738
KS
6688 * window.c: Comment fixes. Use renamed symbols.
6689 (coordinates-in-window-p): Doc fix.
fa336b91 6690
06e8f738 6691 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 6692
06e8f738 6693 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 6694
06e8f738 6695 * xfns.c: Use renamed symbols.
fa336b91 6696
06e8f738
KS
6697 * xterm.c: Comment fixes. Use renamed symbols.
6698 (fringe_bitmap_type): Renamed from bitmap_type.
6699 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
6700 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
6701 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
6702
6703 * xterm.h: Comment fixes. Use renamed symbols.
6704 (fringes_extra): Renamed from flags_areas_extra.
6705 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
6706 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
6707 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
6708 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
6709 (FRAME_X_LEFT_FRINGE_WIDTH):
6710 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
6711 (FRAME_X_RIGHT_FRINGE_WIDTH):
6712 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 6713
9ce647f4
JR
67142001-11-15 Jason Rumney <jasonr@gnu.org>
6715
6716 * w32menu.c (add-menu-item): Make help_echo and radio buttons
6717 work for most menu items. From David Ponce
6718 <david.ponce@wanadoo.fr>.
6719
9b784ab8
GM
67202001-11-15 Gerd Moellmann <gerd@gnu.org>
6721
9f7e52b4
GM
6722 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
6723 Some x_set_* function expect to be called even if old and new
6724 value are equal.
6725
6726 * xdisp.c (build_desired_tool_bar_string): Accept zero
6727 tool_bar_button_relief.
6728
6729 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
6730
6731 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 6732
34e5d0af
GM
6733 * xterm.c (x_draw_bar_cursor): If the background color of the
6734 glyph under the cursor equals the frame's cursor color, use
6735 the glyph's foreground color for drawing the bar cursor.
6736
9b784ab8
GM
6737 * dispnew.c (direct_output_forward_char): Fix character/byte
6738 position comparison.
6739
89512fcd
MB
67402001-11-15 Miles Bader <miles@gnu.org>
6741
6742 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
6743 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
6744 Update arguments to find_field.
6745 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
6746 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
6747 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
6748 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
6749
7d18891d
RS
67502001-11-14 Richard M. Stallman <rms@gnu.org>
6751
d2936d21
RS
6752 * editfns.c (Fpropertize): Allow call with 1 arg.
6753
7d18891d
RS
6754 * dispextern.h (image_background, image_background_transparent):
6755 Conditionalize on HAVE_X_WINDOWS.
6756
67572001-11-13 Richard M. Stallman <rms@gnu.org>
6758
6759 * print.c (Fprin1_to_string): Doc fix.
6760
6761 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
6762
6763 * floatfns.c (Fceiling, Ffloor): Doc fixes.
6764
6765 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
6766
6767 * fileio.c (Ffile_accessible_directory_p): Doc fix.
6768
6769 * eval.c (syms_of_eval): Doc fix.
6770
6771 * coding.c (syms_of_coding): Doc fix.
6772
6773 * doc.c (Fsnarf_documentation): Doc fix.
6774
6775 * dispnew.c (syms_of_display): Doc fix.
6776
6777 * category.c (Fget_unused_category): Doc fix.
6778
6779 * buffer.c (syms_of_buffer): Doc fixes.
6780
9474c847
EZ
67812001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
6782
6783 * print.c (prin1, print): Doc fix.
6784
f00691a3 67852001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 6786
2b6f3c2b 6787 * fontset.h: Remove declarations of variables
e3059a5d
PJ
6788 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
6789
6790 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
6791 `Vclip_large_size_font'.
6792
b3700ae7
JR
67932001-11-13 Jason Rumney <jasonr@gnu.org>
6794
6795 * w32fns.c: Doc fix.
6796
f00691a3 67972001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 6798
4bb962be
PJ
6799 * xfaces.c (Fface_attributes_as_vector): Doc fix.
6800
ddb67bdc
PJ
6801 * fns.c: Doc fix.
6802
3467c402
PJ
6803 * emacs.c: Doc fix.
6804
6805 * coding.c: Doc fix.
6806
6e1b91d7
PJ
6807 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
6808 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
6809 `new style' [w/`doc:' keyword].
6810
1c1d3d69
RS
68112001-11-12 Richard M. Stallman <rms@gnu.org>
6812
6813 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
6814 LeaveNotify events. Only FocusIn and FocusOut do that now.
6815 (x_display_and_set_cursor): Do display hollow cursors in active
6816 minibuffer windows when they are not selected.
6817
b6f4c7ba
JR
68182001-11-12 Jason Rumney <jasonr@gnu.org>
6819
6820 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
6821 * w32term.c: Change doc-string comments to `new style'.
6822 [w/`doc:' keyword]. Doc fixes.
6823
6824 * w32fns.c: Don't define max.
6825 (Fx_open_connection): Only execute once.
6826
f00691a3 68272001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
6828
6829 * ccl.c: Change macros to use do-while block instead of if-else.
6830 Use braces to follow GNU Coding Standards.
6831
a4cd0cd7
RS
68322001-11-11 Richard M. Stallman <rms@gnu.org>
6833
eafb659a
RS
6834 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
6835
6836 * lread.c (read_escape): Use end_of_file_error for reporting eof.
6837
a4cd0cd7
RS
6838 * insdel.c (replace_range): Use adjust_markers_for_replace
6839 instead of adjust_markers_for_delete and adjust_markers_for_insert.
6840
6841 * intervals.h: Declare set_text_properties and set_text_properties_1.
6842
6843 * textprop.c (set_text_properties_1): New subroutine
6844 broken out of set_text_properties.
6845 (set_text_properties): Use set_text_properties_1.
6846
6847 * intervals.c (graft_intervals_into_buffer):
6848 Use set_text_properties_1 to clear out properties.
6849
6850 * search.c (Freplace_match): Use replace_range to insert
6851 and delete. Don't request property inheritance from
6852 surrounding text.
6853
91823618
JR
68542001-11-10 Jason Rumney <jasonr@gnu.org>
6855
6856 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
6857 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 6858 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 6859
86928dfb
GM
68602001-11-10 Gerd Moellmann <gerd@gnu.org>
6861
fa336b91 6862 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
6863 instead of malloc/free.
6864
f00691a3 68652001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 6866
ab8469eb
PJ
6867 * xfaces.c (merge_face_vectors): Use braces to follow GNU
6868 Coding Standards.
6869 (Finternal_set_lisp_face_attribute): Likewise.
6870
a78e0303
PJ
6871 * buffer.c (Fbury_buffer): Likewise.
6872
40ef1eda
PJ
6873 * indent.c (current_column_1): Remove unused variable `prev_col'.
6874
fabf4a91
PJ
6875 * coding.c (encode_coding): Use precomputed value of `src'.
6876 (encode_coding): Remove unused variable `src_end'.
6877 (code_convert_region): Remove unused variables `count'.
6878
0c99b139
JR
68792001-11-07 Jason Rumney <jasonr@gnu.org>
6880
6881 * w32term.c (x_display_and_set_cursor): Do not move system caret
6882 if cursor_glyph is NULL.
6883
f00691a3 68842001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
6885
6886 * keymap.c (access_keymap): Fix compilation error.
6887
55c6d645
MB
68882001-11-07 Miles Bader <miles@gnu.org>
6889
6890 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
6891
f00691a3 68922001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 6893
7a4564a4
PJ
6894 * intervals.c (graft_intervals_into_buffer):
6895 Remove #ifdef'd-out code.
6896 (graft_intervals_into_buffer): Remove unused variable `middle'.
6897
5de38842
PJ
6898 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
6899 code (eval-current-buffer).
6900 Change doc-string comments to `new style' [w/`doc:' keyword].
6901
4fa23df5
RS
69022001-11-06 Richard M. Stallman <rms@gnu.org>
6903
6904 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
6905
7a6a97d7
SM
69062001-11-06 Stefan Monnier <monnier@cs.yale.edu>
6907
c191d13c
SM
6908 * lread.c (read1): Fix behavior with nested backquoting.
6909
7a6a97d7
SM
6910 * keyboard.c (make_lispy_event): Check integerness and fix
6911 Lisp_Object/int mixup.
6912
f00691a3 69132001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
6914
6915 * fns.c (copy_hash_table): Remove unused variable `v'.
6916
17893c65
PJ
6917 * fontset.c (fontset_font_pattern): Remove unused variable
6918 `family_registry'.
6919
4d994a79
PJ
6920 * indent.c (current_column_1): Remove unused variable `prev_col'.
6921
d5360cc7
RS
69222001-11-05 Richard M. Stallman <rms@gnu.org>
6923
6924 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
6925
6926 * buffer.c (Fkill_buffer): Don't delete auto save file
6927 if buffer is modified.
6928
96238a5a
AI
69292001-11-05 Andrew Innes <andrewi@gnu.org>
6930
6931 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
6932 CHECK_NUMBER_CDR.
6933
d9d54213
RS
69342001-11-05 Richard M. Stallman <rms@gnu.org>
6935
6936 * unexelf.c (unexec): Minor changes; clean up comments.
6937
b116830b
SS
69382001-11-05 Sam Steingold <sds@gnu.org>
6939
6940 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6941
3297e2a1
AS
69422001-11-05 Andreas Schwab <schwab@suse.de>
6943
6944 * sound.c (sound_perror): Save errno from being clobbered.
6945
9212319f 69462001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
6947
6948 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
6949 the program image directly.
6950
f00691a3 69512001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
6952
6953 * buffer.h (Fbuffer_local_value): Add prototype.
6954
982f6c7e
RS
69552001-11-04 Richard M. Stallman <rms@gnu.org>
6956
d31053f9
RS
6957 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
6958 and CHECK_BUFFER.
6959
6960 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
6961 (record_char): Likewise.
6962
6963 * keyboard.c (make_lispy_event): Don't insist a drag event must
6964 move to a different buffer position. Instead, check for moving at
6965 least double_click_fuzz.
6966
6967 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
6968
6969 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
6970
982f6c7e 6971 * indent.c (current_column_1, Fmove_to_column): Separate the code
4d8da98b 6972 for display-table glyphs from the code for buffer text, to fix
982f6c7e
RS
6973 bugs in the former.
6974
830047fd
RS
69752001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
6976
6977 * buffer.c (Fbuffer_local_value): New function.
c191d13c 6978 (syms_of_buffer): Defsubr it.
b116830b 6979
830047fd
RS
6980 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
6981 value of `cursor-in-non-selected-windows'.
6982
6983 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
6984 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
6985 (syms_of_xdisp): Initialize it.
b116830b 6986
f00691a3 69872001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 6988
4e397688
PJ
6989 * xfns.c (Fx_create_frame): Doc fix.
6990
48b0f3ae
PJ
6991 * coding.c: Change doc-string comments to `new style' [w/`doc:'
6992 keyword].
6993
2df5238c
PJ
6994 * eval.c (top_level_value, top_level_set): Remove commented and
6995 #ifdef'd-out code.
6996 (Fdefvar): Fix usage in doc-string.
6997
3ecaf7e5
RS
69982001-11-03 Richard M. Stallman <rms@gnu.org>
6999
7000 * xfns.c: Include unistd.h, if it exists.
7001
7002 * editfns.c: Move the include of ctype.h after unistd.h.
7003
7004 * gmalloc.c: Test BROKEN_PROTOTYPES.
7005
8db2e33b
KR
70062001-11-03 Ken Raeburn <raeburn@gnu.org>
7007
7008 * lisp.h (CHECK_STRING_CAR): New macro.
7009 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
7010 treating XCAR and XCDR as lvalues.
7011 (openp): Use CHECK_STRING_CAR.
7012 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
7013
aed29b97
EZ
70142001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
7015
7016 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 7017 (SIGMASKTYPE): Define.
aed29b97
EZ
7018
7019 * syssignal.h (sigunblock): Don't define if already defined.
7020
f00691a3 70212001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 7022
16b45be4
EZ
7023 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
7024 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
7025 Fix typos in comments.
7026
020f9b38
PJ
7027 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
7028 and #ifdef'd-out code.
7029 Fix and reindent comments.
7030
c191d13c 7031 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 7032
6cb16f95
PJ
7033 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
7034 argument `i' in macros.
7035
7036 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
7037 `i' in macros.
7038
16b45be4
EZ
7039 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
7040 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
7041 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
7042 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
7043 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
7044 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
7045 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
7046 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
7047 in macros.
7048
7049 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
7050 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
7051 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
7052 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
7053 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
7054 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
7055 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
7056 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
7057 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
7058 (remove unused second argument).
7059
7e9d3c2f
SM
70602001-11-02 Stefan Monnier <monnier@cs.yale.edu>
7061
7062 * syntax.c (describe_syntax): New wrapper.
7063 (Finternal_describe_syntax_value): Rename from describe_syntax.
7064 Don't insert space at front and \n at the end.
7065 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
7066
7067 * regex.c (re_wctype): Try to fix some warnings.
7068 (regcomp, regexec): Don't forget the __restrict.
7069
e6bff182
RS
70702001-11-02 Richard M. Stallman <rms@gnu.org>
7071
7072 * textprop.c (Fget_char_property): Doc fix.
7073
f00691a3 70742001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
7075
7076 * process.c (Fstart_process): Add usage to doc-string.
7077
7078 * data.c (Fsetq_default): Ditto.
7079
7080 * callint.c (Finteractive): Ditto.
7081
c22e59e1
SM
70822001-11-01 Stefan Monnier <monnier@cs.yale.edu>
7083
7084 * macros.c: Don't include keymap.h any more.
7085
9271ed2c
RS
70862001-11-01 Richard M. Stallman <rms@gnu.org>
7087
e6bff182
RS
7088 * data.c (Fmake_local_variable): Doc fix.
7089
7090 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
7091 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
7092
9271ed2c
RS
7093 * keymap.c (Fdescribe_buffer_bindings): Print character property
7094 bindings along with or instead of the buffer local map.
7095 Make the overriding maps override what they should.
7096
f00691a3 70972001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
7098
7099 * window.c (grow_mini_window): Fix typo in comment.
7100
27188d11
GM
71012001-11-01 Gerd Moellmann <gerd@gnu.org>
7102
7b49b9d2
GM
7103 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
7104 (XTset_vertical_scroll_bar): Likewise.
7105
43f7c3ea
GM
7106 * xfns.c (x_build_heuristic_mask): Use four_corners_best
7107 instead of IMAGE_BACKGROUND.
c22e59e1 7108
b350c2e5
GM
7109 * xfns.c (four_corners_best): Reindent.
7110
c22e59e1 7111 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
7112 Handle :box so that it is possible to specify sexprs.
7113
bf00d461
EZ
71142001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
7115
7116 * s/hpux11.h: New file.
7117
f00691a3 71182001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 7119
2b209b97
PJ
7120 * emacs.c (USAGE1): Show command line option --no-window-system
7121 instead of --no-windows in usage.
7122 (standard_args): Rename --no-windows to --no-window-system.
7123 (bug_reporting_address): Follow Emacs coding conventions.
7124
9dbc9081
PJ
7125 * eval.c (Fcommandp): Doc fix.
7126 Change doc-string comments to `new style' [w/`doc:' keyword].
7127
4e10df59
PJ
7128 * frame.c (Fframe_live_p): Doc fix.
7129
7130 * buffer.c (selective-display-ellipses): Doc fix.
7131
dd387b25
GM
71322001-10-31 Gerd Moellmann <gerd@gnu.org>
7133
fe957e65
GM
7134 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
7135
dd387b25
GM
7136 * xfaces.c (realize_x_face): If C is not a single-byte character,
7137 set the face's colors_copied_bitwise_p instead of the defaulted_p
7138 members which have a different meaning.
7139 (free_face_colors): Do nothing for a face whose colors have been
7140 copied bitwise.
7141
c22e59e1 7142 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 7143
f00691a3 71442001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 7145
687784e8
PJ
7146 * marker.c, mocklisp.c: Change doc-string comments to `new style'
7147 [w/`doc:' keyword].
2e1280f8 7148
b9d9a9b9
GM
71492001-10-31 Gerd Moellmann <gerd@gnu.org>
7150
7151 * fns.c (require_unwind): Return Lisp_Object.
7152
f00691a3 71532001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 7154
fa1361cb
PJ
7155 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
7156 (last-input-char): Revert doc-string to be the same as the
7157 doc-string of `last-input-event'.
7158
6c465a15 7159 * xdisp.c: Fix typos in comments.
48400103 7160
eafa3196
GM
71612001-10-31 Gerd Moellmann <gerd@gnu.org>
7162
7163 * window.c (grow_mini_window): Handle case that the root
7164 window is already smaller than the nominal mininum height.
7165
747d3f2a
SM
71662001-10-30 Stefan Monnier <monnier@cs.yale.edu>
7167
bf9bb76f
SM
7168 * emacs.c (main): Don't call keys_of_macros any more.
7169
7170 * lisp.h (keys_of_macros): Remove.
7171
7172 * macros.c (keys_of_macros): Remove.
7173
747d3f2a
SM
7174 * xfaces.c (Fface_attribute_relative_p): Declare args.
7175
5e905a57
JR
71762001-10-30 Jason Rumney <jasonr@gnu.org>
7177
7178 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
7179 (enum_font_cb2): Ignore fonts with vertical orientation.
7180
3a426197
RS
71812001-10-30 Richard M. Stallman <rms@gnu.org>
7182
7183 * keyboard.c (Finput_pending_p): Doc fix.
7184
a742d646
GM
71852001-10-30 Gerd Moellmann <gerd@gnu.org>
7186
259cf6bc
GM
7187 * xterm.c (x_after_update_window_line): Don't run the code
7188 clearing in borders for rows whose visible height is 0.
7189
3f99f948
GM
7190 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
7191 resized_p flag is set. If not set, use the much less flickering
7192 method previously used.
7193
7194 * dispnew.c (change_frame_size_1): Set frame's resized_p.
7195
7196 * frame.h (struct frame) <resized_p>: New member.
7197
b4a3be43
GM
7198 * lread.c (to_multibyte): Ensure read_buffer is at least twice
7199 as large as the number of bytes to convert.
747d3f2a 7200
a742d646
GM
7201 * lread.c (to_multibyte): New function.
7202 (read1): Use it.
7203
cacbb9e9
EZ
72042001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
7205
7206 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
7207
99cb6b2f
GM
72082001-10-30 Gerd Moellmann <gerd@gnu.org>
7209
327f42ee 7210 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
7211 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
7212 if the row's fill_line_p is set and drawing the last glyph with
7213 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 7214
99cb6b2f
GM
7215 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
7216
8e8223e2
SM
72172001-10-29 Stefan Monnier <monnier@cs.yale.edu>
7218
7219 * xmenu.c: Include coding.h and charset.h.
7220 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
7221 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
7222 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
7223 Explicitly set wv->help. Use `TRUE' rather than `True'.
7224 (menu_help_callback): Use empty_string.
7225
7226 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
7227 (Fx_popup_dialog): Explicitly init f.
7228 (w32_menu_display_help): Use empty_string.
7229
4d083a8f
RS
72302001-10-29 Richard M. Stallman <rms@gnu.org>
7231
b2304472
RS
7232 * fns.c (Frequire): Detect recursive try to require the same
7233 feature 3 or more levels deep, and get error.
7234 (require_unwind): New subroutine.
7235 (require_nesting_list): New variable.
7236 (syms_of_fns): Init and staticpro it.
7237
4d083a8f
RS
7238 * print.c (print_object): Clarify indication of insertion type.
7239
2fe41216
EZ
72402001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
7241
90480000
EZ
7242 * coding.c (syms_of_coding): Document that locale-coding-system is
7243 used for decoding input on X.
7244
2fe41216
EZ
7245 * window.c (Fscroll_left, Fscroll_right): Doc fix.
7246
f00691a3 72472001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
7248
7249 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
7250 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
7251
60ebcfe8
GM
72522001-10-29 Gerd Moellmann <gerd@gnu.org>
7253
9a7bdceb
GM
7254 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
7255 use NO_CURSOR if cursor_in_non_selected_windows is false.
7256
3f08fcd2
GM
7257 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
7258 the slant attribute if FRAME is t.
7259
0ccfdad2
GM
7260 * xfns.c (x_set_internal_border_width): Set frame garbaged
7261 when X window doesn't exist yet.
7262
ef253080
GM
7263 * xterm.c (x_after_update_window_line): Clear internal border
7264 in different circumstances.
b116830b 7265
60ebcfe8
GM
7266 * xterm.c (XTread_socket) <KeyPress>: Don't use
7267 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
7268 <handa@etl.go.jp>.
7269
73d25f9c
EZ
72702001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7271
7272 * m/ibms390.h: New file. From Adam Thornton
7273 <athornton@sinenomine.net>.
7274
cac1daf0
GM
72752001-10-28 Gerd Moellmann <gerd@gnu.org>
7276
053b3256 7277 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 7278
cac1daf0
GM
7279 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
7280 a loop counter.
7281
f00691a3 72822001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 7283
186486eb
PJ
7284 * emacs.c: Use argv[0] instead of emacs when -t was specified.
7285
4707d2d0
PJ
7286 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
7287 keyword].
7288 Fix typos in comments.
b116830b 7289
d883731c
PJ
7290 * emacs.c (bug_reporting_address): New function.
7291 Use it when displaying usage message.
7292
04012254
PJ
7293 * minibuf.c (read_minibuf): Remove unused external declaration of
7294 variable `Qread_only'.
7295
13b1a09c
PJ
7296 * keymap.c (access_keymap): Remove unused variable `charset'.
7297
5bbf4378
MB
72982001-10-28 Miles Bader <miles@gnu.org>
7299
7300 * xfaces.c (merge_face_heights): Handle TO being relative as well.
7301 Remove #ifdef'd-out code.
7302 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
7303 (syms_of_xfaces): Initialize them.
7304
1ce1e4ee
JR
73052001-10-27 Jason Rumney <jasonr@gnu.org>
7306
7307 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
7308 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
7309 position using the system caret.
7310
7311 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
7312 (w32_system_caret_height, w32_system_caret_x)
7313 (w32_system_caret_y): New variables for tracking system caret.
7314 (w32_initialize): Initialize them.
c2d53558 7315 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 7316
c2d53558
SM
7317 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
7318 New messages types.
1ce1e4ee
JR
7319
7320 * w32term.c (note_mouse_highlight): Clear old help_echo.
7321
f00691a3 73222001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 7323
bb4600a4
PJ
7324 * xterm.c: Fix typo in a comment.
7325
7db35a48
PJ
7326 * emacs.c: Fix typos in comments.
7327 Remove unnecessary spaces.
7328 Change doc-string comments to `new style' [w/`doc:' keyword].
7329 (USAGE2): Fix typos in usage string.
7330
a7248e4f
PJ
7331 * xterm.c: Fix typo in a comment.
7332
4e30ce42
PJ
7333 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
7334 emacs.c.
7335
62725a92
GM
73362001-10-27 Gerd Moellmann <gerd@gnu.org>
7337
798dbe1f 7338 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 7339 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
7340 farther backward when target_y was not reached.
7341
62725a92
GM
7342 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
7343 Display errno only if non-zero.
7344 (sound_warning): New function.
7345 (vox_configure): Don't treat failing to set sample rate as error.
7346 (various places): Improve error messages.
7347
d4e34d24
EZ
73482001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
7349
944e6f60
EZ
7350 * fileio.c (Faccess_file): Run the argument filename through
7351 Fexpand_file_name, before using it.
7352
d4e34d24
EZ
7353 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
7354 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
7355
38d2af0c
GM
73562001-10-26 Gerd Moellmann <gerd@gnu.org>
7357
da80a8d5
GM
7358 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
7359
38d2af0c
GM
7360 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7361 Fix clearing in the case of scroll bars on the right.
c2d53558 7362
45de4a6f 73632001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
7364
7365 * w32gui.h (XImage): Add a dummy typedef.
7366
fbd5ceb2
GM
73672001-10-26 Gerd Moellmann <gerd@gnu.org>
7368
c2d53558 7369 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 7370
b23236fb
EZ
73712001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
7372
7373 * frame.c (Fframe_parameter): Fix last change.
7374
5d991fc4
EZ
7375 * fileio.c: Revert last change (which removed old commented-out
7376 version of expand-file-name). Add a comment that explains why
7377 this old version should not be removed.
7378
879eadc3
GM
73792001-10-25 Gerd Moellmann <gerd@gnu.org>
7380
75700ff2
GM
7381 * frame.c (Fframe_parameter): Fix a bug whereby some
7382 ``artificial'' frame parameters, like `minibuffer' were not
7383 obtained by calling Fframe_parameters.
7384
dfe92a6a
GM
7385 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
7386 cursor differently.
7387
879eadc3
GM
7388 * xdisp.c (move_it_vertically_backward): Compute line height
7389 differently. Add heuristic to try to be more compatible to 20.x.
7390
e1010ebe
SM
73912001-10-25 Stefan Monnier <monnier@cs.yale.edu>
7392
d73a471b
SM
7393 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
7394
d6da5a06
GM
7395 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
7396 boolean.
e1010ebe 7397
f66bd220
MB
73982001-10-25 Miles Bader <miles@gnu.org>
7399
7400 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
7401 BG is a pointer to a structure, not a structure.
7402 (gif_format, png_format): Add missing commas.
7403
d436d538
RS
74042001-10-24 Richard M. Stallman <rms@gnu.org>
7405
7406 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 7407 (syms_of_xfaces): Defsubr it.
d436d538 7408
f00691a3 74092001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
7410
7411 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
7412 variable `area'.
7413
f00691a3 74142001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 7415
c2d53558 7416 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 7417
e2a57b34
MB
74182001-10-25 Miles Bader <miles@gnu.org>
7419
7420 * dispextern.h (struct image): Add `background',
7421 `background_valid', and `background_transparent' fields.
7422 (image_background, image_background_transparent): New declarations.
7423 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
7424 * xfns.c (image_background, image_background_transparent)
7425 (four_corners_best): New functions.
c2d53558 7426 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
7427 (gs_format): Add `:background' entry.
7428 (lookup_image): Set IMG's background color if specified.
7429 (pbm_load, xbm_load_image, png_load): Set IMG's background field
7430 when appropriate.
7431 (x_clear_image_1): Reset `background_valid' and
7432 `background_transparent_valid' fields.
7433 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
7434 calculating it here. Set IMG's background_transparent field.
7435 (enum xpm_keyword_index): Add XPM_BACKGROUND.
7436 (enum png_keyword_index): Add PNG_BACKGROUND.
7437 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
7438 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
7439 (enum gif_keyword_index): Add GIF_BACKGROUND.
7440 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 7441 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
7442 Pre-calculate image background color where necessary.
7443 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
7444 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
7445 color to use for image glyph reliefs.
7446
b547b6e8
GM
74472001-10-24 Gerd Moellmann <gerd@gnu.org>
7448
d9e3b8c6
GM
7449 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
7450 in full-width rows.
c2d53558 7451
b547b6e8
GM
7452 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
7453 Fix clearing of area not covered by scroll bar.
7454
f00691a3 74552001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
7456
7457 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
7458 and `real_start'.
c2d53558 7459 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
7460 (glyph_rect): Remove unused variable `area'.
7461
76cb5e06
GM
74622001-10-24 Gerd Moellmann <gerd@gnu.org>
7463
bdbdebff 7464 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
7465
7466 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
7467 (row_containing_pos): Take additional argument DY.
7468 Treat rows ending in middle of char differently.
62e33982
GM
7469 (display_line): Handle tabs on window systems differently.
7470
7471 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
7472 with additional argument.
7473
7474 * dispextern.h (row_containing_pos): Adjust prototype.
7475
76cb5e06
GM
7476 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
7477 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
7478 (try_window_id, try_window_reusing_current_matrix)
7479 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 7480 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 7481
f00691a3 74822001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 7483
c9e60620
PJ
7484 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
7485 gnuemacs).
7486 (HAVE_BOXES): Fix typo in comment.
7487 (push_menu_pane): Fix typo in comment.
7488
3b552d56
PJ
7489 * xdisp.c: (display_prop_string_p): Remove unused local declaration
7490 of `Qwhen'.
7491 (single_display_prop_string_p): Remove unused local declarations
7492 of `Qwhen' and `Qmargin'.
7493 (string_buffer_position): Remove unused variable `around'.
7494 (store_frame_title): Remove unused variable `width'.
7495
15c565ac
PJ
7496 * window.c: Don't define max.
7497 (coordinates_in_window): Remove unused variable `uy'.
7498
a8818eb9
PJ
7499 * widget.c: Don't define max.
7500
996fee11
PJ
7501 * process.c: Don't define max.
7502 (create_process): Remove unused variable `buffer'.
7503
496e1a5b
GM
75042001-10-23 Gerd Moellmann <gerd@gnu.org>
7505
c2d53558 7506 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 7507
5905ae8b
EZ
75082001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
7509
7510 * xfaces.c (Finternal_set_lisp_face_attribute)
7511 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
7512 frame is on a windowed display.
7513
24db49fb
GM
75142001-10-23 Gerd Moellmann <gerd@gnu.org>
7515
c2d53558
SM
7516 * dispnew.c (sync_window_with_frame_matrix_rows):
7517 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
7518 of marginal areas.
7519
c2d53558 7520 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 7521
f0487f05
EZ
75222001-10-23 Andreas Schwab <schwab@suse.de>
7523
7524 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
7525 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
7526
f0a48a01
GM
75272001-10-23 Gerd Moellmann <gerd@gnu.org>
7528
c2d53558 7529 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
7530 REAL_END. Notice if cursor gets overwritten.
7531 (notice_overwritten_cursor): Take X positions as parameters.
7532 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
7533 around call to x_draw_glyphs.
7534
f00691a3 75352001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 7536
fc11dff0
PJ
7537 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
7538 instead of C) and usage.
a50a10a0 7539
fc11dff0
PJ
7540 * editfns.c (char-to-string): Fix argument names (use CHAR instead
7541 of C) and usage.
a50a10a0
PJ
7542
7543 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
7544 `left', `max_width' and `max_height'.
7545
8738febd
GM
75462001-10-23 Gerd Moellmann <gerd@gnu.org>
7547
7548 * xdisp.c (display_line): For a tab continued to the next line,
7549 set row's ends_in_middle_of_char_p.
7550
653c329b
GM
75512001-10-22 Gerd Moellmann <gerd@gnu.org>
7552
7553 * xdisp.c (display_line): Fix computation of continuation lines
7554 width for TABs.
7555
f00691a3 75562001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 7557
7ba51063
PJ
7558 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
7559 `Qlaplace'.
7560
f958c5ac
PJ
7561 * fileio.c: Remove unused code.
7562
eb360291
MB
75632001-10-22 Miles Bader <miles@gnu.org>
7564
7565 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
7566 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
7567 Remove `DOC_STRINGS_IN_COMMENTS' cases.
7568
98515cf0
JR
75692001-10-21 Jason Rumney <jasonr@gnu.org>
7570
7571 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
7572
93026d88
EZ
75732001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
7574
7575 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
7576 (Finsert_string): Avoid the multi-line string literals warning.
7577
c9a95b79
MB
75782001-10-22 Miles Bader <miles@gnu.org>
7579
7580 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
7581 (Fdocumentation): Don't use it.
7582 (syms_of_doc): Don't initialize it.
7583
7584 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
7585 * print.c (Fwith_output_to_temp_buffer): Likewise.
7586 * window.c (Fsave_window_excursion): Likewise.
c2d53558 7587 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 7588 (Fsave_restriction): Likewise.
c2d53558
SM
7589 * eval.c (Frun_hooks, Frun_hook_with_args)
7590 (Frun_hook_with_args_until_failure)
7591 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
7592 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
7593 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
7594 (Funwind_protect, Fcondition_case): Likewise.
7595 * coding.c (Ffind_operation_coding_system): Likewise.
7596 * keyboard.c (Ftrack_mouse): Likewise.
7597
a3b10252
MB
75982001-10-21 Miles Bader <miles@gnu.org>
7599
c2d53558 7600 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
7601 (Fmake_hash_table): Add usage: string to doc string.
7602 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 7603 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
7604 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
7605 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
7606 (Fml_prefix_argument_loop): Likewise.
7607
f00691a3 76082001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 7609
c2d53558 7610 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 7611
c6f73eec
PJ
7612 * sysdep.c (init_sys_modes): Change doc-string comments to `new
7613 style' [w/`doc:' keyword].
7614
7615 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
7616 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
7617 comments to `new style' [w/`doc:' keyword].
7618
3cf3436e
JR
76192001-10-21 Jason Rumney <jasonr@gnu.org>
7620
7621 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
7622
c169b8f1
JR
7623 * w32term.c (remember_mouse_glyph): New function.
7624 (w32_mouse_position): Use it.
7625 (note_mouse_movement): If the mouse moved off the glyph, remember
7626 its new position.
c2d53558 7627
4fdd691b
JR
7628 * w32term.h (struct w32_output): Correct spelling of x_compatible.
7629 (w32_display_info): Add mouse_face_overlay.
7630
c169b8f1
JR
7631 * w32term.c (notice_overwritten_cursor): Renamed from
7632 note_overwritten_text_cursor. Rewritten to take glyph widths into
7633 account.
7634 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
7635 (fast_find_string_pos): New function.
7636 (fast_find_position): Return the correct vpos. Add parameter
7637 STOP. In the final row, stop before glyphs having STOP as object.
7638 Don't consider glyphs that are not from a buffer.
7639 (fast_find_position) [0]: Add a presumably more correct version
7640 for after 21.1.
7641 (expose_window_tree, expose_frame): Don't compute intersections here.
7642 (expose_window): Do it here instead.
7643 (expose_window_tree, expose_window, expose_line): Return 1 when
7644 overwriting mouse-face.
7645 (expose_window): If W is the window currently being updated, mark
7646 the frame garbaged.
7647 (expose_frame): If mouse-face was overwritten, redo it.
7648 (x_use_underline_position_properties): New variable.
7649 (syms_of_xterm): DEFVAR_BOOL it.
7650 (x_draw_glyph_string): Add comment to use it in future.
7651 (x_draw_glyph_string): Restore clipping after drawing box.
7652 Fix a computation of the underline position.
7653 (w32_get_glyph_string_clip_rect): Minor cleanup.
7654 (x_fill_stretch_glyph_string): Remove an assertion.
7655 (x_produce_glyphs): Don't convert multibyte characters
7656 to unibyte characters in unibyte buffers.
7657 (cursor_in_mouse_face_p): New function.
7658 (x_draw_stretch_glyph_string): Use it to choose a different GC
7659 when drawing a cursor within highlighted text. Don't draw
7660 background again if it has already been drawn.
7661 (x_draw_glyph_string_box): Don't draw a full-width
7662 box just because the glyph row's full_width_p flag is set.
7663 (x_draw_glyphs): Fix computation of rightmost x for
7664 full-width rows.
7665 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
7666 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
7667 change bottom shadow accordingly. Some cleanup.
7668 (x_update_window_end): Handle overwritten mouse face
7669 also for tool bar windows.
7670 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
7671 DRAW is DRAW_IMAGE_RAISED.
7672 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
7673 actually redrawn. Make the function static.
7674 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
7675 optimize away highlighting if we pass over that same overlay again.
7676 (note_mouse_highlight): Call mouse_face_overlay_overlaps
7677 to detect a case where we have to highlight a different region
7678 despite not having left the currently highlighted region.
7679 Set mouse_face_overlay in the x_display_info. Avoid changing the
7680 mouse pointer shape when show_mouse_face has already done it, or
7681 there is no need. Handle mouse-face and help-echo in strings.
7682 (glyph_rect): New function.
7683 (w32_mouse_position): Use it to raise the threshold for mouse
7684 movement event generation.
7685 (w32_initialize_display_info): Initialize the x_display_info's
7686 mouse_face_overlay.
7687 (w32_set_vertical_scroll_bar): Don't clear a zero height
7688 or width area.
7689 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
7690 a widget to zero height.
7691
3cf3436e 7692 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 7693 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
7694 equivalents in menu_items.
7695 (w32_menu_show): Don't overwrite an item's name with its key
7696 description in case the description is a multibyte string.
7697 (single_submenu): Some cleanup.
7698
7699 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
7700 (postprocess_image): New function.
7701 (lookup_image): Call it for all image types except PostScript.
7702 (x_kill_gs_process): Call postprocess_image.
7703 (tiff_error_handler, tiff_warning_handler): New functions.
7704 (tiff_load): Install them as handlers.
7705 (x_kill_gs_process): Recognize if someone has cleared the image
7706 cache under us.
7707 (valid_image_p): Protect better against invalid image
7708 specifications. Previous code could signal an error.
7709 (Fx_hide_tip, Fshow_tip): Doc fix.
7710 (Fv_max_tooltip_size): New variable.
7711 (syns_of_xfns): DEFVAR_LISP it.
7712 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
7713 window buffer to *tip* right after creating the frame. Set frame's
7714 window_width. Use a maximum tooltip size specified by
7715 Vx_max_tooltip_size, if that has valid contents.
7716 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
7717 Make sure the tooltip is completely visible.
7718 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
7719 (Fx_create_frame): Adjust the frame's height for presence
7720 of the tool bar before calling x_figure_window_size.
7721 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
7722 when the window gets smaller.
7723 (x_set_foreground_color): Set frame's cursor_pixel.
7724 (x_set_foreground_color, x_set_background_color): Cleaned up.
7725 (x_set_font): Handle case of x_new_fontset returning the same name
7726 as before, although there was a change in fontsets.
7727
386ca361
MB
77282001-10-21 Miles Bader <miles@gnu.org>
7729
c2d53558 7730 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
7731 (Flogxor): Add usage: string to doc string.
7732 * charset.c (Fstring): Likewise.
7733 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
7734 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
7735
f00691a3 77362001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 7737
03be2694
PJ
7738 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
7739
7740 * alloc.c: Reindent DEFUNs with doc: keywords.
7741
7742 * abbrev.c (Finsert_abbrev_table_description): Reindent.
7743
14ff1ee0
PJ
7744 * frame.c: Change doc-string comments to `new style' [w/`doc:'
7745 keyword].
7746
2f147815 7747See ChangeLog.9 for earlier changes.
6922b018
KH
7748
7749;; Local Variables:
49b3bd82 7750;; coding: iso-2022-7bit
6922b018 7751;; End:
2a34a036 7752
2f147815 7753 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
7754 Copying and distribution of this file, with or without modification,
7755 are permitted provided the copyright notice and this notice are preserved.