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