*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
04dbfa08
DL
12002-11-19 Dave Love <fx@gnu.org>
2
3 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
4
b4aebae3
JR
52002-11-18 Jason Rumney <jasonr@gnu.org>
6
7 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
cf234711 8 (XPutPixel): Swap blue and red.
8f92c555
JR
9 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
10 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
12 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
b4aebae3 13
1998560a
DL
142002-11-18 Dave Love <fx@gnu.org>
15
d824beee
DL
16 * m/orion105.h (HAVE_ALLOCA): Don't define.
17
a0f0878d 18 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee
DL
19
20 * m/intel386.h: Don't include alloca.h or define alloca.
21
22 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
23 malloc, realloc, calloc.
24
25 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
26 (bcmp): Don't define.
27
28 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
29
30 * m/amdahl.h: Don't define LIB_STANDARD.
31
32 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
33
34 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
35
a0f0878d
SM
36 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
37 Don't include alloca.h.
d824beee
DL
38
39 * s/aix3-2.h (HAVE_FSYNC): Don't define.
40
1998560a
DL
41 * regex.c (_GNU_SOURCE): Don't define.
42
43 * process.c (_GNU_SOURCE): Don't define.
44
45 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
46
8704a6ab
MR
472002-11-18 Markus Rost <rost@math.ohio-state.edu>
48
49 * s/sol2-8.h: Include sol2-6.h.
50
6ae2cd57
MB
512002-11-18 Miles Bader <miles@gnu.org>
52
53 * dispextern.h (struct face): Add `overstrike' field.
a0f0878d 54 * xterm.c (x_draw_glyph_string_foreground)
6ae2cd57
MB
55 (x_draw_composite_glyph_string_foreground): Implement overstriking.
56 * xfaces.c (load_face_font): Set `face->overstrike' based on
57 result from choose_face_font.
58 (best_matching_font, choose_face_font): Add `needs_overstrike'
59 argument, and use it to return whether overstriking is desirable
60 for this face/font combo.
61 (set_font_frame_param: Pass new argument to choose_face_font.
62
f60ae425 632002-11-17 Ben Key <BKey1@tampabay.rr.com>
6ae2cd57 64
f60ae425
BK
65 * w32.c: Added wrapper functions around the win32 API functions
66 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
67 GetSidIdentifierAuthority. These wrapper functions serve two
68 purposes:
69 1. They ensure that the wrapped function can never be called
70 when Emacs is running on an operating system on which they are
71 not supported (Microsoft Windows 95 / 98 / ME).
72 2. They call the wrapped functions via function pointers rather
73 than calling them directly. This avoids taking advantage of the
74 undocumented fact that although these functions are not supported
75 in the 9x branch of Microsoft Windows, the functions do exist in
76 the version of advapi32.dll that is found in the 9x branch of
77 Microsoft Windows.
78 This change is part of my fix for the following entry in
79 etc/PROBLEMS: "Emacs built on Windows 9x/ME crashes at startup on
a0f0878d 80 Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME."
f60ae425
BK
81
82 * w32.c (init_user_info): Replaced the calls to the win32 API
83 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
84 and GetSidIdentifierAuthority with calls to the newly added
85 wrapper functions.
86 This change is part of my fix for the following entry in
87 etc/PROBLEMS: "Emacs built on Windows 9x/ME crashes at startup on
a0f0878d 88 Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME."
f60ae425
BK
89
90 * w32.h: Added extern declarations for the following functions:
91 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
92 syms_of_w32menu, and void syms_of_fontset.
93 This change is part of my fix for the following entry in
94 etc/PROBLEMS: "Emacs built on Windows 9x/ME crashes at startup on
a0f0878d 95 Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME."
f60ae425
BK
96
97 * w32fns.c (w32_wnd_proc): Added code to reinitialize the
98 function pointer track_mouse_event_fn in the handler for the
99 WM_SETFOCUS message.
100 This change is part of my fix for the following entry in
101 etc/PROBLEMS: "Emacs built on Windows 9x/ME crashes at startup on
a0f0878d 102 Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME."
f60ae425
BK
103
104 * w32menu.c (initialize_frame_menubar): Added code to
105 reinitialize the function pointers set_menu_item_info and
106 get_menu_item_info.
107 This change is part of my fix for the following entry in
108 etc/PROBLEMS: "Emacs built on Windows 9x/ME crashes at startup on
a0f0878d 109 Windows XP, or Emacs built on XP crashes at startup on Windows 9x/ME."
f60ae425 110
a0f0878d 111 * sound.c: Added a partial implementation of play-sound-internal
f60ae425
BK
112 for Microsoft Windows. Added various #ifdef / #else / #endif
113 code blocks to separate the code that will compile under
114 Microsoft Windows from the code that is specific to Gnu/Linux.
a0f0878d
SM
115 Moved several blocks of code around to make this separation of code
116 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 117
a0f0878d 118 * makefile.w32-in: Include sound.c and link with WinMM.lib.
f60ae425
BK
119
120 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
121 added support for play-sound-internal under Windows would be
122 included in the build of Emacs.
a0f0878d 123
517f42a0
JR
1242002-11-16 Jason Rumney <jasonr@gnu.org>
125
126 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
127
128 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
129
a0f0878d
SM
1302002-11-15 Stefan Monnier <monnier@cs.yale.edu>
131
132 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
133 (adjust_point_for_property): Move out of display and invisible even if
134 we were already inside before (in case a property was added while
135 we weren't looking). Be more careful when handling invisible props.
136 Skip invisible text as if it really wasn't there at all.
137
aab83f91
JR
1382002-11-15 Jason Rumney <jasonr@gnu.org>
139
140 * w32term.c (x_draw_image_foreground)
141 (w32_draw_image_foreground_1): Use standard copy and invert
142 operations to draw images.
143
144 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
145 depth of 1.
146 (xbm_read_bitmap_data): Invert bits as xbm is read in.
147 (XPutPixel): Don't invert bits here.
148
a4478a76
JR
1492002-11-15 Jason Rumney <jasonr@gnu.org>
150
151 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
152 (w32_draw_image_foreground_1): Handle image masks.
153 (x_draw_image_glyph_string): Don't BitBlt transparently.
154
155 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
156 (x_from_xcolors): Adjust RGB values for W32.
157 (image_background, image_background_transparent)
158 (postprocess_image, x_to_xcolors, x_disable_image)
159 (x_build_heuristic_mask): Adapt for W32 and enable.
160 (x_create_x_image_and_pixmap): Mark images with palettes as such.
161 (xbm_load): Remove unused variable.
162
03670a65
RS
1632002-11-14 Richard M. Stallman <rms@gnu.org>
164
165 * buffer.c (syms_of_buffer): Doc fix.
166
59daa29a
DL
1672002-11-14 Dave Love <fx@gnu.org>
168
169 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
170
8e685dc6
SM
171 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
172 * xmenu.c (unuse_menu_items, digest_single_submenu):
173 * xfns.c (x_put_x_image):
174 * xdisp.c (message2_nolog, set_message):
175 * undo.c (record_point):
176 * terminfo.c (tparam):
177 * syntax.c (scan_sexps_forward):
178 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
179 * composite.c (update_compositions):
180 * cm.c (calccost, cmgoto):
59daa29a
DL
181 * charset.c (c_string_width): Declare all args (per C99).
182
8e685dc6 183 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a
DL
184
185 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
186 Don't declare.
187
188 * emacs.c (main) [!VMS]: Avoid third arg.
189
190 * fns.c (Fcopy_sequence): Doc fix.
49f8f50a 191 (Fmap_char_table): Cast `call2'.
59daa29a 192
407fa601
FP
1932002-11-14 Francesco Potorti` <pot@gnu.org>
194
195 * s/sol2-8.h: New file.
196
58a7e98d
KS
1972002-11-14 Kim F. Storm <storm@cua.dk>
198
199 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
200 dependency on `risky-local-variable' and the :propertize form.
201
3ceb4629
SM
2022002-11-12 Stefan Monnier <monnier@cs.yale.edu>
203
8e685dc6
SM
204 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
205
3ceb4629
SM
206 * syntax.c (scan_sexps_forward): Undo last patch.
207 Use a more obvious fix: check eob before updating the syntax table.
208
b7305e01
SM
2092002-11-09 Stefan Monnier <monnier@cs.yale.edu>
210
211 * syntax.c (scan_sexps_forward): Update syntax table before reading
212 a char rather than after so we don't update the table past eob.
213
2671e4de
DL
2142002-11-09 Dave Love <fx@gnu.org>
215
216 * buffer.c (Fset_buffer_major_mode): Fix last change.
217
218 * regex.c (regexec): Fix pmatch declaration.
219
220 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
221
222 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
223 to self-inserting characters.
224 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
225
226 * coding.c (Vtranslation_table_for_input): New.
227 (syms_of_coding): DEFVAR it.
228
63e9e99c
JB
2292002-11-08 Juanma Barranquero <lektu@terra.es>
230
231 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
232 window.
233
a959f11e
KS
2342002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
235
236 * process.c (Fformat_network_address): Removed unused locals p,
237 cp, and i.
238
b8b60362
DL
2392002-11-06 Dave Love <fx@gnu.org>
240
241 * buffer.c (Qset_buffer_major_mode_hook): New.
242 (Fset_buffer_major_mode): Use it.
243
318db6cb
RS
2442002-11-06 Richard M. Stallman <rms@gnu.org>
245
246 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
247 and stop_polling.
248
249 * process.c (wait_reading_process_input):
250 Test POLLING_PROBLEM_IN_SELECT, not hpux.
251 Avoid initialization for auto Lisp_Object var.
252
253 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
254
255 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
256
44248360
RS
2572002-11-05 Richard M. Stallman <rms@gnu.org>
258
259 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
260
261 * callint.c (Fcall_interactively): New local filter_specs.
262 (Fcall_interactively): Check for progn as well as let.
263 Add a gcpro.
264 (Qprogn): New variable.
265 (syms_of_callint): Staticpro and init Qprogn.
266
3f9ab804
JPW
2672002-11-04 John Paul Wallington <jpw@shootybangbang.com>
268
269 * lread.c (Feval_buffer): Doc fix.
270
5e3cb80d
DL
2712002-11-04 Dave Love <fx@gnu.org>
272
273 * keyboard.c (read_char): Always translate iff
274 Vkeyboard_translate_table is a char table and c is valid.
275
276 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
277 and fix C types.
278
7e16ef60
SM
2792002-11-03 Stefan Monnier <monnier@cs.yale.edu>
280
266b4e3a
SM
281 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
282
283 * editfns.c (get_pos_property): Don't hardcode Qfield.
284
7e16ef60
SM
285 * keyboard.c (adjust_point_for_property): Handle `display' prop on
286 overlays. Also handle `invisible' prop.
287
2882002-11-02 Stefan Monnier <monnier@cs.yale.edu>
289
290 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
291 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
292
304f1f12
AS
2932002-11-01 Andreas Schwab <schwab@suse.de>
294
295 * editfns.c (Fmessage): Revert last change to properly handle %%
296 format.
297
86fad4ec
SM
2982002-11-01 Stefan Monnier <monnier@cs.yale.edu>
299
300 * xmenu.c (unuse_menu_items): New fun.
301 (menu_items_inuse): New var.
302 (syms_of_xmenu): Initialize it.
303 (init_menu_items): Use it to detect re-entrance.
b2b41304 304 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
86fad4ec
SM
305 (Fx_popup_menu): Remove spurious XSETFRAME.
306
307 * editfns.c (find_field): Make an exception for nil fields.
308
97098195
DL
3092002-11-01 Dave Love <fx@gnu.org>
310
311 * m/gec63.h: Deleted.
312
296b9246
DL
3132002-10-31 Dave Love <fx@gnu.org>
314
315 * xterm.c (XTread_socket): Fix last change.
316 (xaw_scroll_callback): Cast call_data to long to avoid warning.
317
8d2ff840
SM
3182002-10-31 Stefan Monnier <monnier@cs.yale.edu>
319
320 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
321
68eb8bd5
SM
3222002-10-30 Stefan Monnier <monnier@cs.yale.edu>
323
324 * editfns.c (overlays_around, get_pos_property): New funs.
325 (find_field): Use them.
326 Also be careful not to modify POS before its last use.
327 (Fmessage): Don't Fformat if there's nothing to format.
328
2baf1bfa
DL
3292002-10-30 Dave Love <fx@gnu.org>
330
331 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
332 [HAVE_PTY_H]; Include pty.h.
333
334 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
335
336 * xterm.c (Qeql): Declare.
337 (Vx_keysym_table): New.
338 (syms_of_xterm): Initialize it.
339 (XTread_socket): Use it. Deal with ASCII keysyms.
340 (XSetIMValues) [HAVE_X11R6]: Prototype.
341
342 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
343 (lispy_kana_keys): Comment out.
344 (make_lispy_event) [XK_kana_A]: Comment out.
68eb8bd5
SM
345 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
346 Fix sprintf call.
2baf1bfa
DL
347
348 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
349 regexp.h change).
350 (TERMINFO, LIBS_TERMCAP): Define.
351
352 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
353 (bcmp): Define conditional on HAVE_BCMP.
354 (NO_SIOCTL_H): Don't define.
355 (TIOCSIGSEND): Don't make conditional on IRIX6.
356
357 * s/sol2-5.h: Don't include strings.h.
358 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
359
360 * s/irix6-0.h (IRIX6): Don't define.
361 (bcopy, bcmp, bzero): Don't undef.
362
363 * s/irix6-5.h: Don't include strings.h.
364 (IRIX6): Don't define.
365 (bcopy, bcmp, bzero): Don't undef.
366
367 * syntax.c (Fforward_comment): Doc fix.
368
e8a32599
KS
3692002-10-29 Kim F. Storm <storm@cua.dk>
370
371 * process.c (Fsignal_process): Allow PROCESS to be specified by
372 name in addition to pid (as integer or string).
373
b37db7b4 3742002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
ce20e03e
JB
375
376 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
b37db7b4 377 environments.
ce20e03e 378
ee7ddec4
KS
3792002-10-27 Kim F. Storm <storm@cua.dk>
380
381 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
382
383 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
384
385 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
386
387 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
388
5ab0ceed
RS
3892002-10-26 Richard M. Stallman <rms@gnu.org>
390
391 * editfns.c (Fformat): Detect invalid format letters for floats.
392
be354eca
KH
3932002-10-25 Kenichi Handa <handa@m17n.org>
394
395 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
396 (x_set_title): Likewise.
397
68c7e82a
JB
3982002-10-25 Juanma Barranquero <lektu@terra.es>
399
400 * macgui.h:
401 * w32gui.h: Remove definition of XColor.
402
403 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
404
7a21b1f0
KS
4052002-10-24 Kim F. Storm <storm@cua.dk>
406
407 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
408 Callers changed (supply dummy arg).
409
410 * lisp.h (get_window_cursor_type): Update prototype.
68c7e82a 411
7a21b1f0
KS
412 * w32term.c (x_display_and_set_cursor): Get active_cursor from
413 get_window_cursor_type to track system caret.
414
9c1e9d54
KS
4152002-10-24 Kim F. Storm <storm@cua.dk>
416
417 * process.c (Fformat_network_address): New function.
418 (syms_of_process): Defsubr it.
419 (list_processes_1): Use it to format :local/:remote address if
420 service/host is not set; before emacs would crash in that case.
421 (Fmake_network_process): Don't use Ffind_operation_coding_system
422 to setup coding system if host or service is not set.
423
e99833ca
JB
4242002-10-23 Juanma Barranquero <lektu@terra.es>
425
426 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
427
428 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
429 COLORREF.
430
431 * macgui.h:
432 * w32gui.h: Add definition of XColor.
433
434 * macfns.c:
435 * w32fns.c:
436 * xfaces.c: Remove definition of XColor.
437
5e8b072b
SM
4382002-10-22 Stefan Monnier <monnier@cs.yale.edu>
439
440 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
441
442 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
443 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
444 window if it is dedicated.
445 (Fshrink_window): Add preserve_before as was done for enlarge_window.
446 (Vspecial_display_function): Update docstring.
447
448 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
449 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
450 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
451
635d2972
SM
4522002-10-21 Stefan Monnier <monnier@cs.yale.edu>
453
454 * casefiddle.c (casify_region): Don't treat a prefix char as part
455 of a word when at the beginning.
456
d9c25020
JB
4572002-10-17 Juanma Barranquero <lektu@terra.es>
458
459 * lread.c (syms_of_lread): Fix typos.
460
519a4a70
DL
4612002-10-17 Dave Love <fx@gnu.org>
462
463 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
464
a8c44e39
RS
4652002-10-16 Richard M. Stallman <rms@gnu.org>
466
467 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
468
41a48e45
JB
4692002-10-14 Juanma Barranquero <lektu@terra.es>
470
471 * w16select.c (syms_of_win16select): Fix docstring for
472 `selection-coding-system'.
473
474 * w32select.c (syms_of_w32select): Likewise.
475
240c43e8
SM
4762002-10-14 Stefan Monnier <monnier@cs.yale.edu>
477
478 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
479 a backslash-quoted char.
480 (scan_lists, scan_sexps_forward): Pacify the compiler.
481
411df82f
RS
4822002-10-13 Richard M. Stallman <rms@gnu.org>
483
484 * window.c (window_scroll): Set immediate_quit.
485
486 * print.c (print): When backquote form is the car of a list,
487 output in old style. Use old_backquote_output to output all
488 comma forms inside it in old style too.
489
490 * buffer.h (struct buffer): Move `undo_list' down below `name'.
491
d77b70e5
MR
4922002-10-11 Markus Rost <rost@math.ohio-state.edu>
493
494 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
495 batch mode).
496
497 * lread.c (Fload): Doc fix (load-suffixes).
498
d6abf018
ST
4992002-10-10 Steven Tamm <steventamm@mac.com>
500
240c43e8
SM
501 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
502 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
503 Also switch the default to Qnil from Qt.
d6abf018 504
9793be06
KH
5052002-10-08 Kenichi Handa <handa@m17n.org>
506
507 * coding.c (code_convert_region): When we need more GAP for
508 conversion, pay attention to the case that coding->produced is not
509 greater than coding->consumed.
510
4d46d6da
RS
5112002-10-07 Richard M. Stallman <rms@gnu.org>
512
513 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
514
95fb7577
AC
5152002-10-06 Andrew Choi <akochoi@shaw.ca>
516
517 * macmenu.c (mac_menu_show): Add j to count menu items; match
518 menu_item_selection to it to find selected item.
519
f7d43438
JD
5202002-10-06 Jan D. <jan.h.d@swipnet.se>
521
522 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
523 cases. The correct fix is to pass ReparentNotify to Xt.
524 The shell widget interprets ConfigureNotify differently depending
525 on if it has been reparented or not.
526
a67a233b
MR
5272002-10-05 Markus Rost <rost@math.ohio-state.edu>
528
529 * editfns.c (Fformat_time_string): Doc fix.
530
f5965ada
JPW
5312002-10-05 John Paul Wallington <jpw@shootybangbang.com>
532
533 * fns.c (Flength): Doc fix.
534
8d2ff840
SM
5352002-10-04 Stefan Monnier <monnier@cs.yale.edu>
536
537 * keyboard.c (keyremap): New struct.
538 (read_key_sequence): Use it: globally replace keytran_foo with
539 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
540 keytran_next and fkey_next to just `next'.
541
e989b9bc
ST
5422002-10-04 Steven Tamm <steventamm@mac.com>
543
240c43e8 544 * macterm.c (keycode_to_xkeysym_table): Change return to be
8d2ff840 545 treated like an X keysym.
e989b9bc 546
03318838
JD
5472002-10-03 Jan D. <jan.h.d@swipnet.se>
548
549 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
550 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
551 This is to also handle x/y changes that occur because of a resize.
552
cd1d850f
JPW
5532002-10-02 John Paul Wallington <jpw@shootybangbang.com>
554
555 * frame.c (Vdelete_frame_functions): New variable.
556 (syms_of_frame): Initialize and defvar it.
557 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
558 it when frame's `tooltip' parameter is non-nil.
559
560 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
561
f5965ada 562 * w32fns.c (x_create_tip_frame): Likewise.
cd1d850f
JPW
563
564 * macfns.c (x_create_tip_frame): Likewise.
565
5039407b
KH
5662002-09-30 Kenichi Handa <handa@m17n.org>
567
568 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
569 -1 before calling ccl_driver.
570
571 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
572 Only when it is non-nil, handle composition sequence.
573 (setup_coding_system) <0>: Don't force composition handling.
574
575 * Makefile.in (lisp, shortlisp): Add utf-16.elc
576
aac2d8b2
RS
5772002-09-29 Richard M. Stallman <rms@gnu.org>
578
7058ef34
RS
579 * search.c (Freplace_match): Adjust match data for the substitution
580 just made in the buffer.
581
aac2d8b2
RS
582 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
583 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
584
5852002-09-27 Richard M. Stallman <rms@gnu.org>
586
587 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
588 (read_char): Use them. Do all exits thru the end of the function.
589
e21880c6
KH
5902002-09-27 Kenichi Handa <handa@etl.go.jp>
591
592 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
593 is nil.
594
563c037f
RS
5952002-09-26 Richard M. Stallman <rms@gnu.org>
596
597 * regex.h (__restrict_arr): Don't define if already defined.
598
599 * coding.c (run_pre_post_conversion_on_str):
600 Save and restore Vdeactivate_mark.
601
6d1b1d7b
JPW
6022002-09-26 John Paul Wallington <jpw@shootybangbang.com>
603
604 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
605
54580ab2
KH
6062002-09-26 Kenichi Handa <handa@etl.go.jp>
607
608 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
240c43e8 609 nonzero, try face's family at first. Otherwise try FAMILY at first.
54580ab2
KH
610 (choose_face_font): If C is a single byte char or latin-1, call
611 try_font_list with PREFER_FACE_FAMILY 1.
612
282f7831
RS
6132002-09-21 Richard M. Stallman <rms@gnu.org>
614
615 * window.c (select_window_1): Don't select frame.
616 Set frame's selected window only when frame itself is selected.
617 (Fselect_window): Doc fix.
618
454d0d5e
KS
6192002-09-18 Kim F. Storm <storm@cua.dk>
620
621 * process.c (make-network-process): Doc fix (there is no
622 network-server-log-function hook).
623
3116d142
RS
6242002-09-18 Richard M. Stallman <rms@gnu.org>
625
626 * print.c (print): Clear out the unused parts of Vprint_number_table.
627 (syms_of_print): Doc fix for `print-number-table'.
628
629 * unexelf.c (unexec): Undo previous change.
630
99d85a90
AS
6312002-09-17 Andreas Schwab <schwab@suse.de>
632
633 * m/alpha.h [LINUX]: Don't define DATA_START.
634
c721078e
RS
6352002-09-16 Dave Love <fx@gnu.org>
636
637 * unexelf.c (unexec): Deal with .got, reinstating change from
638 25-08-1999.
639
95fb966a
RS
6402002-09-13 Richard M. Stallman <rms@gnu.org>
641
642 * s/sol2-6.h (UNEXEC): Comment out definition.
643
644 * unexsol.c (unexec): Don't downcase first letter of error msg.
645
646 * xfaces.c (Fcolor_supported_p): Just one arg is required.
647
6c009b5b
MR
6482002-09-12 Markus Rost <rost@math.ohio-state.edu>
649
650 * unexsol.c: Include buffer.h, charset.h, coding.h.
651
7c3cb37d
RS
6522002-09-11 Richard M. Stallman <rms@gnu.org>
653
654 * unexsol.c: Don't use report_file_error; do it by hand
655 using dlerror.
656
657 * process.c (wait_reading_process_input, both versions):
658 Before calling turn_on_atimers, call stop_polling.
659
660 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
661
662 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
663 we go to too_near_end, call clear_glyph_matrix.
664 (redisplay_window): After make_cursor_line_fully_visible,
665 call clear_glyph_matrix and bypass `goto done'.
666
667 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
668 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
669
f95c03c6
RS
6702002-09-10 Richard M. Stallman <rms@gnu.org>
671
672 * fileio.c (Fdo_auto_save): Catch error making directory.
673 Only call push_message if we need to.
674 At the same time, make an unwind-protect to pop it.
675 Rename local message_p to old_message_p.
676 (do_auto_save_make_dir, do_auto_save_eh): New functions.
677 (do_auto_save_unwind): Don't call pop_message.
678
679 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
680
681 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
682
683 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
684
685 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
686
0a28e1ca
SM
6872002-09-10 Stefan Monnier <monnier@cs.yale.edu>
688
689 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
690 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
691 (re_match_2_internal): Be more careful with infinite loops.
692
e00a1361 6932002-09-10 Kim F. Storm <storm@cua.dk>
2bbfbf25
KS
694
695 * macros.c (end_kbd_macro): New function.
696 (Fend_kbd_macro): Use it.
697
698 * macros.h (end_kbd_macro): Declare extern.
699
700 * keyboard.c (Fdiscard_input): If defining keyboard macro,
701 end and save it instead of discarding it.
702
e986c175
MR
7032002-09-09 Markus Rost <rost@math.ohio-state.edu>
704
705 * s/sol2-6.h: Fix typo. Add comment.
706
50332dc1
RS
7072002-09-09 Richard M. Stallman <rms@gnu.org>
708
709 * regex.c (regnum_t): Use signed int, not unsigned int.
710
711 * s/sol2-6.h: New file.
712
713 * s/sol2-5.h (UNEXEC): Definition deleted.
714
de8e3806
KS
7152002-09-08 Kim F. Storm <storm@cua.dk>
716
717 * macros.c (executing_macro_index): Change type to EMACS_INT.
718 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
719
720 * macros.h (executing_macro_index): Change type to EMACS_INT.
0a28e1ca 721
426f6c23
RS
7222002-09-06 Richard M. Stallman <rms@gnu.org>
723
724 * casetab.c (set_case_table): Make canon table point to eqv table.
725
f8f8d464
JB
7262002-09-06 Juanma Barranquero <lektu@terra.es>
727
728 * coding.c (syms_of_coding): Fix spacing.
729
730 * composite.c (Fcompose_region_internal)
731 (Fcompose_string_internal): Likewise.
732
733 * data.c (Flsh): Likewise.
734
735 * fontset.c (Fset_fontset_font): Likewise.
736
737 * macfns.c (Fx_server_max_request_size): Likewise.
738
739 * w16select.c (syms_of_win16select): Likewise.
740
741 * w32select.c (syms_of_w32select): Likewise.
742
743 * xselect.c (syms_of_xselect): Likewise.
744
b7c12565
RS
7452002-09-05 Richard M. Stallman <rms@gnu.org>
746
747 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
748 call EXTEND_RANGE_TABLE and return a proper value.
749 (set_image_of_range): Don't call set_image_of_range_1
750 if no TRANSLATE or if range includes all of Latin-1.
751 Only call it for the Latin-1 part of the range.
752 For other cases, make two separate ranges,
753 one for the original specified characters and one for
754 their case-conversions.
755
4d8da98b
RS
7562002-09-04 Richard M. Stallman <rms@gnu.org>
757
758 * s/sol2-5.h (UNEXEC): Use unexsol.o.
759
760 * window.c (displayed_window_lines): Correct for one-off bug
761 in HEIGHT on non-window displays.
762
763 * regex.c (set_image_of_range_1): New function.
764 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
765 Return a value to indicate running out of memory.
766 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
767 (extend_range_table_work_area): New subroutine.
768 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
769 Different calling conventions, and used from set_image_of_range{,_1}.
770 (IMMEDIATE_QUIT_CHECK): Definitions moved.
771
6218196f
JB
7722002-09-04 Juanma Barranquero <lektu@terra.es>
773
774 * makefile.w32-in: All dependencies updated.
775
dfe15ea3
RS
7762002-09-01 Richard M. Stallman <rms@gnu.org>
777
69506e67
RS
778 * unexsol.c: New file.
779
780 * xfns.c (Qbox): Declare external, don't define.
781
782 * xdisp.c (redisplay_window) <force-start case>:
783 If point is on semi-visible last line, reposition
784 it at previous line.
785
dfe15ea3
RS
786 * alloc.c (display_malloc_warning): Use display-warning.
787 (malloc_warning_1): Function deleted.
788
789 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
790
791 * lread.c (read1): Handle #! by skipping the line.
792
7932002-08-31 Richard M. Stallman <rms@gnu.org>
794
795 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
796 Don't include LDFLAGS.
797 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
798
97acc803
EZ
7992002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
800
801 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
802 member of x_display_info unless we compile for some window system.
803
e0f7b1a8
KS
8042002-08-31 Kim F. Storm <storm@cua.dk>
805
806 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
807 (get_window_cursor_type): Don't use them.
808 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
809
a30c876a
KH
8102002-08-30 Kenichi Handa <handa@etl.go.jp>
811
812 * xdisp.c (get_next_display_element): Fix previous change.
813
e2d9d8a1
AC
8142002-08-30 Andrew Choi <akochoi@shaw.ca>
815
ca45961d
AC
816 * macterm.c (expose_overlaps): New function (merge code from
817 xterm.c).
818 (expose_window): Use it to fix the display of overlapping
819 rows (merge code from xterm.c).
820
e2d9d8a1
AC
821 * macfns.c (Qbox): Add extern declaration.
822
842a9389
JB
8232002-08-30 Juanma Barranquero <lektu@terra.es>
824
ab0bb234
JB
825 * w32fns.c (Qbox): Make extern.
826 (syms_of_w32fns): Remove initialization of Qbox.
827
b37db7b4
JB
8282002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
829
830 * xfns.c (Fx_open_connection): Fix error message.
842a9389 831
654d5b91
KS
8322002-08-30 Kim F. Storm <storm@cua.dk>
833
834 The following changes consolidates the handling of the cursor
835 type in xdisp.c, moving duplicate code and functionality from
836 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
837
838 * frame.h (enum text_cursor_kinds): Consolidated here.
839 Added DEFAULT_CURSOR value.
840 (struct frame) <desired_cursor, cursor_width>
841 <blink_off_cursor, blink_off_cursor_width>: New fields.
842 Consolidated from output_x, output_w32 and output_mac structs.
843 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
844 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
845
846 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
847 Variables consolidated here.
848 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
849 (Vcursor_in_non_selected_windows): Renamed from
850 cursor_in_non_selected_windows and changed to Lisp_Object.
851 (syms_of_xdisp): Define and staticpro new and moved variables.
852 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
853 consolidated here. Recognize Qhollow setting.
854 (set_frame_cursor_types): New function to set frame cursor types
855 based on the frame parameters.
856 (get_window_cursor_type): New function to calculate new cursor
857 type and width for the specified window. Based on duplicated
858 code consolidated here.
859 Enhancements: cursor-in-non-selected-windows may be a cursor type,
860 check buffer-local alternate-cursor-type and blink-cursor-alist
861 before using built-in blink off methods.
862
863 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
864
865 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
866 (get_specified_cursor_type, get_window_cursor_type)
867 (set_frame_cursor_types): Added prototypes.
868
869 * macfns.c (x_specified_cursor_type): Removed.
870 (x_set_cursor_type): Use set_frame_cursor_types.
c76654a2
KS
871 (Qbar, Qbox): Removed.
872 (syms_of_macfns): Don't intern or staticpro them.
842a9389 873
654d5b91
KS
874 * macterm.c (x_specified_cursor_type): Remove prototype.
875 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
876 (x_display_and_set_cursor): Use get_window_cursor_type.
877 Remove unused local variables cursor_non_selected, active_cursor.
878 Redraw cursor if hbar cursor width changes.
879 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
880
881 * macterm.h (enum text_cursor_kinds): Removed.
882 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
883 <blink_off_cursor, blink_off_cursor_width>: Members removed.
884 (FRAME_DESIRED_CURSOR): Macro removed.
842a9389 885
654d5b91
KS
886 * w32fns.c (Vblink_cursor_alist): Removed.
887 (Qbar, Qhbar, Qbox, Qhollow): Removed.
888 (syms_of_w32fns): Don't intern, staticpro, or define them.
889 (x_specified_cursor_type): Removed.
890 (x_set_cursor_type): Use set_frame_cursor_types.
891
892 * w32term.c (x_specified_cursor_type): Remove prototype.
893 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
894 (x_display_and_set_cursor): Use get_window_cursor_type.
895 Remove unused local variables cursor_off_state.
896 Redraw cursor if hbar cursor width changes.
6b3acc48 897 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
842a9389 898
654d5b91
KS
899 * w32term.h (enum text_cursor_kinds): Removed.
900 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
901 <blink_off_cursor, blink_off_cursor_width>: Members removed.
902 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
903 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
6b3acc48
KS
904 (struct w32_display_info) <x_highlight_frame>: Renamed member from
905 w32_highlight_frame.
842a9389 906
654d5b91
KS
907 * xfns.c (Vblink_cursor_alist): Removed.
908 (Qbar, Qhbar, Qbox, Qhollow): Removed.
909 (syms_of_xfns): Don't intern, staticpro, or define them.
910 (x_specified_cursor_type): Removed.
911 (x_set_cursor_type): Use set_frame_cursor_types.
912
913 * xterm.c (x_specified_cursor_type): Remove prototype.
914 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
915 (x_display_and_set_cursor): Use get_window_cursor_type.
916 Remove unused local variables cursor_off_state.
917 Redraw cursor if hbar cursor width changes.
918
919 * xterm.h (enum text_cursor_kinds): Removed.
920 (struct output_x) <current_cursor, desired_cursor, cursor_width>
921 <blink_off_cursor, blink_off_cursor_width>: Members removed.
922 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
923 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
924 (x_specified_cursor_type): Remove prototype.
842a9389 925
a007b9d2
RS
9262002-08-28 Richard M. Stallman <rms@gnu.org>
927
928 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
929 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
930 (Vblink_cursor_alist): New variable.
931 (syms_of_w32fns): Initialize and defvar it.
932 (x_specified_cursor_type): Recognize Qbox for filled box.
933 Exceptions are hollow boxes.
934 (Qbox, Qhollow): New variables.
935 (syms_of_w32fns): Initialize and staticpro them.
936
937 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
938 New macros.
939 (struct w32_output): New fields blink_off_cursor, blink_off_cursor_width.
940 (FRAME_CURSOR_WIDTH): New macro.
941
942 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
943 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
944
945 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
946 for bar cursor.
947
948 * w32term.c (expose_overlaps): New function.
949 (expose_window): Use it to fix the display of overlapping rows.
950
2dc520b6
SJ
9512002-08-28 Simon Josefsson <jas@extundo.com>
952
953 * xfns.c (Fx_open_connection): Improve help when X connection
954 fails, xhost is insecure and xauth is better.
955
402b32b5
JB
9562002-08-28 Juanma Barranquero <lektu@terra.es>
957
a821edb8
JB
958 * makefile.w32-in: Add missing dependencies on w32term.h and
959 composite.h.
960
402b32b5
JB
961 * emacs.c (USAGE1): Add missing newline.
962
ad8d730c
AC
9632002-08-27 Andrew Choi <akochoi@shaw.ca>
964
965 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
966
6e910e07
RS
9672002-08-27 Richard M. Stallman <rms@gnu.org>
968
969 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
970 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
971 (Vblink_cursor_alist): New variable.
972 (syms_of_xfns): Initialize and defvar it.
973 (x_specified_cursor_type): Recognize Qbox for filled box.
974 Exceptions are hollow boxes.
975 (Qbox, Qhollow): New variables.
976 (syms_of_xfns): Initialize and staticpro them.
977
978 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
979 New macros.
980 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
402b32b5 981
6e910e07
RS
982 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
983 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
984
985 * emacs.c (main): Handle --script.
986 (USAGE1): Mention --script.
987 (standard_args): Define sort order for --script.
988
9892002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
990
991 * xdisp.c (redisplay_updating_p): Variable removed.
992 (inhibit_free_realized_faces, Qinhibit_free_realized_faces): New
993 variables.
994 (init_iterator): Don't free realized faces if
995 inhibit_free_realized_faces is set.
996 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
997 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
998 initialize Qinhibit_free_realized_faces.
999
1000 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
1001 when iterator is adding glyphs to a glyph matrix.
1002
456c80d6
KH
10032002-08-27 Kenichi Handa <handa@etl.go.jp>
1004
1005 * xdisp.c (get_next_display_element): In unibyte case, don't use
1006 octal form for such eight-bit characters that can be converted to
1007 multibyte char.
1008
6bc85c3b
KS
10092002-08-26 Kim F. Storm <storm@cua.dk>
1010
1011 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
1012 foreground and background colors. From Joe Buehler (tiny change).
1013
f49656ec
MB
10142002-08-26 Miles Bader <miles@gnu.org>
1015
1016 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
1017
19580e2c
AC
10182002-08-25 Andrew Choi <akochoi@shaw.ca>
1019
a6311b2f
AC
1020 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
1021 defined instead of MAC_OSX.
1022
1023 * s/darwin.h (select): Define select to sys_select only if
1024 HAVE_CARBON is defined.
1025 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
5cb724f0 1026 (DONT_REOPEN_PTY): #def it.
402b32b5 1027
19580e2c
AC
1028 * macterm.c (XTread_socket): Remove code to call
1029 SendEventToEventTarget for keys with command modifiers when
1030 mac_command_key_is_meta is nil.
1031
addf35fd
AS
10322002-08-24 Andreas Schwab <schwab@suse.de>
1033
1034 * eval.c (Fdefvar): Fix last change.
1035
729d9038
RS
10362002-08-23 Richard M. Stallman <rms@gnu.org>
1037
1038 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
1039 Record variables in load history as (defvar . VAR).
1040 (Fdefvar): Don't record in load history if no initial value.
1041 (Qdefvar): New variable.
1042 (syms_of_eval): Init and staticpro it.
1043
1044 * lread.c (syms_of_lread): Doc fix.
1045 (build_load_history): Use Fmember to see if a definition
1046 is already in the Vload_history element.
1047
1048 * process.c (Fstart_process): Remove /: from program name.
1049
1050 * emacs.c (decode_env_path): Don't add /: if file name handler
1051 has a `safe-magic' property.
1052
1053 * callproc.c (Fcall_process): Remove /: from program name.
1054
36595814
SM
10552002-08-23 Stefan Monnier <monnier@cs.yale.edu>
1056
1057 * regex.c (PATFETCH): Remove the translating fetch.
1058 (PATFETCH_RAW): Rename to PATFETCH.
1059 (set_image_of_range): New fun.
1060 (SET_RANGE_TABLE_WORK_AREA): Use it.
1061 (regex_compile): Don't translate the pattern chars so eagerly.
1062 Only do it when inserting an `exactn' bytecode or when handling
1063 a char-range.
1064 (mutually_exclusive_p): Avoid empty statement.
1065
f92ae6be
KS
10662002-08-22 Kim F. Storm <storm@cua.dk>
1067
1068 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
1069 end up on a partially visible line; this reverts a specific part
1070 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
1071 display error which has been reported several times now.
1072 However it introduces the problem that changes was supposed to fix.
1073 See my comments in the source if you want to debug this further.
1074
9bbe0341
KH
10752002-08-20 Kenichi Handa <handa@etl.go.jp>
1076
1077 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
1078
100c44b7
EZ
10792002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
1080
aac06fd4
EZ
1081 * msdos.c (croak): Add `void' to definition.
1082
92b304ac
RS
1083 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
1084 Don't define them, they are defined in msdos.c.
feb67dfe 1085
a8c1733b
EZ
1086 * mem-limits.h [MSDOS]: Declare etext.
1087
100c44b7
EZ
1088 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
1089 `const' since CORRECT_DIR_SEPS modifies its target.
1090
dec7e302
KS
10912002-08-19 Kim F. Storm <storm@cua.dk>
1092
1093 * keyboard.c (Fclear_this_command_keys): Added optional arg
1094 KEEP-RECORD to avoid clearing lossage when we just want to clear
1095 the current key sequence (kmacro needs this).
1096
775b3d2d
KH
10972002-08-19 Kenichi Handa <handa@localhost>
1098
1099 * composite.c (run_composition_function): Call FUNC if it is
1100 fboundp.
1101
1102 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
1103 cons, return Qnil.
1104
c387c986
RS
11052002-08-17 Richard M. Stallman <rms@gnu.org>
1106
1107 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
1108
1109 * sysdep.c [!VMS]: Include sys/files.h.
1110
1111 * editfns.c (save_restriction_restore): Defend from unchained marker.
1112
1113 * buffer.c (overlays_at): Handle extending vec uniformly.
1114 (overlays_in): Handle extending vec from length 0 as in overlays_at.
1115
1000788b
AC
11162002-08-15 Andrew Choi <akochoi@shaw.ca>
1117
1118 * mac.c (init_mac_osx_environment): New function.
1119
1120 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
1121
82802164
KS
11222002-08-14 Kim F. Storm <storm@cua.dk>
1123
1124 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
1125 executing macro before appending to it (when used from Lisp).
1126 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
1127 which is called prior to each iteration of macro (for kmacro.el).
1128 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
1129
1130 * lisp.h (Fexecute_kbd_macro): Update prototype.
1131
1132 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
402b32b5 1133
13a45e6c
KH
11342002-08-14 Kenichi Handa <handa@etl.go.jp>
1135
1136 * xselect.c (QUTF8_STRING): New variable.
1137 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
1138 (x_atom_to_symbol): Likewise.
1139 (x_get_local_selection): New argument local_request. If it is
1140 nonzero, call handler_fn with the second arg nil.
1141 (x_handle_selection_request): Call x_get_local_selection with
1142 local_request 0.
1143 (lisp_data_to_selection_data): Don't encode the string here.
1144 (Fx_get_selection_internal): Call x_get_local_selection with
1145 local_request 1.
1146 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
1147
1148 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
1149
1150 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
1151
79fab26b
RS
11522002-08-13 Richard M. Stallman <rms@gnu.org>
1153
1154 * minibuf.c (Fminibufferp): New function.
1155 (syms_of_minibuf): Defsubr it.
1156 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
1157
96d2e64d
GM
11582002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
1159
1160 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
1161
450565cb
RS
11622002-08-12 Richard M. Stallman <rms@gnu.org>
1163
1164 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
402b32b5 1165 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
450565cb
RS
1166 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
1167 already.
1168
1169 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
1170
5883787c
AC
11712002-08-11 Andrew Choi <akochoi@shaw.ca>
1172
1173 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
1174 (Vmac_pass_command_to_system): New variable.
1175 (Vmac_pass_control_to_system): New variable.
1176 (do_mouse_moved): Check wp with is_emacs_window.
1177 (XTread_socket): Check window_ptr with is_emacs_window. Call
1178 FrontNonFloatingWindow instead of FrontWindow. Send keydown
1179 events back to Mac Toolbox for processing, depending on values of
1180 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
1181 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
1182 Vmac_pass_control_to_system.
1183
054e62ae
KH
11842002-08-10 Kenichi Handa <handa@etl.go.jp>
1185
1186 * coding.c (unencodable_char_position): New function.
1187 (Funencodable_char_position): New function.
1188 (syms_of_coding): Defsubr Funencodable_char_position.
1189
8030369c
AC
11902002-08-10 Andrew Choi <akochoi@shaw.ca>
1191
1192 * mac.c (sys_select) [MAC_OSX]: New function.
1193
1194 * macterm.c (MakeMeTheFrontProcess): New function.
1195 (mac_initialize): Call MakeMeTheFrontProcess.
1196
1197 * s/darwin.h: Define select to sys_select.
1198
1e7c162f
RS
11992002-08-09 Richard M. Stallman <rms@gnu.org>
1200
1201 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
1202
d43be70c
GM
12032002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
1204
1205 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
1206 end of the buffer.
1207
d90ed3b4
KR
12082002-08-08 Ken Raeburn <raeburn@mit.edu>
1209
1210 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int
1211 mixup.
1212
b177738e
KR
1213 * puresize.h (BASE_PURESIZE): Increase to 910000.
1214
b12a8058
KH
12152002-08-08 Kenichi Handa <handa@etl.go.jp>
1216
1217 * coding.c (Ffind_operation_coding_system): For write-region, if
1218 VISIT is a filename, make it the target.
1219
46e3984f
RS
12202002-08-07 Richard M. Stallman <rms@gnu.org>
1221
1222 * alloc.c (mark_object): Detect long lists for debugging.
1223 (mark_object_loop_halt): New variable.
1224
1225 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
1226
1227 * data.c (Fmake_variable_frame_local): Doc fix.
1228
86d98c33
RS
12292002-08-01 David Ponce <david@dponce.com>
1230
1231 * w32menu.c (local_heap, local_alloc, local_free): New macros.
1232 (malloc_widget_value, free_widget_value)
1233 (w32_free_submenu_strings): Use them.
1234
1235 (push_submenu_start, push_submenu_end, push_left_right_boundary)
1236 (push_menu_pane, push_menu_item, single_keymap_panes)
1237 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
1238 (single_submenu, set_frame_menubar)
1239 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
1240
1241 (Fx_popup_menu): Don't show pop up menu until preceding one is
1242 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
1243
1244 * w32menu.c: Changes adapted from xmenu.c
1245 (set_frame_menubar): First parse all submenus,
1246 then make widget_value trees from them.
1247 Don't allocate any widget_value objects
1248 until we are done with the parsing.
1249 (parse_single_submenu): New function.
1250 (digest_single_submenu): New function.
1251 (single_submenu): Function deleted, replaced by those two.
1252
44fab9c1
AC
12532002-08-04 Andrew Choi <akochoi@shaw.ca>
1254
1255 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
1256 returns a valid window pointer before proceeding for keyDown and
1257 autoKey events.
1258
742fbed7
AC
12592002-08-03 Andrew Choi <akochoi@shaw.ca>
1260
1261 * macterm.c (USE_CARBON_EVENTS): New macro.
1262 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
1263 (x_iconify_frame): Call CollapseWindow.
1264 (Vmac_reverse_ctrl_meta): New variable.
1265 (Vmac_wheel_button_is_mouse_2): New variable.
1266 (init_mac_drag_n_drop): New function.
1267 (mac_do_receive_drag): New function.
1268 (mac_handle_service_event): New function.
1269 (init_service_handler): New function.
1270 (mac_to_emacs_modifiers): New function.
1271 (mac_event_to_emacs_modifiers): New function.
1272 (mac_get_mouse_btn): New function.
1273 (mac_convert_event_ref): New function.
1274 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
1275 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
1276 mac_get_mouse_btn.
1277 (mac_initialize): Call init_mac_drag_n_drop and
1278 init_service_handler.
1279
1280 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
1281 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
1282 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
1283 TOOL_BAR_EVENT for MAC_OS as well.
1284 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
1285 as for WINDOWS_NT.
1286 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
1287
1288 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
1289 MAC_OSX.
402b32b5 1290
db0bb807
GM
12912002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
1292
1293 * xdisp.c (forward_to_next_line_start): Fix a condition that
1294 lead to a newline being skipped.
1295
36426689
AC
12962002-08-02 Andrew Choi <akochoi@shaw.ca>
1297
1298 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
1299
ad44f2a1
RS
13002002-08-01 Richard M. Stallman <rms@gnu.org>
1301
1302 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
1303
9794a8cd
AC
13042002-07-31 Andrew Choi <akochoi@shaw.ca>
1305
41428ec4
AC
1306 * macfns.c: #undef init_process before #define-ing it.
1307
9794a8cd
AC
1308 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
1309 HAVE_CARBON is defined.
1310
ced89c24
RS
13112002-07-31 Richard M. Stallman <rms@gnu.org>
1312
1313 * xmenu.c (set_frame_menubar): First parse all submenus,
1314 then make widget_value trees from them.
1315 Don't allocate any widget_value objects
1316 until we are done with the parsing.
1317 (parse_single_submenu): New function.
1318 (digest_single_submenu): New function.
1319 (single_submenu): Function deleted, replaced by those two.
1320
45de4a6f
JB
13212002-07-30 Juanma Barranquero <lektu@terra.es>
1322
1323 * w32proc.c (syms_of_ntproc): Fix docstring of
1324 `w32-get-true-file-attributes'.
1325
3ea1bfb2
RS
13262002-07-28 Richard M. Stallman <rms@gnu.org>
1327
1328 * s/hpux8.h (HPUX8): Define this before including hpux.h.
1329 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
45de4a6f 1330
3ea1bfb2
RS
1331 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
1332
1333 * keyboard.c (make_lispy_event):
1334 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
1335 Explicitly clear up_modifier in event->modifiers.
1336
01af8a38
RS
13372002-07-27 Richard M. Stallman <rms@gnu.org>
1338
1339 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
1340
1341 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
1342 for bar cursor.
1343
5483cd4e
KH
13442002-07-26 Kenichi Handa <handa@etl.go.jp>
1345
1346 * coding.c (detect_coding_iso2022): While checking a byte sequence
1347 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
1348 it in the normal loop.
1349
acfca545
RS
13502002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
1351
1352 * xterm.c (expose_overlaps): New function.
1353 (expose_window): Use it to fix the display of overlapping rows.
1354
1355 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
1356
be3abfa2
KR
13572002-07-23 Ken Raeburn <raeburn@gnu.org>
1358
1359 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
1360 since it only depends on XUINT.
1361
1362 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
1363 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
1364 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
1365 Macros deleted.
1366
1367 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
1368 its value over other approaches.
1369 * sysdep.c (start_of_data): Don't define the function if a macro
1370 form has been defined.
1371
9a654855
RS
13722002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
1373
1374 * xdisp.c (redisplay_updating_p): New variable.
1375 (init_iterator): Don't free realized faces when
1376 redisplay_updating_p is set.
1377 (redisplay_internal): Set redisplay_updating_p while updating
1378 the display.
1379
6076e561
RS
13802002-07-23 Richard M. Stallman <rms@gnu.org>
1381
1382 * editfns.c (Fmessage): Treat "" like nil.
1383
1d1b6e6a
KH
13842002-07-23 Kenichi Handa <handa@etl.go.jp>
1385
1386 * xdisp.c (face_before_or_after_it_pos): Call
1387 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
1388
c9a883b8
JB
13892002-07-22 Juanma Barranquero <lektu@terra.es>
1390
1391 * callproc.c (init_callproc) [DOS_NT]: Initialize
1392 Vshared_game_score_directory to nil.
1393 (syms_of_callproc) [DOS_NT]: Likewise.
1394
72b8c434
RS
13952002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
1396
1397 * xdisp.c (display_line): Replace an abort with xassert.
1398
a8bbe549
RS
13992002-07-21 Richard M. Stallman <rms@gnu.org>
1400
1401 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
1402 and END_UNCHANGED when setting buffer_unchanged_p.
1403 Use current_matrix_up_to_date_p to decide whether to use
1404 try_cursor_movement.
1405
1406 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
1407
1408 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
1409
1410 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
1411 Set to nil if dir does not exist.
1412 (syms_of_callproc): Init unconditionally and simply.
1413
1414 * buffer.c (Fbuffer_list): Doc fix.
1415
bb63c5c9
KR
14162002-07-21 Ken Raeburn <raeburn@gnu.org>
1417
56468649
KR
1418 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
1419
bb63c5c9 1420 * buffer.c (mmap_realloc): When shrinking, make sure number of
3fb7ef6f 1421 pages to unmap is rounded towards zero.
bb63c5c9 1422
4648267b 1423 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
915882da 1424 (XSETINT): Deleted.
4648267b 1425
b0e057bc
KR
1426 * m/att3b.h (XINT): Don't define.
1427 (VALBITS, VALMASK, XTYPE): Deleted.
1428 (DATA_SEG_BITS): Define.
1429 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
1430 ARRAY_MARK_FLAG): Deleted.
1431 (DATA_SEG_BITS): Define.
1432 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
1433 (DATA_SEG_BITS): Define.
1434
56592beb
RS
14352002-07-20 Richard M. Stallman <rms@gnu.org>
1436
1437 * print.c (print_error_message): New args CONTEXT and CALLER.
1438 Calls changed.
45de4a6f 1439
56592beb
RS
1440 * lisp.h (print_error_message): Declare new args.
1441
1442 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
1443 and CONTEXT to print_error_message, don't print them here.
1444 For a Quit, don't use Vsignaling_function.
1445 Call message_log_maybe_newline.
45de4a6f 1446
56592beb
RS
1447 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
1448
14492002-07-20 Kim F. Storm <storm@cua.dk>
1450
1451 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
1452
dffb0c47
KR
14532002-07-19 Ken Raeburn <raeburn@gnu.org>
1454
1455 * bytecode.c (struct byte_stack): Pointers into byte string now
1456 point to const.
1457 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
1458 const.
1459 * charset.h (BCOPY_SHORT): Source pointer now points to const.
1460 * coding.c (encode_eol, detect_coding, detect_eol):
1461 (decode_coding, encode_coding, detect_coding_system): Source
1462 strings now treated as const.
1463 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
1464 modify Lisp string contents.
1465 * coding.h (decode_coding, encode_coding, detect_coding,
1466 detect_eol): Declarations updated.
1467 * composite.c (compose_chars_in_text): Treat Lisp string contents
1468 as const.
1469 * dispnew.c (safe_bcopy): Source pointer now points to const.
1470 * lisp.h (STRING_COPYIN): New macro.
1471 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
1472 (internal_with_output_to_temp_buffer): Declarations updated.
1473 * print.c (temp_output_buffer_setup):
1474 (internal_with_output_to_temp_buffer): Buffer name argument is now
1475 pointer to const.
1476 * sound.c (struct sound_device): Function pointer field "write"
1477 buffer argument now points to const.
1478 (vox_write): Buffer argument points to const.
1479 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
1480 contents as const.
405ea71c
KR
1481 * sysdep.c (emacs_write): Buffer pointer now const.
1482 * term.c (encode_terminal_code): Buffer pointer now const.
dffb0c47
KR
1483 * xfaces.c (may_use_scalable_font_p): Argument now points to
1484 const.
1485 (x_face_list_fonts, x_update_menu_appearance):
1486 (hash_string_case_insensitive): Treat Lisp string contents as
1487 const.
1488
dd8d66ad
JB
14892002-07-19 Juanma Barranquero <lektu@terra.es>
1490
0dac4f85 1491 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
8cfd6446 1492 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
0dac4f85 1493
dd8d66ad
JB
1494 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
1495
1496 * fileio.c (syms_of_fileio): Likewise.
1497
f33f4398
RS
14982002-07-18 Richard M. Stallman <rms@gnu.org>
1499
1500 * data.c (Fdefalias): Doc fix.
1501
f860212e
DL
15022002-07-17 Dave Love <fx@gnu.org>
1503
46f4bf30
DL
1504 * intervals.h (text_property_stickiness): Use P_.
1505
f860212e
DL
1506 * ccl.c: Remove `emacs' conditionals.
1507 (ccl_backtrace_table): Fix size spec.
1508 (ccl_driver): Fix type errors.
1509
674537ea
KR
15102002-07-16 Ken Raeburn <raeburn@gnu.org>
1511
bd66096a
KR
1512 * alloc.c (xstrdup, make_string, make_unibyte_string)
1513 (make_multibyte_string, build_string): String pointer args now
1514 point to const.
1515 * charset.c (find_charset_in_text, c_string_width):
1516 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
1517 * fileio.c (report_file_error):
1518 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
1519 (count_combining_before, count_combining_after, insert_1_both):
1520 (insert, insert_and_inherit, insert_string):
1521 (insert_before_markers, insert_before_markers_and_inherit):
1522 * lread.c (intern, oblookup, hash_string):
1523 * minibuf.c (temp_echo_area_glyphs):
1524 * search.c (fast_c_string_match_ignore_case):
1525 * sysdep.c (emacs_open, set_file_times):
1526 * xfaces.c (xstricmp):
1527 * xdisp.c (store_frame_title, string_char_and_length):
1528 (message_dolog, message2, message2_nolog, set_message): Likewise.
1529 (set_message_1): Cast message string argument to const pointer.
1530 * editfns.c (general_insert_function): Insertion function now
1531 takes pointer to const for input data.
1532 * charset.h (find_charset_in_text, c_string_width):
1533 (parse_str_as_multibyte): Declarations updated.
1534 * dispextern.h (xstricmp): Declaration updated.
1535 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
1536 (count_size_as_multibyte, count_combining_before):
1537 (count_combining_after, insert_1, insert_1_both, message_dolog):
1538 (insert, insert_and_inherit, insert_before_markers)
1539 (insert_before_markers_and_inherit, set_message, message2):
1540 (message2_dolog, build_string, make_string, make_unibyte_string):
1541 (make_multibyte_string, intern, oblookup, report_file_error):
1542 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
1543 (emacs_open, xstrdup): Declarations updated.
1544 * systime.h (set_file_times): Declaration updated.
1545
1546 * charset.c (find_charset_in_text, lisp_string_width): Use const
1547 for pointer to lisp string data.
1548 * charset.h (FETCH_STRING_CHAR_ADVANCE):
1549 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
1550 * coding.c (Ffind_coding_systems_region_interval):
1551 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
1552 (Fmake_directory_internal, Fdelete_directory):
1553 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
1554 * fontset.c (font_family_registry, fs_query_fontset):
1555 (list_fontsets):
1556 * frame.c (Fframe_parameter):
1557 * keyboard.c (cmd_error_internal):
1558 * keymap.c (Fdescribe_buffer_bindings):
1559 * lread.c (complete_filename_p, openp):
1560 * minibuf.c (Fminibuffer_complete_word):
1561 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
1562 (face_before_or_after_it_pos, next_element_from_string):
1563 (get_overlay_arrow_glyph_row, display_mode_element):
1564 (decode_mode_spec_coding):
1565 * xterm.c (same_x_server): Likewise.
1566
943afcc7
KR
1567 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
1568 settings of non-existent fields.
1569
1570 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
1571 copy a lisp value.
1572
1573 * lread.c (Fintern_soft): Use string macros instead of
1574 Lisp_String fields.
1b049b51
KR
1575 * keyboard.c (echo_char, parse_modifiers_uncached):
1576 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
943afcc7
KR
1577 * textprop.c (validate_interval_range, interval_of): Likewise.
1578
36595814 1579 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9f5348e3 1580
36595814
SM
1581 * charset.h (FETCH_STRING_CHAR_ADVANCE)
1582 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9f5348e3
KR
1583 XSTRING()->size_byte.
1584
7da167cd
KR
1585 * lisp.h (SDATA, SREF): Produce rvalue.
1586 (SSET): New macro.
1587 * alloc.c (make_event_array): Use SSET for storing into a string.
1588 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
1589 a string.
1590 * casefiddle.c (casify_object): Use SSET.
36595814
SM
1591 * charset.h (FETCH_STRING_CHAR_ADVANCE)
1592 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
7da167cd
KR
1593 address of string contents.
1594 * data.c (Faref): Use SDATA.
1595 (Faset): Use SDATA, SSET.
1596 * dired.c (directory_files_internal): Use SSET.
1597 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
1598 (Fread_file_name): Use SREF, SSET.
1599 * fns.c (concat): Use SSET.
1600 (concat, Fdelete): Use SDATA.
1601 * insdel.c (insert_from_string_1): Use SDATA.
1602 * keyboard.c (Fevent_convert_list): Use SREF.
1603 * lread.c (Fload): Use SDATA, SSET.
1604 * macfns.c (validate_x_resource_name): Use SSET.
1605 * process.c (status_message): Use SSET.
1606 * search.c (wordify): Use SDATA.
1607 (Freplace_match): Use SREF.
1608 * w32fns.c (validate_x_resource_name): Use SSET.
1609 * xfns.c (validate_x_resource_name): Use SSET.
1610 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
674537ea 1611
9ee49ebc
RS
16122002-07-16 Richard M. Stallman <rms@gnu.org>
1613
1614 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
1615
1616 * xdisp.c (reconsider_clip_changes):
1617 Don't test prevent_redisplay_optimizations_p.
1618 (redisplay_internal): Test prevent_redisplay_optimizations_p
1619 along with clip_changed in some cases.
1620 (try_window_id): Likewise.
1621 (redisplay_window): New local var buffer_unchanged_p.
1622
1623 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
1624
1625 * process.c (create_process): Test USG_SUBTTY_WORKS.
1626 (process_send_signal): Clean up handling of GID.
1627 Detect errors in ioctls meant to set GID.
1628
1629 * window.c (temp_output_buffer_show):
1630 Don't set prevent_redisplay_optimizations_p.
1631
d907a3bf
JB
16322002-07-15 Juanma Barranquero <lektu@terra.es>
1633
1634 * eval.c (Fdefvaralias): Add docstring argument.
1635
9056febe
KR
16362002-07-15 Ken Raeburn <raeburn@gnu.org>
1637
1638 * lisp.h (STRING_INTERVALS): Produce rvalue.
1639 (STRING_SET_INTERVALS): New macro.
1640 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
1641 * fns.c (Fstring_as_multibyte): Likewise.
979a8abc
SM
1642 * intervals.c (balance_possible_root_interval, delete_interval)
1643 (create_root_interval, copy_intervals_to_string): Likewise.
9056febe
KR
1644 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
1645 instead of 0.
1646
d5db4077
KR
16472002-07-14 Ken Raeburn <raeburn@gnu.org>
1648
bee91904
KR
1649 * lisp.h (STRING_SET_CHARS): New macro.
1650 (SCHARS, SBYTES): Produce rvalues.
1651 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
1652 * fns.c (concat): Likewise.
1653 * lread.c (read_vector): Likewise.
1654
d5db4077
KR
1655 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
1656 (STRING_SET_UNIBYTE): New macro.
1657 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
1658 length of -1) changed to use STRING_SET_UNIBYTE.
d5db4077
KR
1659 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1660 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
1661 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
1662 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
1663 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
1664 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
1665 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
1666 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
1667 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1668 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
1669 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
1670 STRING_BYTES or indirection changed to SCHARS, SBYTES,
1671 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
1672 unchanged for now.
1673
aae2ce50
KS
16742002-07-13 Kim F. Storm <storm@cua.dk>
1675
1676 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
1677
a8fda945
RS
16782002-07-12 Richard M. Stallman <rms@gnu.org>
1679
32a86c99
RS
1680 * fileio.c (Fwrite_region): Doc fix.
1681
a8fda945
RS
1682 * print.c (print_error_message): Don't handle Vsignaling_function here.
1683
1684 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
1685 (command_loop_1): Avoid certain actions after memory-full error.
1686
1687 * eval.c (Fsignal): Don't call cancel_hourglass.
1688 For a memory-full error, don't call Vsignal_hook_function
1689 and don't set Vsignaling_function.
1690
1691 * process.c (process_send_signal): Add abort call.
1692
35936c5c
MR
16932002-07-11 Markus Rost <rost@math.ohio-state.edu>
1694
1695 * keymap.c (Fkey_binding): Fix typo.
1696
42cec426
RS
16972002-07-11 Richard M. Stallman <rms@gnu.org>
1698
a8fda945
RS
1699 * alloc.c (Vmemory_full): New variable.
1700 (Vmemory_signal_data): Renamed from memory_signal_data.
1701 Uses changed.
1702 (syms_of_alloc): Defvar them.
1703 (memory_full, buffer_memory_full): Set Vmemory_full.
979a8abc 1704
a8fda945
RS
1705 * lisp.h (Vmemory_full): Add declaration.
1706 (current_column, indented_beyond_p): Change declaration.
1707
1708 * indent.c (last_known_column): Declare as double, not float.
1709 (current_column, current_column_1, string_display_width)
1710 (position_indentation): Return `double'.
1711 (indented_beyond_p): Arg `column' is `double'. Callers changed.
979a8abc 1712
a8fda945 1713 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
979a8abc
SM
1714 (back_to_previous_visible_line_start)
1715 (reseat_at_next_visible_line_start, next_element_from_buffer):
a8fda945
RS
1716 Use `double', not `float', when calling indented_beyond_p.
1717
42cec426
RS
1718 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
1719
1720 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
1721
89297f23
JB
17222002-07-11 Juanma Barranquero <lektu@terra.es>
1723
71c5e9bb
JB
1724 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
1725 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
1726 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
1727 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
1728 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
1729 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
89297f23 1730
3cca0d40
JB
17312002-07-10 Juanma Barranquero <lektu@terra.es>
1732
1733 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
1734 changed.
1735
f61cd322
SM
17362002-07-09 Stefan Monnier <monnier@cs.yale.edu>
1737
979a8abc
SM
1738 * data.c (Fdefalias): Add an optional `docstring' argument.
1739 (set_internal, Fsetq_default): Use XCAR/XCDR.
1740
1741 * composite.c (HASH_VALUE, HASH_KEY):
f61cd322
SM
1742 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
1743
282b5fb7
KH
17442002-07-09 Kenichi Handa <handa@etl.go.jp>
1745
1746 * callproc.c (Fcall_process): Fix previous change.
1747
5d733a9c
SM
17482002-07-07 Stefan Monnier <monnier@cs.yale.edu>
1749
1750 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1751 Add support for hash-tables.
1752 (Ftry_completion): Return t even if the string appears multiple times.
1753
1754 * fns.c (Fnconc): Use XCDR.
1755 (Fprovide): Use CONSP and XCDR.
1756 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1757 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
1758 (Fmake_hash_table): Accept `:size nil'.
1759 (Fmakehash): Delete: moved to subr.el.
1760 (syms_of_fns): Don't defsubr makehash.
1761
1762 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1763 (HASH_TABLE_SIZE): Move from fns.c.
1764
af7272b1
RS
17652002-07-07 Richard M. Stallman <rms@gnu.org>
1766
1767 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
1768 Instead just return 0 when there is something to be done.
1769 (try_scrolling): If make_cursor_line_fully_visible returns 0,
1770 retry scrolling as if cursor were off the bottom.
1771 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
1772 return CURSOR_MOVEMENT_MUST_SCROLL.
1773 (redisplay_window): If make_cursor_line_fully_visible returns 0,
1774 go to try_to_scroll.
1775
1776 * buffer.c (Fbuffer_local_value): Store current value into its binding
1777 so we get the up-to-date value for the binding that is loaded.
1778
1779 * eval.c (Fdefmacro): Doc fix.
1780
9406d1d9
DL
17812002-07-05 Dave Love <fx@gnu.org>
1782
1783 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
1784 correctly.
1785
1786 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
1787 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
1788 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
1789 CCL_LookupCharConstTbl.
1790 (syms_of_ccl): Defvar translation-hash-table-vector.
1791
89297f23 17922002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e9b60209
PJ
1793
1794 * xdisp.c: Remove unused variable `face'.
1795
cf9b6656
JB
17962002-07-04 Juanma Barranquero <lektu@terra.es>
1797
1798 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
1799 obsolescence information.
1800
a0f593ff
AC
18012002-07-03 Andrew Choi <akochoi@shaw.ca>
1802
10ba2aec
AC
1803 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
1804 pattern. Search cache first.
1805 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
1806 for Japanese font.
a0f593ff
AC
1807 (XLoadQueryFont): Use it.
1808
64805fb0
RS
18092002-07-02 Richard M. Stallman <rms@gnu.org>
1810
1811 * keymap.c (Fdefine_key): Doc fix.
1812
1813 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
1814
df1890b0
JB
18152002-07-02 Juanma Barranquero <lektu@terra.es>
1816
1817 * keymap.c (syms_of_keymap): Fix typo.
1818
bc21bf11
AC
18192002-07-01 Andrew Choi <akochoi@shaw.ca>
1820
09740ad8
AC
1821 * s/darwin.h: Define POSIX_SIGNALS.
1822
bc21bf11
AC
1823 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
1824 and FSRefMakePath to convert FSSpec returned with Apple Event to
1825 Posix pathname.
5d733a9c
SM
1826 (mac_initialize) [TARGET_API_MAC_CARBON]:
1827 Call init_required_apple_events and disable the `Quit' menu item
bc21bf11
AC
1828 provided automatically by the Carbon Toolbox.
1829
dc976f2c
DL
18302002-07-01 Dave Love <fx@gnu.org>
1831
1832 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
1833 for K&R.
1834
1835 * xterm.c: Fix prototype for K&R.
1836
1837 * term.c (costs_set): Declare static, non-initialized for pcc.
1838
ec962374
RS
18392002-07-01 Richard M. Stallman <rms@gnu.org>
1840
1841 * keyboard.c (timer_last_idleness_start_time): New variable.
1842 (timer_start_idle): Set that.
1843 (read_key_sequence): Use that to reset timer_idleness_start_time
1844 to previous value.
cf9b6656 1845
ec962374
RS
1846 * window.c (Frecenter): With arg, set optional_new_start.
1847
1848 * xdisp.c (redisplay_internal): Make optional_new_start really work.
1849
1850 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
1851 buffer for completion.
1852
c8224325
KR
18532002-06-29 Ken Raeburn <raeburn@gnu.org>
1854
1855 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
1856
20057d52
JD
18572002-06-28 Jan D. <jan.h.d@swipnet.se>
1858
1859 * keyboard.c (readable_filtered_events): New function that filters
1860 FOCUS_IN_EVENT depending on parameter.
1861 (readable_events): Calls readable_filtered_events, not filtering
1862 FOCUS_IN_EVENT.
1863 (get_filtered_input_pending): New function, filtering parameter passed
1864 to readable_filtered_events.
1865 (get_input_pending): Calls get_filtered_input_pending, not filtering
1866 FOCUS_IN_EVENT.
1867 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
1868 FOCUS_IN_EVENT.
1869
1870 * xterm.h (struct x_output): Add focus_state.
1871
1872 * xterm.c (x_focus_changed): New function.
1873 (x_detect_focus_change): New function.
1874 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
1875 EnterNotify and LeaveNotify to track X focus changes.
1876
1aa1cb66
AS
18772002-06-28 Andreas Schwab <schwab@suse.de>
1878
1879 * lisp.h: Remove duplicate declaration of
1880 code_convert_string_norecord.
1881
377408cf
KS
18822002-06-27 Kim F. Storm <storm@cua.dk>
1883
1884 * xdisp.c: (mode_line_string_list, mode_line_string_face)
1885 (mode_line_string_face_prop): New variables.
1886 (store_mode_line_string): New function.
1887 (display_mode_element): Use store_mode_line_string to
1888 add mode-line string elements to mode_line_string_list
1889 when mode_line_string_list is non-nil.
1890 (Fformat_mode_line): Now returns propertized string by
1891 default. New arg NO-PROPS to ignore properties.
1892 (decode_mode_spec): Only add two dashes for %- in propertized
1893 mode-line string.
1894 (syms_of_xdisp): Init and staticpro mode_line_string_list.
cf9b6656 1895
5b62b301
SM
18962002-06-27 Stefan Monnier <monnier@cs.yale.edu>
1897
1898 * minibuf.c (minibuffer_completion_contents): Add return type.
1899
23a3b598
JB
19002002-06-27 Juanma Barranquero <lektu@terra.es>
1901
5b62b301 1902 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23a3b598 1903
7182e608
JB
19042002-06-26 Juanma Barranquero <lektu@terra.es>
1905
1906 * fileio.c (read_file_name_cleanup): Add missing return.
1907
6c488ddb
RS
19082002-06-26 Richard M. Stallman <rms@gnu.org>
1909
8ce9dfc1
RS
1910 * window.c (Frecenter): Don't set force_start flag.
1911
5b62b301 1912 * minibuf.c (do_completion, Fminibuffer_complete_word)
8ce9dfc1
RS
1913 (Fminibuffer_completion_help): Complete just the text before point.
1914 (minibuffer_completion_contents): New function.
1915
6c488ddb
RS
1916 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
1917
1918 * frame.c (frames_bury_buffer): Function deleted.
1919
c2b736ca
MB
19202002-06-25 Miles Bader <miles@gnu.org>
1921
1922 * callint.c (Fcall_interactively): When checking to see if doprnt hit
1923 the end of callint_message, allow for a terminating '\0'.
1924
d0db8f56
JB
19252002-06-24 Juanma Barranquero <lektu@terra.es>
1926
1927 * w32select.c: Include composite.h
1928
f7d05dc4
JB
1929 * w16select.c: Likewise.
1930
24df0f36
KH
19312002-06-24 Kenichi Handa <handa@etl.go.jp>
1932
1933 * callproc.c (Fcall_process): If code detection is necessary,
1934 call detect_coding directly here.
1935
1936 * coding.c (detect_eol): Preserve coding->cmp_data.
1937
04f13f39 1938 * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
24df0f36
KH
1939
1940 * w32fns.c (w32_to_x_font): Disable composition handling.
1941
04f13f39 1942 * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
24df0f36
KH
1943
1944 * xselect.c (selection_data_to_lisp_data): Disable composition
1945 handling.
1946
1947 * xterm.c (XTread_socket): Disable composition handling.
1948
04f13f39
SM
19492002-06-24 Stefan Monnier <monnier@cs.yale.edu>
1950
1951 * print.c (temp_output_buffer_setup): Kill all local variables.
1952
f352c826
SM
19532002-06-22 Stefan Monnier <monnier@cs.yale.edu>
1954
11554bdd
SM
1955 * lread.c (Fread): Remove redundant and imprecise declaration.
1956
1957 * xfns.c (check_x_display_info): Use check_x_frame.
1958
f352c826
SM
1959 * .gdbinit (xprintsym): Use the new `xname' field.
1960 (xsymbol): Use it.
1961
1030b26b
JR
19622002-06-22 Jason Rumney <jasonr@gnu.org>
1963
1964 * w32fns.c (file_dialog_callback): New function.
1965 (Fx_file_dialog): Allow selecting directories as well as files.
1966
bc21bf11 19672002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
29c3cbf0
PJ
1968
1969 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
1970 OpenBSD. Add support for mipseb-*-netbsd* machines.
1971
b432b442
AC
19722002-06-17 Andrew Choi <akochoi@shaw.ca>
1973
2d97ff8c
AC
1974 * macterm.c (mac_scroll_area): Set foreground and backcolor to
1975 black and white before scrolling. Restore frame background and
1976 foreground color after scrolling.
1977 (do_window_update): Call XClearWindow before calling expose_frame.
1978 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
1979 FRAME_FOREGROUND_PIXEL of frame.
f352c826 1980
b432b442
AC
1981 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1982 test Mac command key as <ALT> key.
1983
f9c0c10f
SM
19842002-06-17 Stefan Monnier <monnier@cs.yale.edu>
1985
65e0fbbf
SM
1986 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
1987
1988 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
1989 Lookup keys in function-key-map immediately so that key-translation-map
1990 can be applied earlier.
1991 Remove function_key_possible and key_translation_possible, replaced
1992 by checking `keytran_start < t'.
1993
f352c826 1994 * .gdbinit (xsymbol): Use the new `xname' field.
f9c0c10f 1995
84c0c2cc
AC
19962002-06-17 Andrew Choi <akochoi@shaw.ca>
1997
b432b442
AC
1998 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1999 test Mac command key as <ALT> key.
2000
84c0c2cc 2001 * mac.c (do_applescript): Call initialize_applescript if necessary
f9c0c10f 2002 when first called. Dispose of result_desc only when there is no error.
84c0c2cc 2003 (Fdo_applescript): Use %d format specifier instead of %ld.
f9c0c10f 2004
f00691a3
AC
20052002-06-16 Andrew Choi <akochoi@shaw.ca>
2006
b6cce0b7
AC
2007 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
2008 of FrontWindow for cases keyDown and autoKey.
2009
f00691a3
AC
2010 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
2011 Vdefault_fontset to Monaco with mac-roman coding.
2012
2013 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
2014 init_process before and after inclusion of Carbon/Carbon.h, resp.
2015
2016 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
2017 cursor_gc.
2018 (add_font_name_table_entry): New function.
2019 (init_font_name_table): Use add_font_name_table_entry; add italic,
2020 bold, and bold-italic entries for truetype fonts.
2021
2022 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
2023 for Mac too.
2024 (try_font_list) [MAC_OS]: If no font matches given registry, try
2025 fonts with any registry matching face_family.
f9c0c10f 2026 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
f00691a3
AC
2027
2028 * s/darwin.h: If autoconf detects the Ncurses library, define
2029 LIBS_TERMCAP to -lncurses to use it.
f9c0c10f 2030
5fd4d159
EZ
20312002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
2032
2033 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
2034
93731c54
RS
20352002-06-15 Richard M. Stallman <rms@gnu.org>
2036
2037 * window.c (Fset_window_configuration): Explicitly preserve
2038 the point value that new_current_buffer had at the start.
2039
2268661a
JB
20402002-06-14 Juanma Barranquero <lektu@terra.es>
2041
2042 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
2043 Fix typos.
2044
e4f10c83
KS
20452002-06-14 Kim F. Storm <storm@cua.dk>
2046
2047 * insdel.c (insert_1_both, insert_from_string_1)
2048 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
2049 insert happened in the end_unchanged region. Otherwise, the
2050 redisplay may be confused and duplicate the last line in the
2051 buffer [seen after save-buffer when require-final-newline==t].
2052
960f21ae
JR
20532002-06-13 Jason Rumney <jasonr@gnu.org>
2054
2055 * w32.c (init_environment): Remove EMACSLOCKDIR.
91224f9e 2056 (stat): Swap _S_IFDIR and _S_IFREG.
960f21ae 2057
f00691a3 20582002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e43bd4f5 2059
cc1b792b
PJ
2060 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
2061 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
2062 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
2063 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
2064 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
2065 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
2066 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
2067 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
2068 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
2069 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
e43bd4f5
PJ
2070 SELECTION_REQUEST_EVENT, selection_clear_event to
2071 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
2072 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
2073 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
2074 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
cc1b792b
PJ
2075 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
2076 no_event to NO_EVENT.
e43bd4f5 2077
f00691a3 20782002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3e8cc4d
PJ
2079
2080 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
2081
91b53904
SM
20822002-06-12 Stefan Monnier <monnier@cs.yale.edu>
2083
2084 * intervals.c (textget): Don't forget to `return'.
2085 (lookup_char_property): Use XCAR/XCDR.
2086
8b22c65a
JB
20872002-06-12 Juanma Barranquero <lektu@terra.es>
2088
2089 * xdisp.c (Fformat_mode_line): Fix typo.
2090
aba91547
KS
20912002-06-12 Kim F. Storm <storm@cua.dk>
2092
2093 * xdisp.c (Fformat_mode_line): New function.
2094 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
2095 (store_frame_title_char, store_frame_title): Use unconditionally.
2096 (init_xdisp): Defsubr Fformat_mode_line.
2097 Initialize frame_title_buf etc. unconditionally.
2098
2cf4b7b2
SM
20992002-06-11 Stefan Monnier <monnier@cs.yale.edu>
2100
2101 * keyboard.c (read_key_sequence):
2102 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
2103 things through those maps after downcasing events.
2104 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
2105 applies after function-key-map.
2106 Make sure that keytran can be done in the middle in the sequence.
2107 Be careful not to throw away events past the one we downcase.
2108
2109 * lread.c (read_integer): Remove unused var `tem'.
2110 (read1): Fix int/Lisp_Object mixup.
2111
2112 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
2113
0672b5a0
RS
21142002-06-11 Richard M. Stallman <rms@gnu.org>
2115
2116 * keyboard.c (readable_events): Ignore any number of
2117 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
2118
ab2e49a0
MB
21192002-06-09 Miles Bader <miles@gnu.org>
2120
2121 * xfaces.c (Ftty_supports_face_attributes_p): New function.
2122 (parse_rgb_list, tty_lookup_color): New functions.
2123 (tty_defined_color): Use `tty_lookup_color' to do all the work.
2124 (color_distance, Fcolor_distance): New functions.
2125 (TTY_SAME_COLOR_THRESHOLD): New macro.
2126 (Qtty_color_standard_values): New variable.
2127 (syms_of_xfaces): Initialize new vars & functions.
2128
a8f57660
CW
21292002-06-08 Colin Walters <walters@verbum.org>
2130
2131 * textprop.c (Vchar_property_alias_alist): New variable.
2cf4b7b2 2132 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
a8f57660
CW
2133
2134 * intervals.c (lookup_char_property): New function for looking up
2135 overlay and text properties, created from textget.
2136 (textget): Use it.
2cf4b7b2 2137
a8f57660
CW
2138 * intervals.h (lookup_char_property): Declare.
2139 (Vchar_property_alias_alist): Declare.
2140
2141 * buffer.c (Foverlay_get): Use lookup_char_property.
2142
1b65481e
SS
21432002-06-07 Sam Steingold <sds@gnu.org>
2144
2145 * xselect.c (lisp_data_to_selection_data): Fix last change:
2146 *data_ret is not a Lisp string, while unibyte_string is.
2147
9cbd5852
EZ
21482002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
2149
2cf4b7b2
SM
2150 * xselect.c (lisp_data_to_selection_data): Fix last change:
2151 set size_ret.
9cbd5852 2152
3fa4ac47
AS
21532002-06-07 Andreas Schwab <schwab@suse.de>
2154
2155 * m/amdx86-64.h: New file.
2156
ebadb1e4
EZ
21572002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
2158
4ddc38a1
EZ
2159 * fns.c (Fstring_make_unibyte): Doc fix.
2160
8f9b87b5
EZ
2161 * xselect.c (lisp_data_to_selection_data): If the requested type
2162 is STRING, call string_make_unibyte to encode the selected text
2163 as a string.
2164
ebadb1e4
EZ
2165 * window.c (Fset_window_hscroll): Doc fix.
2166
f00691a3 21672002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1909941a 2168
2cf4b7b2
SM
2169 * fileio.c (choose_write_coding_system):
2170 Call select-safe-coding-system properly.
1909941a 2171
3a2ff803
RS
21722002-06-03 Richard M. Stallman <rms@gnu.org>
2173
2174 * xdisp.c (message_with_string): Error if STRING is not a string.
2175
2176 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
2177
2178 * fileio.c (choose_write_coding_system): Pass FILE arg to
2179 Vselect_safe_coding_system_function.
2180
382f558b 21812002-06-03 Ken Raeburn <raeburn@gnu.org>
504322ad 2182
2cf4b7b2 2183 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
504322ad 2184
e2c0561e
TTN
21852002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
2186
2187 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
2188 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
2189 * keymap.c (describe_command): Likewise.
2190 * minibuf.c (read_minibuf): Likewise.
2191
2192 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
2193 Cast `current_column' return value to int.
2cf4b7b2
SM
2194 (back_to_previous_visible_line_start)
2195 (reseat_at_next_visible_line_start, next_element_from_buffer):
e2c0561e
TTN
2196 Cast `indented_beyond_p' 3rd arg to float.
2197
2198 * indent.c (last_known_column): Now a float.
2cf4b7b2
SM
2199 (current_column_1, position_indentation, current_column)
2200 (string_display_width): Return float.
e2c0561e
TTN
2201 (Fcurrent_column): Cast `current_column' return value to int.
2202 (Fcurrent_indentation): Cast `position_indentation' retval to int.
2203 (indented_beyond_p): Third arg now a float.
2204 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
2205
2206 * lisp.h (current_column): Now returns float.
2207 (indented_beyond_p): 3rd arg now a float.
2208
420a345c
EZ
22092002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
2210
43dc73f1
EZ
2211 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
2212 is Qcompound_text_with_extensions.
2213
2214 * xselect.c (lisp_data_to_selection_data): Always set selection
2215 type as string if x_encode_text returns streingp non-NULL.
2216
420a345c
EZ
2217 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
2218
a71867c5
RS
22192002-05-30 Richard M. Stallman <rms@gnu.org>
2220
2221 * window.c (Fset_window_configuration): Correct the handling
2222 of point in current buffer, to work with multiple windows.
2223
96801005
CW
22242002-05-29 Colin Walters <walters@verbum.org>
2225
2226 * lread.c (Fread_from_string): Don't depend on order of evaluation
2227 for C function parameters.
2228
f7e039de
RS
22292002-05-28 Richard M. Stallman <rms@gnu.org>
2230
2231 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
2232 way for blinked-off state and for a nonselected window.
2233
2234 * window.c (window_scroll_pixel_based): Don't call Fbolp;
2235 instead, see if the new start pos is at beginning of line.
2236
2237 * fileio.c (Fwrite_region): If START is a string, don't
2238 make any annotations.
2239
2240 * eval.c (syms_of_eval): Doc fix.
2241
532a8e8b
CW
22422002-05-28 Colin Walters <walters@debian.org>
2243
2244 * emacs.c (USAGE1): Add --no-splash.
2245 (standard_args): Ditto.
2246
22472002-05-28 Colin Walters <walters@gnu.org>
2248
2249 * lread.c (readchar_count): New variable.
2250 (readchar): Increment it.
2251 (unreadchar): Decrement it.
2252 (read_multibyte): Decrement it.
2253 (Vread_with_symbol_positions): New variable.
2254 (Vread_symbol_positions_list): New variable.
2255 (read_internal_start): New function, created from Fread and
2256 Fread_from_string. Handle Vread_symbol_positions_list and
2257 Vread_with_symbol_positions.
2258 (readevalloop, Fread, Fread_from_string): Use it.
2259 (read1): Use readchar_count to add symbol positions to
2cf4b7b2 2260 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
532a8e8b
CW
2261 (syms_of_lread): DEFVAR_LISP and initialize them.
2262
2263 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
2264 (substitute_object_recurse, substitute_object_in_subtree)
2265 (substitute_in_interval): Prototype.
2266 (read_multibyte): Return c if it's less than zero.
e2c0561e 2267
02f20f98
KS
22682002-05-28 Kim F. Storm <storm@cua.dk>
2269
b44ec8e3
KS
2270 * fileio.c (Fread_file_name_internal): Added brute-force
2271 speed up for using predicate file-directory-p.
2272
22732002-05-28 Kim F. Storm <storm@cua.dk>
2274
2275 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
02f20f98
KS
2276 New variables.
2277 (syms_of_fileio): DEFVAR_LISP them.
2278 (read_file_name_cleanup): New unwind function.
2279 (Fread_file_name_internal): Only return completions satifying
2280 Vread_file_name_predicate. Temporarily unwind protect and rebind
2281 default-directory while checking completions against the predicate.
2282 (Fread_file_name): Added PREDICATE argument. Specbind it to
2283 Vread_file_name_predicate during completion.
2284 Call Vread_file_name_function to read the file name if non-nil.
2285
2286 * lisp.h (Fread_file_name): Now has 6 args.
e2c0561e 2287
02f20f98
KS
2288 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
2289 predicate for Fread_file_name when reading directory name.
2290 Supply Qnil for predicate in other calls to Fread_file_name.
2291
9e8abde7
MB
22922002-05-26 Miles Bader <miles@gnu.org>
2293
2294 * term.c (tty_capable_p): New function.
2295 * dispextern.h (tty_capable_p): New function declaration.
2296 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
2297 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
2298
3751c81b
SM
22992002-05-23 Stefan Monnier <monnier@cs.yale.edu>
2300
2301 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
2302 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
2303 (Vwrite_region_annotate_functions): Docstring fix.
2304
6065f9e2 23052002-05-23 Kim F. Storm <storm@cua.dk>
39bb5900
KS
2306
2307 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
2308 phys_cursor's hpos is overwritten. This is still not completely
2309 correct, as it doesn't really make sense to use hpos at all to
2310 get the cursor glyph (as that is relative to the width of the
2311 characters on the line, which may have changed during the update).
2312
17456df1
JR
23132002-05-22 Jason Rumney <jasonr@gnu.org>
2314
2315 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
2316 Lisp_Object.
2317 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
2318 Use modified enumfont_t struct.
2319
2320 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3751c81b 2321
17456df1
JR
2322 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
2323 Handle the `hbar' cursor type.
2324 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
2325
2326 * w32fns.c (Qhbar): New variable.
2327 (x_specified_cursor_type): Use it.
2328
1b65564c
KR
23292002-05-21 Ken Raeburn <raeburn@gnu.org>
2330
2331 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
2332 now, when the address is needed.
2333
a7c4d9c8
CW
23342002-05-21 Colin Walters <walters@gnu.org>
2335
2336 * Makefile.in (shortlisp): Add font-core.el.
2337
301d4a3f
RS
23382002-05-20 Richard M. Stallman <rms@gnu.org>
2339
cd8d5236
RS
2340 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2341
301d4a3f
RS
2342 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
2343 equivalent key bindings here.
2344
07e9823c
KR
23452002-05-20 Ken Raeburn <raeburn@gnu.org>
2346
2347 Change symbol structure to contain a lisp object for the symbol
2348 name:
2349 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
2350 object field named "xname".
2351 (SYMBOL_NAME): New macro.
2352 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
2353 name field.
2354 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
2355 (mark_object, gc_sweep): Use symbol xname field and XSTRING
2356 instead of name field.
2357 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
2358 SYMBOL_NAME instead of XSYMBOL and name field.
2359 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
2360 instead of XSYMBOL and name field.
2361 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
2362 and SYMBOL_NAME instead of XSYMBOL and name field.
2363 * coding.c (Fread_coding_system, code_convert_region1)
2364 (code_convert_string1, code_convert_string_norecord)
2365 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
2366 XSYMBOL and name field.
3751c81b
SM
2367 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
2368 (Fmake_variable_buffer_local, Fmake_local_variable)
07e9823c
KR
2369 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
2370 of XSYMBOL and name field.
2371 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
2372 XSYMBOL and name field.
2373 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
2374 instead of XSYMBOL and name field.
2375 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
2376 XSYMBOL and name field.
3751c81b
SM
2377 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
2378 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c
KR
2379 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
2380 instead of XSYMBOL and name field.
3751c81b
SM
2381 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
2382 (parse_modifiers, apply_modifiers, Fevent_convert_list)
2383 (parse_solitary_modifier, Fexecute_extended_command):
2384 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
2385 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
07e9823c
KR
2386 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
2387 of XSYMBOL and name field.
2388 (describe_command, describe_translation): Use SYMBOL_NAME and
2389 assignment instead of XSYMBOL and name field and XSETSTRING.
2390 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
2391 instead of XSYMBOL and name field.
2392 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
2393 name field and XSETSTRING.
2394 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
2395 of XSYMBOL and name field.
2396 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
2397 assignment instead of XSYMBOL and name field and XSETSTRING.
2398 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
2399 XSTRING instead of XSYMBOL and name field.
2400 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
2401 and XSTRING instead of XSYMBOL and name field.
2402 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
2403 and XSTRING instead of XSYMBOL and name field.
2404 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
2405 XSTRING instead of XSYMBOL and name field.
2406 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
2407 of XSYMBOL and name field.
3751c81b
SM
2408 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
2409 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c 2410
7340cc50
KR
24112002-05-19 Ken Raeburn <raeburn@gnu.org>
2412
2413 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
2414 and XCDR real rvalues in most configurations.
2415
3751c81b
SM
2416 * buffer.c (fix_overlays_in_range, fix_overlays_before):
2417 Don't take the address of the cdr part of a cons cell; instead, track
7340cc50
KR
2418 the parent cell and call XSETCDR, or set the variable for the head
2419 of the list if we haven't started down the list yet.
2420
8bad880b
RS
24212002-05-19 Richard M. Stallman <rms@gnu.org>
2422
2423 * doc.c (reread_doc_file): Don't ask for confirmation.
2424
0708de07
JR
24252002-05-18 Jason Rumney <jasonr@gnu.org>
2426
2427 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
2428 (xbm_load_image): Use it.
2429 (xbm_load): Ditto.
2430 (xbm_read_bitmap_data): Reverted to xfns.c version.
2431 From David Ponce <david@dponce.com>.
2432
2c978faf
EZ
24332002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
2434
2435 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
2436 2.02 and later.
2437
b96fb65c
JB
24382002-05-16 Juanma Barranquero <lektu@terra.es>
2439
3751c81b 2440 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
b96fb65c 2441
daaf4dfc
SM
24422002-05-15 Stefan Monnier <monnier@cs.yale.edu>
2443
2444 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
2445 meaningful test.
2446 (read_char_minibuf_menu_prompt): Fix typo.
2447
f8229bf6
EZ
24482002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2449
2450 * eval.c (Fcommandp): Doc fix.
2451
31bea176
SM
24522002-05-13 Stefan Monnier <monnier@cs.yale.edu>
2453
2454 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
2455 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
2456 (Fset_keymap_parent): Gcpro a bit more.
2457 (access_keymap): Gcpro around meta_map call and around the main loop.
2458 (get_keyelt): Gcpro when following indirect references.
2459 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
2460 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
2461 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
2462 Remove useless ad-hoc remap code.
2463
4d8ff34d
KH
24642002-05-13 Richard M. Stallman <rms@gnu.org>
2465
2466 * search.c (search_buffer): Give up boyer moore search if inverse
2467 translation change charset_base.
2468
9861e777
EZ
24692002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2470
2471 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
2472 characters is carried over from the previous block of text, adjust
2473 coding->produced to account for the extra character.
2474
eef762fc
AS
24752002-05-11 Andreas Schwab <schwab@suse.de>
2476
2477 * coding.c (intersection): Keep the elements of the returned list
2478 in the same order as in the first list.
2479
6d8c02ae
KS
24802002-05-11 Kim F. Storm <storm@cua.dk>
2481
2482 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
2483 only update cmm_size if realloc actually succeeds.
2484 Testing with initial size of 2 elements revealed that using
2485 realloc on GNU/Linux would cause a random trap in xmalloc
2486 later on, so I rewrote the code to use malloc/bcopy/free instead
2487 of realloc.
2488
6358474d
JR
24892002-05-10 Jason Rumney <jasonr@gnu.org>
2490
2491 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
2492
22a2a460
EZ
24932002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
2494
2495 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
2496 parens, to ensure correct evaluation order.
2497
05b2c53f
KS
24982002-05-10 Kim F. Storm <storm@cua.dk>
2499
2500 * keymap.c (Vemulation_mode_map_alists): New variable.
2501 (syms_of_keymap): DEFVAR_LISP it.
2502 (current_minor_maps): Process keymap alists in that list before
2503 minor-mode-overriding-map-alist and minor-mode-map-alist.
2504
ccc8c8bb
RS
25052002-05-09 Richard M. Stallman <rms@gnu.org>
2506
2507 * search.c (Freplace_match): Doc fix.
2508
f2131323
KS
25092002-05-09 Kim F. Storm <storm@cua.dk>
2510
3751c81b 2511 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
2512 Enlarge cursor rectangle drawn around image with non-zero relief.
2513
3751c81b 2514 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
f2131323
KS
2515 Enlarge cursor rectangle drawn around image with non-zero relief.
2516
3751c81b 2517 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
2518 Enlarge cursor rectangle drawn around image with non-zero relief.
2519
7b9ae523
EZ
25202002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
2521
2522 * xselect.c (lisp_data_to_selection_data): Don't set selection
2523 type if comes from the Lisp object's car. If the selection
2524 contains a pure ASCII text, always return QSTRING as its type.
2525
f00691a3 25262002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14bda6db
PJ
2527
2528 * mac.c (mac-cut-function): Doc fix.
2529
6b529d78
RS
25302002-05-05 Richard M. Stallman <rms@gnu.org>
2531
2532 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
2533
1d5e0b52
JR
25342002-05-04 Jason Rumney <jasonr@gnu.org>
2535
5259a0d0
JR
2536 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
2537 for event-click-count.
2538
1d5e0b52
JR
2539 * process.c (init_process): Only add server subfeature if we can
2540 use non-blocking I/O.
2541
c7764932
AC
25422002-05-04 Andrew Choi <akochoi@shaw.ca>
2543
2544 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
2545 repeatedly.
2546
e151372d
JR
25472002-05-03 Jason Rumney <jasonr@gnu.org>
2548
2549 * process.c (Fmake_network_process): Only support server sockets
2550 when we can make them non-blocking.
2551
2552 * s/ms-w32.h (HAVE_SELECT): Define.
2553
2554 * w32.h (FILE_NDELAY): New flag.
2555
2556 * w32.c (sys_getpeername, fcntl): New functions.
2557 (_sys_read_ahead): Temporarily block on non-blocking sockets.
2558
2559 * w32proc.c: include sys/file.h.
2560
43936bf4
CW
25612002-05-03 Colin Walters <walters@verbum.org>
2562
2563 * callproc.c (Vgame_score_directory): Renamed to
2564 Vshared_game_score_directory.
2565
0c8c6322
RS
25662002-04-30 Richard M. Stallman <rms@gnu.org>
2567
397214d4
RS
2568 * s/gnu.h [emacs]: Include stdio.h.
2569 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
2570
0c8c6322
RS
2571 * eval.c (do_autoload): Error if called while preparing to dump.
2572
2573 * fns.c (Frequire): Error if need to load while preparing to dump.
2574
5a234d25
CW
25752002-04-28 Colin Walters <walters@verbum.org>
2576
5167cfda
CW
2577 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
2578 Default to "~/.emacs.d/games".
5a234d25 2579
96035dca
SM
25802002-04-29 Stefan Monnier <monnier@cs.yale.edu>
2581
de2413e9
SM
2582 * lread.c (openp): Change arg exec_only to predicate.
2583 (build_load_history): Use XCAR/XCDR.
2584 (Flocate_file_internal): New fun.
2585 (syms_of_lread): Defsubr it.
2586 (Fload): Update call to openp.
2587
2588 * lisp.h (openp): Update prototype.
2589
2590 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2591 * w32proc.c (sys_spawnve):
2592 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2593 * w32.c (check_windows_init_file):
2594 * sound.c (Fplay_sound_internal):
2595 * process.c (Fstart_process):
2596 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
2597 * mac.c (run_mac_command):
2598 * emacs.c (init_cmdargs):
2599 * callproc.c (Fcall_process): Update call to openp.
2600
962ba97c
SM
2601 * textprop.c (remove_properties): Don't use XCAR without CONSP.
2602
96035dca
SM
2603 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
2604
f00691a3 26052002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e656fc9d
PJ
2606
2607 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
2608 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
2609
43bbe516
RS
26102002-04-28 Richard M. Stallman <rms@gnu.org>
2611
2612 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
2613
2614 * eval.c (Fcommandp): New arg for_call_interactively.
2615 * lisp.h (Fcommandp): Declare new arg.
2616
6fb6f3ac
JR
26172002-04-28 Jason Rumney <jasonr@gnu.org>
2618
2619 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
2620
2621 * w32.c (stat, fstat): Use file index information to generate
2622 inodes for directories where available.
2623
e0f712ba
AC
26242002-04-26 Andrew Choi <akochoi@shaw.ca>
2625
2626 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
2627 [HAVE_CARBON]: Include Mac object files.
2628
2629 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
2630 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
2631 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
2632 MAC_OSX, and MAC_OS instead of macintosh.
2633
2634 * editfns.c [MAC_OS8]: Include stdio.h.
2635
2636 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
2637
2638 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
2639 Apple Monaco.
2640
2641 * process.c: Declare QCfamily and QCfilter as extern.
2642 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
2643 calling select.
2644
96035dca
SM
2645 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
2646
e0f712ba 2647 * tparam.c [MAC_OSX]: Don't define BC and UP.
96035dca 2648
e0f712ba
AC
2649 * config.in [HAVE_CARBON]: Add.
2650
96035dca
SM
2651 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
2652 Move here from mac/src and mac/inc.
e0f712ba
AC
2653
2654 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
96035dca 2655
56a0382c
GM
26562002-04-26 Gerd Moellmann <gerd@gnu.org>
2657
96035dca
SM
2658 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
2659 Compute phys_cursor_width from the x position returned
2660 by x_draw_glyhs, which is cheaper.
56a0382c
GM
2661 (x_display_and_set_cursor): Compute the buffer-local value
2662 of `cursor-in-non-selected-windows' only when needed.
2663
ef58a7ec
GM
26642002-04-25 Gerd Moellmann <gerd@gnu.org>
2665
2666 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
2667 cursor on a stretch glyph has a width that depends on
2668 x_stretch_cursor_p.
2669
f00691a3 26702002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6f442633 2671
ca70e62f
PJ
2672 * abbrev.c (abbrev-start-location): Doc fix.
2673
6f442633
PJ
2674 * indent.c (Fvertical_motion): Fix last change.
2675
3a46a5de
GM
26762002-04-25 Gerd Moellmann <gerd@gnu.org>
2677
2678 * indent.c (Fvertical_motion): Move to the start of the line
2679 containing PT before moving up or down.
2680
f7c5994d
GM
26812002-04-24 Gerd Moellmann <gerd@gnu.org>
2682
60f2f3f1
GM
2683 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
2684 case of writing a whole row, more or less analogous to the case of
2685 writing only parts of a row.
2686
2687 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
2688 0 for NO_CURSOR.
96035dca 2689
f7c5994d
GM
2690 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
2691
973c3c87
CW
26922002-04-23 Colin Walters <walters@verbum.org>
2693
2694 * buffer.c (syms_of_buffer): Doc fix.
2695
b3738089
GM
26962002-04-23 Gerd Moellmann <gerd@gnu.org>
2697
516074a1
GM
2698 * xterm.c (notice_overwritten_cursor): Handle the special case
2699 of the cursor being in the first blank non-text line at the
2700 end of a window.
96035dca 2701
b3738089
GM
2702 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
2703 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
2704 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
2705 bar cursors only, to make phys_cursor_width contain what its name
2706 suggests.
2707 (notice_overwritten_cursor): Consider the cursor image erased if
2708 the output area intersects the cursor image in y-direction.
2709
5d449b17
RS
27102002-04-23 Simon Marshall <simon@gnu.org>
2711
2712 * xfns.c (x_set_mouse_color): Change default for cross_cursor
2713 to XC_hand2.
2714
f00691a3 27152002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e6b6f919 2716
96035dca 2717 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
e6b6f919 2718
f25d60d6
KS
27192002-04-22 Kim F. Storm <storm@cua.dk>
2720
2721 * textprop.c (remove_properties): Fixed trap for malformed plist.
2722
6b448755
RS
27232002-04-22 Richard M. Stallman <rms@gnu.org>
2724
df218ce6
RS
2725 * cmds.c (Fend_of_line): Handle intangible text in mid line.
2726
6b448755
RS
2727 * window.c (make_window): Initialize height_fixed_p,
2728 last_cursor_off_p, and p->cursor_off_p slots.
2729
f00691a3 27302002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7769818b
PJ
2731
2732 * fns.c (use-dialog-box): Doc fix.
2733
f00691a3 27342002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ad6535b
PJ
2735
2736 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
2737 variables `row', `i' and `area'.
2738 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
2739 toolkit library.
2740
3d90c96c
SM
27412002-04-19 Stefan Monnier <monnier@cs.yale.edu>
2742
2743 * xfaces.c (clear_font_table): Don't free the default font of
2744 a frame even if it's on another display.
2745 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
2746 that could be Qt.
2747
58b1103e
JB
27482002-04-19 Juanma Barranquero <lektu@terra.es>
2749
2750 * indent.c (Fmove_to_column): Remove unused local variable
2751 `next_boundary_byte'.
2752 (current_column_1): Likewise.
2753
175e150b
EZ
27542002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2755
2756 * msdos.c (Qhbar): New variable.
3d90c96c 2757 (syms_of_msdos): Intern and staticpro it.
175e150b
EZ
2758 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
2759 cursor type.
2760
d9c25020 27612002-04-19 Dave Lambert <dlambert@acm.org>
6fab1572
EZ
2762
2763 Theses change implement an underscore-like (`hbar') cursor.
2764
2765 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
2766
2767 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
2768 Handle the `hbar' cursor type.
2769 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
2770
2771 * xfns.c (Qhbar): New variable.
3d90c96c 2772 (syms_of_xfns): Intern and staticpro it.
6fab1572 2773 (x_specified_cursor_type): Handle `hbar' cursor.
5e3238f4
EZ
2774
2775 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
2776 not defined.
2777
0cf5c1e7
RS
27782002-04-18 Richard M. Stallman <rms@gnu.org>
2779
2780 * textprop.c (remove_properties): New arg LIST allows scanning
2781 either a list or a plist.
2782 (interval_has_some_properties_list): New function, like
2783 interval_has_some_properties using list instead of plist.
2784 All callers changed.
2785 (Fremove_list_of_text_properties): New function.
2786 (syms_of_textprop): Defsubr it.
2787
1a4140b0
EZ
27882002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
2789
2790 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
2791
59b7fa65
JB
27922002-04-17 Juanma Barranquero <lektu@terra.es>
2793
3d90c96c 2794 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
59b7fa65 2795
ac431108
EZ
27962002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
2797
2798 * window.c (coordinates_in_window): Don't report on margin area
2799 if its width is zero.
2800
1c565847
JR
28012002-04-16 Jason Rumney <jasonr@gnu.org>
2802
2803 * w32fns.c (Fx_file_dialog): Decode file name before using.
2804
2805 * w32term.c (construct_drag_n_drop): Likewise.
3d90c96c 2806
852eef40
EZ
28072002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
2808
2809 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
2810 store load-history in pure space.
2811
2812 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
2813
c997eae5
SM
28142002-04-16 Stefan Monnier <monnier@cs.yale.edu>
2815
2816 * xterm.c (Qlatin_1, Qutf_8): New vars.
2817 (syms_of_xterm): Initialize them.
2818 (XTread_socket): Eliminate incorrect optimization that tried to avoid
2819 decoding the output of X*LookupString.
2820 Always use latin-1 to decode the output of XLookupString.
2821 Try Xutf8LookupString if XmbLookupString failed.
2822
2823 * region-cache.c (new_region_cache): Use BEG.
2824
08327b22
GM
28252002-04-16 Gerd Moellmann <gerd@gnu.org>
2826
2827 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
2828 configuration files.
2829 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
2830 returns 0.
2831
d8f6d720
AS
28322002-04-15 Andreas Schwab <schwab@suse.de>
2833
2834 * config.in: Regenerated using autoheader.
2835
2836 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
2837 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
2838 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
2839 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
2840 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
2841 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
2842 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
2843 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
2844 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
2845 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
2846 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
2847 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
2848 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
2849 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
2850 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
2851 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
2852 STACK_DIRECTION, now set by autoconf.
2853
f00691a3 28542002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0e03b0c2
PJ
2855
2856 * dispnew.c (marginal_area_string): Sort arguments.
2857
2858 * dispextern.h (marginal_area_string): Add prototype.
2859
685fc579
RS
28602002-04-13 Richard M. Stallman <rms@gnu.org>
2861
c997eae5 2862 * fileio.c (Finsert_file_contents):
685fc579
RS
2863 Don't call temp_output_buffer_setup--do just part, by hand.
2864
2865 * coding.c (run_pre_post_conversion_on_str):
2866 Don't call temp_output_buffer_setup--do just part, by hand.
2867
2868 * keyboard.c (command_loop_1): Don't call start_hourglass
2869 or cancel_hourglass when executing a macro.
2870
2871 * marker.c (count_markers): New function.
2872
2873 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
2874 grow without limit. Move recently used elements to the front.
2875
e144dfa8
EZ
28762002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
2877
2878 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
2879
e9f8a3ab
GM
28802002-04-12 Gerd Moellmann <gerd@gnu.org>
2881
7d4cc828
GM
2882 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
2883 rows marginal areas.
2884 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
2885 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
2886
e9f8a3ab
GM
2887 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
2888
28892002-04-12 Dave Love <fx@gnu.org>
2890
2891 * dispnew.c (marginal_area_string): New.
2892
2893 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
2894 (Qleft_margin, Qright_margin): Declare.
c997eae5 2895 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
e9f8a3ab
GM
2896
2897 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
2898 note_mode_line_highlight and extended.
2899
2900 * keyboard.c (Qleft_margin, Qright_margin): Declare.
2901 (make_lispy_event): Deal with mouse events in margins.
2902
d7565649
SM
29032002-04-12 Stefan Monnier <monnier@cs.yale.edu>
2904
2905 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
2906
2907 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
2908 than deactivating the mark if tmm is set to `lambda'.
2909 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
2910 Use a single event for HELP_EVENT.
2911 (Fexecute_extended_command): Save last_point_position.
2912
f00691a3 29132002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
034a7130
PJ
2914
2915 * lisp.h (Fpropertize): Add prototype.
2916
2917 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
2918
e82defd1
CW
29192002-04-10 Colin Walters <walters@verbum.org>
2920
b9b966e0
CW
2921 * config.in: Add HAVE_SHARED_GAME_DIR.
2922
e82defd1
CW
2923 * callproc.c: (Vgame_score_directory): New variable.
2924 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
2925
05ea8efd
RS
29262002-04-10 Richard M. Stallman <rms@gnu.org>
2927
2928 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
2929
f9cf4c2c
SM
29302002-04-09 Stefan Monnier <monnier@cs.yale.edu>
2931
2932 * minibuf.c (read_minibuf): Use empty_string.
2933 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
2934 Short-circuit the search as soon as it "failed".
2935 (Fall_completions): Allow lambda forms and lists of strings for alist.
2936 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
2937 when require_match is nil.
2938 (Ftest_completion): Rename from `test_completion' and export to elisp.
2939 Call the predicate also when alist is a list.
2940 Obey Vcompletion_regexp_list.
2941 (do_completion, Fminibuffer_complete_and_exit): Use it.
2942 (Fassoc_string): Rename from `assoc_for_completion'.
2943 Allow list of strings as well and export to elisp.
2944
dba57d89
SM
29452002-04-08 Stefan Monnier <monnier@cs.yale.edu>
2946
2947 * puresize.h (BASE_PURESIZE): Increase to 900KB.
2948
a0ad1860
JB
29492002-04-08 Juanma Barranquero <lektu@terra.es>
2950
2951 * w32.c (sys_accept): Don't hide variable `s'.
2952
b9f0b172
GM
29532002-04-05 Gerd Moellmann <gerd@gnu.org>
2954
0d1bf3f7 2955 * callint.c (Fcall_interactively): Use INTEGERP instead of
b9f0b172
GM
2956 NUMBERP for checking Vhistory_length.
2957
f00691a3 29582002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
368ab68f
PJ
2959
2960 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
2961 Doc fix to reflect it.
2962
d3012189
RS
29632002-04-04 Richard M. Stallman <rms@gnu.org>
2964
2965 * xdisp.c (display_mode_element): New arg RISKY.
2966 Disregard text props found or specified within a variable
2967 that isn't marked risky-local-variable.
2968 (Qrisky_local_variable): New variable.
2969 (syms_of_xdisp): Init and staticpro it.
2970
0d1bf3f7
SM
29712002-04-04 Stefan Monnier <monnier@cs.yale.edu>
2972
2973 * undo.c (record_point): New fun.
2974 (record_delete, record_insert): Use it.
2975
8caa93d2
JB
29762002-04-03 Juanma Barranquero <lektu@terra.es>
2977
2978 * doc.c (Fdocumentation): Add missing parentheses.
2979 (Fdocumentation_property): Likewise.
2980
b3bbfb96
SM
29812002-04-03 Stefan Monnier <monnier@cs.yale.edu>
2982
2983 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
2984 data is 0, just return nil.
2985
db4a142a
EZ
29862002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
2987
2988 * msdos.c (syms_of_msdos): Fix last change with
2989 mouse_autoselect_window.
2990
f00691a3 29912002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dc8cd652
PJ
2992
2993 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
2994 mouse_autoselect_window.
2995
e5aa79fa
SM
29962002-04-02 Stefan Monnier <monnier@cs.yale.edu>
2997
4c8bc894
SM
2998 * keyboard.c (make_lispy_event): Handle unknown keysyms together
2999 with system-specific keysyms. Use it also for unknown function keys.
3000
e5aa79fa
SM
3001 * doc.c (reread_doc_file): Return whether reload was attempted.
3002 (Fdocumentation, Fdocumentation_property): Don't try to reload
3003 if the doc is 0 and only ask once.
3004
3005 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
3006
5d12f14d
EZ
30072002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
3008
3009 * keyboard.c (read_char): If the event was Qselect_window,
3010 restore timer_idleness_start_time to its previous value.
3011
e5aa79fa 3012 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5d12f14d 3013
bed9664a
SM
30142002-04-01 Stefan Monnier <monnier@cs.yale.edu>
3015
c5e5e1f8
SM
3016 * region-cache.c (new_region_cache): Use BEG.
3017
3018 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
3019 Use BEG and BEG_BYTE.
3020
e5aa79fa 3021 * doc.c (get_doc_string): Return nil if the location is wrong.
c5e5e1f8
SM
3022 (reread_doc_file): New fun.
3023 (Fdocumentation, Fdocumentation_property):
3024 Call it if get_doc_string fails.
3025 (Fsnarf_documentation): Make it work for a dumped Emacs.
3026
3027 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
3028 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
3029
3030 * charset.c (Fstring): Allow 0 arguments.
3031
bed9664a
SM
3032 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
3033
3034 * process.c (DATAGRAM_CONN_P, list_processes_1)
3035 (Fprocess_datagram_address, Fset_process_datagram_address)
3036 (Fset_network_process_options, server_accept_connection):
3037 Fix some int/Lisp_Object confusions (thank you union types).
3038
f00691a3 30392002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
83512b21
PJ
3040
3041 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
3042
3043 * w32term.c: Likewise.
bed9664a 3044 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
83512b21
PJ
3045
3046 * keyboard.c (Qselect_window): New symbol.
3047 (head_table): Use it.
bed9664a
SM
3048 (keys_of_keyboard): Bound select-window event to handle-select-window.
3049 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
83512b21
PJ
3050
3051 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
3052 (last_window): New variable.
3053 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
3054 (note_mouse_movement): Remove reimplemented code in #if 0.
093484c7
PJ
3055 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
3056 Emacs windows.
83512b21 3057
bed9664a 3058 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
83512b21 3059
abfb6b46
GM
30602002-03-31 Gerd Moellmann <gerd@gnu.org>
3061
3062 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
3063 Callers changed.
3064
9b2bba76
RS
30652002-03-30 Richard M. Stallman <rms@gnu.org>
3066
3067 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
3068 loop whenever it stops making progress.
3069
3070 * widget.c (set_frame_size): Don't call change_frame_size.
3071
fd524c21
GM
30722002-03-30 Gerd Moellmann <gerd@gnu.org>
3073
bed9664a
SM
3074 * dispnew.c (direct_output_for_insert):
3075 Call mark_window_display_accurate.
fd524c21 3076
df3bd29d
JR
30772002-03-29 Jason Rumney <jasonr@gnu.org>
3078
3079 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
3080
eb191db2
EZ
30812002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3082
8bff61e5
EZ
3083 * Makefile.in (lread.o): Depend on coding.h.
3084
544bf8ad 3085 * lread.c (openp, Fload): Encode the file name before passing it
eb191db2
EZ
3086 to `stat', `access', and `emacs_open'.
3087 (openp): GCPRO the encoded file name. Don't recompute Lisp
3088 strings unnecessarily.
3089
f9b33abb
KS
30902002-03-29 Kim F. Storm <storm@cua.dk>
3091
3092 * fns.c (Flax_plist_put): Doc fix.
3093
d4648402
MB
30942002-03-28 Miles Bader <miles@gnu.org>
3095
3096 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
3097
f00691a3 30982002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
320aebc9
PJ
3099
3100 * process.c (set-network-process-options): Add usage.
3101 (make-network-process): Doc fix.
3102
4aaa3607
EZ
31032002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3104
3105 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
3106
a5f08374
RS
31072002-03-26 Richard M. Stallman <rms@gnu.org>
3108
9356fe5a
RS
3109 * fns.c (Fsubstring_no_properties): New function.
3110 (Flax_plist_get, Flax_plist_put): New functions.
3111 (syms_of_fns): defsubr them.
3112
a5f08374
RS
3113 * xdisp.c (update_menu_bar): Test only update_mode_lines;
3114 don't test or alter w->update_mode_line.
3115
3116 * window.c (Fdisplay_buffer): Doc fix.
3117
31182002-03-24 Richard M. Stallman <rms@gnu.org>
3119
3120 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
3121
0af6533d
GM
31222002-03-24 Gerd Moellmann <gerd@gnu.org>
3123
3124 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
3125 (Fdefmacro): Handle `(declare ...)'.
3126 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
3127 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
3128
217e5be0
JR
31292002-03-24 Jason Rumney <jasonr@gnu.org>
3130
3131 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
3132 (xbm_file_p): Add prototypes.
3133 (xbm_format, xbm_image_p): Sync with xfns.c.
3134 (reflect_byte): New function.
3135 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
3136 (xbm_load_image): Create bitmaps with a depth of 1.
3137 (init_xfns): Enable XBM images.
3138
919f1e88
JR
31392002-03-23 Jason Rumney <jasonr@gnu.org>
3140
3141 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
3142 correctly. Do not pass up_modifier to keyboard buffer.
3143
3144 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
3145
44d38e8d
SM
31462002-03-22 Stefan Monnier <monnier@cs.yale.edu>
3147
3148 * Makefile.in (bootstrapclean): New target.
3149 (bootstrap-temacs, bootstrap-doc): Remove.
3150 (bootstrap-emacs): Use a bog-standard `temacs'.
3151 Don't bother to build a DOC file.
3152
3153 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
3154
3155 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
3156 in temacs even if !CANNOT_DUMP.
3157 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
3158
3159 * alloc.c (check_pure_size): Only output a warning.
3160
b8b47c19
JR
31612002-03-22 Jason Rumney <jasonr@gnu.org>
3162
d3109773
JR
3163 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
3164 supported.
3165
ef07a497 3166 * w32term.c (zv_bits): Declare as short, for word alignment.
b8b47c19
JR
3167 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
3168 (syms_of_w32term): Define x-use-underline-position-properties.
3169
3170 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
3171 (clear_image_cache): Block input, fix logic, clear matrices in
3172 all frames that share this cache.
3173
b9b1a853
EZ
31742002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
3175
483812ae
EZ
3176 * emacs.c (main): Update the Copyright year in the blurb printed
3177 by "emacs --version".
3178
78e17433
EZ
3179 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
3180
b9b1a853
EZ
3181 * xterm.c (XTread_socket): If XK_ISO_Lock and
3182 XK_ISO_Last_Group_Lock are defined, handle keysyms between
3183 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
3184
fd646341
KS
31852002-03-21 Kim F. Storm <storm@cua.dk>
3186
3187 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
3188 menu-bar bindings in keymap and local-map properties _are_ used.
3189 But try keymap property first in accordance with 2002-01-03 patch.
3190 Added comment describing why this is not always reliable.
3191 (tool_bar_items): Ditto for tool-bar.
3192
bf76fe9c
JR
31932002-03-21 Jason Rumney <jasonr@gnu.org>
3194
3195 * w32fns.c (x_clear_image_1): Disable color table code.
3196
41ad6233
KS
31972002-03-21 Kim F. Storm <storm@cua.dk>
3198
3199 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
3200 removed the wrong version of the DEFUN macro; fixed it.
3201
3202 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
3203 Fmember rather than Fmemq).
3204 (Fprovide): Check that subfeatures is a list.
3205
3206 * process.c (QCfeature, QCdatagram): Removed variables.
3207 (QCtype, Qdatagram): New variables.
3208 (network_process_featurep): Removed function.
3209 (Fmake_network_process): Removed :feature check.
3210 Use :type 'datagram instead of :datagram t to create a datagram
3211 socket. This allows us to add other connection types (e.g. raw
3212 sockets) later in a consistent manner.
3ae1b884
KS
3213 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
3214 supported subfeatures for feature make-network-process.
41ad6233
KS
3215 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
3216 Intern and staticpro QCtype and Qdatagram.
3217 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
3218
3219 * xfns.c: (QCtype): Remove duplicate declaration and
3220 initialization (is now declared in process.c).
3221
3222 * w32fns.c: (QCtype): Remove duplicate declaration and
3223 initialization (is now declared in process.c).
3224
27950b47
RS
32252002-03-21 Richard M. Stallman <rms@gnu.org>
3226
f6df485f
RS
3227 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
3228 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
3229 when jumping to `fail' to avoid undoing reg changes in the
3230 last iteration of the loop.
3231 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
3232
27950b47
RS
3233 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
3234 Depend on process.h.
3235
3be38152
JR
32362002-03-20 Jason Rumney <jasonr@gnu.org>
3237
3238 Most of the following changes are still conditional on HAVE_IMAGES
3239 which is not set by default on Windows.
3240
47bcdab2
JR
3241 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
3242
3be38152
JR
3243 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
3244 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
3245 (four_corners_best, x_clear_image_1, x_clear_image)
e2c0561e
TTN
3246 (x_alloc_image_color, postprocess_image)
3247 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
3be38152
JR
3248 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
3249 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
3250
3251 * w32gui.h (struct XImage): Define.
3252
3253 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
3254 extract mouse co-ordinates.
3255
f37577f9
JR
32562002-03-20 Jason Rumney <jasonr@gnu.org>
3257
3258 * w32.c (init_winsock): Dynamically load new server and UDP
3259 socket functions.
3260 (socket_to_fd): New function.
3261 (sys_socket): Use it.
e2c0561e 3262 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
f37577f9
JR
3263 (sys_recvfrom, sys_sendto): New wrapper functions.
3264
3265 * process.c (QCfamily, QCfilter): Remove duplicate declaration
3266 and initialization.
3267
3268 * makefile.w32-in (LIBS): Remove $(WSOCK32).
3269
ab8a75de
EZ
32702002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
3271
3272 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
3273 use "sun" as a variable, it's a predefined constant on Sun
3274 machines.
3275
f00691a3 32762002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ab7ff8b
PJ
3277
3278 * bytecode.c (Fbyte_code): Revert last change.
3279
d1ef18f2
KS
32802002-03-19 Kim F. Storm <storm@cua.dk>
3281
3282 * makefile.w32-in (LIBS): Add $(WSOCK32).
3283 From David Ponce <dponce@voila.fr>.
3284
f00691a3 32852002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
99982883 3286
44c887be
PJ
3287 * process.c (wait_reading_process_input): Move variables `pname'
3288 and `pnamelen' down where they are used.
3289
18f85cdd
PJ
3290 * bytecode.c (Fbyte_code): Discard unused computed value to
3291 prevent gcc warning.
3292
99982883
PJ
3293 * lisp.h (Fplist_member): Add prototype.
3294
10ce34dc
KS
32952002-03-18 Kim F. Storm <storm@cua.dk>
3296
3297 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
3298 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
3299 HAVE_SYS_UN_H.
3300
744d746b 3301 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10ce34dc
KS
3302 Remove explicit GNU_LINUX settings for datagram support.
3303
f00691a3 33042002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa9d4315
PJ
3305
3306 * process.c (Fmake_network_process): Remove unused variable `sa'.
3307 Doc fix. Add usage:.
3308 (set_socket_options): Remove unused variables `optnum' and
3309 `opttype'.
3310
6147334f
RS
33112002-03-17 Richard M. Stallman <rms@gnu.org>
3312
3313 * xdisp.c (cursor_type_changed): New variable.
3314 (redisplay_internal): Redisplay all windows if cursor_type_changed.
3315 Clear it when clearing windows_or_buffers_changed.
3316 (try_cursor_movement, redisplay_window, try_window_id)
3317 (try_window_reusing_current_matrix): Test cursor_type_changed
3318 along with windows_or_buffers_changed.
3319
623fa9e7 3320 * window.h (cursor_type_changed): New variable.
6147334f
RS
3321
3322 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
3323 not update_mode_lines, and always set it to 1.
3324
3325 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
3326 if no frames needed redrawing.
3327
5439f987
KS
33282002-03-17 Kim F. Storm <storm@cua.dk>
3329
623fa9e7 3330 The following changes add support for network server processes,
5439f987
KS
3331 datagram connections, and local (unix) sockets.
3332
3333 * process.h (struct Lisp_Process): New member log.
3334 Doc fix: Member command used to indicate stopped network process.
3335 Doc fix: Member childp contains plist for network process.
3336 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
3337
3338 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
3339 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
3340 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
3341 New variables.
3342 (NETCONN1_P): New macro.
3343 (DATAGRAM_SOCKETS): New conditional symbol.
3344 (datagram_address): New array.
3345 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
3346 (status_message): Use concat3.
3347 (Fprocess_status): Add `listen' status to doc string. Return `stop'
3348 for a stopped network process.
3349 (Fset_process_buffer): Update contact plist for network process.
3350 (Fset_process_filter): Ditto. Don't enable input for stopped
3351 network processes. Server must listen, even if filter is t.
3352 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
3353 New functions.
3354 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
3355 (Fprocess_contact): Added KEY argument. Handle datagrams.
3356 (list_processes_1): Optionally show only processes with the query
3357 on exit flag set. Dynamically adjust column widths. Omit tty
3358 column if not needed. Report stopped network processes.
3359 Identify server and datagram network processes.
3360 (Flist_processes): New optional arg `query-only'.
3361 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3362 (conv_lisp_to_sockaddr, set_socket_options)
3363 (network_process_featurep, unwind_request_sigio): New helper functions.
3364 (Fprocess_datagram_address, Fset_process_datagram_address):
3365 (Fset_network_process_options): New lisp functions.
3366 (Fopen_network_stream): Removed. Now defined in simple.el.
3367 (Fmake_network_process): New lisp function. Code is based on previous
3368 Fopen_network_stream, but heavily reworked with new property list based
3369 argument list, support for datagrams, server processes, and local
3370 sockets in addition to old client-only functionality.
3371 (server_accept_connection): New function.
3372 (wait_reading_process_input): Use it to handle incoming connects.
3373 Do not enable input on a new connection if process is stopped.
3374 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
3375 (send_process): Handle datagram sockets.
3376 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
3377 network process is indicated by setting command field to t .
3378 (Fprocess_send_eof): No-op if datagram connection.
3379 (Fstatus_notify): Don't read input for a stream server socket or a
3380 stopped network process.
3381 (init_process): Initialize datagram_address array.
3382 (syms_of_process): Intern and staticpro new variables, defsubr new
3383 functions.
3384
f779bd4c
JR
33852002-03-16 Jason Rumney <jasonr@gnu.org>
3386
3387 * w32fns.c (w32_to_all_x_charsets): Return correct type in
3388 startup case.
3389
a9c1a157
RS
33902002-03-16 Richard M. Stallman <rms@gnu.org>
3391
e2c0561e 3392 * xdisp.c (redisplay_internal, redisplay_windows):
a9c1a157
RS
3393 Use list_of_error to call internal_condition_case_1.
3394 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
3395 so as to catch all errors with no possibility of debugger redisplay.
3396 (list_of_error): New variable.
3397 (syms_of_xdisp): Init and staticpro it.
3398
3399 * print.c (print_object): Delete `\ ' from printed rep of frame.
3400
7264f28d
EZ
34012002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
3402
3403 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
3404 until its implementation is fixed.
3405
f00691a3 34062002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ee8e167
PJ
3407
3408 * xfns.c (png_load): Remove unused variable `gamma_str'.
3409
7c3f9166
RS
34102002-03-14 Richard M. Stallman <rms@gnu.org>
3411
3412 * xfns.c (x_real_positions): Handle failure in XQueryTree.
3413
5b905677
MB
34142002-03-14 Miles Bader <miles@gnu.org>
3415
3416 * intervals.c (adjust_for_invis_intang): New function.
3417 (set_point_both): Use `adjust_for_invis_intang' to do most of the
3418 work for dealing with invisible+intangible regions. Do so before
3419 and after both forward and backward movements, to handle both
3420 front-sticky and rear-sticky cases.
3421 * textprop.c (text_property_stickiness): Function moved here from
3422 `editfns.c'.
3423 * intervals.h (text_property_stickiness): New declaration.
3424 * editfns.c (char_property_eq): Function removed.
3425 (text_property_stickiness): Function moved to `textprop.c'.
3426
73792b51
JR
34272002-03-13 Jason Rumney <jasonr@gnu.org>
3428
3429 * config.in: Add STRFTIME_NO_POSIX2.
3430
3431 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
3432 and %OX when underlying strftime does not.
3433
dc3b2c8b
SM
34342002-03-13 Stefan Monnier <monnier@cs.yale.edu>
3435
6f2a7a68
SM
3436 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
3437 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
3438 line) to avoid annoying flicker.
3439 (xm_scroll_callback): Get rid of the now unnecessary kludge.
3440 (XTread_socket): Mark it static.
3441
dc3b2c8b
SM
3442 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
3443
98243275
KS
34442002-03-13 Kim F. Storm <storm@cua.dk>
3445
3446 * puresize.h (BASE_PURESIZE): Increase to 775000.
3447
7dcece14
JB
34482002-03-12 Juanma Barranquero <lektu@terra.es>
3449
3450 * editfns.c (syms_of_editfns): Fix typo.
3451
656132eb
GM
34522002-03-12 Gerd Moellmann <gerd@gnu.org>
3453
3454 * xsmfns.c: Include stdio.h because termhooks.h needs it.
3455 Include termopt.h for interrupt_input.
3456
ff955d90
AS
34572002-03-11 Andreas Schwab <schwab@suse.de>
3458
3459 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
3460
714d8c39
GM
34612002-03-11 Gerd Moellmann <gerd@gnu.org>
3462
073448c5
GM
3463 * xterm.c (note_mouse_movement): Put code for
3464 x_autoselect_window_p in #if 0.
3465
4006b74e 3466 * lread.c (Fload): Don't assume that message_with_string uses the
714d8c39
GM
3467 string it is given like a C string.
3468
089fba41
JD
34692002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
3470
7c3f9166 3471 * xterm.h (x_session_check_input, x_session_initialize): Declared.
089fba41 3472
363a4df6
JD
3473 * xterm.c: (XTread_socket): Add call to x_session_check_input and
3474 x_session_have_connection.
3475 (x_initialize): Add call to x_session_initialize.
089fba41 3476
4006b74e 3477 * termhooks.h (enum event_kind): Add save_session_event.
089fba41 3478
4006b74e 3479 * keyboard.c: Add Emacs event save_session_event.
089fba41 3480
4006b74e 3481 * emacs.c (main): Add call to syms_of_xsmfns.
089fba41 3482
4006b74e 3483 * lisp.h: Declare syms_of_xsmfns as extern.
089fba41 3484
4006b74e 3485 * config.in: Add HAVE_X_SM.
089fba41 3486
7c3f9166
RS
3487 * Makefile.in (LIBXT): Add -lSM -lICE
3488 if HAVE_X_SM and not USE_X_TOOLKIT.
3489 (XOBJ): New file xsmfns.c added.
089fba41
JD
3490
3491 * xsmfns.c: New file for X session management.
3492
ad497129
JR
34932002-03-09 Jason Rumney <jasonr@gnu.org>
3494
3495 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
3496 read-only when setting modified time.
3497
f2c7b04f
GM
34982002-03-08 Gerd Moellmann <gerd@gnu.org>
3499
c7ad4937
GM
3500 * xdisp.c (move_it_vertically_backward): At the end of the
3501 function, when moving forward by lines, treat terminal frames
3502 specially.
3503
0d121f7c
GM
3504 * keyboard.c (echo_char): Make sure to add a separator between
3505 keys even if echo_dash hasn't been called.
3506
2051c264
GM
3507 * xdisp.c: Use new string macros.
3508 (update_echo_area): Pass number of bytes to message3 instead of
3509 number of chars.
3510 (set_message_1): Don't access a string's size_byte directly.
3511 (decode_mode_spec_coding): Use number of bytes of eoltype string
3512 instead number of chars.
3513
f2c7b04f
GM
3514 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
3515
007776bc
JB
35162002-03-08 Juanma Barranquero <lektu@terra.es>
3517
3518 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
3519 24-bit.
3520
893a741e
JR
35212002-03-06 Jason Rumney <jasonr@gnu.org>
3522
3523 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
3524
8b5eabe0
GM
35252002-03-06 Gerd Moellmann <gerd@gnu.org>
3526
d88c5449 3527 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
e60b0c44
GM
3528 (cancel_echoing, echo_length, echo_truncate): Changed to
3529 work with new kboard definition.
3530 (echo_now): Use message3_nolog instead of message2_nolog.
3531
3532 * alloc.c (mark_kboards): Mark echo_string.
3533
3534 * keyboard.h (ECHOBUFSIZE): Removed.
3535 (struct kboard): Member echoptr removed, member echobuf renamed
3536 to echo_string.
3537
8b5eabe0
GM
3538 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
3539 message3 instead of message2 to display the message using STRING's
3540 text properties.
3541
5d335845
AS
35422002-03-05 Andreas Schwab <schwab@suse.de>
3543
3544 * xdisp.c (hscroll_margin): Change to EMACS_INT.
3545
67334131
PA
35462002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
3547
3548 * frame.c (default-frame-alist): Explain that setting it doesn't
3549 affect existing frames.
3550
d88c5449
SM
35512002-03-05 Stefan Monnier <monnier@cs.yale.edu>
3552
3553 * indent.c (skip_invisible): Fix my brain fart.
3554
3555 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
3556
31ade731
SM
35572002-03-04 Stefan Monnier <monnier@cs.yale.edu>
3558
3559 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
3560 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
3561 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
3562 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
3563 and variables to use EMACS_INT instead of just int.
3564
d88c5449
SM
3565 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
3566
c0917202
EZ
35672002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
3568
3569 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
3570 environment, pass it down with corrected value.
3571
f00691a3 35722002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6dc7fdd
PJ
3573
3574 * lread.c (read_filtered_event): Do not call start_hourglass
3575 before returning.
3576
9652402e
JB
35772002-03-04 Juanma Barranquero <lektu@terra.es>
3578
3579 * w32term.c (x_display_and_set_cursor): Fix typo.
3580
73344256
RS
35812002-03-03 Richard M. Stallman <rms@gnu.org>
3582
3583 * fileio.c (Fmake_temp_name): Doc fix.
3584
71091322
RS
35852002-03-03 Gary Wong <gtw@gnu.org>
3586
3587 * termcap.c [!emacs]: Replace ospeed for building standalone
3588 libtermcap, for binary compatibility.
3589
3590 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
3591
aa7e4660
RS
35922002-03-03 Richard M. Stallman <rms@gnu.org>
3593
3594 * xrdb.c (file_p): Rename arg `path' to `filename'.
3595
3596 * abbrev.c (Fexpand_abbrev): Increment plist as use count
3597 only if it is an integer.
3598
3599 * xfns.c (png_load): Set screen_gamma based on f->gamma.
3600 If png_get_sRGB gives an answer, call png_set_gamma
3601 using the default image gamma value.
3602
3603 * lread.c (read1): When reading from a file, default string to
3604 multibyte only if it has some multibyte characters.
3605
3606 * print.c (print_object): Output multibyte chars 128...255
3607 using \x even if ! print_escape_multibyte.
3608
3609 * xdisp.c (display_mode_element): Move the places where
3610 bytepos, charpos, this, and lisp_string are set.
3611 Use lisp_string to set bytepos.
3612
3613 * xdisp.c (redisplay_internal):
3614 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
3615
3616 * xdisp.c (display_mode_element): Merge properties specified with
3617 :propertize onto those that come with the string.
3618
63d5d1ee
EZ
36192002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
3620
3621 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
3622 automatic-hscrolling. Users changed.
31ade731
SM
3623 <hscroll-margin>: Renamed from automatic-hscroll-margin.
3624 Users changed.
3625 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
63d5d1ee 3626
31a6cb06
EZ
36272002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
3628
3629 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
3630
ee57fd91
KS
36312002-03-02 Kim F. Storm <storm@cua.dk>
3632
3633 * window.c (Fminibuffer_selected_window): New function.
3634 (syms_of_window): Defsubr it.
3635
922eae56
KS
36362002-03-01 Kim F. Storm <storm@cua.dk>
3637
eacb44ad
KS
3638 * window.h (struct window): New member phys_cursor_width.
3639
3640 * window.c (make_window, replace_window): Init phys_cursor_width.
31ade731 3641
eacb44ad
KS
3642 * xterm.c (x_display_and_set_cursor): Blink box cursor using
3643 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
3644
3645 * w32term.c (x_display_and_set_cursor): Blink box cursor using
3646 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
3647
922eae56
KS
3648 * lisp.h (GCPRO6): New macro.
3649
3650 * process.c (Fopen_network_stream): Use GCPRO6.
3651
81d5af8b
KS
36522002-03-01 Kim F. Storm <storm@cua.dk>
3653
3654 * process.c (Qconnect, Qfailed): New variables.
3655 (syms_of_process): Intern and staticpro them.
e4984112 3656 (Fprocess_status): Document connect and failed return values.
81d5af8b
KS
3657 [NON_BLOCKING_CONNECT]: New conditional.
3658 (connect_wait_mask, num_pending_connects): New variables.
3659 (status_message): Convert Qfailed status.
3660 (Fopen_network_stream): Added support for non-blocking connect.
3661 New optional args: filter, sentinel, non_blocking. Doc updated.
3662 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
3663 (deactivate_process): Handle pending non-blocking connect.
3664 (wait_reading_process_input): Poll for status of non-blocking
3665 connects. Exec sentinel directly when connect succeeds.
3666 (status_notify): Don't read process output if not yet connected.
31ade731 3667
5705966b
KS
36682002-02-28 Kim F. Storm <storm@cua.dk>
3669
3670 * window.c: (minibuf_selected_window): Renamed from
3671 Vminibuf_selected_window. Users changed.
3672 (syms_of_window): Staticpro it.
3673
beb0acdf
KS
36742002-02-26 Kim F. Storm <storm@cua.dk>
3675
3676 The following changes add a new Vminibuf_selected_window variable
3677 which is similar to Vminibuf_scroll_window, but which is only set
3678 on entry to the minibuffer (from a non-minibuffer window):
31ade731 3679
beb0acdf
KS
3680 * window.c: (Vminibuf_selected_window): New variable.
3681 (struct save_window_data): New member minibuf_selected_window.
3682 (Fset_window_configuration): Restore Vminibuf_selected_window.
3683 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
3684 Set minibuf_scroll_window member to nil if minibuf_level is 0.
3685 (compare_window_configurations): Compare minibuf_selected_window.
3686
3687 * window.h: (Vminibuf_selected_window): Declare extern.
3688
3689 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
3690 entry to minibuffer or on entry from a non-minibuffer window.
3691
3692 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
3693 Vminibuf_selected_window instead of Vminibuf_scroll_window.
3694
3695 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
3696 instead of Vminibuf_scroll_window when deciding in which window
3697 the region should be highlighted. Consequently, the region remains
3698 highlighteded even when a completion buffer is also displayed.
3699
3dfdc066
EZ
37002002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
3701
b135bd4c
EZ
3702 * fileio.c (Fsubstitute_in_file_name): Fix the change from
3703 2002-02-08.
3704
3dfdc066
EZ
3705 * xselect.c (Qcompound_text_with_extensions): Renamed from
3706 Qcompound_text_no_extensions.
3707 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
3708
804d894a
JB
37092002-02-26 Juanma Barranquero <lektu@terra.es>
3710
3711 * w32proc.c (syms_of_ntproc): Doc fix.
3712
f00691a3 37132002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0277b535
PJ
3714
3715 * intervals.h: Include "dispextern.h" unconditionally.
3716
1f1bce0e
JR
37172002-02-24 Jason Rumney <jasonr@gnu.org>
3718
3719 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
3720 and disp-table.elc.
82a399d2 3721 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 3722
5f245371
KS
37232002-02-24 Kim F. Storm <storm@cua.dk>
3724
3725 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
3726 The validation of the event type was too strict as it didn't
3727 allow string events; buffer names are used in bindings for
3728 menu-bar-select-buffer (see `menu-bar-update-buffers').
3729
b66bc4a4 37302002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674 3731
31ade731 3732 The following changes rework my patch of 2002-02-06 which
a34cb674
KS
3733 added command remapping by entering the commands directly into
3734 the keymaps. Now, command remapping uses an explicit `remap'
3735 prefix in the keymaps, i.e. [remap COMMAND].
31ade731 3736
a34cb674
KS
3737 * keymap.c (Qremap, remap_command_vector): New variables.
3738 (is_command_symbol): Removed function.
31ade731
SM
3739 (Fdefine_key): No longer accept a symbol for KEY.
3740 Added validation of [remap COMMAND] argument for KEY.
3741 The DEF is no longer required to be a symbol when remapping a command.
a34cb674
KS
3742 (Fremap_command): New function to remap command through keymaps.
3743 (Flookup_key): Perform command remapping initiated by
3744 Fremap_command directly for speed.
3745 (Fkey_binding): Use Fremap_command for command remapping.
3746 (where_is_internal): Handle new command remapping representation.
3747 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
3748 staticpro them. Defsubr Fremap_command.
3749
3750 * keymap.h (Fremap_command): Declare extern.
3751 (is_command_symbol): Remove extern.
31ade731 3752
a34cb674
KS
3753 * keyboard.c (command_loop_1): Use Fremap_command for command
3754 remapping; now try command remapping for all symbols.
3755
f227fded
EZ
37562002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
3757
3758 * coding.h (run_pre_post_conversion_on_str): Add prototype.
3759
54a0c8a6
JR
37602002-02-23 Jason Rumney <jasonr@gnu.org>
3761
3762 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
3763 on the string before encoding it.
3764 (Fw32_get_clipboard_data): Run post-read-conversion on the string
3765 after decoding it.
3766
3767 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
3768
f00691a3 37692002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
042c33d3
PJ
3770
3771 * w32term.c (enter_timestamp): Remove unused static variable to
3772 prevent warning.
3773
3774 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
3775
b72d9870
EZ
37762002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
3777
3778 * w16select.c (Fw16_get_clipboard_data): Fix last change.
3779
3780 * xselect.c (selection_data_to_lisp_data): Fix last change.
3781
48094ace
JR
37822002-02-22 Jason Rumney <jasonr@gnu.org>
3783
3784 * w32term.h (struct w32_output): New member menu_command_in_progress.
3785
3786 * w32menu.c (menubar_selection_callback): Free the menu and
3787 clear the menu_command_in_progress flag.
3788
3789 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
3790 (menu_free_timer): New variable.
3791 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
3792 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
3793 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
3794 menu command is in progress.
31ade731
SM
3795 <WM_COMMAND>: Set the menu_command_in_progress flag.
3796 Kill any menu_free_timer that is running.
48094ace
JR
3797
3798 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
3799 Call ExtTextOutA rather than ExtTextOut.
3800
9feba281
EZ
38012002-02-22 Eli Zaretskii <eliz@gnu.org>
3802
3803 * puresize.h (BASE_PURESIZE): Increase to 755000.
3804
3276b4fe
EZ
38052002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3806
3807 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
3808 on the string before encoding it.
3809 (Fw16_get_clipboard_data): Run post-read-conversion on the string
3810 after decoding it.
3811
fbbe0ace
EZ
38122002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
3813
3814 Support for ICCCM Extended Segments in X selections:
3815
23e16093 3816 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
3817 (syms_of_xselect): Intern and staticpro it.
3818 (selection_data_to_lisp_data): Run post-read-conversion on decoded
3819 selection text.
3820 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 3821 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
3822 compound-text.
3823
3824 * xterm.h (x_encode_text): Update prototype.
3825
3826 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
3827 callers changed. If SELECTIONP is non-zero, run the
3828 pre-write-conversion function before encoding the selection text.
3829
2a28d471
KS
38302002-02-21 Kim F. Storm <storm@cua.dk>
3831
3832 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3 3833
31ade731
SM
3834 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
3835 Correct composing of language-change event.
15fdc2e3 3836
9de46181
KS
38372002-02-20 Kim F. Storm <storm@cua.dk>
3838
3839 * keyboard.c (menu_bar_items): Don't include keymap or local-map
3840 bindings at PT when building menu (the menu is not updated often
3841 enough for this to work reliable).
3842 (tool_bar_items): Likewise.
3843 (current_active_maps): Removed unused (and buggy) function.
3844
f00691a3 38452002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c7f07c4c
PJ
3846
3847 * xfns.c (gif_load): Use correct width and height for GIF images.
3848
f8565280
EZ
38492002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
3850
3851 * floatfns.c (Fatan): Accept an optional second arg and call
3852 atan2 if passed 2 args.
3853
5be86f54
JR
38542002-02-18 Jason Rumney <jasonr@gnu.org>
3855
3856 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
3857
f7b9d4d1
JR
38582002-02-17 Jason Rumney <jasonr@gnu.org>
3859
3860 * w32term.c (x_autoselect_window_p): New variable.
3861 (syms_of_w32term): DEFVAR_BOOL and initialize it.
3862 (note_mouse_movement): Use it.
3863
3864 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
3865
3866 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
3867
3868 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
3869 New variables.
3870 (syms_of_w32fns): Intern and staticpro them.
3871 (x_frame_parms) <"fullscreen">: New parameter.
3872 (x_fullscreen_move, x_set_fullscreen): New functions.
3873 (x_set_frame_parameters): Support Qfullscreen.
31ade731 3874 (x_real_positions): Save x/y_pixels_diff frame params.
f7b9d4d1
JR
3875 (x_figure_window_size): Support full-screen frames.
3876 (Fx_create_frame): Default the fullscreen parameter.
3877
31ade731 3878 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
f7b9d4d1
JR
3879 (x_fullscreen_adjust): New functions.
3880 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
3881 fullscreen. Call x_check_fullscreen_move, and set the
31ade731 3882 want_fullscreen member of output_data.w32
f7b9d4d1
JR
3883 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
3884
3885 * w32term.h: New enum for FULLSCREEN_* constants.
3886 (struct w32_output): New members want_fullscreen, x_pixels_diff,
3887 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
3888 (x-fullscreen-adjust): New prototype.
3889
ce16e8d9
KS
38902002-02-17 Kim F. Storm <storm@cua.dk>
3891
3892 * frame.c: (Vmouse_highlight): New variable.
3893 (syms_of_frame): DEFVAR_LISP it.
3894
3895 * frame.h: (Vmouse_highlight): Declare extern.
3896
3897 * xterm.h (struct x_display_info): Add mouse_face_hidden.
3898
3899 * xterm.c (disable_mouse_highlight): Removed variable.
3900 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
3901 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3902 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
3903 and on after keyboard input.
3904 (x_term_init): Initialize mouse_face_hidden.
3905
3906 * msdos.h (struct display_info): Add mouse_face_hidden.
3907
3908 * msdos.c (disable_mouse_highlight): Removed variable.
3909 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3910 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
3911 (internal_terminal_init): Initialize mouse_face_hidden.
3912 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
3913 and on after keyboard input.
3914
3915 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
3916
3917 * w32term.c (disable_mouse_highlight): Removed variable.
3918 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
3919 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3920 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
3921 and on after keyboard input.
3922 (w32_initialize_display_info): Initialize mouse_face_hidden.
3923
386c4076
EZ
39242002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
3925
9005a471
EZ
3926 * msdos.c (last_mouse_window): New variable.
3927 (dos_rawgetc): Fix last change--if the mouse is in the same window
3928 as recorded in last_mouse_window, don't select this window.
3929
31ade731 3930 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
760627fa 3931
4a137db1
EZ
3932 * msdos.c (x_autoselect_window_p): New variable.
3933 (syms_of_msdos): Defvar it.
3934 (dos_rawgetc): If x_autoselect_window_p is set, select the window
3935 in which the last mouse movement occured, unless it is already
3936 selected.
3937
31ade731
SM
3938 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
3939 New variables.
386c4076
EZ
3940 (syms_of_xdisp): DEVFAR them.
3941 (hscroll_window_tree): Use automatic_hscroll_margin and
3942 Vautomatic_hscroll_step to compute the amount of window scrolling.
3943
f00691a3 39442002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5d2200aa 3945
3996d07a
PJ
3946 * xterm.c (x-autoselect-window): New variable.
3947 (note_mouse_movement): Use it.
3948
5d2200aa
PJ
3949 * keyboard.c: Do not include "systime.h" twice.
3950
bdf67c59
AS
39512002-02-15 Andreas Schwab <schwab@suse.de>
3952
5407e8a7
AS
3953 * puresize.h (BASE_PURESIZE): Increase to 9/5.
3954
bdf67c59
AS
3955 * alloc.c (NSTATICS): Increase to 1280.
3956
98659da6
KG
39572002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
3958
f9904178
KG
3959 * alloc.c (NSTATICS): Bump to 1026.
3960
98659da6
KG
3961 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
3962 (Vx_super_keysym): New variables.
3963 (syms_of_xterm): DEFVAR_LISP them.
3964 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
31ade731 3965 variables to determine which keys to use for the various modifiers.
98659da6 3966
a48b709b 39672002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
3968
3969 * window.c: (Vmode_line_in_non_selected_windows): Removed.
3970 (mode_line_in_non_selected_windows): New variable.
3971 (syms_of_window): DEFVAR_BOOL it.
3972
31ade731
SM
3973 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
3974 Use mode_line_in_non_selected_windows.
1c9f5f23
KS
3975 (mode_line_in_non_selected_windows): Declare extern.
3976 (Vmode_line_in_non_selected_windows): Removed extern.
3977
db54c53a
RS
39782002-02-13 Richard M. Stallman <rms@gnu.org>
3979
31ade731
SM
3980 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
3981 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
db54c53a
RS
3982 (Fclear_this_command_keys): Doc fixes.
3983
31ade731 3984 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
db54c53a
RS
3985 (update_face_from_frame_parameter): Increment face_change_count
3986 and windows_or_buffers_changed to force redisplay using changed faces.
3987
3988 * xdisp.c (QCpropertize): New variable.
3989 (mode_line_proptrans_alist): New variable.
3990 (display_mode_element): New arg PROPS; all calls changed.
3991 Implement this, for strings.
3992 Handle literal output of strings by sharing the
3993 main-line code for strings, using local var `literal'.
3994 Handle :propertize feature.
31ade731 3995 (syms_of_xdisp): Initialze and staticpro QCpropertize and
db54c53a 3996 mode_line_proptrans_alist.
31ade731 3997
a48b709b 39982002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
3999
4000 * window.c: (Vmode_line_in_non_selected_windows): New variable.
4001 (syms_of_window): DEFVAR_LISP it.
4002
4003 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
4004 (CURRENT_MODE_LINE_FACE_ID): Use it.
4005 (Vmode_line_in_non_selected_windows): Declare extern.
4006
4007 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
4008 to get mode line face.
4009
573a237a
EZ
40102002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
4011
4012 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
4013 variables; cus-start.el doesn't need them anymore.
4014
73df3b72
KS
40152002-02-09 Kim F. Storm <storm@cua.dk>
4016
4017 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
4018 reduction. This fixes a display problem where stray newlines were
4019 inserted in the window (corrected by C-l). Clarified code (IMHO).
4020
18b0be7c
EZ
40212002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
4022
4023 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
4024
4025 * xdisp.c (display_mode_lines): Fix last change.
4026
442ca9ba
JR
40272002-02-09 Jason Rumney <jasonr@gnu.org>
4028
4029 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
4030 match each other.
3acfb461
JR
4031 (w32_load_system_font): Prevent Cleartype fonts from loading.
4032 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 4033
cdefda26
KS
40342002-02-09 Kim F. Storm <storm@cua.dk>
4035
4036 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
4037 (CURRENT_MODE_LINE_HEIGHT): Use it.
4038 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
4039
4040 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
4041 (pos_visible_p, handle_face_prop): Likewise.
4042 (display_mode_lines): Likewise, but for the real selected window.
4043 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
4044
4045 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
4046 in non-selected windows.
4047 (realize_basic_faces): Realize it.
4048 (syms_of_term): Intern and staticpro it.
4049
9f69e812
KS
40502002-02-08 Kim F. Storm <storm@cua.dk>
4051
31ade731 4052 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
9f69e812
KS
4053 Changed mail addresses to emacs-devel@gnu.org.
4054
6ded2c89
EZ
40552002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
4056
b5d40ceb 4057 * fileio.c (Fsubstitute_in_file_name): If the file name includes
31ade731 4058 ~user, and there's no such user, don't discard everything before ~user.
b5d40ceb 4059
6ded2c89
EZ
4060 * floatfns.c (Fround): Doc fix.
4061
f00691a3 40622002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
4063
4064 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
4065
6a229a63
SM
40662002-02-07 Stefan Monnier <monnier@cs.yale.edu>
4067
db54c53a 4068 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 4069
33b93ee5
KS
40702002-02-07 Kim F. Storm <storm@cua.dk>
4071
4072 * keymap.c (where_is_internal): Only check whether definition is
4073 remapped if it fulfills is_command_symbol.
4074
72bba9f2
AS
40752002-02-07 Andreas Schwab <schwab@suse.de>
4076
4077 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
4078
4079 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
4080
93607efd
KS
40812002-02-06 Kim F. Storm <storm@cua.dk>
4082
4083 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
4084 defining command remapping. Doc updated.
4085 (Flookup_key): Remap command through keymap if KEY is a symbol.
4086 (is_command_symbol): New function.
6a229a63
SM
4087 (Fkey_binding): Use it. New optional argument NO-REMAP.
4088 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
4089 recursive call unless that arg is non-nil.
4090 (where_is_internal): New argument no_remap. Callers changed.
4091 Call recursively to find original key bindings for a remapped
4092 comand unless that arg is non-nil.
6a229a63
SM
4093 (Fwhere_is_internal): New optional argument NO-REMAP.
4094 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
4095
4096 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
4097 (is_command_symbol): Added prototype.
4098
4099 * keyboard.c (Vthis_original_command): New variable.
4100 (syms_of_keyboard): DEFVAR_LISP it.
4101 (command_loop_1): Set it, and perform command remapping.
4102
f00691a3 41032002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e 4104
31ade731 4105 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2642a29e 4106
f4ed304f
JR
41072002-02-06 Jason Rumney <jasonr@gnu.org>
4108
4109 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
4110
b5309828
EZ
41112002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
4112
4113 * charset.c (get_charset_id): Use if-else instead of ?:.
4114
108eaabb
RS
41152002-02-06 Richard M. Stallman <rms@gnu.org>
4116
4117 * filelock.c (S_ISLNK): Define if not defined.
4118
bd3567fa
RS
41192002-02-03 Richard M. Stallman <rms@gnu.org>
4120
4121 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
4122
4123 * lread.c (read1): Redesign strategy for force_multibyte and
4124 force_singlebyte. Now is_multibyte records whether read_buffer
4125 is multibyte. Encountering any multibyte character makes it so.
6a229a63 4126
95c11956
SM
41272002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4128
4129 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
4130 with the same sequence, map that sequence to f10 rather than f0.
4131
ee466d0b
AS
41322002-02-03 Andreas Schwab <schwab@suse.de>
4133
4134 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
4135 latter never being defined on GNU/Linux.
4136
f77157da
EZ
41372002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4138
4139 * xfaces.c (realize_default_face): Don't set the weight and slant
4140 of the default face to Qnormal, unless these attributes are
4141 unspecified.
4142
f00691a3 41432002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 4144
95c11956
SM
4145 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
4146 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
4147
4148 * eval.c (Fsignal): Remove duplicated declaration of
4149 the variable `display_hourglass_p'.
4150
5e101746
RS
41512002-01-31 Richard M. Stallman <rms@gnu.org>
4152
4153 * editfns.c (region_limit): Nicer error message.
4154
4155 * coding.c (decode_composition_emacs_mule):
4156 Give up if NCOMPONENT gets too large to index `component'.
4157
4158 * callint.c (check_mark): New arg to specify clearer error message.
4159 Callers changed.
4160
41612002-01-27 Richard M. Stallman <rms@gnu.org>
4162
4163 * minibuf.c (Fcompleting_read): Doc fix.
4164
f00691a3 41652002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
4166
4167 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
4168 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
4169 Fix doc-strings.
7a4b11ca 4170
f5798fbd
RS
41712002-01-26 Richard M. Stallman <rms@gnu.org>
4172
4173 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
4174
4175 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
4176 and scroll_up_aggressively.
4177
f00691a3 41782002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
4179
4180 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
4181
3a232704
SM
41822002-01-25 Stefan Monnier <monnier@cs.yale.edu>
4183
4184 * textprop.c (Fnext_property_change, Fnext_single_property_change)
4185 (Fprevious_property_change, Fprevious_single_property_change):
4186 Stay within the narrowed-buffer boundaries.
4187
dd939ea1
EZ
41882002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4189
4190 * term.c (Ftty_display_color_cells): New function.
4191 (syms_of_term): Defsubr it.
0011f346
EZ
4192 (Ftty_display_color_cells, Ftty_display_color_p): Change the
4193 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
4194
4195 * dispextern.h: Add prototype for set_tty_color_mode and
4196 tty_setup_colors.
4197
aa35b6ad
JR
41982002-01-24 Jason Rumney <jasonr@gnu.org>
4199
4200 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
4201 If region left to draw is not what was expected, mark the frame as
4202 garbaged.
4203
4204 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
4205 Combine the regions returned by BeginPaint and GetUpdateRect.
4206
ab76d376
JR
42072002-01-23 Jason Rumney <jasonr@gnu.org>
4208
4209 * w32term.c (x_update_window_begin): Only hide caret if
4210 w32_use_visible_system_caret is set.
4211 (x_update_window_end): Only show caret if
4212 w32_use_visible_system_caret is set.
4213 (syms_of_w32term): Handle SystemParametersInfo call failing.
4214
4215 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
4216
d89b617d
RS
42172002-01-22 Richard M. Stallman <rms@gnu.org>
4218
4219 * unexelf.c (unexec): Define n so as to cause compilation error
4220 for the code where people have often written n instead of nn.
4221
4222 * .gdbinit (hookpost-run): Defined.
4223
f0b9a067
JD
42242002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
4225
4226 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
4227
5f9338d5
JD
42282002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
4229
4230 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
4231 if fullscreen is being set.
4232
f00691a3 42332002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
4234
4235 * minibuf.c (Fminibuffer_contents)
4236 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
4237 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4238
8cc0e0cf
RS
42392002-01-21 Richard M. Stallman <rms@gnu.org>
4240
4241 * window.c (check_frame_size): Fix minimum height calculation.
4242
d7b8ee68
KR
42432002-01-20 Ken Raeburn <raeburn@gnu.org>
4244
4245 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
4246 height before comparison.
4247 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
4248
c3c14723
JR
42492002-01-20 Jason Rumney <jasonr@gnu.org>
4250
4251 * w32term.c (w32_system_caret_width): Remove.
4252 (w32_use_visible_system_caret): New user flag.
4253 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
4254 Windows reports a screen reader running.
4255 (x_update_window_begin): Hide the system caret.
4256 (x_update_window_end): Show the system caret.
4257 (x_display_and_set_cursor): Don't draw a cursor when
4258 w32_use_visible_system_caret is set. Do not adjust width.
4259
4260 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
4261 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
4262 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
4263 the user requests it. Use system default width when creating.
4264 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
4265
95c11956
SM
4266 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
4267 New window messages.
c3c14723 4268
75e20bec
RS
42692002-01-20 Richard M. Stallman <rms@gnu.org>
4270
4271 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
4272
f00691a3 42732002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
4274
4275 * doprnt.c (doprnt1): Fix typos in error call.
4276
3b927d14
EZ
42772002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4278
4279 * unexelf.c (unexec) [__sgi]: Support the .got sections.
4280
aa06cb9c
JR
42812002-01-20 Jason Rumney <jasonr@gnu.org>
4282
4283 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
4284 that Windows returns. If a double check fails, try to guess how
4285 ExtTextOut is going to act.
4286
4287 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
4288 in place of stricmp.
4289 (w32_list_synthesized_fonts): Removed.
4290 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
4291 (struct enumfont_t): New element; list.
4292 (enum_font_cb2): List all style and charset variations of a font.
4293 (Fw32_select_font): New optional argument; include_proportional.
4294 Exclude vertical fonts. Exclude proportional fonts unless
4295 include_proportional is non-nil.
4296 (w32_enable_synthesized_fonts): Change to a boolean.
4297 (Fw32_send_sys_command): Doc fix.
4298
f00691a3 42992002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
4300
4301 * dispnew.c (update_frame): Move the variable `tem' to the block
4302 where it is used.
4303
815d969e
JR
43042002-01-19 Jason Rumney <jasonr@gnu.org>
4305
4306 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
4307 call to face-set-after-frame-default.
4308
a1e3dda0
RS
43092002-01-18 Richard M. Stallman <rms@gnu.org>
4310
95c11956 4311 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
4312 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
4313
daf516d3
RS
43142002-01-17 Richard M. Stallman <rms@gnu.org>
4315
4316 * window.c (enlarge_window): When exceeding size of parent,
4317 directly delete all the siblings instead of trying to resize it.
4318
f00691a3 43192002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
4320
4321 * term.c (set_tty_color_mode): Remove unused variable `tem'.
4322
3ddff138
RS
43232002-01-16 Henrik Enberg <henrik@enberg.org>
4324
7adfc0d7 4325 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 4326
465c9390
KS
43272002-01-16 Kim F. Storm <storm@cua.dk>
4328
4329 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
4330 is invisible. This can happen if cursor is on top line of a
4331 window, and we switch to a buffer with a header line.
4332
95c11956 4333 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 4334
f00691a3 43352002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
4336
4337 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
4338 `dont_resize' only when used.
4339
4340 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
4341
26f622b3
EZ
43422002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
4343
4344 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 4345 on multibyteness of elt, not the text in field.
26f622b3 4346
f00691a3 43472002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a 4348
31ade731
SM
4349 * buffer.c (Fkill_all_local_variables):
4350 Increment `update_mode_lines' only once.
1a6db83a 4351
f00691a3 43522002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 4353
aa1977d7
PJ
4354 * lisp.h (adjust_after_replace_noundo)
4355 (Fupdate_coding_systems_internal): Add prototypes.
4356
95c11956 4357 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 4358
3947677c
EZ
43592002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
4360
4361 Support for the --color command-line argument and tty-color-mode
4362 frame parameter:
4363
4364 * term.c (tty_default_color_capabilities, tty_setup_colors)
4365 (set_tty_color_mode): New functions.
4366 (term_init): Call tty_default_color_capabilities.
4367 (Qtty_color_mode_alist): New variable.
4368 (syms_of_term): Intern and staticpro it.
4369
4370 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
4371 frames.
4372 (do_switch_frame): For termcap frames, switch the tty
4373 color mode as specified by the frame's parameters.
4374 (Qtty_color_mode): New variable.
4375 (syms_of_frame): Intern and staticpro it.
4376
4377 * emacs.c (USAGE2): Add the --color option.
4378 (standard_args): Ditto.
4379
8a8e19a3
EZ
43802002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
4381
4382 * xterm.h (struct x_output): New members want_fullscreen,
4383 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
4384 y_pixels_outer_diff.
4385 New enum for FULLSCREEN_* constants.
4386 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
4387 is NULL.
4388 (x_fullscreen_adjust): Add prototype.
4389
4390 * emacs.c (USAGE2): Add the new full-screen arguments.
4391 (standard_args): Ditto.
4392
95c11956
SM
4393 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
4394 New variables.
8a8e19a3
EZ
4395 (syms_of_xfns): Intern and staticpro them.
4396 (x_frame_parms) <"fullscreen">: New parameter.
4397 (x_fullscreen_move, x_set_fullscreen): New functions.
4398 (x_set_frame_parameters): Support for Qfullscreen.
4399 (x_real_positions): More accurate computation of the frame position.
4400 (x_figure_window_size): Support full-screen frames.
4401 (Fx_create_frame): Default the fullscreen parameter.
4402
4403 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
4404 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
4405 <ConfigureNotify>: Don't resize to fullscreen.
4406 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
4407 output_data.x.
4408
4f1b1854
JR
44092002-01-13 Jason Rumney <jasonr@gnu.org>
4410
4411 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
4412 for mice with more than 3 buttons.
4413
4414 * w32term.c (parse_button): New parameter xbutton. Callers changed.
4415 (w32_read_socket): Handle new "XBUTTON" messages.
4416
4417 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
4418 (syms_of_w32fns): DEFVAR_BOOL it.
4419 (w32_wnd_proc): Handle new "XBUTTON" messages.
4420
f00691a3 44212002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 4422
95c11956 4423 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 4424
437dfb9f
AS
44252002-01-13 Andreas Schwab <schwab@suse.de>
4426
4427 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
4428
9f696a00
AS
44292002-01-12 Andreas Schwab <schwab@suse.de>
4430
4431 * .gdbinit (xbuffer): Remove address operator since data is now a
4432 pointer.
4433
d57966d7
RS
44342002-01-11 Richard M. Stallman <rms@gnu.org>
4435
4436 * insdel.c (adjust_after_replace_noundo): New function.
4437
4438 * coding.c (code_convert_region): Don't copy old text if undo disabled.
4439
74779f52
JR
44402002-01-09 Jason Rumney <jasonr@gnu.org>
4441
4442 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
4443 when checking for multiple frames.
4444
a474d59c
RS
44452002-01-08 Richard M. Stallman <rms@gnu.org>
4446
4447 * window.c (delete_window): Rewrite the code for changing the
4448 selected window to handle the case where WINDOW is not a leaf.
4449
fbb70ad9
EZ
44502002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
4451
4452 * process.c (send_process): Set src_multibyte to 1 after the call
4453 top setup_coding_system, not before the call.
4454
2d10309f
JR
44552002-01-07 Jason Rumney <jasonr@gnu.org>
4456
4457 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 4458 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
4459
4460 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
4461 (w32_dialog_show): Initialize wv->help to Qnil.
4462
7f2cddf3
JR
44632002-01-06 Jason Rumney <jasonr@gnu.org>
4464
0b1e6b54
JR
4465 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
4466
7f2cddf3
JR
4467 * w32menu.c (w32_menu_display_help): Revert last change.
4468
4469 * xmenu.c (menu_highlight_callback): Revert last change.
4470
e17144de
AS
44712002-01-06 Andreas Schwab <schwab@suse.de>
4472
4473 * insdel.c (make_gap_larger): Make sure buffer size does not
4474 overflow range of int.
4475
6637c996
JR
44762002-01-05 Jason Rumney <jasonr@gnu.org>
4477
44368f8f
JR
4478 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
4479 OVERLAPS_P.
4480
f884b6f4
JR
4481 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
4482
6637c996
JR
4483 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
4484 to the left or to the right of the pointer, put it against
4485 the left screen edge.
4486 (x_frame_parms): Add missing braces around initializer.
4487
4488 * w32term.c (x_setup_relief_colors): Don't compute an image's
4489 background color if it doesn't have a Pixmap.
4490 (notice_overwritten_cursor): Don't depend on
4491 output_cursor and updated_area. Compare pixel coordinates with
4492 window's cursor pixel coordinates.
3a232704
SM
4493 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
4494 Call notice_overwritten_cursor with new arg list.
6637c996
JR
4495 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
4496 unconditionally.
4497 (x_draw_image_relief): Use predefined macro instead of
4498 constant when the value of `tool_bar_button_relief' is negative.
4499
4500 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
4501
453c5510
RS
45022002-01-04 Richard M. Stallman <rms@gnu.org>
4503
4504 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
4505
d1d070e3
RS
45062002-01-03 Richard M. Stallman <rms@gnu.org>
4507
4508 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
4509 (Fkey_binding): Try the `keymap' property map first.
4510 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
4511 minor mode bindings.
4512
9ec1bdb6
KS
45132002-01-03 Kim F. Storm <storm@cua.dk>
4514
4515 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
4516
308dd672
RS
45172002-01-02 Richard M. Stallman <rms@gnu.org>
4518
edde72f6
RS
4519 * keyboard.c (read_key_sequence): Handle the keymap property
4520 before minor mode maps.
4521
308dd672
RS
4522 * editfns.c (Fformat): Update thissize from field_width
4523 based on the actual width, in the string case.
4524
f00691a3 45252002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 4526
03950b5b
PJ
4527 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
4528 when used as truth value to prevent gcc warnings.
4529
3c1e6b46
PJ
4530 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
4531 * w32proc.c: Include <config.h>.
4532
c1e11810
AS
45332002-01-01 Andreas Schwab <schwab@suse.de>
4534
4535 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
4536 not EMACS_INT, to make them compatible with DEFVAR_INT.
4537 * lisp.h (max_specpdl_size): Adjust declaration.
4538
1996baee
RS
45392002-01-01 Richard M. Stallman <rms@gnu.org>
4540
4541 * print.c (print_object): Test print_escape_nonascii only for
4542 unibyte strings.
4543 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
4544 when outputting to a multibyte buffer.
4545
0065bb74
RS
45462001-12-29 Richard M. Stallman <rms@gnu.org>
4547
4548 * print.c (print_object): In multibyte string, use hex escapes.
4549 Use octal only for unibyte strings.
4550 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
4551
4552 * lread.c (read_escape): New arg BYTEREP for reporting whether
4553 escape forces unibyte or multibyte.
4554 (read1): When reading a string, take note of that info.
4555
b5cb6072
KR
45562001-12-29 Ken Raeburn <raeburn@gnu.org>
4557
4558 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
4559 comparison to test lisp value returned by Fget.
4560
15fff01d
RS
45612001-12-29 Richard M. Stallman <rms@gnu.org>
4562
0065bb74
RS
4563 * lisp.h (max_specpdl_size): Add declaration.
4564
0d8466cc
RS
4565 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
4566
15fff01d
RS
4567 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
4568 Handle modifier bits. Correct typo in error message.
4569
2fae9111
RS
45702001-12-28 Richard M. Stallman <rms@gnu.org>
4571
2d6c1fc0
RS
4572 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
4573 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
4574 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
4575 Update calls to Fdefine_abbrev.
4576 (write_abbrev): Update for changed data format.
4577 Don't list "system" abbrevs.
4578 (Fexpand_abbrev): Update use count with new data format.
4579 (describe_abbrev): Update for changed data format.
4580 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
4581
07025a55
RS
4582 * config.in (HAVE_MBSINIT): Add #undef.
4583
4584 * strftime.c (mbsinit): Define as no-op if not available.
4585
4586 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
4587 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
4588
ce6eef6e
RS
4589 * keymap.c (Flookup_key): Error message if key has wrong data type.
4590 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 4591 (exclude_key): New variable.
3a232704 4592
539e92ad
GM
45932001-12-28 Gerd Moellmann <gerd@gnu.org>
4594
0cb8bb48
GM
4595 * xterm.c (x_setup_relief_colors): Don't compute an image's
4596 background color if it doesn't have a Pixmap.
3a232704 4597
60626bab
GM
4598 * xterm.c (notice_overwritten_cursor): Don't depend on
4599 output_cursor and updated_area. Compare pixel coordinates with
4600 window's cursor pixel coordinates.
3a232704
SM
4601 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
4602 Call notice_overwritten_cursor with new arg list.
60626bab
GM
4603 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
4604 unconditionally.
0cb8bb48 4605
539e92ad
GM
4606 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
4607 height of the cursor line to the amount to scroll.
4608
4e02881b
RS
46092001-12-27 Richard M. Stallman <rms@gnu.org>
4610
4611 * intervals.c (set_point_both): The position after an invisible,
4612 intangible character is not an acceptable stopping point.
4613
1ab964d7
KR
46142001-12-27 Ken Raeburn <raeburn@gnu.org>
4615
4616 * window.c (enlarge_window): In new preserve_before code, convert
4617 CURBEG from lisp object to integer before doing arithmetic.
4618
749f499f
RS
46192001-12-27 Richard M. Stallman <rms@gnu.org>
4620
4621 * bytecode.c (Fbyte_code): Undo previous change.
4622
b5d9aaba
KS
46232001-12-26 Kim F. Storm <storm@cua.dk>
4624
4625 * keyboard.c (record_char): Ignore duplicate help-echo events only
4626 separated by mouse-movement. When tracking mouse, only record
4627 first and last mouse-movement event in same window.
4628 Don't record mouse-movement events in keyboard macros.
3a232704 4629
d0fd26dd
RS
46302001-12-25 Richard M. Stallman <rms@gnu.org>
4631
b4c45162
RS
4632 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
4633 (Fenlarge_window): New arg PRESERVE_BEFORE.
4634
d0fd26dd
RS
4635 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
4636 instead of Fstring_as_unibyte.
4637
f00691a3 46382001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 4639
3a232704 4640 The following changes remove mocklisp support:
c95eaa61
PJ
4641
4642 * mocklisp.h, mocklisp.c: Files removed.
4643
4644 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
4645 `Qmocklisp' and `Qmocklisp_arguments'.
4646 Remove prototype of syms_of_mocklisp.
4647
3a232704 4648 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
4649
4650 * callint.c: Do not include mocklisp.h.
4651 (Fcall_interactively): Do not test for mocklisp case.
4652
4653 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
4654 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
4655 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
4656 Do not test for mocklisp case.
c95eaa61
PJ
4657 (Fwhile): Remove unused variable `tem'.
4658 (syms_of_eval): Remove variable `moclisp-arguments'.
4659
4660 * data.c (wrong_type_argument): Remove mocklisp case.
4661
4662 * doc.c (Fdocumentation): Remove mocklisp case.
4663
4664 * emacs.c (main): Do not call syms_of_mocklisp.
4665
31877e0a
RS
46662001-12-21 Richard M. Stallman <rms@gnu.org>
4667
4668 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
4669 to the left or to the right of the pointer, put it against
4670 the left screen edge.
4671
e2c3786a
EZ
46722001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
4673
4674 * Makefile.in (distclean): Remove .gdbinit if we are building
4675 outside the source tree.
4676
c513fc03
EZ
46772001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4678
bf794306
EZ
4679 * w32.c (emacs_root_dir): New function.
4680
4681 * msdos.c (emacs_root_dir): New function.
4682
4683 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
4684 of the current drive as the fallback for default_directory.
4685
62582985
EZ
4686 * dired.c (file_name_completion): Run the elements of
4687 completion-ignored-extensions through ENCODE_FILE.
4688
c513fc03
EZ
4689 * lisp.h (scmp): Remove prototype, since it's now a static
4690 function private to dired.c.
4691
3509a04c
RS
46922001-12-18 Richard M. Stallman <rms@gnu.org>
4693
4694 * dired.c (scmp): Function moved from minibuf.c.
4695 Delete multibyte handling--used only on encoded strings.
4696
4697 * minibuf.c (scmp): Function moved to dired.c.
4698
4699 * fns.c (merge): Add QUIT call.
4700
1e9a6186
DL
47012001-12-18 Dave Love <fx@gnu.org>
4702
4703 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
4704 language/georgian.el.
4705
e4e34e31
EZ
47062001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4707
4708 * Makefile.in (lisp, shortlisp): Synchronize with changes to
4709 lisp/Makefile.in:DONTCOMPILE.
4710
f00691a3 47112001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 4712
7c75be36
PJ
4713 * xdisp.c (window_box_height): Do not return negative values.
4714 From Gerd Moellmann <gerd@gnu.org>.
4715
4521d1fc
PJ
4716 * keyboard.c (head_table): Add missing braces around initializer.
4717
4718 * term.c (keys): Likewise.
4719
4720 * xfns.c (x_frame_parms, visual_classes): Likewise.
4721
93dec019
SS
47222001-12-17 Sam Steingold <sds@gnu.org>
4723
4724 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
4725 patch (COMPOSING_P, not COMPOSING).
4726
905cc05a
RS
47272001-12-17 Richard M. Stallman <rms@gnu.org>
4728
2ed06289
RS
4729 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
4730
0e79d667
RS
4731 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
4732 before calling decode_coding.
4733
4734 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
4735
4736 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
4737 instead of only for COMPOSITION_DISABLED.
4738
82a7ab23
RS
47392001-12-16 Richard M. Stallman <rms@gnu.org>
4740
d75bec6a
RS
4741 * alloc.c (pure_alloc): After overflow, allocate just a small block.
4742
52dcb476
RS
4743 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
4744
82a7ab23
RS
4745 * buffer.h (struct buffer): New field `display_error_modiff'.
4746 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
4747
4748 * window.c (Frecenter): Clear display_error_modiff field.
4749
4750 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
4751 Call redisplay_window, but not if display_error_modiff field says no.
4752 (redisplay_window_error): New function.
4753 (displayed_buffer): New variable.
4754 (redisplay_internal, redisplay_windows): Call the new functions
4755 instead of redisplay_window directly.
4756
4d0fa4f3
RS
47572001-12-15 Richard M. Stallman <rms@gnu.org>
4758
4759 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4760
493faf20
AI
47612001-12-14 Andrew Innes <andrewi@gnu.org>
4762
325111e9
AI
4763 * makefile.w32-in (EMACSLOADPATH): Define.
4764 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
4765 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 4766
4971e491
EZ
47672001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
4768
397b3b50 4769 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
4770 parameter have a numeric value all the time.
4771
4772 * w32fns.c (x_report_frame_params): Likewise.
4773
d911a0fa
RS
47742001-12-12 Richard M. Stallman <rms@gnu.org>
4775
4776 * fileio.c (Fwrite_region): Doc fix.
4777
4778 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
4779 (redisplay_internal): Call clear_image_cache only for window terminals.
4780
201c831a
GM
47812001-12-12 Gerd Moellmann <gerd@gnu.org>
4782
4783 * xdisp.c (move_it_vertically_backward): Change heuristic
4784 for the case that we didn't move far enough initially.
4785
4786 * window.c (Frecenter): Simplify computation in the case of window
4787 system frames and ARG < 0; use window_box_height.
4788
34e39c95
RS
47892001-12-11 Richard M. Stallman <rms@gnu.org>
4790
4791 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
4792 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
4793
d77fbc16
AI
47942001-12-11 Andrew Innes <andrewi@gnu.org>
4795
4796 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
4797 arg is negative.
4798
61e3b944
RS
47992001-12-11 Richard M. Stallman <rms@gnu.org>
4800
4801 * m/hp800.h: Split the __hpux conditional into the parts
4802 that are right for GNU/Linux too and the parts that are not.
4803 Use the former if GNU_LINUX.
4804 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
4805
4806 * s/gnu-linux.h (GNU_LINUX): Defined.
4807
f00691a3 48082001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
4809
4810 * macros.c, msdos.c, w16select.c: Change doc-string comments to
4811 `new style' [w/`doc:' keyword].
4812
8af01033
JR
48132001-12-10 Jason Rumney <jasonr@gnu.org>
4814
4815 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
4816 before using.
4817
f00691a3 48182001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
4819
4820 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
4821 keyword].
4822
d9e6c4b1
EZ
48232001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
4824
d20fc48a
EZ
4825 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
4826
d9e6c4b1
EZ
4827 * s/hpux10.h (srand48): Don't undefine.
4828
f1a85b89
JR
48292001-12-09 Jason Rumney <jasonr@gnu.org>
4830
3a232704
SM
4831 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
4832 Add comment to explain where the struct came from.
f1a85b89
JR
4833 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
4834 (add_menu_item): Process pop-up menus first to avoid memory leak.
4835 (add_menu_item, w32_menu_display_help): Use `help' field as
4836 Lisp_Object.
4837 (w32_free_submenu_strings): Only free owner-drawn strings.
4838
f00691a3 48392001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 4840
72244db2
PJ
4841 * COPYING: Moved back.
4842
3a62677f
PJ
4843 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
4844 Add parentheses around && within ||.
4845
4846 * indent.c (compute_motion): Likewise.
4847
4848 * intervals.c (merge_properties_sticky): Likewise.
4849
4850 * coding.c (setup_coding_system, shrink_encoding_region)
4851 (Fdecode_sjis_char): Likewise.
4852
9d113d9d
AS
48532001-12-07 Andreas Schwab <schwab@suse.de>
4854
b8523839
AS
4855 * xdisp.c (display_mode_element): Don't read past end of string if
4856 it ends with '%'.
4857
9464dea4
AS
4858 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
4859 can hold.
4860
3a232704 4861 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
9d113d9d
AS
4862 from most_positive_fixnum and most_negative_fixnum, resp., and
4863 type changed to Lisp_Object.
4864 (syms_of_data): DEFVAR_LISP them.
4865
70ec1377
RS
48662001-12-07 Richard M. Stallman <rms@gnu.org>
4867
4868 * callproc.c (init_callproc): Set Vdata_directory based on the source
4869 location whenever Emacs was run uninstalled.
4870
92f7dd37
PE
48712001-12-06 Paul Eggert <eggert@twinsun.com>
4872
4873 * config.in (HAVE_WORKING_VFORK): New #undefs.
4874 * process.c (create_process):
4875 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
4876 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
4877 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
4878 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
4879 * m/intel386.h (HAVE_VFORK): Likewise.
4880 * m/mips-siemens.h (HAVE_VFORK): Likewise.
4881 * m/mips.h (HAVE_VFORK): Likewise.
4882 * s/freebsd.h (vfork): Remove #define.
4883 * s/lynxos.h (HAVE_VFORK): Remove #undef.
4884 * s/usg5-4-2.h: Fix comment about vfork.
4885
c93674bb
RS
48862001-12-06 Richard M. Stallman <rms@gnu.org>
4887
4888 * s/hpux10.h (random): Add undef.
4889 (HAVE_RANDOM): Define it just once.
4890
59b59892
SM
48912001-12-06 Stefan Monnier <monnier@cs.yale.edu>
4892
4893 * eval.c: Undo last change: the standard syntax is not wanted.
4894
c6ea2775
EZ
48952001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
4896
4897 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
4898 scroll bars of the frame before deleting the frame itself. If the
4899 frame has a widget, delete the frame with XtDestroyWidget, and do
4900 not call XDestroyWindow before that.
4901
91175673
KS
49022001-12-06 Kim F. Storm <storm@cua.dk>
4903
4904 * xfns.c (x_report_frame_params): Return actual fringe widths.
4905
4906 * w32fns.c (x_report_frame_params): Return actual fringe widths.
4907
e0fead5d
AI
49082001-12-05 Andrew Innes <andrewi@gnu.org>
4909
4910 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
4911 excessively large.
4912
4913 * insdel.c (make_gap_larger): New function.
4914 (make_gap_smaller): New function.
4915 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
4916 make_gap_smaller if arg is negative.
4917
c186cdb3
SM
49182001-12-04 Stefan Monnier <monnier@cs.yale.edu>
4919
4920 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
4921 Pass a dummy argument when calling interrupt_signal.
4922 (parse_menu_item): Mark disabled items before checking for empty def.
4923 (read_char_minibuf_menu_prompt): Make safety more visible.
4924 (read_key_sequence): Add a `first_unbound' variable.
4925 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
4926 unbound prefix as soon as we can detect it.
4927
4928 * doc.c (Fsnarf_documentation): Add prototype.
4929 (get_doc_string): Handle negative arguments.
4930 (Fdocumentation): Use AREF and ASIZE.
4931 Move the calls to get_doc_string to a single place.
4932 Don't confuse an interactive-spec for a docstring reference.
4933 (Fdocumentation_property): Take advantage of the fact that
4934 get_doc_string now ignores the sign of the docstring position.
4935
4936 * eval.c: Use standard syntax for usage in docstrings.
4937
f00691a3 49382001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 4939
c186cdb3 4940 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 4941
f00691a3 49422001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
4943
4944 * xterm.c (x_draw_image_relief): Use predefined macro instead of
4945 constant when the value of `tool_bar_button_relief' is negative.
4946
656f46bb
RS
49472001-12-02 Richard M. Stallman <rms@gnu.org>
4948
4949 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
4950 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
4951
4952 * fileio.c (read_non_regular): Delete Fsignal call.
4953
036e218d
SM
49542001-12-01 Stefan Monnier <monnier@cs.yale.edu>
4955
4956 * lisp.h (run_hook_list_with_args): Undo last change.
4957
7ddb2c16
GM
49582001-12-01 Gerd Moellmann <gerd@gnu.org>
4959
4960 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
4961
ace9b298
JR
49622001-12-01 Jason Rumney <jasonr@gnu.org>
4963
90647b07
JR
4964 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
4965
4966 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
4967 [!WM_MOUSELEAVE]: Define.
4968
ace9b298
JR
4969 * w32menu.c (current_popup_menu, get_menu_item_info):
4970 (set_menu_item_info): New vars.
4971 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
4972 (w32_menu_show): Set current_popup_menu.
4973 (add_menu_item): Allocate new strings for owner-drawn menu items
4974 and help strings.
4975 Use owner-draw for disabled menu items again.
4976 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
4977 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
4978
4979 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
4980 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
4981 <WM_EXITMENULOOP>: Free menu strings.
4982 <WM_MOUSELEAVE>: Stop tracking mouse.
4983 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
4984
4985 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
4986 and mouse face.
4987
a9549909 49882001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
4989
4990 The following changes add left-fringe and right-fringe
4991 frame parameters to adjust fringe widths, or remove one or
4992 both fringes.
036e218d 4993
9fbc32aa
KS
4994 * frame.h (struct frame): Remove trunc_area_pixel_width and
4995 trunc_area_cols fields.
4996 (Qleft_fringe, Qright_fringe): Declare.
4997 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
4998
4999 * frame.c (Qleft_fringe, Qright_fringe): New vars.
5000 (syms_of_frame): Initialize them.
5001
5002 * window.c (coordinates_in_window): Handle separate left and right
5003 fringe widths.
5004
5005 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
5006 and fringe_cols fields.
5007 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
5008 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
5009 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
5010 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
5011 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
5012 (x_compute_fringe_widths): Add prototype.
5013
5014 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
5015 fill fringe evenly with small dashes.
5016 (x_draw_fringe_bitmap): Clear background if necessary. Align and
5017 clip the new ZV bitmap to avoid jitter between rows.
5018 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
5019 background. Don't draw fringe bitmaps if fringe width is zero.
5020 (x_compute_fringe_widths): New function.
5021 (x_new_font, x_set_window_size_1): Use it.
5022
5023 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 5024 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
5025 parameters as fringe widths depend on it.
5026 (x_set_fringe_width): New function.
5027 (x_figure_window_size): Use x_compute_fringe_widths.
5028 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
5029 parameters.
5030
5031 * widget.c (set_frame_size): Use x_compute_fringe_widths.
5032 (EmacsFrameSetCharSize): Ditto.
5033
5034 * w32term.h: Merged changes from xterm.h.
5035 * w32term.c: Merged changes from xterm.c.
5036 * w32fns.c: Merged changes from xfns.c.
5037
f00691a3 50382001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
5039
5040 * COPYING: Removed.
5041
d4824a5d
DL
50422001-11-29 Dave Love <fx@gnu.org>
5043
5044 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
5045 extra extra slot.
5046 (detect_coding_mask): Fix call of detect_coding_iso2022.
5047
f00691a3 50482001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
5049
5050 * fileio.c (file-name-coding-system)
5051 (default-file-name-coding-system): Doc fix (links to referenced
5052 variables added).
5053
3ce081f5
SM
50542001-11-28 Stefan Monnier <monnier@cs.yale.edu>
5055
99e380ee
SM
5056 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
5057 Add dummy uses of gcproN variables.
5058
3ce081f5 5059 * category.c (describe_category, describe_category_1)
2ad56c09 5060 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
5061 (syms_of_category): Don't defsubr Sdescribe_categories.
5062
66458f32
RS
50632001-11-28 Richard M. Stallman <rms@gnu.org>
5064
5065 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
5066
5067 * Makefile.in (lispdir): New variable, referring to build dir.
5068 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
5069
59a86c99
AI
50702001-11-28 Andrew Innes <andrewi@gnu.org>
5071
5072 * w32menu.c (w32_menu_display_help): Actually add the new argument
5073 OWNER.
5074
eb77a5f4
JR
50752001-11-28 Jason Rumney <jasonr@gnu.org>
5076
5077 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
5078 menu items. From David Ponce <dponce@wanadoo.fr>.
5079 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
5080 conditionally.
5081 (w32_menu_display_help): New argument OWNER. Rewritten to store a
5082 help event in the owner frame's keyboard buffer.
5083
5084 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
5085 (Fx_show_tip): Don't subtract last width from row width.
5086
5087 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
5088 (w32_read_socket): Use EQ to compare frames.
5089
bb313871
GM
50902001-11-28 Gerd Moellmann <gerd@gnu.org>
5091
5092 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
5093 OVERLAPS_P.
5094
f00691a3 50952001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 5096
6052529b
PJ
5097 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
5098 `gcpro3' and `gcpro4'.
5099
3ce081f5
SM
5100 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
5101
51022001-11-28 Stefan Monnier <monnier@cs.yale.edu>
5103
5104 * ccl.c: Use AREF and ASIZE.
5105
51062001-11-27 Stefan Monnier <monnier@cs.yale.edu>
5107
5108 * lisp.h (run_hook_list_with_args): Remove.
5109 (LIST_END_P): Fix call to wrong_type_argument.
5110 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 5111
111ed14e
SM
51122001-11-26 Stefan Monnier <monnier@cs.yale.edu>
5113
9fabb2f5
SM
5114 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
5115 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
5116
5117 * eval.c: Use AREF and ASIZE.
5118 (Ffetch_bytecode): Add the file name to the error message.
5119
5120 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
5121 which match the end of the file-name.
5122 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
5123 is not a valid env var, but leave it as is instead.
5124
111ed14e
SM
5125 * keymap.c (access_keymap): Handle t bindings like nil bindings.
5126 Make nil bindings in char-tables transparent.
5127 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
5128
2fa0eedf
RS
51292001-11-26 Richard M. Stallman <rms@gnu.org>
5130
d1420435
RS
5131 * textprop.c (set_text_properties_1): Allow START, END in either order.
5132 Do nothing if range is empty.
5133
2fa0eedf
RS
5134 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
5135
ebcbef4e
RS
5136 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
5137 (clean): Not here.
5138
5c131048
SM
51392001-11-25 Stefan Monnier <monnier@cs.yale.edu>
5140
5141 * textprop.c (set_text_properties_1): Clearly mark that the
5142 interval should not be empty.
5143
5144 * intervals.c (graft_intervals_into_buffer):
5145 Don't call set_text_properties_1 on an empty interval.
5146
96d276c3
RS
51472001-11-25 Richard M. Stallman <rms@gnu.org>
5148
6108b49c
RS
5149 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
5150
96d276c3
RS
5151 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
5152 don't lose the data in it.
5153
5eea19a4
RS
51542001-11-25 Juanma Barranquero <lektu@terra.es>
5155
5156 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
5157
5158 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
5159
5160 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
5161
438e57dd
SM
51622001-11-25 Stefan Monnier <monnier@cs.yale.edu>
5163
5164 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
5165
c88e5347
EZ
51662001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
5167
5168 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
5169 Niemitalo <kon@iki.fi>.
5170
59ce1461
JR
51712001-11-25 Jason Rumney <jasonr@gnu.org>
5172
5173 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
5174
5175 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
5176 (Fx_show_tip): Block input during frame creation.
5177 (Fx_show_tip, Fx_hide_tip): Enable.
5178
8727d588
RS
51792001-11-24 Richard M. Stallman <rms@gnu.org>
5180
5181 * lread.c (Fload): Detect recursive load error for more than 3
5182 nestings of the same file.
5183 (Vrecursive_load_depth_limit): Variable deleted.
5184 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
5185
cc63037e
JR
51862001-11-24 Jason Rumney <jasonr@gnu.org>
5187
5188 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
5189 mouse position if either left or top is not specified.
5190
5191 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
5192 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
5193 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
5194 (my_create_tip_window): Assign tip_window.
5195 (x_create_tip_frame): Use same defaults as X.
5196 (compute_tip_xy): Remove unused variable. Use full screen width.
5197 (Fx_show_tip): Do not double height. Call ShowWindow directly.
5198
5199 * w32term.c (x_after_update_window_line): Doc fix.
5200 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
5201 frames.
5202 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
5203
5204 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
5205 for all Windowed systems.
5206
deece6f5
EZ
52072001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5208
5209 * msdos.c (IT_clear_screen): If the frame's faces are not yet
5210 realized, use the initial screen colors to clear the screen.
5211
f00691a3 52122001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 5213
28ff4293
PJ
5214 * textprop.c (Fset_text_properties): Remove unused variables
5215 `unchanged', `prev_changed', `s' and `len'.
5216
56167cc5
PJ
5217 * search.c (Freplace_match): Remove unused variable `inslen'.
5218
1b944d9c
PJ
5219 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
5220
ca56d953
JR
52212001-11-22 Jason Rumney <jasonr@gnu.org>
5222
5223 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
5224 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
5225 (my_create_tip_window): New function.
5226 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 5227 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 5228
33399dce
JR
52292001-11-20 Jason Rumney <jasonr@gnu.org>
5230
5231 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
5232 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
5233
5234 * w32fns.c (Vw32_system_coding_system): Remove.
5235 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
5236
9b46de40
SM
52372001-11-19 Stefan Monnier <monnier@cs.yale.edu>
5238
6710ea06
SM
5239 * fileio.c (Fwrite_region): Move choose_write_coding_system to
5240 after build_annotations.
5241
a395ef6a
SM
5242 * syntax.c (describe_syntax): Add dummy arg.
5243 (describe_syntax_1): Update call to describe_vector.
5244
5245 * category.c (describe_category): Add dummy arg.
5246 (describe_category_1): Update call to describe_vector.
5247
5248 * keymap.c (Fdescribe_vector): Add `describer' parameter.
5249 (describe_command, describe_translation): Add dummy second param.
5250 (describe_map): Call elt_describer with two arguments.
5251 (describe_vector_princ): Add `fun' parameter.
5252 Call it instead of the hardcoded `princ'.
5253 (describe_vector): Add arg `args'.
5254 Pass it as a new second argument to elt_describer.
5255
5256 * keymap.h (describe_vector): Update prototype.
5257
9b46de40
SM
5258 * frame.c: Don't include keymap.h any more.
5259 (keys_of_frame): Remove.
5260
5261 * lisp.h (keys_of_frame): Remove declaration.
5262
5263 * emacs.c (main): Don't call `keys_of_frame' any more.
5264
aff37336
SS
52652001-11-14 Andreas Schwab <schwab@suse.de>
5266
5267 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
5268 if defined, 0 otherwise.
9b46de40 5269 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
5270 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
5271
b9937f07
RS
52722001-11-19 Richard M. Stallman <rms@gnu.org>
5273
5274 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
5275
2cd23960
JR
52762001-11-18 Jason Rumney <jasonr@gnu.org>
5277
5278 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
5279 (x_draw_bar_cursor): If the background color of the glyph under
5280 the cursor equals the frame's cursor color, use the glyph's
5281 foreground color for drawing the bar cursor.
5282 (x_after_update_window_line): Clear internal border in different
5283 circumstances.
5284 (w32_set_vertical_scroll_bar): Check for width and height > 0.
5285 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
5286 (x_set_glyph_string_background_width):
5287 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
5288 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
5289 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
5290 if cursor_in_non_selected_windows is false.
9b46de40 5291 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
5292 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
5293 Notice if cursor gets overwritten.
5294 (notice_overwritten_cursor): Renamed from
5295 note_overwritten_text_cursor. Rewritten to take glyph widths
5296 into account, and to take X positions as parameters.
5297 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
5298 around call to x_draw_glyphs.
5299 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
5300 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
5301 color to use for image glyph reliefs.
5302 (x_draw_image_relief): Accept zero tool_bar_button_relief.
5303 (glyph_rect): Remove unused variable `area'.
5304
5305 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
5306 some items.
5307 (x_set_internal_border_width): Set frame garbaged when window
5308 doesn't exist yet.
5309 (Fx_create_frame): Accept zero tool_bar_button_relief.
5310 (x_clear_image_1, four_corners_best, image_background)
5311 (image_background_transparent): New functions.
5312 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
5313 (gs_format): Add `:background' entry.
5314 (lookup_image): Set IMG's background color if specified.
5315 (pbm_load, xbm_load_image, png_load): Set IMG's background field
5316 when appropriate.
5317 (x_clear_image_1): Reset `background_valid' and
5318 `background_transparent_valid' fields.
5319 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
5320 calculating it here. Set IMG's background_transparent field.
5321 (enum xpm_keyword_index): Add XPM_BACKGROUND.
5322 (enum png_keyword_index): Add PNG_BACKGROUND.
5323 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
5324 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
5325 (enum gif_keyword_index): Add GIF_BACKGROUND.
5326 (enum gs_keyword_index): Add GS_BACKGROUND.
5327 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
5328 Pre-calculate image background color where necessary.
9b46de40
SM
5329 (x_create_x_image_and_pixmap, xbm_load, gs_load):
5330 Use display info's n_cbits entry for screen depth.
2cd23960
JR
5331 (Fx_show_tip): Remove unused variables `buffer', `top',
5332 `left', `max_width' and `max_height'.
5333
5334 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
5335
a4184c1c
GM
53362001-11-18 Gerd Moellmann <gerd@gnu.org>
5337
5338 * puresize.h (BASE_PURESIZE): Increase to 750000.
5339
f00691a3 53402001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
5341
5342 * frame.c (Fframe_live_p): Doc fix.
5343
f4ca4b00
RS
53442001-11-18 Richard M. Stallman <rms@gnu.org>
5345
5346 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
5347 (message_dolog_marker3): New static variables hold three markers.
5348 (syms_of_xdisp): Initialize and staticpro them.
5349 (message_dolog): Use message_dolog_marker1..3 instead of
5350 allocating markers each time. Unchain them when done.
5351
f4e25f94
RS
53522001-11-17 Richard M. Stallman <rms@gnu.org>
5353
5354 * doc.c (Fsnarf_documentation): Doc fix.
5355
91c153e2
AS
53562001-11-17 Andreas Schwab <schwab@suse.de>
5357
5358 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
5359
65b7d3e7
RS
53602001-11-17 Richard M. Stallman <rms@gnu.org>
5361
5362 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
5363
6b5f6311
JR
53642001-11-17 Jason Rumney <jasonr@gnu.org>
5365
5366 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
5367
be676094
GM
53682001-11-17 Gerd Moellmann <gerd@gnu.org>
5369
5370 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
5371 with invalid position.
5372
032a857d
RS
53732001-11-16 Richard M. Stallman <rms@gnu.org>
5374
5375 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
5376
5377 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
5378 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
5379 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
5380
5381 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
5382
b6270150
SM
53832001-11-16 Stefan Monnier <monnier@cs.yale.edu>
5384
5385 * fileio.c (build_annotations): Split off the tail.
5386 (build_annotations_2): New fun. Extracted from build_annotations.
5387 (Fwrite_region): Split the call to build_annotations into two
5388 calls to build_annotations and build_annotations_2.
5389
f00691a3 53902001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 5391
98cbb9fa
PJ
5392 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
5393 clear_waiting_for_input with argument.
5394
5395 * xterm.h (x_update_cursor): Remove duplicated prototype.
5396
b6270150 5397 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 5398
ea904403 5399 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 5400
ea904403 5401 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 5402
fa336b91
SM
54032001-11-16 Stefan Monnier <monnier@cs.yale.edu>
5404
5405 * fileio.c (choose_write_coding_system): New fun, extracted
5406 from Fwrite_region.
5407 (Fwrite_region): Use it.
5408
5409 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
5410 (funcall_lambda, run_hook_with_args): Make static and add prototype.
5411 (ml_apply, find_handler_clause): Add prototype.
5412
077907d4
EZ
54132001-11-16 Eli Zaretskii <eliz@gnu.org>
5414
aa2af83a
EZ
5415 * config.in: Add #undef HAVE_COFF_H.
5416
077907d4
EZ
5417 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
5418 Required for ISC 4.1.
5419
1756e2fb
EZ
54202001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
5421
5422 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
5423 Andrew Wiseman <a.wiseman@btclick.com>.
5424
06e8f738
KS
54252001-11-16 Kim F. Storm <storm@cua.dk>
5426
5427 The following changes are made to clean up the various internal
5428 references to the fringes to actually use the term `fringe' for
5429 them. Previously, they were called `flags areas', `bitmap areas',
5430 `left/right side of windows', or implicitly as `flags' or
5431 `bitmaps':
5432
5433 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
5434 Comments fixed. Use renamed symbols.
fa336b91 5435
06e8f738 5436 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 5437
06e8f738
KS
5438 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
5439 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
5440 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 5441
06e8f738 5442 * msdos.c: Comment fix.
fa336b91 5443
06e8f738 5444 * w32fns.c: Use renamed symbols.
fa336b91 5445
06e8f738
KS
5446 * w32term.c: Comment fixes. Use renamed symbols.
5447 (fringe_bitmap_type): Renamed from bitmap_type.
5448 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
5449 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
5450 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 5451
06e8f738
KS
5452 * w32term.h: Comment fixes. Use renamed symbols.
5453 (fringes_extra): Renamed from flags_areas_extra.
5454 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
5455 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
5456 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
5457 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
5458 (FRAME_X_LEFT_FRINGE_WIDTH):
5459 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
5460 (FRAME_X_RIGHT_FRINGE_WIDTH):
5461 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
5462
06e8f738 5463 * widget.c: Use renamed symbols.
fa336b91 5464
06e8f738
KS
5465 * window.c: Comment fixes. Use renamed symbols.
5466 (coordinates-in-window-p): Doc fix.
fa336b91 5467
06e8f738 5468 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 5469
06e8f738 5470 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 5471
06e8f738 5472 * xfns.c: Use renamed symbols.
fa336b91 5473
06e8f738
KS
5474 * xterm.c: Comment fixes. Use renamed symbols.
5475 (fringe_bitmap_type): Renamed from bitmap_type.
5476 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
5477 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
5478 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
5479
5480 * xterm.h: Comment fixes. Use renamed symbols.
5481 (fringes_extra): Renamed from flags_areas_extra.
5482 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
5483 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
5484 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
5485 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
5486 (FRAME_X_LEFT_FRINGE_WIDTH):
5487 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
5488 (FRAME_X_RIGHT_FRINGE_WIDTH):
5489 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 5490
9ce647f4
JR
54912001-11-15 Jason Rumney <jasonr@gnu.org>
5492
5493 * w32menu.c (add-menu-item): Make help_echo and radio buttons
5494 work for most menu items. From David Ponce
5495 <david.ponce@wanadoo.fr>.
5496
9b784ab8
GM
54972001-11-15 Gerd Moellmann <gerd@gnu.org>
5498
9f7e52b4
GM
5499 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
5500 Some x_set_* function expect to be called even if old and new
5501 value are equal.
5502
5503 * xdisp.c (build_desired_tool_bar_string): Accept zero
5504 tool_bar_button_relief.
5505
5506 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
5507
5508 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 5509
34e5d0af
GM
5510 * xterm.c (x_draw_bar_cursor): If the background color of the
5511 glyph under the cursor equals the frame's cursor color, use
5512 the glyph's foreground color for drawing the bar cursor.
5513
9b784ab8
GM
5514 * dispnew.c (direct_output_forward_char): Fix character/byte
5515 position comparison.
5516
89512fcd
MB
55172001-11-15 Miles Bader <miles@gnu.org>
5518
5519 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
5520 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
5521 Update arguments to find_field.
5522 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
5523 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
5524 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
5525 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
5526
7d18891d
RS
55272001-11-14 Richard M. Stallman <rms@gnu.org>
5528
d2936d21
RS
5529 * editfns.c (Fpropertize): Allow call with 1 arg.
5530
7d18891d
RS
5531 * dispextern.h (image_background, image_background_transparent):
5532 Conditionalize on HAVE_X_WINDOWS.
5533
55342001-11-13 Richard M. Stallman <rms@gnu.org>
5535
5536 * print.c (Fprin1_to_string): Doc fix.
5537
5538 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
5539
5540 * floatfns.c (Fceiling, Ffloor): Doc fixes.
5541
5542 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
5543
5544 * fileio.c (Ffile_accessible_directory_p): Doc fix.
5545
5546 * eval.c (syms_of_eval): Doc fix.
5547
5548 * coding.c (syms_of_coding): Doc fix.
5549
5550 * doc.c (Fsnarf_documentation): Doc fix.
5551
5552 * dispnew.c (syms_of_display): Doc fix.
5553
5554 * category.c (Fget_unused_category): Doc fix.
5555
5556 * buffer.c (syms_of_buffer): Doc fixes.
5557
9474c847
EZ
55582001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
5559
5560 * print.c (prin1, print): Doc fix.
5561
f00691a3 55622001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 5563
2b6f3c2b 5564 * fontset.h: Remove declarations of variables
e3059a5d
PJ
5565 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
5566
5567 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
5568 `Vclip_large_size_font'.
5569
b3700ae7
JR
55702001-11-13 Jason Rumney <jasonr@gnu.org>
5571
5572 * w32fns.c: Doc fix.
5573
f00691a3 55742001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 5575
4bb962be
PJ
5576 * xfaces.c (Fface_attributes_as_vector): Doc fix.
5577
ddb67bdc
PJ
5578 * fns.c: Doc fix.
5579
3467c402
PJ
5580 * emacs.c: Doc fix.
5581
5582 * coding.c: Doc fix.
5583
6e1b91d7
PJ
5584 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
5585 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
5586 `new style' [w/`doc:' keyword].
5587
1c1d3d69
RS
55882001-11-12 Richard M. Stallman <rms@gnu.org>
5589
5590 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
5591 LeaveNotify events. Only FocusIn and FocusOut do that now.
5592 (x_display_and_set_cursor): Do display hollow cursors in active
5593 minibuffer windows when they are not selected.
5594
b6f4c7ba
JR
55952001-11-12 Jason Rumney <jasonr@gnu.org>
5596
5597 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
5598 * w32term.c: Change doc-string comments to `new style'.
5599 [w/`doc:' keyword]. Doc fixes.
5600
5601 * w32fns.c: Don't define max.
5602 (Fx_open_connection): Only execute once.
5603
f00691a3 56042001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
5605
5606 * ccl.c: Change macros to use do-while block instead of if-else.
5607 Use braces to follow GNU Coding Standards.
5608
a4cd0cd7
RS
56092001-11-11 Richard M. Stallman <rms@gnu.org>
5610
eafb659a
RS
5611 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
5612
5613 * lread.c (read_escape): Use end_of_file_error for reporting eof.
5614
a4cd0cd7
RS
5615 * insdel.c (replace_range): Use adjust_markers_for_replace
5616 instead of adjust_markers_for_delete and adjust_markers_for_insert.
5617
5618 * intervals.h: Declare set_text_properties and set_text_properties_1.
5619
5620 * textprop.c (set_text_properties_1): New subroutine
5621 broken out of set_text_properties.
5622 (set_text_properties): Use set_text_properties_1.
5623
5624 * intervals.c (graft_intervals_into_buffer):
5625 Use set_text_properties_1 to clear out properties.
5626
5627 * search.c (Freplace_match): Use replace_range to insert
5628 and delete. Don't request property inheritance from
5629 surrounding text.
5630
91823618
JR
56312001-11-10 Jason Rumney <jasonr@gnu.org>
5632
5633 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
5634 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 5635 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 5636
86928dfb
GM
56372001-11-10 Gerd Moellmann <gerd@gnu.org>
5638
fa336b91 5639 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
5640 instead of malloc/free.
5641
f00691a3 56422001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 5643
ab8469eb
PJ
5644 * xfaces.c (merge_face_vectors): Use braces to follow GNU
5645 Coding Standards.
5646 (Finternal_set_lisp_face_attribute): Likewise.
5647
a78e0303
PJ
5648 * buffer.c (Fbury_buffer): Likewise.
5649
40ef1eda
PJ
5650 * indent.c (current_column_1): Remove unused variable `prev_col'.
5651
fabf4a91
PJ
5652 * coding.c (encode_coding): Use precomputed value of `src'.
5653 (encode_coding): Remove unused variable `src_end'.
5654 (code_convert_region): Remove unused variables `count'.
5655
0c99b139
JR
56562001-11-07 Jason Rumney <jasonr@gnu.org>
5657
5658 * w32term.c (x_display_and_set_cursor): Do not move system caret
5659 if cursor_glyph is NULL.
5660
f00691a3 56612001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
5662
5663 * keymap.c (access_keymap): Fix compilation error.
5664
55c6d645
MB
56652001-11-07 Miles Bader <miles@gnu.org>
5666
5667 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5668
f00691a3 56692001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 5670
7a4564a4
PJ
5671 * intervals.c (graft_intervals_into_buffer):
5672 Remove #ifdef'd-out code.
5673 (graft_intervals_into_buffer): Remove unused variable `middle'.
5674
5de38842
PJ
5675 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
5676 code (eval-current-buffer).
5677 Change doc-string comments to `new style' [w/`doc:' keyword].
5678
4fa23df5
RS
56792001-11-06 Richard M. Stallman <rms@gnu.org>
5680
5681 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
5682
7a6a97d7
SM
56832001-11-06 Stefan Monnier <monnier@cs.yale.edu>
5684
c191d13c
SM
5685 * lread.c (read1): Fix behavior with nested backquoting.
5686
7a6a97d7
SM
5687 * keyboard.c (make_lispy_event): Check integerness and fix
5688 Lisp_Object/int mixup.
5689
f00691a3 56902001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
5691
5692 * fns.c (copy_hash_table): Remove unused variable `v'.
5693
17893c65
PJ
5694 * fontset.c (fontset_font_pattern): Remove unused variable
5695 `family_registry'.
5696
4d994a79
PJ
5697 * indent.c (current_column_1): Remove unused variable `prev_col'.
5698
d5360cc7
RS
56992001-11-05 Richard M. Stallman <rms@gnu.org>
5700
5701 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
5702
5703 * buffer.c (Fkill_buffer): Don't delete auto save file
5704 if buffer is modified.
5705
96238a5a
AI
57062001-11-05 Andrew Innes <andrewi@gnu.org>
5707
5708 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
5709 CHECK_NUMBER_CDR.
5710
d9d54213
RS
57112001-11-05 Richard M. Stallman <rms@gnu.org>
5712
5713 * unexelf.c (unexec): Minor changes; clean up comments.
5714
b116830b
SS
57152001-11-05 Sam Steingold <sds@gnu.org>
5716
5717 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
5718
3297e2a1
AS
57192001-11-05 Andreas Schwab <schwab@suse.de>
5720
5721 * sound.c (sound_perror): Save errno from being clobbered.
5722
9212319f 57232001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
5724
5725 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
5726 the program image directly.
5727
f00691a3 57282001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
5729
5730 * buffer.h (Fbuffer_local_value): Add prototype.
5731
982f6c7e
RS
57322001-11-04 Richard M. Stallman <rms@gnu.org>
5733
d31053f9
RS
5734 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
5735 and CHECK_BUFFER.
5736
5737 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
5738 (record_char): Likewise.
5739
5740 * keyboard.c (make_lispy_event): Don't insist a drag event must
5741 move to a different buffer position. Instead, check for moving at
5742 least double_click_fuzz.
5743
5744 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
5745
5746 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
5747
982f6c7e 5748 * indent.c (current_column_1, Fmove_to_column): Separate the code
4d8da98b 5749 for display-table glyphs from the code for buffer text, to fix
982f6c7e
RS
5750 bugs in the former.
5751
830047fd
RS
57522001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
5753
5754 * buffer.c (Fbuffer_local_value): New function.
c191d13c 5755 (syms_of_buffer): Defsubr it.
b116830b 5756
830047fd
RS
5757 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
5758 value of `cursor-in-non-selected-windows'.
5759
5760 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
5761 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
5762 (syms_of_xdisp): Initialize it.
b116830b 5763
f00691a3 57642001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 5765
4e397688
PJ
5766 * xfns.c (Fx_create_frame): Doc fix.
5767
48b0f3ae
PJ
5768 * coding.c: Change doc-string comments to `new style' [w/`doc:'
5769 keyword].
5770
2df5238c
PJ
5771 * eval.c (top_level_value, top_level_set): Remove commented and
5772 #ifdef'd-out code.
5773 (Fdefvar): Fix usage in doc-string.
5774
3ecaf7e5
RS
57752001-11-03 Richard M. Stallman <rms@gnu.org>
5776
5777 * xfns.c: Include unistd.h, if it exists.
5778
5779 * editfns.c: Move the include of ctype.h after unistd.h.
5780
5781 * gmalloc.c: Test BROKEN_PROTOTYPES.
5782
8db2e33b
KR
57832001-11-03 Ken Raeburn <raeburn@gnu.org>
5784
5785 * lisp.h (CHECK_STRING_CAR): New macro.
5786 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
5787 treating XCAR and XCDR as lvalues.
5788 (openp): Use CHECK_STRING_CAR.
5789 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
5790
aed29b97
EZ
57912001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
5792
5793 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 5794 (SIGMASKTYPE): Define.
aed29b97
EZ
5795
5796 * syssignal.h (sigunblock): Don't define if already defined.
5797
f00691a3 57982001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 5799
16b45be4
EZ
5800 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
5801 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
5802 Fix typos in comments.
5803
020f9b38
PJ
5804 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
5805 and #ifdef'd-out code.
5806 Fix and reindent comments.
5807
c191d13c 5808 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 5809
6cb16f95
PJ
5810 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
5811 argument `i' in macros.
5812
5813 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
5814 `i' in macros.
5815
16b45be4
EZ
5816 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
5817 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
5818 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
5819 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
5820 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
5821 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
5822 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
5823 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
5824 in macros.
5825
5826 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
5827 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
5828 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
5829 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
5830 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
5831 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
5832 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
5833 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
5834 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
5835 (remove unused second argument).
5836
7e9d3c2f
SM
58372001-11-02 Stefan Monnier <monnier@cs.yale.edu>
5838
5839 * syntax.c (describe_syntax): New wrapper.
5840 (Finternal_describe_syntax_value): Rename from describe_syntax.
5841 Don't insert space at front and \n at the end.
5842 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
5843
5844 * regex.c (re_wctype): Try to fix some warnings.
5845 (regcomp, regexec): Don't forget the __restrict.
5846
e6bff182
RS
58472001-11-02 Richard M. Stallman <rms@gnu.org>
5848
5849 * textprop.c (Fget_char_property): Doc fix.
5850
f00691a3 58512001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
5852
5853 * process.c (Fstart_process): Add usage to doc-string.
5854
5855 * data.c (Fsetq_default): Ditto.
5856
5857 * callint.c (Finteractive): Ditto.
5858
c22e59e1
SM
58592001-11-01 Stefan Monnier <monnier@cs.yale.edu>
5860
5861 * macros.c: Don't include keymap.h any more.
5862
9271ed2c
RS
58632001-11-01 Richard M. Stallman <rms@gnu.org>
5864
e6bff182
RS
5865 * data.c (Fmake_local_variable): Doc fix.
5866
5867 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
5868 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
5869
9271ed2c
RS
5870 * keymap.c (Fdescribe_buffer_bindings): Print character property
5871 bindings along with or instead of the buffer local map.
5872 Make the overriding maps override what they should.
5873
f00691a3 58742001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
5875
5876 * window.c (grow_mini_window): Fix typo in comment.
5877
27188d11
GM
58782001-11-01 Gerd Moellmann <gerd@gnu.org>
5879
7b49b9d2
GM
5880 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
5881 (XTset_vertical_scroll_bar): Likewise.
5882
43f7c3ea
GM
5883 * xfns.c (x_build_heuristic_mask): Use four_corners_best
5884 instead of IMAGE_BACKGROUND.
c22e59e1 5885
b350c2e5
GM
5886 * xfns.c (four_corners_best): Reindent.
5887
c22e59e1 5888 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
5889 Handle :box so that it is possible to specify sexprs.
5890
bf00d461
EZ
58912001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
5892
5893 * s/hpux11.h: New file.
5894
f00691a3 58952001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 5896
2b209b97
PJ
5897 * emacs.c (USAGE1): Show command line option --no-window-system
5898 instead of --no-windows in usage.
5899 (standard_args): Rename --no-windows to --no-window-system.
5900 (bug_reporting_address): Follow Emacs coding conventions.
5901
9dbc9081
PJ
5902 * eval.c (Fcommandp): Doc fix.
5903 Change doc-string comments to `new style' [w/`doc:' keyword].
5904
4e10df59
PJ
5905 * frame.c (Fframe_live_p): Doc fix.
5906
5907 * buffer.c (selective-display-ellipses): Doc fix.
5908
dd387b25
GM
59092001-10-31 Gerd Moellmann <gerd@gnu.org>
5910
fe957e65
GM
5911 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
5912
dd387b25
GM
5913 * xfaces.c (realize_x_face): If C is not a single-byte character,
5914 set the face's colors_copied_bitwise_p instead of the defaulted_p
5915 members which have a different meaning.
5916 (free_face_colors): Do nothing for a face whose colors have been
5917 copied bitwise.
5918
c22e59e1 5919 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 5920
f00691a3 59212001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 5922
687784e8
PJ
5923 * marker.c, mocklisp.c: Change doc-string comments to `new style'
5924 [w/`doc:' keyword].
2e1280f8 5925
b9d9a9b9
GM
59262001-10-31 Gerd Moellmann <gerd@gnu.org>
5927
5928 * fns.c (require_unwind): Return Lisp_Object.
5929
f00691a3 59302001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 5931
fa1361cb
PJ
5932 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
5933 (last-input-char): Revert doc-string to be the same as the
5934 doc-string of `last-input-event'.
5935
48400103
PJ
5936 * xdisp.c: Fix typos in comments.
5937
eafa3196
GM
59382001-10-31 Gerd Moellmann <gerd@gnu.org>
5939
5940 * window.c (grow_mini_window): Handle case that the root
5941 window is already smaller than the nominal mininum height.
5942
747d3f2a
SM
59432001-10-30 Stefan Monnier <monnier@cs.yale.edu>
5944
bf9bb76f
SM
5945 * emacs.c (main): Don't call keys_of_macros any more.
5946
5947 * lisp.h (keys_of_macros): Remove.
5948
5949 * macros.c (keys_of_macros): Remove.
5950
747d3f2a
SM
5951 * xfaces.c (Fface_attribute_relative_p): Declare args.
5952
5e905a57
JR
59532001-10-30 Jason Rumney <jasonr@gnu.org>
5954
5955 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
5956 (enum_font_cb2): Ignore fonts with vertical orientation.
5957
3a426197
RS
59582001-10-30 Richard M. Stallman <rms@gnu.org>
5959
5960 * keyboard.c (Finput_pending_p): Doc fix.
5961
a742d646
GM
59622001-10-30 Gerd Moellmann <gerd@gnu.org>
5963
259cf6bc
GM
5964 * xterm.c (x_after_update_window_line): Don't run the code
5965 clearing in borders for rows whose visible height is 0.
5966
3f99f948
GM
5967 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
5968 resized_p flag is set. If not set, use the much less flickering
5969 method previously used.
5970
5971 * dispnew.c (change_frame_size_1): Set frame's resized_p.
5972
5973 * frame.h (struct frame) <resized_p>: New member.
5974
b4a3be43
GM
5975 * lread.c (to_multibyte): Ensure read_buffer is at least twice
5976 as large as the number of bytes to convert.
747d3f2a 5977
a742d646
GM
5978 * lread.c (to_multibyte): New function.
5979 (read1): Use it.
5980
cacbb9e9
EZ
59812001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
5982
5983 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
5984
99cb6b2f
GM
59852001-10-30 Gerd Moellmann <gerd@gnu.org>
5986
327f42ee 5987 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
5988 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
5989 if the row's fill_line_p is set and drawing the last glyph with
5990 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 5991
99cb6b2f
GM
5992 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
5993
8e8223e2
SM
59942001-10-29 Stefan Monnier <monnier@cs.yale.edu>
5995
5996 * xmenu.c: Include coding.h and charset.h.
5997 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
5998 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
5999 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
6000 Explicitly set wv->help. Use `TRUE' rather than `True'.
6001 (menu_help_callback): Use empty_string.
6002
6003 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
6004 (Fx_popup_dialog): Explicitly init f.
6005 (w32_menu_display_help): Use empty_string.
6006
4d083a8f
RS
60072001-10-29 Richard M. Stallman <rms@gnu.org>
6008
b2304472
RS
6009 * fns.c (Frequire): Detect recursive try to require the same
6010 feature 3 or more levels deep, and get error.
6011 (require_unwind): New subroutine.
6012 (require_nesting_list): New variable.
6013 (syms_of_fns): Init and staticpro it.
6014
4d083a8f
RS
6015 * print.c (print_object): Clarify indication of insertion type.
6016
2fe41216
EZ
60172001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
6018
90480000
EZ
6019 * coding.c (syms_of_coding): Document that locale-coding-system is
6020 used for decoding input on X.
6021
2fe41216
EZ
6022 * window.c (Fscroll_left, Fscroll_right): Doc fix.
6023
f00691a3 60242001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
6025
6026 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
6027 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
6028
60ebcfe8
GM
60292001-10-29 Gerd Moellmann <gerd@gnu.org>
6030
9a7bdceb
GM
6031 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
6032 use NO_CURSOR if cursor_in_non_selected_windows is false.
6033
3f08fcd2
GM
6034 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
6035 the slant attribute if FRAME is t.
6036
0ccfdad2
GM
6037 * xfns.c (x_set_internal_border_width): Set frame garbaged
6038 when X window doesn't exist yet.
6039
ef253080
GM
6040 * xterm.c (x_after_update_window_line): Clear internal border
6041 in different circumstances.
b116830b 6042
60ebcfe8
GM
6043 * xterm.c (XTread_socket) <KeyPress>: Don't use
6044 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
6045 <handa@etl.go.jp>.
6046
73d25f9c
EZ
60472001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6048
6049 * m/ibms390.h: New file. From Adam Thornton
6050 <athornton@sinenomine.net>.
6051
cac1daf0
GM
60522001-10-28 Gerd Moellmann <gerd@gnu.org>
6053
053b3256 6054 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 6055
cac1daf0
GM
6056 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
6057 a loop counter.
6058
f00691a3 60592001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 6060
186486eb
PJ
6061 * emacs.c: Use argv[0] instead of emacs when -t was specified.
6062
4707d2d0
PJ
6063 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
6064 keyword].
6065 Fix typos in comments.
b116830b 6066
d883731c
PJ
6067 * emacs.c (bug_reporting_address): New function.
6068 Use it when displaying usage message.
6069
04012254
PJ
6070 * minibuf.c (read_minibuf): Remove unused external declaration of
6071 variable `Qread_only'.
6072
13b1a09c
PJ
6073 * keymap.c (access_keymap): Remove unused variable `charset'.
6074
5bbf4378
MB
60752001-10-28 Miles Bader <miles@gnu.org>
6076
6077 * xfaces.c (merge_face_heights): Handle TO being relative as well.
6078 Remove #ifdef'd-out code.
6079 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
6080 (syms_of_xfaces): Initialize them.
6081
1ce1e4ee
JR
60822001-10-27 Jason Rumney <jasonr@gnu.org>
6083
6084 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
6085 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
6086 position using the system caret.
6087
6088 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
6089 (w32_system_caret_height, w32_system_caret_x)
6090 (w32_system_caret_y): New variables for tracking system caret.
6091 (w32_initialize): Initialize them.
c2d53558 6092 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 6093
c2d53558
SM
6094 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
6095 New messages types.
1ce1e4ee
JR
6096
6097 * w32term.c (note_mouse_highlight): Clear old help_echo.
6098
f00691a3 60992001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 6100
bb4600a4
PJ
6101 * xterm.c: Fix typo in a comment.
6102
7db35a48
PJ
6103 * emacs.c: Fix typos in comments.
6104 Remove unnecessary spaces.
6105 Change doc-string comments to `new style' [w/`doc:' keyword].
6106 (USAGE2): Fix typos in usage string.
6107
a7248e4f
PJ
6108 * xterm.c: Fix typo in a comment.
6109
4e30ce42
PJ
6110 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
6111 emacs.c.
6112
62725a92
GM
61132001-10-27 Gerd Moellmann <gerd@gnu.org>
6114
798dbe1f 6115 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 6116 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
6117 farther backward when target_y was not reached.
6118
62725a92
GM
6119 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
6120 Display errno only if non-zero.
6121 (sound_warning): New function.
6122 (vox_configure): Don't treat failing to set sample rate as error.
6123 (various places): Improve error messages.
6124
d4e34d24
EZ
61252001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
6126
944e6f60
EZ
6127 * fileio.c (Faccess_file): Run the argument filename through
6128 Fexpand_file_name, before using it.
6129
d4e34d24
EZ
6130 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
6131 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
6132
38d2af0c
GM
61332001-10-26 Gerd Moellmann <gerd@gnu.org>
6134
da80a8d5
GM
6135 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
6136
38d2af0c
GM
6137 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6138 Fix clearing in the case of scroll bars on the right.
c2d53558 6139
45de4a6f 61402001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
6141
6142 * w32gui.h (XImage): Add a dummy typedef.
6143
fbd5ceb2
GM
61442001-10-26 Gerd Moellmann <gerd@gnu.org>
6145
c2d53558 6146 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 6147
b23236fb
EZ
61482001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
6149
6150 * frame.c (Fframe_parameter): Fix last change.
6151
5d991fc4
EZ
6152 * fileio.c: Revert last change (which removed old commented-out
6153 version of expand-file-name). Add a comment that explains why
6154 this old version should not be removed.
6155
879eadc3
GM
61562001-10-25 Gerd Moellmann <gerd@gnu.org>
6157
75700ff2
GM
6158 * frame.c (Fframe_parameter): Fix a bug whereby some
6159 ``artificial'' frame parameters, like `minibuffer' were not
6160 obtained by calling Fframe_parameters.
6161
dfe92a6a
GM
6162 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
6163 cursor differently.
6164
879eadc3
GM
6165 * xdisp.c (move_it_vertically_backward): Compute line height
6166 differently. Add heuristic to try to be more compatible to 20.x.
6167
e1010ebe
SM
61682001-10-25 Stefan Monnier <monnier@cs.yale.edu>
6169
d73a471b
SM
6170 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
6171
d6da5a06
GM
6172 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
6173 boolean.
e1010ebe 6174
f66bd220
MB
61752001-10-25 Miles Bader <miles@gnu.org>
6176
6177 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
6178 BG is a pointer to a structure, not a structure.
6179 (gif_format, png_format): Add missing commas.
6180
d436d538
RS
61812001-10-24 Richard M. Stallman <rms@gnu.org>
6182
6183 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 6184 (syms_of_xfaces): Defsubr it.
d436d538 6185
f00691a3 61862001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
6187
6188 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
6189 variable `area'.
6190
f00691a3 61912001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 6192
c2d53558 6193 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 6194
e2a57b34
MB
61952001-10-25 Miles Bader <miles@gnu.org>
6196
6197 * dispextern.h (struct image): Add `background',
6198 `background_valid', and `background_transparent' fields.
6199 (image_background, image_background_transparent): New declarations.
6200 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
6201 * xfns.c (image_background, image_background_transparent)
6202 (four_corners_best): New functions.
c2d53558 6203 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
6204 (gs_format): Add `:background' entry.
6205 (lookup_image): Set IMG's background color if specified.
6206 (pbm_load, xbm_load_image, png_load): Set IMG's background field
6207 when appropriate.
6208 (x_clear_image_1): Reset `background_valid' and
6209 `background_transparent_valid' fields.
6210 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
6211 calculating it here. Set IMG's background_transparent field.
6212 (enum xpm_keyword_index): Add XPM_BACKGROUND.
6213 (enum png_keyword_index): Add PNG_BACKGROUND.
6214 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
6215 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
6216 (enum gif_keyword_index): Add GIF_BACKGROUND.
6217 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 6218 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
6219 Pre-calculate image background color where necessary.
6220 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
6221 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
6222 color to use for image glyph reliefs.
6223
b547b6e8
GM
62242001-10-24 Gerd Moellmann <gerd@gnu.org>
6225
d9e3b8c6
GM
6226 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
6227 in full-width rows.
c2d53558 6228
b547b6e8
GM
6229 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6230 Fix clearing of area not covered by scroll bar.
6231
f00691a3 62322001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
6233
6234 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
6235 and `real_start'.
c2d53558 6236 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
6237 (glyph_rect): Remove unused variable `area'.
6238
76cb5e06
GM
62392001-10-24 Gerd Moellmann <gerd@gnu.org>
6240
bdbdebff 6241 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
6242
6243 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
6244 (row_containing_pos): Take additional argument DY.
6245 Treat rows ending in middle of char differently.
62e33982
GM
6246 (display_line): Handle tabs on window systems differently.
6247
6248 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
6249 with additional argument.
6250
6251 * dispextern.h (row_containing_pos): Adjust prototype.
6252
76cb5e06
GM
6253 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
6254 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
6255 (try_window_id, try_window_reusing_current_matrix)
6256 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6257 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
6258
f00691a3 62592001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 6260
c9e60620
PJ
6261 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
6262 gnuemacs).
6263 (HAVE_BOXES): Fix typo in comment.
6264 (push_menu_pane): Fix typo in comment.
6265
3b552d56
PJ
6266 * xdisp.c: (display_prop_string_p): Remove unused local declaration
6267 of `Qwhen'.
6268 (single_display_prop_string_p): Remove unused local declarations
6269 of `Qwhen' and `Qmargin'.
6270 (string_buffer_position): Remove unused variable `around'.
6271 (store_frame_title): Remove unused variable `width'.
6272
15c565ac
PJ
6273 * window.c: Don't define max.
6274 (coordinates_in_window): Remove unused variable `uy'.
6275
a8818eb9
PJ
6276 * widget.c: Don't define max.
6277
996fee11
PJ
6278 * process.c: Don't define max.
6279 (create_process): Remove unused variable `buffer'.
6280
496e1a5b
GM
62812001-10-23 Gerd Moellmann <gerd@gnu.org>
6282
c2d53558 6283 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 6284
5905ae8b
EZ
62852001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
6286
6287 * xfaces.c (Finternal_set_lisp_face_attribute)
6288 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
6289 frame is on a windowed display.
6290
24db49fb
GM
62912001-10-23 Gerd Moellmann <gerd@gnu.org>
6292
c2d53558
SM
6293 * dispnew.c (sync_window_with_frame_matrix_rows):
6294 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
6295 of marginal areas.
6296
c2d53558 6297 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 6298
f0487f05
EZ
62992001-10-23 Andreas Schwab <schwab@suse.de>
6300
6301 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
6302 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
6303
f0a48a01
GM
63042001-10-23 Gerd Moellmann <gerd@gnu.org>
6305
c2d53558 6306 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
6307 REAL_END. Notice if cursor gets overwritten.
6308 (notice_overwritten_cursor): Take X positions as parameters.
6309 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
6310 around call to x_draw_glyphs.
6311
f00691a3 63122001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 6313
fc11dff0
PJ
6314 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
6315 instead of C) and usage.
a50a10a0 6316
fc11dff0
PJ
6317 * editfns.c (char-to-string): Fix argument names (use CHAR instead
6318 of C) and usage.
a50a10a0
PJ
6319
6320 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
6321 `left', `max_width' and `max_height'.
6322
8738febd
GM
63232001-10-23 Gerd Moellmann <gerd@gnu.org>
6324
6325 * xdisp.c (display_line): For a tab continued to the next line,
6326 set row's ends_in_middle_of_char_p.
6327
653c329b
GM
63282001-10-22 Gerd Moellmann <gerd@gnu.org>
6329
6330 * xdisp.c (display_line): Fix computation of continuation lines
6331 width for TABs.
6332
f00691a3 63332001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 6334
7ba51063
PJ
6335 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
6336 `Qlaplace'.
6337
f958c5ac
PJ
6338 * fileio.c: Remove unused code.
6339
eb360291
MB
63402001-10-22 Miles Bader <miles@gnu.org>
6341
6342 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
6343 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
6344 Remove `DOC_STRINGS_IN_COMMENTS' cases.
6345
98515cf0
JR
63462001-10-21 Jason Rumney <jasonr@gnu.org>
6347
6348 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
6349
93026d88
EZ
63502001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6351
6352 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
6353 (Finsert_string): Avoid the multi-line string literals warning.
6354
c9a95b79
MB
63552001-10-22 Miles Bader <miles@gnu.org>
6356
6357 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
6358 (Fdocumentation): Don't use it.
6359 (syms_of_doc): Don't initialize it.
6360
6361 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
6362 * print.c (Fwith_output_to_temp_buffer): Likewise.
6363 * window.c (Fsave_window_excursion): Likewise.
c2d53558 6364 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 6365 (Fsave_restriction): Likewise.
c2d53558
SM
6366 * eval.c (Frun_hooks, Frun_hook_with_args)
6367 (Frun_hook_with_args_until_failure)
6368 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
6369 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
6370 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
6371 (Funwind_protect, Fcondition_case): Likewise.
6372 * coding.c (Ffind_operation_coding_system): Likewise.
6373 * keyboard.c (Ftrack_mouse): Likewise.
6374
a3b10252
MB
63752001-10-21 Miles Bader <miles@gnu.org>
6376
c2d53558 6377 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
6378 (Fmake_hash_table): Add usage: string to doc string.
6379 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 6380 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
6381 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
6382 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
6383 (Fml_prefix_argument_loop): Likewise.
6384
f00691a3 63852001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 6386
c2d53558 6387 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 6388
c6f73eec
PJ
6389 * sysdep.c (init_sys_modes): Change doc-string comments to `new
6390 style' [w/`doc:' keyword].
6391
6392 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
6393 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
6394 comments to `new style' [w/`doc:' keyword].
6395
3cf3436e
JR
63962001-10-21 Jason Rumney <jasonr@gnu.org>
6397
6398 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
6399
c169b8f1
JR
6400 * w32term.c (remember_mouse_glyph): New function.
6401 (w32_mouse_position): Use it.
6402 (note_mouse_movement): If the mouse moved off the glyph, remember
6403 its new position.
c2d53558 6404
4fdd691b
JR
6405 * w32term.h (struct w32_output): Correct spelling of x_compatible.
6406 (w32_display_info): Add mouse_face_overlay.
6407
c169b8f1
JR
6408 * w32term.c (notice_overwritten_cursor): Renamed from
6409 note_overwritten_text_cursor. Rewritten to take glyph widths into
6410 account.
6411 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
6412 (fast_find_string_pos): New function.
6413 (fast_find_position): Return the correct vpos. Add parameter
6414 STOP. In the final row, stop before glyphs having STOP as object.
6415 Don't consider glyphs that are not from a buffer.
6416 (fast_find_position) [0]: Add a presumably more correct version
6417 for after 21.1.
6418 (expose_window_tree, expose_frame): Don't compute intersections here.
6419 (expose_window): Do it here instead.
6420 (expose_window_tree, expose_window, expose_line): Return 1 when
6421 overwriting mouse-face.
6422 (expose_window): If W is the window currently being updated, mark
6423 the frame garbaged.
6424 (expose_frame): If mouse-face was overwritten, redo it.
6425 (x_use_underline_position_properties): New variable.
6426 (syms_of_xterm): DEFVAR_BOOL it.
6427 (x_draw_glyph_string): Add comment to use it in future.
6428 (x_draw_glyph_string): Restore clipping after drawing box.
6429 Fix a computation of the underline position.
6430 (w32_get_glyph_string_clip_rect): Minor cleanup.
6431 (x_fill_stretch_glyph_string): Remove an assertion.
6432 (x_produce_glyphs): Don't convert multibyte characters
6433 to unibyte characters in unibyte buffers.
6434 (cursor_in_mouse_face_p): New function.
6435 (x_draw_stretch_glyph_string): Use it to choose a different GC
6436 when drawing a cursor within highlighted text. Don't draw
6437 background again if it has already been drawn.
6438 (x_draw_glyph_string_box): Don't draw a full-width
6439 box just because the glyph row's full_width_p flag is set.
6440 (x_draw_glyphs): Fix computation of rightmost x for
6441 full-width rows.
6442 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
6443 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
6444 change bottom shadow accordingly. Some cleanup.
6445 (x_update_window_end): Handle overwritten mouse face
6446 also for tool bar windows.
6447 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
6448 DRAW is DRAW_IMAGE_RAISED.
6449 (clear_mouse_face): Return 1 if text with mouse face was
6450 actually redrawn. Make the function static. Reset
6451 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
6452 optimize away highlighting if we pass over that same overlay again.
6453 (note_mouse_highlight): Call mouse_face_overlay_overlaps
6454 to detect a case where we have to highlight a different region
6455 despite not having left the currently highlighted region.
6456 Set mouse_face_overlay in the x_display_info. Avoid changing the
6457 mouse pointer shape when show_mouse_face has already done it, or
6458 there is no need. Handle mouse-face and help-echo in strings.
6459 (glyph_rect): New function.
6460 (w32_mouse_position): Use it to raise the threshold for mouse
6461 movement event generation.
6462 (w32_initialize_display_info): Initialize the x_display_info's
6463 mouse_face_overlay.
6464 (w32_set_vertical_scroll_bar): Don't clear a zero height
6465 or width area.
6466 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6467 a widget to zero height.
6468
3cf3436e 6469 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 6470 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
6471 equivalents in menu_items.
6472 (w32_menu_show): Don't overwrite an item's name with its key
6473 description in case the description is a multibyte string.
6474 (single_submenu): Some cleanup.
6475
6476 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
6477 (postprocess_image): New function.
6478 (lookup_image): Call it for all image types except PostScript.
6479 (x_kill_gs_process): Call postprocess_image.
6480 (tiff_error_handler, tiff_warning_handler): New functions.
6481 (tiff_load): Install them as handlers.
6482 (x_kill_gs_process): Recognize if someone has cleared the image
6483 cache under us.
6484 (valid_image_p): Protect better against invalid image
6485 specifications. Previous code could signal an error.
6486 (Fx_hide_tip, Fshow_tip): Doc fix.
6487 (Fv_max_tooltip_size): New variable.
6488 (syns_of_xfns): DEFVAR_LISP it.
6489 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
6490 window buffer to *tip* right after creating the frame. Set frame's
6491 window_width. Use a maximum tooltip size specified by
6492 Vx_max_tooltip_size, if that has valid contents.
6493 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
6494 Make sure the tooltip is completely visible.
6495 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
6496 (Fx_create_frame): Adjust the frame's height for presence
6497 of the tool bar before calling x_figure_window_size.
6498 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
6499 when the window gets smaller.
6500 (x_set_foreground_color): Set frame's cursor_pixel.
6501 (x_set_foreground_color, x_set_background_color): Cleaned up.
6502 (x_set_font): Handle case of x_new_fontset returning the same name
6503 as before, although there was a change in fontsets.
6504
386ca361
MB
65052001-10-21 Miles Bader <miles@gnu.org>
6506
c2d53558 6507 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
6508 (Flogxor): Add usage: string to doc string.
6509 * charset.c (Fstring): Likewise.
6510 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
6511 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
6512
f00691a3 65132001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 6514
03be2694
PJ
6515 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
6516
6517 * alloc.c: Reindent DEFUNs with doc: keywords.
6518
6519 * abbrev.c (Finsert_abbrev_table_description): Reindent.
6520
14ff1ee0
PJ
6521 * frame.c: Change doc-string comments to `new style' [w/`doc:'
6522 keyword].
6523
2f147815 6524See ChangeLog.9 for earlier changes.
6922b018
KH
6525
6526;; Local Variables:
49b3bd82 6527;; coding: iso-2022-7bit
6922b018 6528;; End:
2a34a036 6529
2f147815 6530 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
6531 Copying and distribution of this file, with or without modification,
6532 are permitted provided the copyright notice and this notice are preserved.