(Fread_variable): Doc fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8c6d74c6
RS
12003-01-05 Richard M. Stallman <rms@gnu.org>
2
3 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
4 Count LAST_LINE_MISFIT in scroll margin for end of window.
5 Move label too_near_end before setting SCROLL_MARGIN_POS.
6 Set LAST_LINE_MISFIT before jumping there.
7
8 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
9 scroll_conservatively case. If scrolling that much doesn't change
10 STARTP, move it down one line.
11
12 * xdisp.c (redisplay_window): Pass last_line_misfit arg to try_scrolling.
13 Make it 1 after make_cursor_line_fully_visible fails.
14
15 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no selected frame.
16
17 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
18 (syms_of_keymap): staticpro them.
19 (Fapropos_internal): Initialize them and clear them out.
20 Don't GCPRO them.
21
22 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
23 Doc fixes.
24
25 * lisp.h: New misc type Lisp_Save_Value.
26 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
27 (XSAVE_VALUE): New macro.
28 (struct Lisp_Save_Value): New data type.
29 (union Lisp_Misc): Add u_save_value alternative.
30 (make_save_value): Declared.
31
32 * alloc.c (make_save_value): New function.
33
34 * xterm.c (x_catch_errors): Save dpy using make_save_value.
35 (x_catch_errors_unwind): Call XSync.
36
372003-01-01 Richard M. Stallman <rms@gnu.org>
38
39 * window.c (window_scroll_pixel_based): Partially undo last change.
40
41 * keyboard.c (command_loop_1): Call adjust_point_for_property
42 in direct action cases for Qforward_char and Qbackward_char.
43 Set already_adjusted so it won't be done twice.
44
452002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
46
47 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
48 type definition of size_t.
49
8c609cff
ST
502003-01-02 Steven Tamm <steventamm@mac.com>
51
52 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
53 distinguish Carbon GUI builds from X11 builds on darwin.
54
b37113a1
ST
552002-12-30 Steven Tamm <steventamm@mac.com>
56
57 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
58 to default to t.
59
fa634a5e
FP
602002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
61
62 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
63
ce0669d4
ST
642002-12-28 Steven Tamm <steventamm@mac.com>
65
fa634a5e
FP
66 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
67 allow building in a different directory than source. Uses some
ce0669d4
ST
68 GNU Make extensions, but there is no other make on Mac OS X.
69
2308af15
FP
702002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
71
72 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
73 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
74 (Fmake_variable_frame_local, Faset, Fnumber_to_string)
75 (Fstring_to_number, Fminus): Mention the returned value in the doc
76 strings.
77
2155ecf3
RS
782002-12-23 Richard M. Stallman <rms@gnu.org>
79
80 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
81 <scroll-down-aggressively>: Doc fix.
82
83 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
84 string as pane name, if there is one.
85 (set_frame_menubar): Save menu_items_n_panes from each call to
86 parse_single_submenu and use it when calling digest_single_submenu.
87
88 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
89 Don't try to make last line fully visible if it is past end of window.
90
61f1d295
ST
912002-12-22 Steven Tamm <steventamm@mac.com>
92
2308af15 93 * macmenu.c (MIN_POPUP_SUBMENU_ID): Added
61f1d295
ST
94 (mac_menu_show): Added support for hierarchical popup menus
95 (add_menu_item): Removed indentation support
96 (fill_submenu, fill_menu): Now creates hierarchical menus
97 instead of using indentation
98
0b17a217
RS
992002-12-22 Richard M. Stallman <rms@gnu.org>
100
101 * xdisp.c (try_cursor_movement): Don't call try_window here.
102 (redisplay_window): Never redisplay minibuffer when inactive.
103
104 * window.c (select_window_1): Undo 9/21 change.
105
402e4f8b
ST
1062002-12-22 Steven Tamm <steventamm@mac.com>
107
108 * macterm.c (XTread_socket): Call KeyTranslate for control and
109 meta to deal correctly shifted non-alpha characters, like C-S-5
110 being treated like C-%. Does not look for shift key to deal
111 with masking off control-key with mac-reverse-ctrl-meta.
112
f02cac82
RS
1132002-12-21 Richard M. Stallman <rms@gnu.org>
114
115 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
116 If it is non-nil, run timers. Use an unwind-protect to requeue
117 the events that were read ahead.
118 (popup_get_selection_unwind): New subroutine.
119 (popup_get_selection_queue): File-scope variable now holds that queue.
120 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
121 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
122 Use an unwind-protect to pop down the dialog box.
123 (xdialog_show_unwind): New subroutine implements that.
124
125 * xdisp.c (row_containing_pos): Change exit test using last_y.
126 (try_window_id): Abort if row_containing_pos returns null.
127
128 * lread.c (load_error_handler): New function.
129 (Fload): Handle errors in Fsubstitute_in_file_name.
130 Don't expect Fsignal to return.
131
132 * Errors and throws work right with interrupt blocking.
133 * eval.c (struct catchtag): New elt interrupt_input_blocked.
134 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
2308af15 135 (internal_catch, Fcondition_case, internal_condition_case)
f02cac82
RS
136 (internal_condition_case_1, internal_condition_case_2): Save it.
137 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
138
139 * editfns.c (Fformat): Add parens.
140
141 * dired.c (file_name_completion): Fix that change.
142 Delete special quit-handling code; just use QUIT.
143
1442002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
145
146 * dired.c (file_name_completion): Close directory on error
147 just as in directory_files_internal.
148
1a590729
DK
1492002-12-19 David Kastrup <David.Kastrup@t-online.de>
150
151 * window.c (Fset_window_configuration): Set old_point to correct
152 value when new_current_buffer == current_buffer.
153
9785d95b 1542002-12-17 Ben Key <bkey1@tampabay.rr.com>
f02cac82 155
9785d95b 156 * Revisited my earlier fix for the following entry in
2308af15 157 etc/PROBLEMS:
9785d95b
BK
158 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
159 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
2308af15 160
9785d95b
BK
161 These changes were in part based upon suggestions made by Peter
162 'Luna' Runestig [peter@runestig.com].
163
164 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
165 g_b_init_get_token_information, g_b_init_lookup_account_sid,
166 g_b_init_get_sid_identifier_authority ): Added several static
167 global variables.
168
169 * w32.c (globals_of_w32): New function. Used to initialize those
170 global variables that must always be initialized on startup even
171 when the global variable initialized is non zero. Its primary
172 purpose at this time is to set the global variables
173 g_b_init_is_windows_9x, g_b_init_open_process_token,
174 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
175 g_b_init_get_sid_identifier_authority to 0 on startup. Called
176 from main.
177
178 * w32.c (is_windows_9x): Perform initialization only if
179 g_b_init_is_windows_9x is equal to 0. On initialization set
180 g_b_init_is_windows_9x equal to 1.
181
182 * w32.c (open_process_token): Perform initialization only if
183 g_b_init_open_process_token is equal to 0. On initialization set
184 g_b_init_open_process_token equal to 1.
2308af15 185
9785d95b
BK
186 * w32.c (get_token_information): Perform initialization only if
187 g_b_init_get_token_information is equal to 0. On initialization
188 set g_b_init_get_token_information equal to 1.
2308af15 189
9785d95b 190 * w32.c (lookup_account_sid): Perform initialization only if
2308af15 191 g_b_init_lookup_account_sid is equal to 0. On initialization
9785d95b
BK
192 set g_b_init_lookup_account_sid equal to 1.
193
194 * w32.c (get_sid_identifier_authority): Perform initialization
195 only if g_b_init_get_sid_identifier_authority is equal to 0. On
196 initialization set g_b_init_get_sid_identifier_authority equal to
197 1.
198
199 * w32fns.c (globals_of_w32fns): New function. Used to initialize
200 those global variables that must always be initialized on startup
201 even when the global variable initialized is non zero. Its
202 primary purpose at this time is to initialize the global variable
203 track_mouse_event_fn.
204
205 * w32fns.c (w32_wnd_proc): Remove initialization of
206 track_mouse_event_fn from the handler for the WM_SETFOCUS
207 message.
208
209 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
210
211 * w32menu.c (globals_of_w32menu): New function. Used to
212 initialize those global variables that must always be initialized
213 on startup even when the global variable initialized is non zero.
214 Its primary purpose at this time is to initialize the global
215 variables get_menu_item_info and set_menu_item_info.
216
217 * w32menu.c (initialize_frame_menubar): Remove initialization of
218 get_menu_item_info and set_menu_item_info.
219
220 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
221
222 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
223 Declare them.
224
225 * emacs.c (main): Call globals_of_w32 prior to calling
226 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
227 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
228 is defined.
229
230 * w32term.c (x_update_window_begin): Fix Windows API error
231 detected by BoundsChecker. Test to determine if
232 w32_system_caret_hwnd is NULL prior to attempting to use
233 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
234
235 * w32term.c (x_update_window_end): Fix Windows API error
236 detected by BoundsChecker. Test to determine if
237 w32_system_caret_hwnd is NULL prior to attempting to use
238 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
2308af15 239
b6da19ef
KH
2402002-12-17 Kenichi Handa <handa@m17n.org>
241
242 * coding.c (coding_system_require_warning): New variable.
243 (syms_of_coding): DEFVAR it.
244
245 * coding.h (coding_system_require_warning): Extern it.
246
247 * fileio.c (choose_write_coding_system): Even if
248 Vcoding_system_for_write is non-nil, if
249 coding_system_require_warning is nonzero, call
250 Vselect_safe_coding_system_function.
251
bfcf6dbe
MR
2522002-12-17 Markus Rost <rost@math.ohio-state.edu>
253
254 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
255 (lisp): Add font-core.
256
2c568af5
SM
2572002-12-13 Stefan Monnier <monnier@cs.yale.edu>
258
259 * textprop.c (text_read_only): New arg `propval'.
260 (get_char_property_and_overlay): Remove unused var `next_overlay'.
261 (verify_interval_modification): Use text_read_only's new arg.
262
b8c6225c
KH
2632002-12-13 Kenichi Handa <handa@m17n.org>
264
265 * coding.c (Funencodable_char_position): Set pend correctly.
266
706ddb8f
JR
2672002-12-12 Jason Rumney <jasonr@gnu.org>
268
269 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
270 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
271 Be more careful about when help_events are generated.
272
96720f09
ST
2732002-12-12 Steven Tamm <steventamm@mac.com>
274
275 * macterm.c (mac_check_for_quit_char): Correctly set the
276 modifiers of the event to 0.
277 * mac.c (sys_select): Duplicate rfds before calling select to
278 ensure that rfds survive the while loop.
279
e5ae1c49
KS
2802002-12-11 Kim F. Storm <storm@cua.dk>
281
282 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
283 row_containing_pos returned NULL.
284
2eb46b2d
ST
2852002-12-10 Steven Tamm <steventamm@mac.com>
286
287 * mac.c (sys_read): Fixed sys_read to not call select if IO is
2c568af5 288 non-blocking.
bdce610d
ST
289 (sys_select): Fixed sys_select to not use a timeout larger than
290 the one given.
2eb46b2d 291
b11f1d8a
JB
2922002-12-10 Juanma Barranquero <lektu@terra.es>
293
294 * editfns.c (Fformat): Use alloca, not _alloca.
295
d8528226
RS
2962002-12-09 Richard M. Stallman <rms@gnu.org>
297
298 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
299 as the last thing.
300
a4ac5b17
DL
3012002-12-09 Dave Love <fx@gnu.org>
302
303 * s/sol2-8: Removed. (Not necessary.)
304
f02cac82 3052002-12-09 Matthew Swift <swift@alum.mit.edu>
ac42d7b9
KG
306
307 * editfns.c (Fformat): Handle precision in string conversion
308 specifiers like libc functions do (ie, print at most that many
f02cac82 309 characters).
ac42d7b9 310
85cce843
RS
3112002-12-08 Richard M. Stallman <rms@gnu.org>
312
313 * xdisp.c (row_containing_pos): Check more carefully
314 whether charpos is really in the row before returning it.
315
0d4d26a7
ST
3162002-12-07 Steven Tamm <steventamm@mac.com>
317
df4d1023 318 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
0d4d26a7 319
df4d1023
KS
320 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
321 each stack frame. This may change as it could be time consuming.
b11f1d8a
JB
322
323 * macterm.c (mac_check_for_quit_char, quit_char_comp)
324 (init_quit_char_handler, mac_determine_quit_char_modifiers)
6c465a15 325 (mac_initialize): Added code to check for pressing of quit_char
2c568af5 326 in the OS event queue.
0d4d26a7
ST
327
328 * mac.c (sys_select): Call mac_check_for_quit_char every second
329 while blocking on select.
b11f1d8a 330
0d4d26a7 331 * mac.c (sys_read): Use sys_select to test for input first
f02cac82 332 before calling read, to allow C-g to break.
0d4d26a7 333
9252f7bc
RS
3342002-12-07 Richard M. Stallman <rms@gnu.org>
335
336 * minibuf.c (Fcompleting_read): Doc fix.
337
338 * lread.c (syms_of_lread) <load-history>: Doc fix.
339
340 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
341
342 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
343 autoload.
344
345 * data.c (Fdefalias): Record in load-history redefining an autoload.
346
347 * alloca.c: Undo ifdef change accidentally made on 12-04.
348
bfa261c0
FP
3492002-12-06 Francesco Potorti` <pot@gnu.org>
350
2c568af5 351 * xfns.c (png_load): Avoid double gamma correction for PNG images.
bfa261c0 352
c5992177
RS
3532002-12-04 Richard M. Stallman <rms@gnu.org>
354
355 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
356
357 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
358
359 * alloca.c: Don't use #error.
360
02d588e2
DL
3612002-12-03 Dave Love <fx@gnu.org>
362
363 * buffer.c (Qucs_set_table_for_input): New.
364 (Fget_buffer_create): Use it.
365 (Qset_buffer_major_mode_hook): Deleted.
366 (Fset_buffer_major_mode): Revert previous change.
367 (init_buffer_once): Intern ucs-set-table-for-input.
2c568af5
SM
368 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
369 Add &Qucs_set_table_for_input.
02d588e2 370
451e2697
AS
3712002-12-03 Andreas Schwab <schwab@suse.de>
372
373 * callint.c (Fcall_interactively): Use next_event only if less
374 than key_count.
375
72742a99
AC
3762002-12-02 Andrew Choi <akochoi@shaw.ca>
377
378 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
379 names to 255 characters.
380
381 * macterm.c (XTread_socket): If all frames have been collapsed,
382 expand the first one before handling drag-and-drop events.
383
384 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
385 which is detected by autoconf.
386
40e6ff95
ST
3872002-12-01 Steven Tamm <steventamm@mac.com>
388
6c465a15 389 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
40e6ff95
ST
390 offset in two hints table to allow prebinding to be redone and
391 allow the executable to be stripped.
392
c02138c6
DL
3932002-11-29 Dave Love <fx@gnu.org>
394
395 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
396 already provided.
397
0e47bbf7
RS
3982002-11-29 Richard M. Stallman <rms@gnu.org>
399
400 * xdisp.c (start_display): Check more intelligently for
401 whether the line is continued.
402 (move_it_vertically_backward): Clear it->continuation_lines_width.
403
44129dcb
DL
4042002-11-28 Dave Love <fx@gnu.org>
405
406 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
407 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
408
f707342d
ST
4092002-11-27 Steven Tamm <steventamm@mac.com>
410
411 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
412 more descriptive error output from lread.c:Fload upon most require
413 cycles during boostrapping.
414
1637fd2c
JR
4152002-11-27 Jason Rumney <jasonr@gnu.org>
416
417 * fileio.c (Finsert_file_contents): Give a more appropriate error
418 for files bigger than 2Gb when off_t is 32 bit.
419
420 * dired.c (Ffile_attributes): Don't return negative file sizes for
421 files bigger than 2Gb when off_t is 32 bit.
422
540c2788
DL
4232002-11-27 Dave Love <fx@gnu.org>
424
6b2fd6ea
DL
425 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
426
2c568af5
SM
427 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
428 Test GETPGRP_VOID instead.
6b2fd6ea
DL
429 [BSD_TERMIOS]: Remove definitions (never used).
430
431 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
432 Don't define.
433 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
434
540c2788
DL
435 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
436
8cc03716
JR
4372002-11-25 Jason Rumney <jasonr@gnu.org>
438
439 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
440 supported.
441
4042a81a
DL
4422002-11-25 Dave Love <fx@gnu.org>
443
444 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
445
446 * Makefile.in (TEMACS_LDFLAGS): Update last change.
447
be4ee72f
AS
4482002-11-25 Andreas Schwab <schwab@suse.de>
449
450 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
451
82122254
ST
4522002-11-24 Steven Tamm <steventamm@mac.com>
453
454 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
455 determine the size of pointers alloced in unexed space instead
456 of using possibly invalid emacs_zone pointers. This fixes the
457 binary incompatibility problems caused by updates to libSystem.B.
458
c1ee53bc
RS
4592002-11-24 Richard M. Stallman <rms@gnu.org>
460
461 * search.c (Fstring_match): Doc fix.
462
463 * callint.c (Fcall_interactively): If a command fails because
464 `*' detects a read-only buffer, but RECORD_FLAG is set,
465 record it anyway if the args don't actually do tty input.
466
5598c32e
DL
4672002-11-22 Dave Love <fx@gnu.org>
468
469 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
470
471 * keyboard.c (interrupt_signal): Provide forward declaration.
472 (kbd_buffer_store_event): Don't declare interrupt_signal.
473
2c568af5 474 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
5598c32e 475
97b14e22
RS
4762002-11-21 Richard M. Stallman <rms@gnu.org>
477
478 * eval.c (interactive_p): Skip any number of bytecode
479 and special form frames, in any order.
480
516eea8e
JR
4812002-11-20 Jason Rumney <jasonr@gnu.org>
482
483 * w32fns.c (convert_mono_to_color_image): New function.
484 (xbm_load, xbm_load_image): Use it when foreground or background
485 is explicitly set.
486
04dbfa08
DL
4872002-11-19 Dave Love <fx@gnu.org>
488
489 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
490
b4aebae3
JR
4912002-11-18 Jason Rumney <jasonr@gnu.org>
492
493 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
cf234711 494 (XPutPixel): Swap blue and red.
8f92c555
JR
495 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
496 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
497 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
498 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
b4aebae3 499
1998560a
DL
5002002-11-18 Dave Love <fx@gnu.org>
501
d824beee
DL
502 * m/orion105.h (HAVE_ALLOCA): Don't define.
503
a0f0878d 504 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
d824beee
DL
505
506 * m/intel386.h: Don't include alloca.h or define alloca.
507
508 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
509 malloc, realloc, calloc.
510
511 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
512 (bcmp): Don't define.
513
514 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
515
516 * m/amdahl.h: Don't define LIB_STANDARD.
517
518 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
519
520 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
521
a0f0878d
SM
522 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
523 Don't include alloca.h.
d824beee
DL
524
525 * s/aix3-2.h (HAVE_FSYNC): Don't define.
526
1998560a
DL
527 * regex.c (_GNU_SOURCE): Don't define.
528
529 * process.c (_GNU_SOURCE): Don't define.
530
531 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
532
6c465a15 5332002-11-18 Markus Rost <rost@math.ohio-state.edu>
8704a6ab
MR
534
535 * s/sol2-8.h: Include sol2-6.h.
536
6ae2cd57
MB
5372002-11-18 Miles Bader <miles@gnu.org>
538
539 * dispextern.h (struct face): Add `overstrike' field.
a0f0878d 540 * xterm.c (x_draw_glyph_string_foreground)
6ae2cd57
MB
541 (x_draw_composite_glyph_string_foreground): Implement overstriking.
542 * xfaces.c (load_face_font): Set `face->overstrike' based on
543 result from choose_face_font.
544 (best_matching_font, choose_face_font): Add `needs_overstrike'
545 argument, and use it to return whether overstriking is desirable
546 for this face/font combo.
547 (set_font_frame_param: Pass new argument to choose_face_font.
548
f60ae425 5492002-11-17 Ben Key <BKey1@tampabay.rr.com>
6ae2cd57 550
3582b6a3
SM
551 This change is my fix for the following entry in etc/PROBLEMS:
552 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
553 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
554
f60ae425
BK
555 * w32.c: Added wrapper functions around the win32 API functions
556 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
557 GetSidIdentifierAuthority. These wrapper functions serve two
558 purposes:
559 1. They ensure that the wrapped function can never be called
560 when Emacs is running on an operating system on which they are
561 not supported (Microsoft Windows 95 / 98 / ME).
562 2. They call the wrapped functions via function pointers rather
563 than calling them directly. This avoids taking advantage of the
564 undocumented fact that although these functions are not supported
565 in the 9x branch of Microsoft Windows, the functions do exist in
566 the version of advapi32.dll that is found in the 9x branch of
567 Microsoft Windows.
f60ae425
BK
568
569 * w32.c (init_user_info): Replaced the calls to the win32 API
570 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
571 and GetSidIdentifierAuthority with calls to the newly added
572 wrapper functions.
f60ae425
BK
573
574 * w32.h: Added extern declarations for the following functions:
575 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
576 syms_of_w32menu, and void syms_of_fontset.
f60ae425
BK
577
578 * w32fns.c (w32_wnd_proc): Added code to reinitialize the
579 function pointer track_mouse_event_fn in the handler for the
580 WM_SETFOCUS message.
f60ae425 581
6c465a15 582 * w32menu.c (initialize_frame_menubar): Added code to
f60ae425
BK
583 reinitialize the function pointers set_menu_item_info and
584 get_menu_item_info.
3582b6a3
SM
585
5862002-11-17 Ben Key <BKey1@tampabay.rr.com>
f60ae425 587
a0f0878d 588 * sound.c: Added a partial implementation of play-sound-internal
f60ae425
BK
589 for Microsoft Windows. Added various #ifdef / #else / #endif
590 code blocks to separate the code that will compile under
591 Microsoft Windows from the code that is specific to Gnu/Linux.
a0f0878d
SM
592 Moved several blocks of code around to make this separation of code
593 into Windows compatible and Gnu/Linux compatible code blocks easier.
f60ae425 594
a0f0878d 595 * makefile.w32-in: Include sound.c and link with WinMM.lib.
f60ae425
BK
596
597 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
598 added support for play-sound-internal under Windows would be
599 included in the build of Emacs.
a0f0878d 600
517f42a0
JR
6012002-11-16 Jason Rumney <jasonr@gnu.org>
602
603 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
604
605 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
606
a0f0878d
SM
6072002-11-15 Stefan Monnier <monnier@cs.yale.edu>
608
609 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
610 (adjust_point_for_property): Move out of display and invisible even if
611 we were already inside before (in case a property was added while
612 we weren't looking). Be more careful when handling invisible props.
613 Skip invisible text as if it really wasn't there at all.
614
aab83f91
JR
6152002-11-15 Jason Rumney <jasonr@gnu.org>
616
617 * w32term.c (x_draw_image_foreground)
618 (w32_draw_image_foreground_1): Use standard copy and invert
619 operations to draw images.
620
621 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
622 depth of 1.
623 (xbm_read_bitmap_data): Invert bits as xbm is read in.
624 (XPutPixel): Don't invert bits here.
625
a4478a76
JR
6262002-11-15 Jason Rumney <jasonr@gnu.org>
627
628 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
629 (w32_draw_image_foreground_1): Handle image masks.
630 (x_draw_image_glyph_string): Don't BitBlt transparently.
631
632 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
633 (x_from_xcolors): Adjust RGB values for W32.
634 (image_background, image_background_transparent)
635 (postprocess_image, x_to_xcolors, x_disable_image)
636 (x_build_heuristic_mask): Adapt for W32 and enable.
637 (x_create_x_image_and_pixmap): Mark images with palettes as such.
638 (xbm_load): Remove unused variable.
639
03670a65
RS
6402002-11-14 Richard M. Stallman <rms@gnu.org>
641
642 * buffer.c (syms_of_buffer): Doc fix.
643
59daa29a
DL
6442002-11-14 Dave Love <fx@gnu.org>
645
646 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
647
8e685dc6
SM
648 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
649 * xmenu.c (unuse_menu_items, digest_single_submenu):
650 * xfns.c (x_put_x_image):
651 * xdisp.c (message2_nolog, set_message):
652 * undo.c (record_point):
653 * terminfo.c (tparam):
654 * syntax.c (scan_sexps_forward):
655 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
656 * composite.c (update_compositions):
657 * cm.c (calccost, cmgoto):
59daa29a
DL
658 * charset.c (c_string_width): Declare all args (per C99).
659
8e685dc6 660 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
59daa29a
DL
661
662 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
663 Don't declare.
664
665 * emacs.c (main) [!VMS]: Avoid third arg.
666
667 * fns.c (Fcopy_sequence): Doc fix.
49f8f50a 668 (Fmap_char_table): Cast `call2'.
59daa29a 669
407fa601
FP
6702002-11-14 Francesco Potorti` <pot@gnu.org>
671
672 * s/sol2-8.h: New file.
673
58a7e98d
KS
6742002-11-14 Kim F. Storm <storm@cua.dk>
675
676 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
677 dependency on `risky-local-variable' and the :propertize form.
678
3ceb4629
SM
6792002-11-12 Stefan Monnier <monnier@cs.yale.edu>
680
8e685dc6
SM
681 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
682
3ceb4629
SM
683 * syntax.c (scan_sexps_forward): Undo last patch.
684 Use a more obvious fix: check eob before updating the syntax table.
685
b7305e01
SM
6862002-11-09 Stefan Monnier <monnier@cs.yale.edu>
687
688 * syntax.c (scan_sexps_forward): Update syntax table before reading
689 a char rather than after so we don't update the table past eob.
690
2671e4de
DL
6912002-11-09 Dave Love <fx@gnu.org>
692
693 * buffer.c (Fset_buffer_major_mode): Fix last change.
694
695 * regex.c (regexec): Fix pmatch declaration.
696
697 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
698
699 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
700 to self-inserting characters.
701 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
702
703 * coding.c (Vtranslation_table_for_input): New.
704 (syms_of_coding): DEFVAR it.
705
63e9e99c
JB
7062002-11-08 Juanma Barranquero <lektu@terra.es>
707
708 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
709 window.
710
a959f11e
KS
7112002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
712
713 * process.c (Fformat_network_address): Removed unused locals p,
714 cp, and i.
715
b8b60362
DL
7162002-11-06 Dave Love <fx@gnu.org>
717
718 * buffer.c (Qset_buffer_major_mode_hook): New.
719 (Fset_buffer_major_mode): Use it.
720
318db6cb
RS
7212002-11-06 Richard M. Stallman <rms@gnu.org>
722
723 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
724 and stop_polling.
725
726 * process.c (wait_reading_process_input):
727 Test POLLING_PROBLEM_IN_SELECT, not hpux.
728 Avoid initialization for auto Lisp_Object var.
729
730 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
731
732 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
733
44248360
RS
7342002-11-05 Richard M. Stallman <rms@gnu.org>
735
736 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
737
738 * callint.c (Fcall_interactively): New local filter_specs.
739 (Fcall_interactively): Check for progn as well as let.
740 Add a gcpro.
741 (Qprogn): New variable.
742 (syms_of_callint): Staticpro and init Qprogn.
743
3f9ab804
JPW
7442002-11-04 John Paul Wallington <jpw@shootybangbang.com>
745
746 * lread.c (Feval_buffer): Doc fix.
747
5e3cb80d
DL
7482002-11-04 Dave Love <fx@gnu.org>
749
750 * keyboard.c (read_char): Always translate iff
751 Vkeyboard_translate_table is a char table and c is valid.
752
753 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
754 and fix C types.
755
7e16ef60
SM
7562002-11-03 Stefan Monnier <monnier@cs.yale.edu>
757
266b4e3a
SM
758 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
759
760 * editfns.c (get_pos_property): Don't hardcode Qfield.
761
7e16ef60
SM
762 * keyboard.c (adjust_point_for_property): Handle `display' prop on
763 overlays. Also handle `invisible' prop.
764
7652002-11-02 Stefan Monnier <monnier@cs.yale.edu>
766
767 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
768 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
769
304f1f12
AS
7702002-11-01 Andreas Schwab <schwab@suse.de>
771
2c568af5 772 * editfns.c (Fmessage): Revert last change to properly handle %%.
304f1f12 773
86fad4ec
SM
7742002-11-01 Stefan Monnier <monnier@cs.yale.edu>
775
776 * xmenu.c (unuse_menu_items): New fun.
777 (menu_items_inuse): New var.
778 (syms_of_xmenu): Initialize it.
779 (init_menu_items): Use it to detect re-entrance.
b2b41304 780 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
86fad4ec
SM
781 (Fx_popup_menu): Remove spurious XSETFRAME.
782
783 * editfns.c (find_field): Make an exception for nil fields.
784
97098195
DL
7852002-11-01 Dave Love <fx@gnu.org>
786
787 * m/gec63.h: Deleted.
788
296b9246
DL
7892002-10-31 Dave Love <fx@gnu.org>
790
791 * xterm.c (XTread_socket): Fix last change.
792 (xaw_scroll_callback): Cast call_data to long to avoid warning.
793
8d2ff840
SM
7942002-10-31 Stefan Monnier <monnier@cs.yale.edu>
795
796 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
797
68eb8bd5
SM
7982002-10-30 Stefan Monnier <monnier@cs.yale.edu>
799
800 * editfns.c (overlays_around, get_pos_property): New funs.
801 (find_field): Use them.
802 Also be careful not to modify POS before its last use.
803 (Fmessage): Don't Fformat if there's nothing to format.
804
2baf1bfa
DL
8052002-10-30 Dave Love <fx@gnu.org>
806
807 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
808 [HAVE_PTY_H]; Include pty.h.
809
810 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
811
812 * xterm.c (Qeql): Declare.
813 (Vx_keysym_table): New.
814 (syms_of_xterm): Initialize it.
815 (XTread_socket): Use it. Deal with ASCII keysyms.
816 (XSetIMValues) [HAVE_X11R6]: Prototype.
817
818 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
819 (lispy_kana_keys): Comment out.
820 (make_lispy_event) [XK_kana_A]: Comment out.
68eb8bd5
SM
821 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
822 Fix sprintf call.
2baf1bfa
DL
823
824 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
825 regexp.h change).
826 (TERMINFO, LIBS_TERMCAP): Define.
827
828 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
829 (bcmp): Define conditional on HAVE_BCMP.
830 (NO_SIOCTL_H): Don't define.
831 (TIOCSIGSEND): Don't make conditional on IRIX6.
832
833 * s/sol2-5.h: Don't include strings.h.
834 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
835
836 * s/irix6-0.h (IRIX6): Don't define.
837 (bcopy, bcmp, bzero): Don't undef.
838
839 * s/irix6-5.h: Don't include strings.h.
840 (IRIX6): Don't define.
841 (bcopy, bcmp, bzero): Don't undef.
842
843 * syntax.c (Fforward_comment): Doc fix.
844
e8a32599
KS
8452002-10-29 Kim F. Storm <storm@cua.dk>
846
847 * process.c (Fsignal_process): Allow PROCESS to be specified by
848 name in addition to pid (as integer or string).
849
b37db7b4 8502002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
ce20e03e
JB
851
852 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
b37db7b4 853 environments.
ce20e03e 854
ee7ddec4
KS
8552002-10-27 Kim F. Storm <storm@cua.dk>
856
857 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
858
859 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
860
861 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
862
863 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
864
5ab0ceed
RS
8652002-10-26 Richard M. Stallman <rms@gnu.org>
866
867 * editfns.c (Fformat): Detect invalid format letters for floats.
868
be354eca
KH
8692002-10-25 Kenichi Handa <handa@m17n.org>
870
871 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
872 (x_set_title): Likewise.
873
68c7e82a
JB
8742002-10-25 Juanma Barranquero <lektu@terra.es>
875
876 * macgui.h:
877 * w32gui.h: Remove definition of XColor.
878
879 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
880
7a21b1f0
KS
8812002-10-24 Kim F. Storm <storm@cua.dk>
882
883 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
884 Callers changed (supply dummy arg).
885
886 * lisp.h (get_window_cursor_type): Update prototype.
68c7e82a 887
7a21b1f0
KS
888 * w32term.c (x_display_and_set_cursor): Get active_cursor from
889 get_window_cursor_type to track system caret.
890
9c1e9d54
KS
8912002-10-24 Kim F. Storm <storm@cua.dk>
892
893 * process.c (Fformat_network_address): New function.
894 (syms_of_process): Defsubr it.
895 (list_processes_1): Use it to format :local/:remote address if
896 service/host is not set; before emacs would crash in that case.
897 (Fmake_network_process): Don't use Ffind_operation_coding_system
898 to setup coding system if host or service is not set.
899
e99833ca
JB
9002002-10-23 Juanma Barranquero <lektu@terra.es>
901
902 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
903
904 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
905 COLORREF.
906
907 * macgui.h:
908 * w32gui.h: Add definition of XColor.
909
910 * macfns.c:
911 * w32fns.c:
912 * xfaces.c: Remove definition of XColor.
913
5e8b072b
SM
9142002-10-22 Stefan Monnier <monnier@cs.yale.edu>
915
916 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
917
918 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
919 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
920 window if it is dedicated.
921 (Fshrink_window): Add preserve_before as was done for enlarge_window.
922 (Vspecial_display_function): Update docstring.
923
924 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
925 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
926 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
927
635d2972
SM
9282002-10-21 Stefan Monnier <monnier@cs.yale.edu>
929
930 * casefiddle.c (casify_region): Don't treat a prefix char as part
931 of a word when at the beginning.
932
d9c25020
JB
9332002-10-17 Juanma Barranquero <lektu@terra.es>
934
935 * lread.c (syms_of_lread): Fix typos.
936
519a4a70
DL
9372002-10-17 Dave Love <fx@gnu.org>
938
939 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
940
a8c44e39
RS
9412002-10-16 Richard M. Stallman <rms@gnu.org>
942
943 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
944
41a48e45
JB
9452002-10-14 Juanma Barranquero <lektu@terra.es>
946
947 * w16select.c (syms_of_win16select): Fix docstring for
948 `selection-coding-system'.
949
950 * w32select.c (syms_of_w32select): Likewise.
951
240c43e8
SM
9522002-10-14 Stefan Monnier <monnier@cs.yale.edu>
953
954 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
955 a backslash-quoted char.
956 (scan_lists, scan_sexps_forward): Pacify the compiler.
957
411df82f
RS
9582002-10-13 Richard M. Stallman <rms@gnu.org>
959
960 * window.c (window_scroll): Set immediate_quit.
961
962 * print.c (print): When backquote form is the car of a list,
963 output in old style. Use old_backquote_output to output all
964 comma forms inside it in old style too.
965
966 * buffer.h (struct buffer): Move `undo_list' down below `name'.
967
d77b70e5
MR
9682002-10-11 Markus Rost <rost@math.ohio-state.edu>
969
970 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
971 batch mode).
972
973 * lread.c (Fload): Doc fix (load-suffixes).
974
d6abf018
ST
9752002-10-10 Steven Tamm <steventamm@mac.com>
976
240c43e8
SM
977 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
978 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
979 Also switch the default to Qnil from Qt.
d6abf018 980
9793be06
KH
9812002-10-08 Kenichi Handa <handa@m17n.org>
982
983 * coding.c (code_convert_region): When we need more GAP for
984 conversion, pay attention to the case that coding->produced is not
985 greater than coding->consumed.
986
4d46d6da
RS
9872002-10-07 Richard M. Stallman <rms@gnu.org>
988
989 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
990
95fb7577
AC
9912002-10-06 Andrew Choi <akochoi@shaw.ca>
992
993 * macmenu.c (mac_menu_show): Add j to count menu items; match
994 menu_item_selection to it to find selected item.
995
f7d43438
JD
9962002-10-06 Jan D. <jan.h.d@swipnet.se>
997
998 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
999 cases. The correct fix is to pass ReparentNotify to Xt.
1000 The shell widget interprets ConfigureNotify differently depending
1001 on if it has been reparented or not.
1002
a67a233b
MR
10032002-10-05 Markus Rost <rost@math.ohio-state.edu>
1004
1005 * editfns.c (Fformat_time_string): Doc fix.
1006
f5965ada
JPW
10072002-10-05 John Paul Wallington <jpw@shootybangbang.com>
1008
1009 * fns.c (Flength): Doc fix.
1010
8d2ff840
SM
10112002-10-04 Stefan Monnier <monnier@cs.yale.edu>
1012
1013 * keyboard.c (keyremap): New struct.
1014 (read_key_sequence): Use it: globally replace keytran_foo with
1015 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
1016 keytran_next and fkey_next to just `next'.
1017
e989b9bc
ST
10182002-10-04 Steven Tamm <steventamm@mac.com>
1019
240c43e8 1020 * macterm.c (keycode_to_xkeysym_table): Change return to be
8d2ff840 1021 treated like an X keysym.
e989b9bc 1022
03318838
JD
10232002-10-03 Jan D. <jan.h.d@swipnet.se>
1024
1025 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
1026 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
1027 This is to also handle x/y changes that occur because of a resize.
1028
cd1d850f
JPW
10292002-10-02 John Paul Wallington <jpw@shootybangbang.com>
1030
1031 * frame.c (Vdelete_frame_functions): New variable.
1032 (syms_of_frame): Initialize and defvar it.
1033 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
1034 it when frame's `tooltip' parameter is non-nil.
1035
1036 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
1037
f5965ada 1038 * w32fns.c (x_create_tip_frame): Likewise.
cd1d850f
JPW
1039
1040 * macfns.c (x_create_tip_frame): Likewise.
1041
5039407b
KH
10422002-09-30 Kenichi Handa <handa@m17n.org>
1043
1044 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
1045 -1 before calling ccl_driver.
1046
1047 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
1048 Only when it is non-nil, handle composition sequence.
1049 (setup_coding_system) <0>: Don't force composition handling.
1050
1051 * Makefile.in (lisp, shortlisp): Add utf-16.elc
1052
aac2d8b2
RS
10532002-09-29 Richard M. Stallman <rms@gnu.org>
1054
7058ef34
RS
1055 * search.c (Freplace_match): Adjust match data for the substitution
1056 just made in the buffer.
1057
aac2d8b2
RS
1058 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
1059 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
1060
10612002-09-27 Richard M. Stallman <rms@gnu.org>
1062
1063 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
1064 (read_char): Use them. Do all exits thru the end of the function.
1065
e21880c6
KH
10662002-09-27 Kenichi Handa <handa@etl.go.jp>
1067
1068 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
1069 is nil.
1070
563c037f
RS
10712002-09-26 Richard M. Stallman <rms@gnu.org>
1072
1073 * regex.h (__restrict_arr): Don't define if already defined.
1074
1075 * coding.c (run_pre_post_conversion_on_str):
1076 Save and restore Vdeactivate_mark.
1077
6d1b1d7b
JPW
10782002-09-26 John Paul Wallington <jpw@shootybangbang.com>
1079
1080 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
1081
54580ab2
KH
10822002-09-26 Kenichi Handa <handa@etl.go.jp>
1083
1084 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
240c43e8 1085 nonzero, try face's family at first. Otherwise try FAMILY at first.
54580ab2
KH
1086 (choose_face_font): If C is a single byte char or latin-1, call
1087 try_font_list with PREFER_FACE_FAMILY 1.
1088
282f7831
RS
10892002-09-21 Richard M. Stallman <rms@gnu.org>
1090
1091 * window.c (select_window_1): Don't select frame.
1092 Set frame's selected window only when frame itself is selected.
1093 (Fselect_window): Doc fix.
1094
454d0d5e
KS
10952002-09-18 Kim F. Storm <storm@cua.dk>
1096
1097 * process.c (make-network-process): Doc fix (there is no
1098 network-server-log-function hook).
1099
3116d142
RS
11002002-09-18 Richard M. Stallman <rms@gnu.org>
1101
1102 * print.c (print): Clear out the unused parts of Vprint_number_table.
1103 (syms_of_print): Doc fix for `print-number-table'.
1104
1105 * unexelf.c (unexec): Undo previous change.
1106
99d85a90
AS
11072002-09-17 Andreas Schwab <schwab@suse.de>
1108
1109 * m/alpha.h [LINUX]: Don't define DATA_START.
1110
c721078e
RS
11112002-09-16 Dave Love <fx@gnu.org>
1112
1113 * unexelf.c (unexec): Deal with .got, reinstating change from
1114 25-08-1999.
1115
95fb966a
RS
11162002-09-13 Richard M. Stallman <rms@gnu.org>
1117
1118 * s/sol2-6.h (UNEXEC): Comment out definition.
1119
1120 * unexsol.c (unexec): Don't downcase first letter of error msg.
1121
1122 * xfaces.c (Fcolor_supported_p): Just one arg is required.
1123
6c009b5b
MR
11242002-09-12 Markus Rost <rost@math.ohio-state.edu>
1125
1126 * unexsol.c: Include buffer.h, charset.h, coding.h.
1127
7c3cb37d
RS
11282002-09-11 Richard M. Stallman <rms@gnu.org>
1129
1130 * unexsol.c: Don't use report_file_error; do it by hand
1131 using dlerror.
1132
1133 * process.c (wait_reading_process_input, both versions):
1134 Before calling turn_on_atimers, call stop_polling.
1135
1136 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
1137
1138 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
1139 we go to too_near_end, call clear_glyph_matrix.
1140 (redisplay_window): After make_cursor_line_fully_visible,
1141 call clear_glyph_matrix and bypass `goto done'.
1142
1143 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
1144 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
1145
f95c03c6
RS
11462002-09-10 Richard M. Stallman <rms@gnu.org>
1147
1148 * fileio.c (Fdo_auto_save): Catch error making directory.
1149 Only call push_message if we need to.
1150 At the same time, make an unwind-protect to pop it.
1151 Rename local message_p to old_message_p.
1152 (do_auto_save_make_dir, do_auto_save_eh): New functions.
1153 (do_auto_save_unwind): Don't call pop_message.
1154
1155 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
1156
1157 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
1158
1159 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
1160
1161 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
1162
0a28e1ca
SM
11632002-09-10 Stefan Monnier <monnier@cs.yale.edu>
1164
1165 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
1166 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
1167 (re_match_2_internal): Be more careful with infinite loops.
1168
e00a1361 11692002-09-10 Kim F. Storm <storm@cua.dk>
2bbfbf25
KS
1170
1171 * macros.c (end_kbd_macro): New function.
1172 (Fend_kbd_macro): Use it.
1173
1174 * macros.h (end_kbd_macro): Declare extern.
1175
1176 * keyboard.c (Fdiscard_input): If defining keyboard macro,
1177 end and save it instead of discarding it.
1178
e986c175
MR
11792002-09-09 Markus Rost <rost@math.ohio-state.edu>
1180
1181 * s/sol2-6.h: Fix typo. Add comment.
1182
50332dc1
RS
11832002-09-09 Richard M. Stallman <rms@gnu.org>
1184
1185 * regex.c (regnum_t): Use signed int, not unsigned int.
1186
1187 * s/sol2-6.h: New file.
1188
1189 * s/sol2-5.h (UNEXEC): Definition deleted.
1190
de8e3806
KS
11912002-09-08 Kim F. Storm <storm@cua.dk>
1192
1193 * macros.c (executing_macro_index): Change type to EMACS_INT.
1194 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
1195
1196 * macros.h (executing_macro_index): Change type to EMACS_INT.
0a28e1ca 1197
426f6c23
RS
11982002-09-06 Richard M. Stallman <rms@gnu.org>
1199
1200 * casetab.c (set_case_table): Make canon table point to eqv table.
1201
f8f8d464
JB
12022002-09-06 Juanma Barranquero <lektu@terra.es>
1203
1204 * coding.c (syms_of_coding): Fix spacing.
1205
1206 * composite.c (Fcompose_region_internal)
1207 (Fcompose_string_internal): Likewise.
1208
1209 * data.c (Flsh): Likewise.
1210
1211 * fontset.c (Fset_fontset_font): Likewise.
1212
1213 * macfns.c (Fx_server_max_request_size): Likewise.
1214
1215 * w16select.c (syms_of_win16select): Likewise.
1216
1217 * w32select.c (syms_of_w32select): Likewise.
1218
1219 * xselect.c (syms_of_xselect): Likewise.
1220
b7c12565
RS
12212002-09-05 Richard M. Stallman <rms@gnu.org>
1222
1223 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
1224 call EXTEND_RANGE_TABLE and return a proper value.
1225 (set_image_of_range): Don't call set_image_of_range_1
1226 if no TRANSLATE or if range includes all of Latin-1.
1227 Only call it for the Latin-1 part of the range.
1228 For other cases, make two separate ranges,
1229 one for the original specified characters and one for
1230 their case-conversions.
1231
4d8da98b
RS
12322002-09-04 Richard M. Stallman <rms@gnu.org>
1233
1234 * s/sol2-5.h (UNEXEC): Use unexsol.o.
1235
1236 * window.c (displayed_window_lines): Correct for one-off bug
1237 in HEIGHT on non-window displays.
1238
1239 * regex.c (set_image_of_range_1): New function.
1240 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
1241 Return a value to indicate running out of memory.
1242 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
1243 (extend_range_table_work_area): New subroutine.
1244 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
1245 Different calling conventions, and used from set_image_of_range{,_1}.
1246 (IMMEDIATE_QUIT_CHECK): Definitions moved.
1247
6218196f
JB
12482002-09-04 Juanma Barranquero <lektu@terra.es>
1249
1250 * makefile.w32-in: All dependencies updated.
1251
dfe15ea3
RS
12522002-09-01 Richard M. Stallman <rms@gnu.org>
1253
69506e67
RS
1254 * unexsol.c: New file.
1255
1256 * xfns.c (Qbox): Declare external, don't define.
1257
1258 * xdisp.c (redisplay_window) <force-start case>:
1259 If point is on semi-visible last line, reposition
1260 it at previous line.
1261
dfe15ea3
RS
1262 * alloc.c (display_malloc_warning): Use display-warning.
1263 (malloc_warning_1): Function deleted.
1264
1265 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
1266
1267 * lread.c (read1): Handle #! by skipping the line.
1268
12692002-08-31 Richard M. Stallman <rms@gnu.org>
1270
1271 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
1272 Don't include LDFLAGS.
1273 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
1274
97acc803
EZ
12752002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
1276
1277 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
1278 member of x_display_info unless we compile for some window system.
1279
e0f7b1a8
KS
12802002-08-31 Kim F. Storm <storm@cua.dk>
1281
1282 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
1283 (get_window_cursor_type): Don't use them.
1284 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
1285
a30c876a
KH
12862002-08-30 Kenichi Handa <handa@etl.go.jp>
1287
1288 * xdisp.c (get_next_display_element): Fix previous change.
1289
e2d9d8a1
AC
12902002-08-30 Andrew Choi <akochoi@shaw.ca>
1291
2c568af5 1292 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
ca45961d
AC
1293 (expose_window): Use it to fix the display of overlapping
1294 rows (merge code from xterm.c).
1295
e2d9d8a1
AC
1296 * macfns.c (Qbox): Add extern declaration.
1297
842a9389
JB
12982002-08-30 Juanma Barranquero <lektu@terra.es>
1299
ab0bb234
JB
1300 * w32fns.c (Qbox): Make extern.
1301 (syms_of_w32fns): Remove initialization of Qbox.
1302
b37db7b4
JB
13032002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
1304
1305 * xfns.c (Fx_open_connection): Fix error message.
842a9389 1306
654d5b91
KS
13072002-08-30 Kim F. Storm <storm@cua.dk>
1308
1309 The following changes consolidates the handling of the cursor
1310 type in xdisp.c, moving duplicate code and functionality from
1311 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
1312
1313 * frame.h (enum text_cursor_kinds): Consolidated here.
1314 Added DEFAULT_CURSOR value.
1315 (struct frame) <desired_cursor, cursor_width>
1316 <blink_off_cursor, blink_off_cursor_width>: New fields.
1317 Consolidated from output_x, output_w32 and output_mac structs.
1318 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
1319 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
1320
1321 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
1322 Variables consolidated here.
1323 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
1324 (Vcursor_in_non_selected_windows): Renamed from
1325 cursor_in_non_selected_windows and changed to Lisp_Object.
1326 (syms_of_xdisp): Define and staticpro new and moved variables.
1327 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
1328 consolidated here. Recognize Qhollow setting.
1329 (set_frame_cursor_types): New function to set frame cursor types
1330 based on the frame parameters.
1331 (get_window_cursor_type): New function to calculate new cursor
1332 type and width for the specified window. Based on duplicated
1333 code consolidated here.
1334 Enhancements: cursor-in-non-selected-windows may be a cursor type,
1335 check buffer-local alternate-cursor-type and blink-cursor-alist
1336 before using built-in blink off methods.
1337
1338 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
1339
1340 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
1341 (get_specified_cursor_type, get_window_cursor_type)
1342 (set_frame_cursor_types): Added prototypes.
1343
1344 * macfns.c (x_specified_cursor_type): Removed.
1345 (x_set_cursor_type): Use set_frame_cursor_types.
c76654a2
KS
1346 (Qbar, Qbox): Removed.
1347 (syms_of_macfns): Don't intern or staticpro them.
842a9389 1348
654d5b91
KS
1349 * macterm.c (x_specified_cursor_type): Remove prototype.
1350 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
1351 (x_display_and_set_cursor): Use get_window_cursor_type.
1352 Remove unused local variables cursor_non_selected, active_cursor.
1353 Redraw cursor if hbar cursor width changes.
1354 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
1355
1356 * macterm.h (enum text_cursor_kinds): Removed.
1357 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
1358 <blink_off_cursor, blink_off_cursor_width>: Members removed.
1359 (FRAME_DESIRED_CURSOR): Macro removed.
842a9389 1360
654d5b91
KS
1361 * w32fns.c (Vblink_cursor_alist): Removed.
1362 (Qbar, Qhbar, Qbox, Qhollow): Removed.
1363 (syms_of_w32fns): Don't intern, staticpro, or define them.
1364 (x_specified_cursor_type): Removed.
1365 (x_set_cursor_type): Use set_frame_cursor_types.
1366
1367 * w32term.c (x_specified_cursor_type): Remove prototype.
1368 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
1369 (x_display_and_set_cursor): Use get_window_cursor_type.
1370 Remove unused local variables cursor_off_state.
1371 Redraw cursor if hbar cursor width changes.
6b3acc48 1372 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
842a9389 1373
654d5b91
KS
1374 * w32term.h (enum text_cursor_kinds): Removed.
1375 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
1376 <blink_off_cursor, blink_off_cursor_width>: Members removed.
1377 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
1378 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
6b3acc48
KS
1379 (struct w32_display_info) <x_highlight_frame>: Renamed member from
1380 w32_highlight_frame.
842a9389 1381
654d5b91
KS
1382 * xfns.c (Vblink_cursor_alist): Removed.
1383 (Qbar, Qhbar, Qbox, Qhollow): Removed.
1384 (syms_of_xfns): Don't intern, staticpro, or define them.
1385 (x_specified_cursor_type): Removed.
1386 (x_set_cursor_type): Use set_frame_cursor_types.
1387
1388 * xterm.c (x_specified_cursor_type): Remove prototype.
1389 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
1390 (x_display_and_set_cursor): Use get_window_cursor_type.
1391 Remove unused local variables cursor_off_state.
1392 Redraw cursor if hbar cursor width changes.
1393
1394 * xterm.h (enum text_cursor_kinds): Removed.
1395 (struct output_x) <current_cursor, desired_cursor, cursor_width>
1396 <blink_off_cursor, blink_off_cursor_width>: Members removed.
1397 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
1398 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
1399 (x_specified_cursor_type): Remove prototype.
842a9389 1400
a007b9d2
RS
14012002-08-28 Richard M. Stallman <rms@gnu.org>
1402
1403 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
1404 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
1405 (Vblink_cursor_alist): New variable.
1406 (syms_of_w32fns): Initialize and defvar it.
1407 (x_specified_cursor_type): Recognize Qbox for filled box.
1408 Exceptions are hollow boxes.
1409 (Qbox, Qhollow): New variables.
1410 (syms_of_w32fns): Initialize and staticpro them.
1411
1412 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
1413 New macros.
2c568af5
SM
1414 (struct w32_output): New fields blink_off_cursor,
1415 blink_off_cursor_width.
a007b9d2
RS
1416 (FRAME_CURSOR_WIDTH): New macro.
1417
1418 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
1419 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
1420
1421 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
1422 for bar cursor.
1423
1424 * w32term.c (expose_overlaps): New function.
1425 (expose_window): Use it to fix the display of overlapping rows.
1426
2dc520b6
SJ
14272002-08-28 Simon Josefsson <jas@extundo.com>
1428
1429 * xfns.c (Fx_open_connection): Improve help when X connection
1430 fails, xhost is insecure and xauth is better.
1431
402b32b5
JB
14322002-08-28 Juanma Barranquero <lektu@terra.es>
1433
a821edb8
JB
1434 * makefile.w32-in: Add missing dependencies on w32term.h and
1435 composite.h.
1436
402b32b5
JB
1437 * emacs.c (USAGE1): Add missing newline.
1438
ad8d730c
AC
14392002-08-27 Andrew Choi <akochoi@shaw.ca>
1440
1441 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
1442
6e910e07
RS
14432002-08-27 Richard M. Stallman <rms@gnu.org>
1444
1445 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
1446 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
1447 (Vblink_cursor_alist): New variable.
1448 (syms_of_xfns): Initialize and defvar it.
1449 (x_specified_cursor_type): Recognize Qbox for filled box.
1450 Exceptions are hollow boxes.
1451 (Qbox, Qhollow): New variables.
1452 (syms_of_xfns): Initialize and staticpro them.
1453
1454 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
1455 New macros.
1456 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
402b32b5 1457
6e910e07
RS
1458 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
1459 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
1460
1461 * emacs.c (main): Handle --script.
1462 (USAGE1): Mention --script.
1463 (standard_args): Define sort order for --script.
1464
14652002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
1466
1467 * xdisp.c (redisplay_updating_p): Variable removed.
2c568af5
SM
1468 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
1469 New variables.
6e910e07
RS
1470 (init_iterator): Don't free realized faces if
1471 inhibit_free_realized_faces is set.
1472 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
1473 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
1474 initialize Qinhibit_free_realized_faces.
1475
1476 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
1477 when iterator is adding glyphs to a glyph matrix.
1478
456c80d6
KH
14792002-08-27 Kenichi Handa <handa@etl.go.jp>
1480
1481 * xdisp.c (get_next_display_element): In unibyte case, don't use
1482 octal form for such eight-bit characters that can be converted to
1483 multibyte char.
1484
6bc85c3b
KS
14852002-08-26 Kim F. Storm <storm@cua.dk>
1486
2c568af5
SM
1487 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
1488 and background colors. From Joe Buehler (tiny change).
6bc85c3b 1489
f49656ec
MB
14902002-08-26 Miles Bader <miles@gnu.org>
1491
1492 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
1493
19580e2c
AC
14942002-08-25 Andrew Choi <akochoi@shaw.ca>
1495
a6311b2f
AC
1496 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
1497 defined instead of MAC_OSX.
1498
1499 * s/darwin.h (select): Define select to sys_select only if
1500 HAVE_CARBON is defined.
1501 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
5cb724f0 1502 (DONT_REOPEN_PTY): #def it.
402b32b5 1503
19580e2c
AC
1504 * macterm.c (XTread_socket): Remove code to call
1505 SendEventToEventTarget for keys with command modifiers when
1506 mac_command_key_is_meta is nil.
1507
addf35fd
AS
15082002-08-24 Andreas Schwab <schwab@suse.de>
1509
1510 * eval.c (Fdefvar): Fix last change.
1511
729d9038
RS
15122002-08-23 Richard M. Stallman <rms@gnu.org>
1513
1514 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
1515 Record variables in load history as (defvar . VAR).
1516 (Fdefvar): Don't record in load history if no initial value.
1517 (Qdefvar): New variable.
1518 (syms_of_eval): Init and staticpro it.
1519
1520 * lread.c (syms_of_lread): Doc fix.
1521 (build_load_history): Use Fmember to see if a definition
1522 is already in the Vload_history element.
1523
1524 * process.c (Fstart_process): Remove /: from program name.
1525
1526 * emacs.c (decode_env_path): Don't add /: if file name handler
1527 has a `safe-magic' property.
1528
1529 * callproc.c (Fcall_process): Remove /: from program name.
1530
36595814
SM
15312002-08-23 Stefan Monnier <monnier@cs.yale.edu>
1532
1533 * regex.c (PATFETCH): Remove the translating fetch.
1534 (PATFETCH_RAW): Rename to PATFETCH.
1535 (set_image_of_range): New fun.
1536 (SET_RANGE_TABLE_WORK_AREA): Use it.
1537 (regex_compile): Don't translate the pattern chars so eagerly.
1538 Only do it when inserting an `exactn' bytecode or when handling
1539 a char-range.
1540 (mutually_exclusive_p): Avoid empty statement.
1541
f92ae6be
KS
15422002-08-22 Kim F. Storm <storm@cua.dk>
1543
1544 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
1545 end up on a partially visible line; this reverts a specific part
1546 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
1547 display error which has been reported several times now.
1548 However it introduces the problem that changes was supposed to fix.
1549 See my comments in the source if you want to debug this further.
1550
9bbe0341
KH
15512002-08-20 Kenichi Handa <handa@etl.go.jp>
1552
1553 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
1554
100c44b7
EZ
15552002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
1556
aac06fd4
EZ
1557 * msdos.c (croak): Add `void' to definition.
1558
92b304ac
RS
1559 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
1560 Don't define them, they are defined in msdos.c.
feb67dfe 1561
a8c1733b
EZ
1562 * mem-limits.h [MSDOS]: Declare etext.
1563
100c44b7
EZ
1564 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
1565 `const' since CORRECT_DIR_SEPS modifies its target.
1566
dec7e302
KS
15672002-08-19 Kim F. Storm <storm@cua.dk>
1568
1569 * keyboard.c (Fclear_this_command_keys): Added optional arg
1570 KEEP-RECORD to avoid clearing lossage when we just want to clear
1571 the current key sequence (kmacro needs this).
1572
775b3d2d
KH
15732002-08-19 Kenichi Handa <handa@localhost>
1574
2c568af5 1575 * composite.c (run_composition_function): Call FUNC if it is fboundp.
775b3d2d
KH
1576
1577 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
1578 cons, return Qnil.
1579
c387c986
RS
15802002-08-17 Richard M. Stallman <rms@gnu.org>
1581
1582 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
1583
1584 * sysdep.c [!VMS]: Include sys/files.h.
1585
1586 * editfns.c (save_restriction_restore): Defend from unchained marker.
1587
1588 * buffer.c (overlays_at): Handle extending vec uniformly.
1589 (overlays_in): Handle extending vec from length 0 as in overlays_at.
1590
1000788b
AC
15912002-08-15 Andrew Choi <akochoi@shaw.ca>
1592
1593 * mac.c (init_mac_osx_environment): New function.
1594
1595 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
1596
82802164
KS
15972002-08-14 Kim F. Storm <storm@cua.dk>
1598
1599 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
1600 executing macro before appending to it (when used from Lisp).
1601 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
1602 which is called prior to each iteration of macro (for kmacro.el).
1603 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
1604
1605 * lisp.h (Fexecute_kbd_macro): Update prototype.
1606
1607 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
402b32b5 1608
13a45e6c
KH
16092002-08-14 Kenichi Handa <handa@etl.go.jp>
1610
1611 * xselect.c (QUTF8_STRING): New variable.
1612 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
1613 (x_atom_to_symbol): Likewise.
1614 (x_get_local_selection): New argument local_request. If it is
1615 nonzero, call handler_fn with the second arg nil.
1616 (x_handle_selection_request): Call x_get_local_selection with
1617 local_request 0.
1618 (lisp_data_to_selection_data): Don't encode the string here.
1619 (Fx_get_selection_internal): Call x_get_local_selection with
1620 local_request 1.
1621 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
1622
1623 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
1624
1625 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
1626
79fab26b
RS
16272002-08-13 Richard M. Stallman <rms@gnu.org>
1628
1629 * minibuf.c (Fminibufferp): New function.
1630 (syms_of_minibuf): Defsubr it.
1631 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
1632
96d2e64d
GM
16332002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
1634
1635 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
1636
450565cb
RS
16372002-08-12 Richard M. Stallman <rms@gnu.org>
1638
1639 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
402b32b5 1640 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
450565cb
RS
1641 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
1642 already.
1643
1644 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
1645
5883787c
AC
16462002-08-11 Andrew Choi <akochoi@shaw.ca>
1647
1648 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
1649 (Vmac_pass_command_to_system): New variable.
1650 (Vmac_pass_control_to_system): New variable.
1651 (do_mouse_moved): Check wp with is_emacs_window.
2c568af5
SM
1652 (XTread_socket): Check window_ptr with is_emacs_window.
1653 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
5883787c
AC
1654 events back to Mac Toolbox for processing, depending on values of
1655 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
1656 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
1657 Vmac_pass_control_to_system.
1658
054e62ae
KH
16592002-08-10 Kenichi Handa <handa@etl.go.jp>
1660
1661 * coding.c (unencodable_char_position): New function.
1662 (Funencodable_char_position): New function.
1663 (syms_of_coding): Defsubr Funencodable_char_position.
1664
8030369c
AC
16652002-08-10 Andrew Choi <akochoi@shaw.ca>
1666
1667 * mac.c (sys_select) [MAC_OSX]: New function.
1668
1669 * macterm.c (MakeMeTheFrontProcess): New function.
1670 (mac_initialize): Call MakeMeTheFrontProcess.
1671
1672 * s/darwin.h: Define select to sys_select.
1673
1e7c162f
RS
16742002-08-09 Richard M. Stallman <rms@gnu.org>
1675
1676 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
1677
d43be70c
GM
16782002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
1679
1680 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
1681 end of the buffer.
1682
d90ed3b4
KR
16832002-08-08 Ken Raeburn <raeburn@mit.edu>
1684
2c568af5 1685 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
d90ed3b4 1686
b177738e
KR
1687 * puresize.h (BASE_PURESIZE): Increase to 910000.
1688
b12a8058
KH
16892002-08-08 Kenichi Handa <handa@etl.go.jp>
1690
1691 * coding.c (Ffind_operation_coding_system): For write-region, if
1692 VISIT is a filename, make it the target.
1693
46e3984f
RS
16942002-08-07 Richard M. Stallman <rms@gnu.org>
1695
1696 * alloc.c (mark_object): Detect long lists for debugging.
1697 (mark_object_loop_halt): New variable.
1698
1699 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
1700
1701 * data.c (Fmake_variable_frame_local): Doc fix.
1702
86d98c33
RS
17032002-08-01 David Ponce <david@dponce.com>
1704
1705 * w32menu.c (local_heap, local_alloc, local_free): New macros.
1706 (malloc_widget_value, free_widget_value)
1707 (w32_free_submenu_strings): Use them.
1708
1709 (push_submenu_start, push_submenu_end, push_left_right_boundary)
1710 (push_menu_pane, push_menu_item, single_keymap_panes)
1711 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
1712 (single_submenu, set_frame_menubar)
1713 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
1714
6c465a15 1715 (Fx_popup_menu): Don't show pop up menu until preceding one is
86d98c33
RS
1716 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
1717
1718 * w32menu.c: Changes adapted from xmenu.c
1719 (set_frame_menubar): First parse all submenus,
1720 then make widget_value trees from them.
1721 Don't allocate any widget_value objects
1722 until we are done with the parsing.
1723 (parse_single_submenu): New function.
1724 (digest_single_submenu): New function.
1725 (single_submenu): Function deleted, replaced by those two.
1726
44fab9c1
AC
17272002-08-04 Andrew Choi <akochoi@shaw.ca>
1728
1729 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
1730 returns a valid window pointer before proceeding for keyDown and
1731 autoKey events.
1732
742fbed7
AC
17332002-08-03 Andrew Choi <akochoi@shaw.ca>
1734
1735 * macterm.c (USE_CARBON_EVENTS): New macro.
1736 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
1737 (x_iconify_frame): Call CollapseWindow.
1738 (Vmac_reverse_ctrl_meta): New variable.
1739 (Vmac_wheel_button_is_mouse_2): New variable.
1740 (init_mac_drag_n_drop): New function.
1741 (mac_do_receive_drag): New function.
1742 (mac_handle_service_event): New function.
1743 (init_service_handler): New function.
1744 (mac_to_emacs_modifiers): New function.
1745 (mac_event_to_emacs_modifiers): New function.
1746 (mac_get_mouse_btn): New function.
1747 (mac_convert_event_ref): New function.
1748 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
1749 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
1750 mac_get_mouse_btn.
2c568af5 1751 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
742fbed7
AC
1752
1753 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
1754 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
1755 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
1756 TOOL_BAR_EVENT for MAC_OS as well.
1757 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
1758 as for WINDOWS_NT.
1759 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
1760
2c568af5 1761 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
402b32b5 1762
db0bb807
GM
17632002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
1764
1765 * xdisp.c (forward_to_next_line_start): Fix a condition that
1766 lead to a newline being skipped.
1767
36426689
AC
17682002-08-02 Andrew Choi <akochoi@shaw.ca>
1769
1770 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
1771
ad44f2a1
RS
17722002-08-01 Richard M. Stallman <rms@gnu.org>
1773
1774 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
1775
9794a8cd
AC
17762002-07-31 Andrew Choi <akochoi@shaw.ca>
1777
41428ec4
AC
1778 * macfns.c: #undef init_process before #define-ing it.
1779
9794a8cd
AC
1780 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
1781 HAVE_CARBON is defined.
1782
ced89c24
RS
17832002-07-31 Richard M. Stallman <rms@gnu.org>
1784
1785 * xmenu.c (set_frame_menubar): First parse all submenus,
1786 then make widget_value trees from them.
1787 Don't allocate any widget_value objects
1788 until we are done with the parsing.
1789 (parse_single_submenu): New function.
1790 (digest_single_submenu): New function.
1791 (single_submenu): Function deleted, replaced by those two.
1792
45de4a6f
JB
17932002-07-30 Juanma Barranquero <lektu@terra.es>
1794
1795 * w32proc.c (syms_of_ntproc): Fix docstring of
1796 `w32-get-true-file-attributes'.
1797
3ea1bfb2
RS
17982002-07-28 Richard M. Stallman <rms@gnu.org>
1799
1800 * s/hpux8.h (HPUX8): Define this before including hpux.h.
1801 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
45de4a6f 1802
3ea1bfb2
RS
1803 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
1804
1805 * keyboard.c (make_lispy_event):
1806 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
1807 Explicitly clear up_modifier in event->modifiers.
1808
01af8a38
RS
18092002-07-27 Richard M. Stallman <rms@gnu.org>
1810
1811 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
1812
1813 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
1814 for bar cursor.
1815
5483cd4e
KH
18162002-07-26 Kenichi Handa <handa@etl.go.jp>
1817
1818 * coding.c (detect_coding_iso2022): While checking a byte sequence
1819 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
1820 it in the normal loop.
1821
acfca545
RS
18222002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
1823
1824 * xterm.c (expose_overlaps): New function.
1825 (expose_window): Use it to fix the display of overlapping rows.
1826
1827 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
1828
be3abfa2
KR
18292002-07-23 Ken Raeburn <raeburn@gnu.org>
1830
1831 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
1832 since it only depends on XUINT.
1833
1834 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
1835 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
1836 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
1837 Macros deleted.
1838
1839 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
1840 its value over other approaches.
1841 * sysdep.c (start_of_data): Don't define the function if a macro
1842 form has been defined.
1843
9a654855
RS
18442002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
1845
1846 * xdisp.c (redisplay_updating_p): New variable.
1847 (init_iterator): Don't free realized faces when
1848 redisplay_updating_p is set.
1849 (redisplay_internal): Set redisplay_updating_p while updating
1850 the display.
1851
6076e561
RS
18522002-07-23 Richard M. Stallman <rms@gnu.org>
1853
1854 * editfns.c (Fmessage): Treat "" like nil.
1855
1d1b6e6a
KH
18562002-07-23 Kenichi Handa <handa@etl.go.jp>
1857
2c568af5
SM
1858 * xdisp.c (face_before_or_after_it_pos):
1859 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
1d1b6e6a 1860
c9a883b8
JB
18612002-07-22 Juanma Barranquero <lektu@terra.es>
1862
2c568af5
SM
1863 * callproc.c (init_callproc) [DOS_NT]:
1864 Initialize Vshared_game_score_directory to nil.
c9a883b8
JB
1865 (syms_of_callproc) [DOS_NT]: Likewise.
1866
72b8c434
RS
18672002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
1868
1869 * xdisp.c (display_line): Replace an abort with xassert.
1870
a8bbe549
RS
18712002-07-21 Richard M. Stallman <rms@gnu.org>
1872
1873 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
1874 and END_UNCHANGED when setting buffer_unchanged_p.
1875 Use current_matrix_up_to_date_p to decide whether to use
1876 try_cursor_movement.
1877
1878 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
1879
1880 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
1881
1882 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
1883 Set to nil if dir does not exist.
1884 (syms_of_callproc): Init unconditionally and simply.
1885
1886 * buffer.c (Fbuffer_list): Doc fix.
1887
bb63c5c9
KR
18882002-07-21 Ken Raeburn <raeburn@gnu.org>
1889
56468649
KR
1890 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
1891
bb63c5c9 1892 * buffer.c (mmap_realloc): When shrinking, make sure number of
3fb7ef6f 1893 pages to unmap is rounded towards zero.
bb63c5c9 1894
4648267b 1895 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
915882da 1896 (XSETINT): Deleted.
4648267b 1897
b0e057bc
KR
1898 * m/att3b.h (XINT): Don't define.
1899 (VALBITS, VALMASK, XTYPE): Deleted.
1900 (DATA_SEG_BITS): Define.
1901 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
1902 ARRAY_MARK_FLAG): Deleted.
1903 (DATA_SEG_BITS): Define.
1904 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
1905 (DATA_SEG_BITS): Define.
1906
56592beb
RS
19072002-07-20 Richard M. Stallman <rms@gnu.org>
1908
1909 * print.c (print_error_message): New args CONTEXT and CALLER.
1910 Calls changed.
45de4a6f 1911
56592beb
RS
1912 * lisp.h (print_error_message): Declare new args.
1913
1914 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
1915 and CONTEXT to print_error_message, don't print them here.
1916 For a Quit, don't use Vsignaling_function.
1917 Call message_log_maybe_newline.
45de4a6f 1918
56592beb
RS
1919 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
1920
19212002-07-20 Kim F. Storm <storm@cua.dk>
1922
1923 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
1924
dffb0c47
KR
19252002-07-19 Ken Raeburn <raeburn@gnu.org>
1926
1927 * bytecode.c (struct byte_stack): Pointers into byte string now
1928 point to const.
1929 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
1930 const.
1931 * charset.h (BCOPY_SHORT): Source pointer now points to const.
1932 * coding.c (encode_eol, detect_coding, detect_eol):
2c568af5
SM
1933 (decode_coding, encode_coding, detect_coding_system):
1934 Source strings now treated as const.
dffb0c47
KR
1935 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
1936 modify Lisp string contents.
1937 * coding.h (decode_coding, encode_coding, detect_coding,
1938 detect_eol): Declarations updated.
1939 * composite.c (compose_chars_in_text): Treat Lisp string contents
1940 as const.
1941 * dispnew.c (safe_bcopy): Source pointer now points to const.
1942 * lisp.h (STRING_COPYIN): New macro.
1943 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
1944 (internal_with_output_to_temp_buffer): Declarations updated.
1945 * print.c (temp_output_buffer_setup):
1946 (internal_with_output_to_temp_buffer): Buffer name argument is now
1947 pointer to const.
1948 * sound.c (struct sound_device): Function pointer field "write"
1949 buffer argument now points to const.
1950 (vox_write): Buffer argument points to const.
1951 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
1952 contents as const.
405ea71c
KR
1953 * sysdep.c (emacs_write): Buffer pointer now const.
1954 * term.c (encode_terminal_code): Buffer pointer now const.
2c568af5 1955 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
dffb0c47 1956 (x_face_list_fonts, x_update_menu_appearance):
2c568af5 1957 (hash_string_case_insensitive): Treat Lisp string contents as const.
dffb0c47 1958
dd8d66ad
JB
19592002-07-19 Juanma Barranquero <lektu@terra.es>
1960
0dac4f85 1961 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
8cfd6446 1962 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
0dac4f85 1963
dd8d66ad
JB
1964 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
1965
1966 * fileio.c (syms_of_fileio): Likewise.
1967
f33f4398
RS
19682002-07-18 Richard M. Stallman <rms@gnu.org>
1969
1970 * data.c (Fdefalias): Doc fix.
1971
f860212e
DL
19722002-07-17 Dave Love <fx@gnu.org>
1973
46f4bf30
DL
1974 * intervals.h (text_property_stickiness): Use P_.
1975
f860212e
DL
1976 * ccl.c: Remove `emacs' conditionals.
1977 (ccl_backtrace_table): Fix size spec.
1978 (ccl_driver): Fix type errors.
1979
674537ea
KR
19802002-07-16 Ken Raeburn <raeburn@gnu.org>
1981
bd66096a
KR
1982 * alloc.c (xstrdup, make_string, make_unibyte_string)
1983 (make_multibyte_string, build_string): String pointer args now
1984 point to const.
1985 * charset.c (find_charset_in_text, c_string_width):
1986 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
1987 * fileio.c (report_file_error):
1988 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
1989 (count_combining_before, count_combining_after, insert_1_both):
1990 (insert, insert_and_inherit, insert_string):
1991 (insert_before_markers, insert_before_markers_and_inherit):
1992 * lread.c (intern, oblookup, hash_string):
1993 * minibuf.c (temp_echo_area_glyphs):
1994 * search.c (fast_c_string_match_ignore_case):
1995 * sysdep.c (emacs_open, set_file_times):
1996 * xfaces.c (xstricmp):
1997 * xdisp.c (store_frame_title, string_char_and_length):
1998 (message_dolog, message2, message2_nolog, set_message): Likewise.
1999 (set_message_1): Cast message string argument to const pointer.
2000 * editfns.c (general_insert_function): Insertion function now
2001 takes pointer to const for input data.
2002 * charset.h (find_charset_in_text, c_string_width):
2003 (parse_str_as_multibyte): Declarations updated.
2004 * dispextern.h (xstricmp): Declaration updated.
2005 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
2006 (count_size_as_multibyte, count_combining_before):
2007 (count_combining_after, insert_1, insert_1_both, message_dolog):
2008 (insert, insert_and_inherit, insert_before_markers)
2009 (insert_before_markers_and_inherit, set_message, message2):
2010 (message2_dolog, build_string, make_string, make_unibyte_string):
2011 (make_multibyte_string, intern, oblookup, report_file_error):
2012 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
2013 (emacs_open, xstrdup): Declarations updated.
2014 * systime.h (set_file_times): Declaration updated.
2015
2016 * charset.c (find_charset_in_text, lisp_string_width): Use const
2017 for pointer to lisp string data.
2018 * charset.h (FETCH_STRING_CHAR_ADVANCE):
2019 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
2020 * coding.c (Ffind_coding_systems_region_interval):
2021 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
2022 (Fmake_directory_internal, Fdelete_directory):
2023 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
2024 * fontset.c (font_family_registry, fs_query_fontset):
2025 (list_fontsets):
2026 * frame.c (Fframe_parameter):
2027 * keyboard.c (cmd_error_internal):
2028 * keymap.c (Fdescribe_buffer_bindings):
2029 * lread.c (complete_filename_p, openp):
2030 * minibuf.c (Fminibuffer_complete_word):
2031 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
2032 (face_before_or_after_it_pos, next_element_from_string):
2033 (get_overlay_arrow_glyph_row, display_mode_element):
2034 (decode_mode_spec_coding):
2035 * xterm.c (same_x_server): Likewise.
2036
943afcc7
KR
2037 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
2038 settings of non-existent fields.
2039
2040 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
2041 copy a lisp value.
2042
2043 * lread.c (Fintern_soft): Use string macros instead of
2044 Lisp_String fields.
1b049b51
KR
2045 * keyboard.c (echo_char, parse_modifiers_uncached):
2046 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
943afcc7
KR
2047 * textprop.c (validate_interval_range, interval_of): Likewise.
2048
36595814 2049 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
9f5348e3 2050
36595814
SM
2051 * charset.h (FETCH_STRING_CHAR_ADVANCE)
2052 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
9f5348e3
KR
2053 XSTRING()->size_byte.
2054
7da167cd
KR
2055 * lisp.h (SDATA, SREF): Produce rvalue.
2056 (SSET): New macro.
2057 * alloc.c (make_event_array): Use SSET for storing into a string.
2058 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
2059 a string.
2060 * casefiddle.c (casify_object): Use SSET.
36595814
SM
2061 * charset.h (FETCH_STRING_CHAR_ADVANCE)
2062 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
7da167cd
KR
2063 address of string contents.
2064 * data.c (Faref): Use SDATA.
2065 (Faset): Use SDATA, SSET.
2066 * dired.c (directory_files_internal): Use SSET.
2067 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
2068 (Fread_file_name): Use SREF, SSET.
2069 * fns.c (concat): Use SSET.
2070 (concat, Fdelete): Use SDATA.
2071 * insdel.c (insert_from_string_1): Use SDATA.
2072 * keyboard.c (Fevent_convert_list): Use SREF.
2073 * lread.c (Fload): Use SDATA, SSET.
2074 * macfns.c (validate_x_resource_name): Use SSET.
2075 * process.c (status_message): Use SSET.
2076 * search.c (wordify): Use SDATA.
2077 (Freplace_match): Use SREF.
2078 * w32fns.c (validate_x_resource_name): Use SSET.
2079 * xfns.c (validate_x_resource_name): Use SSET.
2080 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
674537ea 2081
9ee49ebc
RS
20822002-07-16 Richard M. Stallman <rms@gnu.org>
2083
2084 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
2085
2086 * xdisp.c (reconsider_clip_changes):
2087 Don't test prevent_redisplay_optimizations_p.
2088 (redisplay_internal): Test prevent_redisplay_optimizations_p
2089 along with clip_changed in some cases.
2090 (try_window_id): Likewise.
2091 (redisplay_window): New local var buffer_unchanged_p.
2092
2093 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
2094
2095 * process.c (create_process): Test USG_SUBTTY_WORKS.
2096 (process_send_signal): Clean up handling of GID.
2097 Detect errors in ioctls meant to set GID.
2098
2099 * window.c (temp_output_buffer_show):
2100 Don't set prevent_redisplay_optimizations_p.
2101
d907a3bf
JB
21022002-07-15 Juanma Barranquero <lektu@terra.es>
2103
2104 * eval.c (Fdefvaralias): Add docstring argument.
2105
9056febe
KR
21062002-07-15 Ken Raeburn <raeburn@gnu.org>
2107
2108 * lisp.h (STRING_INTERVALS): Produce rvalue.
2109 (STRING_SET_INTERVALS): New macro.
2110 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
2111 * fns.c (Fstring_as_multibyte): Likewise.
979a8abc
SM
2112 * intervals.c (balance_possible_root_interval, delete_interval)
2113 (create_root_interval, copy_intervals_to_string): Likewise.
9056febe
KR
2114 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
2115 instead of 0.
2116
d5db4077
KR
21172002-07-14 Ken Raeburn <raeburn@gnu.org>
2118
bee91904
KR
2119 * lisp.h (STRING_SET_CHARS): New macro.
2120 (SCHARS, SBYTES): Produce rvalues.
2121 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
2122 * fns.c (concat): Likewise.
2123 * lread.c (read_vector): Likewise.
2124
d5db4077
KR
2125 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
2126 (STRING_SET_UNIBYTE): New macro.
2127 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
2128 length of -1) changed to use STRING_SET_UNIBYTE.
d5db4077
KR
2129 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2130 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
2131 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
2132 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
2133 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
2134 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
2135 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
2136 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
2137 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2138 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
2139 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
2140 STRING_BYTES or indirection changed to SCHARS, SBYTES,
2141 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
2142 unchanged for now.
2143
aae2ce50
KS
21442002-07-13 Kim F. Storm <storm@cua.dk>
2145
2146 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
2147
a8fda945
RS
21482002-07-12 Richard M. Stallman <rms@gnu.org>
2149
32a86c99
RS
2150 * fileio.c (Fwrite_region): Doc fix.
2151
a8fda945
RS
2152 * print.c (print_error_message): Don't handle Vsignaling_function here.
2153
2154 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
2155 (command_loop_1): Avoid certain actions after memory-full error.
2156
2157 * eval.c (Fsignal): Don't call cancel_hourglass.
2158 For a memory-full error, don't call Vsignal_hook_function
2159 and don't set Vsignaling_function.
2160
2161 * process.c (process_send_signal): Add abort call.
2162
35936c5c
MR
21632002-07-11 Markus Rost <rost@math.ohio-state.edu>
2164
2165 * keymap.c (Fkey_binding): Fix typo.
2166
42cec426
RS
21672002-07-11 Richard M. Stallman <rms@gnu.org>
2168
a8fda945
RS
2169 * alloc.c (Vmemory_full): New variable.
2170 (Vmemory_signal_data): Renamed from memory_signal_data.
2171 Uses changed.
2172 (syms_of_alloc): Defvar them.
2173 (memory_full, buffer_memory_full): Set Vmemory_full.
979a8abc 2174
a8fda945
RS
2175 * lisp.h (Vmemory_full): Add declaration.
2176 (current_column, indented_beyond_p): Change declaration.
2177
2178 * indent.c (last_known_column): Declare as double, not float.
2179 (current_column, current_column_1, string_display_width)
2180 (position_indentation): Return `double'.
2181 (indented_beyond_p): Arg `column' is `double'. Callers changed.
979a8abc 2182
a8fda945 2183 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
979a8abc
SM
2184 (back_to_previous_visible_line_start)
2185 (reseat_at_next_visible_line_start, next_element_from_buffer):
a8fda945
RS
2186 Use `double', not `float', when calling indented_beyond_p.
2187
42cec426
RS
2188 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
2189
2190 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
2191
89297f23
JB
21922002-07-11 Juanma Barranquero <lektu@terra.es>
2193
71c5e9bb
JB
2194 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
2195 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
2196 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
2197 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
2198 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
2199 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
89297f23 2200
3cca0d40
JB
22012002-07-10 Juanma Barranquero <lektu@terra.es>
2202
2203 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
2204 changed.
2205
f61cd322
SM
22062002-07-09 Stefan Monnier <monnier@cs.yale.edu>
2207
979a8abc
SM
2208 * data.c (Fdefalias): Add an optional `docstring' argument.
2209 (set_internal, Fsetq_default): Use XCAR/XCDR.
2210
2211 * composite.c (HASH_VALUE, HASH_KEY):
f61cd322
SM
2212 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
2213
282b5fb7
KH
22142002-07-09 Kenichi Handa <handa@etl.go.jp>
2215
2216 * callproc.c (Fcall_process): Fix previous change.
2217
5d733a9c
SM
22182002-07-07 Stefan Monnier <monnier@cs.yale.edu>
2219
2220 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
2221 Add support for hash-tables.
2222 (Ftry_completion): Return t even if the string appears multiple times.
2223
2224 * fns.c (Fnconc): Use XCDR.
2225 (Fprovide): Use CONSP and XCDR.
2226 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
2227 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
2228 (Fmake_hash_table): Accept `:size nil'.
2229 (Fmakehash): Delete: moved to subr.el.
2230 (syms_of_fns): Don't defsubr makehash.
2231
2232 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
2233 (HASH_TABLE_SIZE): Move from fns.c.
2234
af7272b1
RS
22352002-07-07 Richard M. Stallman <rms@gnu.org>
2236
2237 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
2238 Instead just return 0 when there is something to be done.
2239 (try_scrolling): If make_cursor_line_fully_visible returns 0,
2240 retry scrolling as if cursor were off the bottom.
2241 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
2242 return CURSOR_MOVEMENT_MUST_SCROLL.
2243 (redisplay_window): If make_cursor_line_fully_visible returns 0,
2244 go to try_to_scroll.
2245
2246 * buffer.c (Fbuffer_local_value): Store current value into its binding
2247 so we get the up-to-date value for the binding that is loaded.
2248
2249 * eval.c (Fdefmacro): Doc fix.
2250
9406d1d9
DL
22512002-07-05 Dave Love <fx@gnu.org>
2252
2253 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
2254 correctly.
2255
2256 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
2257 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
2258 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
2259 CCL_LookupCharConstTbl.
2260 (syms_of_ccl): Defvar translation-hash-table-vector.
2261
89297f23 22622002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e9b60209
PJ
2263
2264 * xdisp.c: Remove unused variable `face'.
2265
cf9b6656
JB
22662002-07-04 Juanma Barranquero <lektu@terra.es>
2267
2268 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
2269 obsolescence information.
2270
a0f593ff
AC
22712002-07-03 Andrew Choi <akochoi@shaw.ca>
2272
10ba2aec
AC
2273 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
2274 pattern. Search cache first.
2275 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
2276 for Japanese font.
a0f593ff
AC
2277 (XLoadQueryFont): Use it.
2278
64805fb0
RS
22792002-07-02 Richard M. Stallman <rms@gnu.org>
2280
2281 * keymap.c (Fdefine_key): Doc fix.
2282
2283 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
2284
df1890b0
JB
22852002-07-02 Juanma Barranquero <lektu@terra.es>
2286
2287 * keymap.c (syms_of_keymap): Fix typo.
2288
bc21bf11
AC
22892002-07-01 Andrew Choi <akochoi@shaw.ca>
2290
09740ad8
AC
2291 * s/darwin.h: Define POSIX_SIGNALS.
2292
bc21bf11
AC
2293 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
2294 and FSRefMakePath to convert FSSpec returned with Apple Event to
2295 Posix pathname.
5d733a9c
SM
2296 (mac_initialize) [TARGET_API_MAC_CARBON]:
2297 Call init_required_apple_events and disable the `Quit' menu item
bc21bf11
AC
2298 provided automatically by the Carbon Toolbox.
2299
dc976f2c
DL
23002002-07-01 Dave Love <fx@gnu.org>
2301
2302 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
2303 for K&R.
2304
2305 * xterm.c: Fix prototype for K&R.
2306
2307 * term.c (costs_set): Declare static, non-initialized for pcc.
2308
ec962374
RS
23092002-07-01 Richard M. Stallman <rms@gnu.org>
2310
2311 * keyboard.c (timer_last_idleness_start_time): New variable.
2312 (timer_start_idle): Set that.
2313 (read_key_sequence): Use that to reset timer_idleness_start_time
2314 to previous value.
cf9b6656 2315
ec962374
RS
2316 * window.c (Frecenter): With arg, set optional_new_start.
2317
2318 * xdisp.c (redisplay_internal): Make optional_new_start really work.
2319
2320 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
2321 buffer for completion.
2322
c8224325
KR
23232002-06-29 Ken Raeburn <raeburn@gnu.org>
2324
2325 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
2326
20057d52
JD
23272002-06-28 Jan D. <jan.h.d@swipnet.se>
2328
2329 * keyboard.c (readable_filtered_events): New function that filters
2330 FOCUS_IN_EVENT depending on parameter.
2331 (readable_events): Calls readable_filtered_events, not filtering
2332 FOCUS_IN_EVENT.
2333 (get_filtered_input_pending): New function, filtering parameter passed
2334 to readable_filtered_events.
2335 (get_input_pending): Calls get_filtered_input_pending, not filtering
2336 FOCUS_IN_EVENT.
2337 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
2338 FOCUS_IN_EVENT.
2339
2340 * xterm.h (struct x_output): Add focus_state.
2341
2342 * xterm.c (x_focus_changed): New function.
2343 (x_detect_focus_change): New function.
2344 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
2345 EnterNotify and LeaveNotify to track X focus changes.
2346
1aa1cb66
AS
23472002-06-28 Andreas Schwab <schwab@suse.de>
2348
2c568af5 2349 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
1aa1cb66 2350
377408cf
KS
23512002-06-27 Kim F. Storm <storm@cua.dk>
2352
2353 * xdisp.c: (mode_line_string_list, mode_line_string_face)
2354 (mode_line_string_face_prop): New variables.
2355 (store_mode_line_string): New function.
2356 (display_mode_element): Use store_mode_line_string to
2357 add mode-line string elements to mode_line_string_list
2358 when mode_line_string_list is non-nil.
2359 (Fformat_mode_line): Now returns propertized string by
2360 default. New arg NO-PROPS to ignore properties.
2361 (decode_mode_spec): Only add two dashes for %- in propertized
2362 mode-line string.
2363 (syms_of_xdisp): Init and staticpro mode_line_string_list.
cf9b6656 2364
5b62b301
SM
23652002-06-27 Stefan Monnier <monnier@cs.yale.edu>
2366
2367 * minibuf.c (minibuffer_completion_contents): Add return type.
2368
23a3b598
JB
23692002-06-27 Juanma Barranquero <lektu@terra.es>
2370
5b62b301 2371 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23a3b598 2372
7182e608
JB
23732002-06-26 Juanma Barranquero <lektu@terra.es>
2374
2375 * fileio.c (read_file_name_cleanup): Add missing return.
2376
6c488ddb
RS
23772002-06-26 Richard M. Stallman <rms@gnu.org>
2378
8ce9dfc1
RS
2379 * window.c (Frecenter): Don't set force_start flag.
2380
5b62b301 2381 * minibuf.c (do_completion, Fminibuffer_complete_word)
8ce9dfc1
RS
2382 (Fminibuffer_completion_help): Complete just the text before point.
2383 (minibuffer_completion_contents): New function.
2384
6c488ddb
RS
2385 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
2386
2387 * frame.c (frames_bury_buffer): Function deleted.
2388
c2b736ca
MB
23892002-06-25 Miles Bader <miles@gnu.org>
2390
2391 * callint.c (Fcall_interactively): When checking to see if doprnt hit
2392 the end of callint_message, allow for a terminating '\0'.
2393
d0db8f56
JB
23942002-06-24 Juanma Barranquero <lektu@terra.es>
2395
2396 * w32select.c: Include composite.h
2397
f7d05dc4
JB
2398 * w16select.c: Likewise.
2399
24df0f36
KH
24002002-06-24 Kenichi Handa <handa@etl.go.jp>
2401
2402 * callproc.c (Fcall_process): If code detection is necessary,
2403 call detect_coding directly here.
2404
2405 * coding.c (detect_eol): Preserve coding->cmp_data.
2406
2c568af5
SM
2407 * w16select.c (Fw16_get_clipboard_data):
2408 * w32fns.c (w32_to_x_font):
2409 * w32select.c (Fw32_get_clipboard_data):
2410 * xselect.c (selection_data_to_lisp_data):
24df0f36
KH
2411 * xterm.c (XTread_socket): Disable composition handling.
2412
04f13f39
SM
24132002-06-24 Stefan Monnier <monnier@cs.yale.edu>
2414
2415 * print.c (temp_output_buffer_setup): Kill all local variables.
2416
f352c826
SM
24172002-06-22 Stefan Monnier <monnier@cs.yale.edu>
2418
11554bdd
SM
2419 * lread.c (Fread): Remove redundant and imprecise declaration.
2420
2421 * xfns.c (check_x_display_info): Use check_x_frame.
2422
f352c826
SM
2423 * .gdbinit (xprintsym): Use the new `xname' field.
2424 (xsymbol): Use it.
2425
1030b26b
JR
24262002-06-22 Jason Rumney <jasonr@gnu.org>
2427
2428 * w32fns.c (file_dialog_callback): New function.
2429 (Fx_file_dialog): Allow selecting directories as well as files.
2430
bc21bf11 24312002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
29c3cbf0
PJ
2432
2433 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
2434 OpenBSD. Add support for mipseb-*-netbsd* machines.
2435
b432b442
AC
24362002-06-17 Andrew Choi <akochoi@shaw.ca>
2437
2d97ff8c
AC
2438 * macterm.c (mac_scroll_area): Set foreground and backcolor to
2439 black and white before scrolling. Restore frame background and
2440 foreground color after scrolling.
2441 (do_window_update): Call XClearWindow before calling expose_frame.
2442 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
2443 FRAME_FOREGROUND_PIXEL of frame.
f352c826 2444
b432b442
AC
2445 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
2446 test Mac command key as <ALT> key.
2447
f9c0c10f
SM
24482002-06-17 Stefan Monnier <monnier@cs.yale.edu>
2449
65e0fbbf
SM
2450 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
2451
2452 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
2453 Lookup keys in function-key-map immediately so that key-translation-map
2454 can be applied earlier.
2455 Remove function_key_possible and key_translation_possible, replaced
2456 by checking `keytran_start < t'.
2457
f352c826 2458 * .gdbinit (xsymbol): Use the new `xname' field.
f9c0c10f 2459
84c0c2cc
AC
24602002-06-17 Andrew Choi <akochoi@shaw.ca>
2461
b432b442
AC
2462 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
2463 test Mac command key as <ALT> key.
2464
84c0c2cc 2465 * mac.c (do_applescript): Call initialize_applescript if necessary
f9c0c10f 2466 when first called. Dispose of result_desc only when there is no error.
84c0c2cc 2467 (Fdo_applescript): Use %d format specifier instead of %ld.
f9c0c10f 2468
f00691a3
AC
24692002-06-16 Andrew Choi <akochoi@shaw.ca>
2470
b6cce0b7
AC
2471 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
2472 of FrontWindow for cases keyDown and autoKey.
2473
f00691a3
AC
2474 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
2475 Vdefault_fontset to Monaco with mac-roman coding.
2476
2477 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
2478 init_process before and after inclusion of Carbon/Carbon.h, resp.
2479
2480 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
2481 cursor_gc.
2482 (add_font_name_table_entry): New function.
2483 (init_font_name_table): Use add_font_name_table_entry; add italic,
2484 bold, and bold-italic entries for truetype fonts.
2485
2486 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
2487 for Mac too.
2488 (try_font_list) [MAC_OS]: If no font matches given registry, try
2489 fonts with any registry matching face_family.
f9c0c10f 2490 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
f00691a3
AC
2491
2492 * s/darwin.h: If autoconf detects the Ncurses library, define
2493 LIBS_TERMCAP to -lncurses to use it.
f9c0c10f 2494
5fd4d159
EZ
24952002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
2496
2497 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
2498
93731c54
RS
24992002-06-15 Richard M. Stallman <rms@gnu.org>
2500
2501 * window.c (Fset_window_configuration): Explicitly preserve
2502 the point value that new_current_buffer had at the start.
2503
2268661a
JB
25042002-06-14 Juanma Barranquero <lektu@terra.es>
2505
2506 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
2507 Fix typos.
2508
e4f10c83
KS
25092002-06-14 Kim F. Storm <storm@cua.dk>
2510
2511 * insdel.c (insert_1_both, insert_from_string_1)
2512 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
2513 insert happened in the end_unchanged region. Otherwise, the
2514 redisplay may be confused and duplicate the last line in the
2515 buffer [seen after save-buffer when require-final-newline==t].
2516
960f21ae
JR
25172002-06-13 Jason Rumney <jasonr@gnu.org>
2518
2519 * w32.c (init_environment): Remove EMACSLOCKDIR.
91224f9e 2520 (stat): Swap _S_IFDIR and _S_IFREG.
960f21ae 2521
f00691a3 25222002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e43bd4f5 2523
cc1b792b
PJ
2524 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
2525 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
2526 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
2527 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
2528 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
2529 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
2530 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
2531 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
2532 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
2533 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
e43bd4f5
PJ
2534 SELECTION_REQUEST_EVENT, selection_clear_event to
2535 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
2536 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
2537 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
2538 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
cc1b792b
PJ
2539 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
2540 no_event to NO_EVENT.
e43bd4f5 2541
f00691a3 25422002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3e8cc4d
PJ
2543
2544 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
2545
91b53904
SM
25462002-06-12 Stefan Monnier <monnier@cs.yale.edu>
2547
2548 * intervals.c (textget): Don't forget to `return'.
2549 (lookup_char_property): Use XCAR/XCDR.
2550
8b22c65a
JB
25512002-06-12 Juanma Barranquero <lektu@terra.es>
2552
2553 * xdisp.c (Fformat_mode_line): Fix typo.
2554
aba91547
KS
25552002-06-12 Kim F. Storm <storm@cua.dk>
2556
2557 * xdisp.c (Fformat_mode_line): New function.
2558 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
2559 (store_frame_title_char, store_frame_title): Use unconditionally.
2560 (init_xdisp): Defsubr Fformat_mode_line.
2561 Initialize frame_title_buf etc. unconditionally.
2562
2cf4b7b2
SM
25632002-06-11 Stefan Monnier <monnier@cs.yale.edu>
2564
2565 * keyboard.c (read_key_sequence):
2566 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
2567 things through those maps after downcasing events.
2568 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
2569 applies after function-key-map.
2570 Make sure that keytran can be done in the middle in the sequence.
2571 Be careful not to throw away events past the one we downcase.
2572
2573 * lread.c (read_integer): Remove unused var `tem'.
2574 (read1): Fix int/Lisp_Object mixup.
2575
2576 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
2577
0672b5a0
RS
25782002-06-11 Richard M. Stallman <rms@gnu.org>
2579
2580 * keyboard.c (readable_events): Ignore any number of
2581 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
2582
ab2e49a0
MB
25832002-06-09 Miles Bader <miles@gnu.org>
2584
2585 * xfaces.c (Ftty_supports_face_attributes_p): New function.
2586 (parse_rgb_list, tty_lookup_color): New functions.
2587 (tty_defined_color): Use `tty_lookup_color' to do all the work.
2588 (color_distance, Fcolor_distance): New functions.
2589 (TTY_SAME_COLOR_THRESHOLD): New macro.
2590 (Qtty_color_standard_values): New variable.
2591 (syms_of_xfaces): Initialize new vars & functions.
2592
a8f57660
CW
25932002-06-08 Colin Walters <walters@verbum.org>
2594
2595 * textprop.c (Vchar_property_alias_alist): New variable.
2cf4b7b2 2596 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
a8f57660
CW
2597
2598 * intervals.c (lookup_char_property): New function for looking up
2599 overlay and text properties, created from textget.
2600 (textget): Use it.
2cf4b7b2 2601
a8f57660
CW
2602 * intervals.h (lookup_char_property): Declare.
2603 (Vchar_property_alias_alist): Declare.
2604
2605 * buffer.c (Foverlay_get): Use lookup_char_property.
2606
1b65481e
SS
26072002-06-07 Sam Steingold <sds@gnu.org>
2608
2609 * xselect.c (lisp_data_to_selection_data): Fix last change:
2610 *data_ret is not a Lisp string, while unibyte_string is.
2611
9cbd5852
EZ
26122002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
2613
2cf4b7b2
SM
2614 * xselect.c (lisp_data_to_selection_data): Fix last change:
2615 set size_ret.
9cbd5852 2616
3fa4ac47
AS
26172002-06-07 Andreas Schwab <schwab@suse.de>
2618
2619 * m/amdx86-64.h: New file.
2620
ebadb1e4
EZ
26212002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
2622
4ddc38a1
EZ
2623 * fns.c (Fstring_make_unibyte): Doc fix.
2624
8f9b87b5
EZ
2625 * xselect.c (lisp_data_to_selection_data): If the requested type
2626 is STRING, call string_make_unibyte to encode the selected text
2627 as a string.
2628
ebadb1e4
EZ
2629 * window.c (Fset_window_hscroll): Doc fix.
2630
f00691a3 26312002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1909941a 2632
2cf4b7b2
SM
2633 * fileio.c (choose_write_coding_system):
2634 Call select-safe-coding-system properly.
1909941a 2635
3a2ff803
RS
26362002-06-03 Richard M. Stallman <rms@gnu.org>
2637
2638 * xdisp.c (message_with_string): Error if STRING is not a string.
2639
2640 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
2641
2642 * fileio.c (choose_write_coding_system): Pass FILE arg to
2643 Vselect_safe_coding_system_function.
2644
382f558b 26452002-06-03 Ken Raeburn <raeburn@gnu.org>
504322ad 2646
2cf4b7b2 2647 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
504322ad 2648
e2c0561e
TTN
26492002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
2650
2651 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
2652 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
2653 * keymap.c (describe_command): Likewise.
2654 * minibuf.c (read_minibuf): Likewise.
2655
2656 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
2657 Cast `current_column' return value to int.
2cf4b7b2
SM
2658 (back_to_previous_visible_line_start)
2659 (reseat_at_next_visible_line_start, next_element_from_buffer):
e2c0561e
TTN
2660 Cast `indented_beyond_p' 3rd arg to float.
2661
2662 * indent.c (last_known_column): Now a float.
2cf4b7b2
SM
2663 (current_column_1, position_indentation, current_column)
2664 (string_display_width): Return float.
e2c0561e
TTN
2665 (Fcurrent_column): Cast `current_column' return value to int.
2666 (Fcurrent_indentation): Cast `position_indentation' retval to int.
2667 (indented_beyond_p): Third arg now a float.
2668 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
2669
2670 * lisp.h (current_column): Now returns float.
2671 (indented_beyond_p): 3rd arg now a float.
2672
420a345c
EZ
26732002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
2674
43dc73f1
EZ
2675 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
2676 is Qcompound_text_with_extensions.
2677
2678 * xselect.c (lisp_data_to_selection_data): Always set selection
2679 type as string if x_encode_text returns streingp non-NULL.
2680
420a345c
EZ
2681 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
2682
a71867c5
RS
26832002-05-30 Richard M. Stallman <rms@gnu.org>
2684
2685 * window.c (Fset_window_configuration): Correct the handling
2686 of point in current buffer, to work with multiple windows.
2687
96801005
CW
26882002-05-29 Colin Walters <walters@verbum.org>
2689
2690 * lread.c (Fread_from_string): Don't depend on order of evaluation
2691 for C function parameters.
2692
f7e039de
RS
26932002-05-28 Richard M. Stallman <rms@gnu.org>
2694
2695 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
2696 way for blinked-off state and for a nonselected window.
2697
2698 * window.c (window_scroll_pixel_based): Don't call Fbolp;
2699 instead, see if the new start pos is at beginning of line.
2700
2701 * fileio.c (Fwrite_region): If START is a string, don't
2702 make any annotations.
2703
2704 * eval.c (syms_of_eval): Doc fix.
2705
532a8e8b
CW
27062002-05-28 Colin Walters <walters@debian.org>
2707
2708 * emacs.c (USAGE1): Add --no-splash.
2709 (standard_args): Ditto.
2710
27112002-05-28 Colin Walters <walters@gnu.org>
2712
2713 * lread.c (readchar_count): New variable.
2714 (readchar): Increment it.
2715 (unreadchar): Decrement it.
2716 (read_multibyte): Decrement it.
2717 (Vread_with_symbol_positions): New variable.
2718 (Vread_symbol_positions_list): New variable.
2719 (read_internal_start): New function, created from Fread and
2720 Fread_from_string. Handle Vread_symbol_positions_list and
2721 Vread_with_symbol_positions.
2722 (readevalloop, Fread, Fread_from_string): Use it.
2723 (read1): Use readchar_count to add symbol positions to
2cf4b7b2 2724 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
532a8e8b
CW
2725 (syms_of_lread): DEFVAR_LISP and initialize them.
2726
2727 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
2728 (substitute_object_recurse, substitute_object_in_subtree)
2729 (substitute_in_interval): Prototype.
2730 (read_multibyte): Return c if it's less than zero.
e2c0561e 2731
02f20f98
KS
27322002-05-28 Kim F. Storm <storm@cua.dk>
2733
b44ec8e3
KS
2734 * fileio.c (Fread_file_name_internal): Added brute-force
2735 speed up for using predicate file-directory-p.
2736
27372002-05-28 Kim F. Storm <storm@cua.dk>
2738
2739 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
02f20f98
KS
2740 New variables.
2741 (syms_of_fileio): DEFVAR_LISP them.
2742 (read_file_name_cleanup): New unwind function.
2743 (Fread_file_name_internal): Only return completions satifying
2744 Vread_file_name_predicate. Temporarily unwind protect and rebind
2745 default-directory while checking completions against the predicate.
2746 (Fread_file_name): Added PREDICATE argument. Specbind it to
2747 Vread_file_name_predicate during completion.
2748 Call Vread_file_name_function to read the file name if non-nil.
2749
2750 * lisp.h (Fread_file_name): Now has 6 args.
e2c0561e 2751
02f20f98
KS
2752 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
2753 predicate for Fread_file_name when reading directory name.
2754 Supply Qnil for predicate in other calls to Fread_file_name.
2755
9e8abde7
MB
27562002-05-26 Miles Bader <miles@gnu.org>
2757
2758 * term.c (tty_capable_p): New function.
2759 * dispextern.h (tty_capable_p): New function declaration.
2760 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
2761 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
2762
3751c81b
SM
27632002-05-23 Stefan Monnier <monnier@cs.yale.edu>
2764
2765 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
2766 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
2767 (Vwrite_region_annotate_functions): Docstring fix.
2768
6065f9e2 27692002-05-23 Kim F. Storm <storm@cua.dk>
39bb5900
KS
2770
2771 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
2772 phys_cursor's hpos is overwritten. This is still not completely
2773 correct, as it doesn't really make sense to use hpos at all to
2774 get the cursor glyph (as that is relative to the width of the
2775 characters on the line, which may have changed during the update).
2776
17456df1
JR
27772002-05-22 Jason Rumney <jasonr@gnu.org>
2778
2779 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
2780 Lisp_Object.
2781 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
2782 Use modified enumfont_t struct.
2783
2784 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3751c81b 2785
17456df1
JR
2786 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
2787 Handle the `hbar' cursor type.
2788 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
2789
2790 * w32fns.c (Qhbar): New variable.
2791 (x_specified_cursor_type): Use it.
2792
1b65564c
KR
27932002-05-21 Ken Raeburn <raeburn@gnu.org>
2794
2795 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
2796 now, when the address is needed.
2797
a7c4d9c8
CW
27982002-05-21 Colin Walters <walters@gnu.org>
2799
2800 * Makefile.in (shortlisp): Add font-core.el.
2801
301d4a3f
RS
28022002-05-20 Richard M. Stallman <rms@gnu.org>
2803
cd8d5236
RS
2804 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2805
301d4a3f
RS
2806 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
2807 equivalent key bindings here.
2808
07e9823c
KR
28092002-05-20 Ken Raeburn <raeburn@gnu.org>
2810
2811 Change symbol structure to contain a lisp object for the symbol
2812 name:
2813 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
2814 object field named "xname".
2815 (SYMBOL_NAME): New macro.
2816 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
2817 name field.
2818 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
2819 (mark_object, gc_sweep): Use symbol xname field and XSTRING
2820 instead of name field.
2821 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
2822 SYMBOL_NAME instead of XSYMBOL and name field.
2823 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
2824 instead of XSYMBOL and name field.
2825 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
2826 and SYMBOL_NAME instead of XSYMBOL and name field.
2827 * coding.c (Fread_coding_system, code_convert_region1)
2828 (code_convert_string1, code_convert_string_norecord)
2829 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
2830 XSYMBOL and name field.
3751c81b
SM
2831 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
2832 (Fmake_variable_buffer_local, Fmake_local_variable)
07e9823c
KR
2833 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
2834 of XSYMBOL and name field.
2835 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
2836 XSYMBOL and name field.
2837 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
2838 instead of XSYMBOL and name field.
2839 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
2840 XSYMBOL and name field.
3751c81b
SM
2841 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
2842 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c
KR
2843 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
2844 instead of XSYMBOL and name field.
3751c81b
SM
2845 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
2846 (parse_modifiers, apply_modifiers, Fevent_convert_list)
2847 (parse_solitary_modifier, Fexecute_extended_command):
2848 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
2849 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
07e9823c
KR
2850 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
2851 of XSYMBOL and name field.
2852 (describe_command, describe_translation): Use SYMBOL_NAME and
2853 assignment instead of XSYMBOL and name field and XSETSTRING.
2854 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
2855 instead of XSYMBOL and name field.
2856 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
2857 name field and XSETSTRING.
2858 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
2859 of XSYMBOL and name field.
2860 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
2861 assignment instead of XSYMBOL and name field and XSETSTRING.
2862 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
2863 XSTRING instead of XSYMBOL and name field.
2864 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
2865 and XSTRING instead of XSYMBOL and name field.
2866 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
2867 and XSTRING instead of XSYMBOL and name field.
2868 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
2869 XSTRING instead of XSYMBOL and name field.
2870 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
2871 of XSYMBOL and name field.
3751c81b
SM
2872 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
2873 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c 2874
7340cc50
KR
28752002-05-19 Ken Raeburn <raeburn@gnu.org>
2876
2877 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
2878 and XCDR real rvalues in most configurations.
2879
3751c81b
SM
2880 * buffer.c (fix_overlays_in_range, fix_overlays_before):
2881 Don't take the address of the cdr part of a cons cell; instead, track
7340cc50
KR
2882 the parent cell and call XSETCDR, or set the variable for the head
2883 of the list if we haven't started down the list yet.
2884
8bad880b
RS
28852002-05-19 Richard M. Stallman <rms@gnu.org>
2886
2887 * doc.c (reread_doc_file): Don't ask for confirmation.
2888
0708de07
JR
28892002-05-18 Jason Rumney <jasonr@gnu.org>
2890
2891 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
2892 (xbm_load_image): Use it.
2893 (xbm_load): Ditto.
2894 (xbm_read_bitmap_data): Reverted to xfns.c version.
2895 From David Ponce <david@dponce.com>.
2896
2c978faf
EZ
28972002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
2898
2899 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
2900 2.02 and later.
2901
b96fb65c
JB
29022002-05-16 Juanma Barranquero <lektu@terra.es>
2903
3751c81b 2904 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
b96fb65c 2905
daaf4dfc
SM
29062002-05-15 Stefan Monnier <monnier@cs.yale.edu>
2907
2908 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
2909 meaningful test.
2910 (read_char_minibuf_menu_prompt): Fix typo.
2911
f8229bf6
EZ
29122002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
2913
2914 * eval.c (Fcommandp): Doc fix.
2915
31bea176
SM
29162002-05-13 Stefan Monnier <monnier@cs.yale.edu>
2917
2918 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
2919 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
2920 (Fset_keymap_parent): Gcpro a bit more.
2921 (access_keymap): Gcpro around meta_map call and around the main loop.
2922 (get_keyelt): Gcpro when following indirect references.
2923 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
2924 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
2925 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
2926 Remove useless ad-hoc remap code.
2927
4d8ff34d
KH
29282002-05-13 Richard M. Stallman <rms@gnu.org>
2929
2930 * search.c (search_buffer): Give up boyer moore search if inverse
2931 translation change charset_base.
2932
9861e777
EZ
29332002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
2934
2935 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
2936 characters is carried over from the previous block of text, adjust
2937 coding->produced to account for the extra character.
2938
eef762fc
AS
29392002-05-11 Andreas Schwab <schwab@suse.de>
2940
2941 * coding.c (intersection): Keep the elements of the returned list
2942 in the same order as in the first list.
2943
6d8c02ae
KS
29442002-05-11 Kim F. Storm <storm@cua.dk>
2945
2946 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
2947 only update cmm_size if realloc actually succeeds.
2948 Testing with initial size of 2 elements revealed that using
2949 realloc on GNU/Linux would cause a random trap in xmalloc
2950 later on, so I rewrote the code to use malloc/bcopy/free instead
2951 of realloc.
2952
6358474d
JR
29532002-05-10 Jason Rumney <jasonr@gnu.org>
2954
2955 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
2956
22a2a460
EZ
29572002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
2958
2959 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
2960 parens, to ensure correct evaluation order.
2961
05b2c53f
KS
29622002-05-10 Kim F. Storm <storm@cua.dk>
2963
2964 * keymap.c (Vemulation_mode_map_alists): New variable.
2965 (syms_of_keymap): DEFVAR_LISP it.
2966 (current_minor_maps): Process keymap alists in that list before
2967 minor-mode-overriding-map-alist and minor-mode-map-alist.
2968
ccc8c8bb
RS
29692002-05-09 Richard M. Stallman <rms@gnu.org>
2970
2971 * search.c (Freplace_match): Doc fix.
2972
f2131323
KS
29732002-05-09 Kim F. Storm <storm@cua.dk>
2974
3751c81b 2975 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
2976 Enlarge cursor rectangle drawn around image with non-zero relief.
2977
3751c81b 2978 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
f2131323
KS
2979 Enlarge cursor rectangle drawn around image with non-zero relief.
2980
3751c81b 2981 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
2982 Enlarge cursor rectangle drawn around image with non-zero relief.
2983
7b9ae523
EZ
29842002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
2985
2986 * xselect.c (lisp_data_to_selection_data): Don't set selection
2987 type if comes from the Lisp object's car. If the selection
2988 contains a pure ASCII text, always return QSTRING as its type.
2989
f00691a3 29902002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14bda6db
PJ
2991
2992 * mac.c (mac-cut-function): Doc fix.
2993
6b529d78
RS
29942002-05-05 Richard M. Stallman <rms@gnu.org>
2995
2996 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
2997
1d5e0b52
JR
29982002-05-04 Jason Rumney <jasonr@gnu.org>
2999
5259a0d0
JR
3000 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
3001 for event-click-count.
3002
1d5e0b52
JR
3003 * process.c (init_process): Only add server subfeature if we can
3004 use non-blocking I/O.
3005
c7764932
AC
30062002-05-04 Andrew Choi <akochoi@shaw.ca>
3007
3008 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
3009 repeatedly.
3010
e151372d
JR
30112002-05-03 Jason Rumney <jasonr@gnu.org>
3012
3013 * process.c (Fmake_network_process): Only support server sockets
3014 when we can make them non-blocking.
3015
3016 * s/ms-w32.h (HAVE_SELECT): Define.
3017
3018 * w32.h (FILE_NDELAY): New flag.
3019
3020 * w32.c (sys_getpeername, fcntl): New functions.
3021 (_sys_read_ahead): Temporarily block on non-blocking sockets.
3022
3023 * w32proc.c: include sys/file.h.
3024
43936bf4
CW
30252002-05-03 Colin Walters <walters@verbum.org>
3026
3027 * callproc.c (Vgame_score_directory): Renamed to
3028 Vshared_game_score_directory.
3029
0c8c6322
RS
30302002-04-30 Richard M. Stallman <rms@gnu.org>
3031
397214d4
RS
3032 * s/gnu.h [emacs]: Include stdio.h.
3033 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
3034
0c8c6322
RS
3035 * eval.c (do_autoload): Error if called while preparing to dump.
3036
3037 * fns.c (Frequire): Error if need to load while preparing to dump.
3038
5a234d25
CW
30392002-04-28 Colin Walters <walters@verbum.org>
3040
5167cfda
CW
3041 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
3042 Default to "~/.emacs.d/games".
5a234d25 3043
96035dca
SM
30442002-04-29 Stefan Monnier <monnier@cs.yale.edu>
3045
de2413e9
SM
3046 * lread.c (openp): Change arg exec_only to predicate.
3047 (build_load_history): Use XCAR/XCDR.
3048 (Flocate_file_internal): New fun.
3049 (syms_of_lread): Defsubr it.
3050 (Fload): Update call to openp.
3051
3052 * lisp.h (openp): Update prototype.
3053
3054 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3055 * w32proc.c (sys_spawnve):
3056 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3057 * w32.c (check_windows_init_file):
3058 * sound.c (Fplay_sound_internal):
3059 * process.c (Fstart_process):
3060 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
3061 * mac.c (run_mac_command):
3062 * emacs.c (init_cmdargs):
3063 * callproc.c (Fcall_process): Update call to openp.
3064
962ba97c
SM
3065 * textprop.c (remove_properties): Don't use XCAR without CONSP.
3066
96035dca
SM
3067 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
3068
f00691a3 30692002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e656fc9d
PJ
3070
3071 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
3072 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
3073
43bbe516
RS
30742002-04-28 Richard M. Stallman <rms@gnu.org>
3075
3076 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
3077
3078 * eval.c (Fcommandp): New arg for_call_interactively.
3079 * lisp.h (Fcommandp): Declare new arg.
3080
6fb6f3ac
JR
30812002-04-28 Jason Rumney <jasonr@gnu.org>
3082
3083 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
3084
3085 * w32.c (stat, fstat): Use file index information to generate
3086 inodes for directories where available.
3087
e0f712ba
AC
30882002-04-26 Andrew Choi <akochoi@shaw.ca>
3089
3090 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
3091 [HAVE_CARBON]: Include Mac object files.
3092
3093 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
3094 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
3095 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
3096 MAC_OSX, and MAC_OS instead of macintosh.
3097
3098 * editfns.c [MAC_OS8]: Include stdio.h.
3099
3100 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
3101
3102 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
3103 Apple Monaco.
3104
3105 * process.c: Declare QCfamily and QCfilter as extern.
3106 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
3107 calling select.
3108
96035dca
SM
3109 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
3110
e0f712ba 3111 * tparam.c [MAC_OSX]: Don't define BC and UP.
96035dca 3112
e0f712ba
AC
3113 * config.in [HAVE_CARBON]: Add.
3114
96035dca
SM
3115 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
3116 Move here from mac/src and mac/inc.
e0f712ba
AC
3117
3118 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
96035dca 3119
56a0382c
GM
31202002-04-26 Gerd Moellmann <gerd@gnu.org>
3121
96035dca
SM
3122 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
3123 Compute phys_cursor_width from the x position returned
3124 by x_draw_glyhs, which is cheaper.
56a0382c
GM
3125 (x_display_and_set_cursor): Compute the buffer-local value
3126 of `cursor-in-non-selected-windows' only when needed.
3127
ef58a7ec
GM
31282002-04-25 Gerd Moellmann <gerd@gnu.org>
3129
3130 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
3131 cursor on a stretch glyph has a width that depends on
3132 x_stretch_cursor_p.
3133
f00691a3 31342002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6f442633 3135
ca70e62f
PJ
3136 * abbrev.c (abbrev-start-location): Doc fix.
3137
6f442633
PJ
3138 * indent.c (Fvertical_motion): Fix last change.
3139
3a46a5de
GM
31402002-04-25 Gerd Moellmann <gerd@gnu.org>
3141
3142 * indent.c (Fvertical_motion): Move to the start of the line
3143 containing PT before moving up or down.
3144
f7c5994d
GM
31452002-04-24 Gerd Moellmann <gerd@gnu.org>
3146
60f2f3f1
GM
3147 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
3148 case of writing a whole row, more or less analogous to the case of
3149 writing only parts of a row.
3150
3151 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
3152 0 for NO_CURSOR.
96035dca 3153
f7c5994d
GM
3154 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
3155
973c3c87
CW
31562002-04-23 Colin Walters <walters@verbum.org>
3157
3158 * buffer.c (syms_of_buffer): Doc fix.
3159
b3738089
GM
31602002-04-23 Gerd Moellmann <gerd@gnu.org>
3161
516074a1
GM
3162 * xterm.c (notice_overwritten_cursor): Handle the special case
3163 of the cursor being in the first blank non-text line at the
3164 end of a window.
96035dca 3165
b3738089
GM
3166 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
3167 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
3168 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
3169 bar cursors only, to make phys_cursor_width contain what its name
3170 suggests.
3171 (notice_overwritten_cursor): Consider the cursor image erased if
3172 the output area intersects the cursor image in y-direction.
3173
5d449b17
RS
31742002-04-23 Simon Marshall <simon@gnu.org>
3175
3176 * xfns.c (x_set_mouse_color): Change default for cross_cursor
3177 to XC_hand2.
3178
f00691a3 31792002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e6b6f919 3180
96035dca 3181 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
e6b6f919 3182
f25d60d6
KS
31832002-04-22 Kim F. Storm <storm@cua.dk>
3184
3185 * textprop.c (remove_properties): Fixed trap for malformed plist.
3186
6b448755
RS
31872002-04-22 Richard M. Stallman <rms@gnu.org>
3188
df218ce6
RS
3189 * cmds.c (Fend_of_line): Handle intangible text in mid line.
3190
6b448755
RS
3191 * window.c (make_window): Initialize height_fixed_p,
3192 last_cursor_off_p, and p->cursor_off_p slots.
3193
f00691a3 31942002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7769818b
PJ
3195
3196 * fns.c (use-dialog-box): Doc fix.
3197
f00691a3 31982002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ad6535b
PJ
3199
3200 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
3201 variables `row', `i' and `area'.
3202 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
3203 toolkit library.
3204
3d90c96c
SM
32052002-04-19 Stefan Monnier <monnier@cs.yale.edu>
3206
3207 * xfaces.c (clear_font_table): Don't free the default font of
3208 a frame even if it's on another display.
3209 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
3210 that could be Qt.
3211
58b1103e
JB
32122002-04-19 Juanma Barranquero <lektu@terra.es>
3213
3214 * indent.c (Fmove_to_column): Remove unused local variable
3215 `next_boundary_byte'.
3216 (current_column_1): Likewise.
3217
175e150b
EZ
32182002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
3219
3220 * msdos.c (Qhbar): New variable.
3d90c96c 3221 (syms_of_msdos): Intern and staticpro it.
175e150b
EZ
3222 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
3223 cursor type.
3224
d9c25020 32252002-04-19 Dave Lambert <dlambert@acm.org>
6fab1572
EZ
3226
3227 Theses change implement an underscore-like (`hbar') cursor.
3228
3229 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3230
3231 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
3232 Handle the `hbar' cursor type.
3233 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
3234
3235 * xfns.c (Qhbar): New variable.
3d90c96c 3236 (syms_of_xfns): Intern and staticpro it.
6fab1572 3237 (x_specified_cursor_type): Handle `hbar' cursor.
5e3238f4
EZ
3238
3239 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
3240 not defined.
3241
0cf5c1e7
RS
32422002-04-18 Richard M. Stallman <rms@gnu.org>
3243
3244 * textprop.c (remove_properties): New arg LIST allows scanning
3245 either a list or a plist.
3246 (interval_has_some_properties_list): New function, like
3247 interval_has_some_properties using list instead of plist.
3248 All callers changed.
3249 (Fremove_list_of_text_properties): New function.
3250 (syms_of_textprop): Defsubr it.
3251
1a4140b0
EZ
32522002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
3253
3254 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
3255
59b7fa65
JB
32562002-04-17 Juanma Barranquero <lektu@terra.es>
3257
3d90c96c 3258 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
59b7fa65 3259
ac431108
EZ
32602002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
3261
3262 * window.c (coordinates_in_window): Don't report on margin area
3263 if its width is zero.
3264
1c565847
JR
32652002-04-16 Jason Rumney <jasonr@gnu.org>
3266
3267 * w32fns.c (Fx_file_dialog): Decode file name before using.
3268
3269 * w32term.c (construct_drag_n_drop): Likewise.
3d90c96c 3270
852eef40
EZ
32712002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
3272
3273 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
3274 store load-history in pure space.
3275
3276 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
3277
c997eae5
SM
32782002-04-16 Stefan Monnier <monnier@cs.yale.edu>
3279
3280 * xterm.c (Qlatin_1, Qutf_8): New vars.
3281 (syms_of_xterm): Initialize them.
3282 (XTread_socket): Eliminate incorrect optimization that tried to avoid
3283 decoding the output of X*LookupString.
3284 Always use latin-1 to decode the output of XLookupString.
3285 Try Xutf8LookupString if XmbLookupString failed.
3286
3287 * region-cache.c (new_region_cache): Use BEG.
3288
08327b22
GM
32892002-04-16 Gerd Moellmann <gerd@gnu.org>
3290
3291 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
3292 configuration files.
3293 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
3294 returns 0.
3295
d8f6d720
AS
32962002-04-15 Andreas Schwab <schwab@suse.de>
3297
3298 * config.in: Regenerated using autoheader.
3299
3300 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
3301 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
3302 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
3303 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
3304 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
3305 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
3306 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
3307 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
3308 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
3309 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
3310 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
3311 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
3312 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
3313 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
3314 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
3315 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
3316 STACK_DIRECTION, now set by autoconf.
3317
f00691a3 33182002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0e03b0c2
PJ
3319
3320 * dispnew.c (marginal_area_string): Sort arguments.
3321
3322 * dispextern.h (marginal_area_string): Add prototype.
3323
685fc579
RS
33242002-04-13 Richard M. Stallman <rms@gnu.org>
3325
c997eae5 3326 * fileio.c (Finsert_file_contents):
685fc579
RS
3327 Don't call temp_output_buffer_setup--do just part, by hand.
3328
3329 * coding.c (run_pre_post_conversion_on_str):
3330 Don't call temp_output_buffer_setup--do just part, by hand.
3331
3332 * keyboard.c (command_loop_1): Don't call start_hourglass
3333 or cancel_hourglass when executing a macro.
3334
3335 * marker.c (count_markers): New function.
3336
3337 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
3338 grow without limit. Move recently used elements to the front.
3339
e144dfa8
EZ
33402002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
3341
3342 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
3343
e9f8a3ab
GM
33442002-04-12 Gerd Moellmann <gerd@gnu.org>
3345
7d4cc828
GM
3346 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
3347 rows marginal areas.
3348 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
3349 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
3350
e9f8a3ab
GM
3351 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
3352
33532002-04-12 Dave Love <fx@gnu.org>
3354
3355 * dispnew.c (marginal_area_string): New.
3356
3357 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
3358 (Qleft_margin, Qright_margin): Declare.
c997eae5 3359 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
e9f8a3ab
GM
3360
3361 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
3362 note_mode_line_highlight and extended.
3363
3364 * keyboard.c (Qleft_margin, Qright_margin): Declare.
3365 (make_lispy_event): Deal with mouse events in margins.
3366
d7565649
SM
33672002-04-12 Stefan Monnier <monnier@cs.yale.edu>
3368
3369 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
3370
3371 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
3372 than deactivating the mark if tmm is set to `lambda'.
3373 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
3374 Use a single event for HELP_EVENT.
3375 (Fexecute_extended_command): Save last_point_position.
3376
f00691a3 33772002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
034a7130
PJ
3378
3379 * lisp.h (Fpropertize): Add prototype.
3380
3381 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
3382
e82defd1
CW
33832002-04-10 Colin Walters <walters@verbum.org>
3384
b9b966e0
CW
3385 * config.in: Add HAVE_SHARED_GAME_DIR.
3386
e82defd1
CW
3387 * callproc.c: (Vgame_score_directory): New variable.
3388 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
3389
05ea8efd
RS
33902002-04-10 Richard M. Stallman <rms@gnu.org>
3391
3392 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
3393
f9cf4c2c
SM
33942002-04-09 Stefan Monnier <monnier@cs.yale.edu>
3395
3396 * minibuf.c (read_minibuf): Use empty_string.
3397 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
3398 Short-circuit the search as soon as it "failed".
3399 (Fall_completions): Allow lambda forms and lists of strings for alist.
3400 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
3401 when require_match is nil.
3402 (Ftest_completion): Rename from `test_completion' and export to elisp.
3403 Call the predicate also when alist is a list.
3404 Obey Vcompletion_regexp_list.
3405 (do_completion, Fminibuffer_complete_and_exit): Use it.
3406 (Fassoc_string): Rename from `assoc_for_completion'.
3407 Allow list of strings as well and export to elisp.
3408
dba57d89
SM
34092002-04-08 Stefan Monnier <monnier@cs.yale.edu>
3410
3411 * puresize.h (BASE_PURESIZE): Increase to 900KB.
3412
a0ad1860
JB
34132002-04-08 Juanma Barranquero <lektu@terra.es>
3414
3415 * w32.c (sys_accept): Don't hide variable `s'.
3416
b9f0b172
GM
34172002-04-05 Gerd Moellmann <gerd@gnu.org>
3418
0d1bf3f7 3419 * callint.c (Fcall_interactively): Use INTEGERP instead of
b9f0b172
GM
3420 NUMBERP for checking Vhistory_length.
3421
f00691a3 34222002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
368ab68f
PJ
3423
3424 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
3425 Doc fix to reflect it.
3426
d3012189
RS
34272002-04-04 Richard M. Stallman <rms@gnu.org>
3428
3429 * xdisp.c (display_mode_element): New arg RISKY.
3430 Disregard text props found or specified within a variable
3431 that isn't marked risky-local-variable.
3432 (Qrisky_local_variable): New variable.
3433 (syms_of_xdisp): Init and staticpro it.
3434
0d1bf3f7
SM
34352002-04-04 Stefan Monnier <monnier@cs.yale.edu>
3436
3437 * undo.c (record_point): New fun.
3438 (record_delete, record_insert): Use it.
3439
8caa93d2
JB
34402002-04-03 Juanma Barranquero <lektu@terra.es>
3441
3442 * doc.c (Fdocumentation): Add missing parentheses.
3443 (Fdocumentation_property): Likewise.
3444
b3bbfb96
SM
34452002-04-03 Stefan Monnier <monnier@cs.yale.edu>
3446
3447 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
3448 data is 0, just return nil.
3449
db4a142a
EZ
34502002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
3451
3452 * msdos.c (syms_of_msdos): Fix last change with
3453 mouse_autoselect_window.
3454
f00691a3 34552002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dc8cd652
PJ
3456
3457 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
3458 mouse_autoselect_window.
3459
e5aa79fa
SM
34602002-04-02 Stefan Monnier <monnier@cs.yale.edu>
3461
4c8bc894
SM
3462 * keyboard.c (make_lispy_event): Handle unknown keysyms together
3463 with system-specific keysyms. Use it also for unknown function keys.
3464
e5aa79fa
SM
3465 * doc.c (reread_doc_file): Return whether reload was attempted.
3466 (Fdocumentation, Fdocumentation_property): Don't try to reload
3467 if the doc is 0 and only ask once.
3468
3469 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
3470
5d12f14d
EZ
34712002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
3472
3473 * keyboard.c (read_char): If the event was Qselect_window,
3474 restore timer_idleness_start_time to its previous value.
3475
e5aa79fa 3476 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5d12f14d 3477
bed9664a
SM
34782002-04-01 Stefan Monnier <monnier@cs.yale.edu>
3479
c5e5e1f8
SM
3480 * region-cache.c (new_region_cache): Use BEG.
3481
3482 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
3483 Use BEG and BEG_BYTE.
3484
e5aa79fa 3485 * doc.c (get_doc_string): Return nil if the location is wrong.
c5e5e1f8
SM
3486 (reread_doc_file): New fun.
3487 (Fdocumentation, Fdocumentation_property):
3488 Call it if get_doc_string fails.
3489 (Fsnarf_documentation): Make it work for a dumped Emacs.
3490
3491 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
3492 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
3493
3494 * charset.c (Fstring): Allow 0 arguments.
3495
bed9664a
SM
3496 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
3497
3498 * process.c (DATAGRAM_CONN_P, list_processes_1)
3499 (Fprocess_datagram_address, Fset_process_datagram_address)
3500 (Fset_network_process_options, server_accept_connection):
3501 Fix some int/Lisp_Object confusions (thank you union types).
3502
f00691a3 35032002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
83512b21
PJ
3504
3505 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
3506
3507 * w32term.c: Likewise.
bed9664a 3508 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
83512b21
PJ
3509
3510 * keyboard.c (Qselect_window): New symbol.
3511 (head_table): Use it.
bed9664a
SM
3512 (keys_of_keyboard): Bound select-window event to handle-select-window.
3513 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
83512b21
PJ
3514
3515 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
3516 (last_window): New variable.
3517 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
3518 (note_mouse_movement): Remove reimplemented code in #if 0.
093484c7
PJ
3519 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
3520 Emacs windows.
83512b21 3521
bed9664a 3522 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
83512b21 3523
abfb6b46
GM
35242002-03-31 Gerd Moellmann <gerd@gnu.org>
3525
3526 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
3527 Callers changed.
3528
9b2bba76
RS
35292002-03-30 Richard M. Stallman <rms@gnu.org>
3530
3531 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
3532 loop whenever it stops making progress.
3533
3534 * widget.c (set_frame_size): Don't call change_frame_size.
3535
fd524c21
GM
35362002-03-30 Gerd Moellmann <gerd@gnu.org>
3537
bed9664a
SM
3538 * dispnew.c (direct_output_for_insert):
3539 Call mark_window_display_accurate.
fd524c21 3540
df3bd29d
JR
35412002-03-29 Jason Rumney <jasonr@gnu.org>
3542
3543 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
3544
eb191db2
EZ
35452002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
3546
8bff61e5
EZ
3547 * Makefile.in (lread.o): Depend on coding.h.
3548
544bf8ad 3549 * lread.c (openp, Fload): Encode the file name before passing it
eb191db2
EZ
3550 to `stat', `access', and `emacs_open'.
3551 (openp): GCPRO the encoded file name. Don't recompute Lisp
3552 strings unnecessarily.
3553
f9b33abb
KS
35542002-03-29 Kim F. Storm <storm@cua.dk>
3555
3556 * fns.c (Flax_plist_put): Doc fix.
3557
d4648402
MB
35582002-03-28 Miles Bader <miles@gnu.org>
3559
3560 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
3561
f00691a3 35622002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
320aebc9
PJ
3563
3564 * process.c (set-network-process-options): Add usage.
3565 (make-network-process): Doc fix.
3566
4aaa3607
EZ
35672002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
3568
3569 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
3570
a5f08374
RS
35712002-03-26 Richard M. Stallman <rms@gnu.org>
3572
9356fe5a
RS
3573 * fns.c (Fsubstring_no_properties): New function.
3574 (Flax_plist_get, Flax_plist_put): New functions.
3575 (syms_of_fns): defsubr them.
3576
a5f08374
RS
3577 * xdisp.c (update_menu_bar): Test only update_mode_lines;
3578 don't test or alter w->update_mode_line.
3579
3580 * window.c (Fdisplay_buffer): Doc fix.
3581
35822002-03-24 Richard M. Stallman <rms@gnu.org>
3583
3584 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
3585
0af6533d
GM
35862002-03-24 Gerd Moellmann <gerd@gnu.org>
3587
3588 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
3589 (Fdefmacro): Handle `(declare ...)'.
3590 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
3591 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
3592
217e5be0
JR
35932002-03-24 Jason Rumney <jasonr@gnu.org>
3594
3595 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
3596 (xbm_file_p): Add prototypes.
3597 (xbm_format, xbm_image_p): Sync with xfns.c.
3598 (reflect_byte): New function.
3599 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
3600 (xbm_load_image): Create bitmaps with a depth of 1.
3601 (init_xfns): Enable XBM images.
3602
919f1e88
JR
36032002-03-23 Jason Rumney <jasonr@gnu.org>
3604
3605 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
3606 correctly. Do not pass up_modifier to keyboard buffer.
3607
3608 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
3609
44d38e8d
SM
36102002-03-22 Stefan Monnier <monnier@cs.yale.edu>
3611
3612 * Makefile.in (bootstrapclean): New target.
3613 (bootstrap-temacs, bootstrap-doc): Remove.
3614 (bootstrap-emacs): Use a bog-standard `temacs'.
3615 Don't bother to build a DOC file.
3616
3617 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
3618
3619 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
3620 in temacs even if !CANNOT_DUMP.
3621 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
3622
3623 * alloc.c (check_pure_size): Only output a warning.
3624
b8b47c19
JR
36252002-03-22 Jason Rumney <jasonr@gnu.org>
3626
d3109773
JR
3627 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
3628 supported.
3629
ef07a497 3630 * w32term.c (zv_bits): Declare as short, for word alignment.
b8b47c19
JR
3631 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
3632 (syms_of_w32term): Define x-use-underline-position-properties.
3633
3634 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
3635 (clear_image_cache): Block input, fix logic, clear matrices in
3636 all frames that share this cache.
3637
b9b1a853
EZ
36382002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
3639
483812ae
EZ
3640 * emacs.c (main): Update the Copyright year in the blurb printed
3641 by "emacs --version".
3642
78e17433
EZ
3643 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
3644
b9b1a853
EZ
3645 * xterm.c (XTread_socket): If XK_ISO_Lock and
3646 XK_ISO_Last_Group_Lock are defined, handle keysyms between
3647 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
3648
fd646341
KS
36492002-03-21 Kim F. Storm <storm@cua.dk>
3650
3651 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
3652 menu-bar bindings in keymap and local-map properties _are_ used.
3653 But try keymap property first in accordance with 2002-01-03 patch.
3654 Added comment describing why this is not always reliable.
3655 (tool_bar_items): Ditto for tool-bar.
3656
bf76fe9c
JR
36572002-03-21 Jason Rumney <jasonr@gnu.org>
3658
3659 * w32fns.c (x_clear_image_1): Disable color table code.
3660
41ad6233
KS
36612002-03-21 Kim F. Storm <storm@cua.dk>
3662
3663 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
3664 removed the wrong version of the DEFUN macro; fixed it.
3665
3666 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
3667 Fmember rather than Fmemq).
3668 (Fprovide): Check that subfeatures is a list.
3669
3670 * process.c (QCfeature, QCdatagram): Removed variables.
3671 (QCtype, Qdatagram): New variables.
3672 (network_process_featurep): Removed function.
3673 (Fmake_network_process): Removed :feature check.
3674 Use :type 'datagram instead of :datagram t to create a datagram
3675 socket. This allows us to add other connection types (e.g. raw
3676 sockets) later in a consistent manner.
3ae1b884
KS
3677 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
3678 supported subfeatures for feature make-network-process.
41ad6233
KS
3679 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
3680 Intern and staticpro QCtype and Qdatagram.
3681 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
3682
3683 * xfns.c: (QCtype): Remove duplicate declaration and
3684 initialization (is now declared in process.c).
3685
3686 * w32fns.c: (QCtype): Remove duplicate declaration and
3687 initialization (is now declared in process.c).
3688
27950b47
RS
36892002-03-21 Richard M. Stallman <rms@gnu.org>
3690
f6df485f
RS
3691 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
3692 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
3693 when jumping to `fail' to avoid undoing reg changes in the
3694 last iteration of the loop.
3695 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
3696
27950b47
RS
3697 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
3698 Depend on process.h.
3699
3be38152
JR
37002002-03-20 Jason Rumney <jasonr@gnu.org>
3701
3702 Most of the following changes are still conditional on HAVE_IMAGES
3703 which is not set by default on Windows.
3704
47bcdab2
JR
3705 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
3706
3be38152
JR
3707 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
3708 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
3709 (four_corners_best, x_clear_image_1, x_clear_image)
e2c0561e
TTN
3710 (x_alloc_image_color, postprocess_image)
3711 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
3be38152
JR
3712 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
3713 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
3714
3715 * w32gui.h (struct XImage): Define.
3716
3717 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
3718 extract mouse co-ordinates.
3719
f37577f9
JR
37202002-03-20 Jason Rumney <jasonr@gnu.org>
3721
3722 * w32.c (init_winsock): Dynamically load new server and UDP
3723 socket functions.
3724 (socket_to_fd): New function.
3725 (sys_socket): Use it.
e2c0561e 3726 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
f37577f9
JR
3727 (sys_recvfrom, sys_sendto): New wrapper functions.
3728
3729 * process.c (QCfamily, QCfilter): Remove duplicate declaration
3730 and initialization.
3731
3732 * makefile.w32-in (LIBS): Remove $(WSOCK32).
3733
ab8a75de
EZ
37342002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
3735
2c568af5
SM
3736 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
3737 Don't use "sun" as a variable, it's a predefined constant on Sun
ab8a75de
EZ
3738 machines.
3739
f00691a3 37402002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ab7ff8b
PJ
3741
3742 * bytecode.c (Fbyte_code): Revert last change.
3743
d1ef18f2
KS
37442002-03-19 Kim F. Storm <storm@cua.dk>
3745
3746 * makefile.w32-in (LIBS): Add $(WSOCK32).
3747 From David Ponce <dponce@voila.fr>.
3748
f00691a3 37492002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
99982883 3750
44c887be
PJ
3751 * process.c (wait_reading_process_input): Move variables `pname'
3752 and `pnamelen' down where they are used.
3753
18f85cdd
PJ
3754 * bytecode.c (Fbyte_code): Discard unused computed value to
3755 prevent gcc warning.
3756
99982883
PJ
3757 * lisp.h (Fplist_member): Add prototype.
3758
10ce34dc
KS
37592002-03-18 Kim F. Storm <storm@cua.dk>
3760
3761 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
2c568af5 3762 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
10ce34dc 3763
744d746b 3764 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10ce34dc
KS
3765 Remove explicit GNU_LINUX settings for datagram support.
3766
f00691a3 37672002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa9d4315
PJ
3768
3769 * process.c (Fmake_network_process): Remove unused variable `sa'.
3770 Doc fix. Add usage:.
2c568af5 3771 (set_socket_options): Remove unused variables `optnum' and `opttype'.
fa9d4315 3772
6147334f
RS
37732002-03-17 Richard M. Stallman <rms@gnu.org>
3774
3775 * xdisp.c (cursor_type_changed): New variable.
3776 (redisplay_internal): Redisplay all windows if cursor_type_changed.
3777 Clear it when clearing windows_or_buffers_changed.
3778 (try_cursor_movement, redisplay_window, try_window_id)
3779 (try_window_reusing_current_matrix): Test cursor_type_changed
3780 along with windows_or_buffers_changed.
3781
623fa9e7 3782 * window.h (cursor_type_changed): New variable.
6147334f
RS
3783
3784 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
3785 not update_mode_lines, and always set it to 1.
3786
3787 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
3788 if no frames needed redrawing.
3789
5439f987
KS
37902002-03-17 Kim F. Storm <storm@cua.dk>
3791
623fa9e7 3792 The following changes add support for network server processes,
5439f987
KS
3793 datagram connections, and local (unix) sockets.
3794
3795 * process.h (struct Lisp_Process): New member log.
3796 Doc fix: Member command used to indicate stopped network process.
3797 Doc fix: Member childp contains plist for network process.
3798 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
3799
3800 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
3801 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
3802 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
3803 New variables.
3804 (NETCONN1_P): New macro.
3805 (DATAGRAM_SOCKETS): New conditional symbol.
3806 (datagram_address): New array.
3807 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
3808 (status_message): Use concat3.
3809 (Fprocess_status): Add `listen' status to doc string. Return `stop'
3810 for a stopped network process.
3811 (Fset_process_buffer): Update contact plist for network process.
3812 (Fset_process_filter): Ditto. Don't enable input for stopped
3813 network processes. Server must listen, even if filter is t.
3814 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
3815 New functions.
3816 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
3817 (Fprocess_contact): Added KEY argument. Handle datagrams.
3818 (list_processes_1): Optionally show only processes with the query
3819 on exit flag set. Dynamically adjust column widths. Omit tty
3820 column if not needed. Report stopped network processes.
3821 Identify server and datagram network processes.
3822 (Flist_processes): New optional arg `query-only'.
3823 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3824 (conv_lisp_to_sockaddr, set_socket_options)
3825 (network_process_featurep, unwind_request_sigio): New helper functions.
3826 (Fprocess_datagram_address, Fset_process_datagram_address):
3827 (Fset_network_process_options): New lisp functions.
3828 (Fopen_network_stream): Removed. Now defined in simple.el.
3829 (Fmake_network_process): New lisp function. Code is based on previous
3830 Fopen_network_stream, but heavily reworked with new property list based
3831 argument list, support for datagrams, server processes, and local
3832 sockets in addition to old client-only functionality.
3833 (server_accept_connection): New function.
3834 (wait_reading_process_input): Use it to handle incoming connects.
3835 Do not enable input on a new connection if process is stopped.
3836 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
3837 (send_process): Handle datagram sockets.
3838 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
3839 network process is indicated by setting command field to t .
3840 (Fprocess_send_eof): No-op if datagram connection.
3841 (Fstatus_notify): Don't read input for a stream server socket or a
3842 stopped network process.
3843 (init_process): Initialize datagram_address array.
3844 (syms_of_process): Intern and staticpro new variables, defsubr new
3845 functions.
3846
f779bd4c
JR
38472002-03-16 Jason Rumney <jasonr@gnu.org>
3848
3849 * w32fns.c (w32_to_all_x_charsets): Return correct type in
3850 startup case.
3851
a9c1a157
RS
38522002-03-16 Richard M. Stallman <rms@gnu.org>
3853
e2c0561e 3854 * xdisp.c (redisplay_internal, redisplay_windows):
a9c1a157
RS
3855 Use list_of_error to call internal_condition_case_1.
3856 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
3857 so as to catch all errors with no possibility of debugger redisplay.
3858 (list_of_error): New variable.
3859 (syms_of_xdisp): Init and staticpro it.
3860
3861 * print.c (print_object): Delete `\ ' from printed rep of frame.
3862
7264f28d
EZ
38632002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
3864
3865 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
3866 until its implementation is fixed.
3867
f00691a3 38682002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ee8e167
PJ
3869
3870 * xfns.c (png_load): Remove unused variable `gamma_str'.
3871
7c3f9166
RS
38722002-03-14 Richard M. Stallman <rms@gnu.org>
3873
3874 * xfns.c (x_real_positions): Handle failure in XQueryTree.
3875
5b905677
MB
38762002-03-14 Miles Bader <miles@gnu.org>
3877
3878 * intervals.c (adjust_for_invis_intang): New function.
3879 (set_point_both): Use `adjust_for_invis_intang' to do most of the
3880 work for dealing with invisible+intangible regions. Do so before
3881 and after both forward and backward movements, to handle both
3882 front-sticky and rear-sticky cases.
3883 * textprop.c (text_property_stickiness): Function moved here from
3884 `editfns.c'.
3885 * intervals.h (text_property_stickiness): New declaration.
3886 * editfns.c (char_property_eq): Function removed.
3887 (text_property_stickiness): Function moved to `textprop.c'.
3888
73792b51
JR
38892002-03-13 Jason Rumney <jasonr@gnu.org>
3890
3891 * config.in: Add STRFTIME_NO_POSIX2.
3892
3893 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
3894 and %OX when underlying strftime does not.
3895
dc3b2c8b
SM
38962002-03-13 Stefan Monnier <monnier@cs.yale.edu>
3897
6f2a7a68
SM
3898 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
3899 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
3900 line) to avoid annoying flicker.
3901 (xm_scroll_callback): Get rid of the now unnecessary kludge.
3902 (XTread_socket): Mark it static.
3903
dc3b2c8b
SM
3904 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
3905
98243275
KS
39062002-03-13 Kim F. Storm <storm@cua.dk>
3907
3908 * puresize.h (BASE_PURESIZE): Increase to 775000.
3909
7dcece14
JB
39102002-03-12 Juanma Barranquero <lektu@terra.es>
3911
3912 * editfns.c (syms_of_editfns): Fix typo.
3913
656132eb
GM
39142002-03-12 Gerd Moellmann <gerd@gnu.org>
3915
3916 * xsmfns.c: Include stdio.h because termhooks.h needs it.
3917 Include termopt.h for interrupt_input.
3918
ff955d90
AS
39192002-03-11 Andreas Schwab <schwab@suse.de>
3920
3921 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
3922
714d8c39
GM
39232002-03-11 Gerd Moellmann <gerd@gnu.org>
3924
073448c5
GM
3925 * xterm.c (note_mouse_movement): Put code for
3926 x_autoselect_window_p in #if 0.
3927
4006b74e 3928 * lread.c (Fload): Don't assume that message_with_string uses the
714d8c39
GM
3929 string it is given like a C string.
3930
089fba41
JD
39312002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
3932
7c3f9166 3933 * xterm.h (x_session_check_input, x_session_initialize): Declared.
089fba41 3934
363a4df6
JD
3935 * xterm.c: (XTread_socket): Add call to x_session_check_input and
3936 x_session_have_connection.
3937 (x_initialize): Add call to x_session_initialize.
089fba41 3938
4006b74e 3939 * termhooks.h (enum event_kind): Add save_session_event.
089fba41 3940
4006b74e 3941 * keyboard.c: Add Emacs event save_session_event.
089fba41 3942
4006b74e 3943 * emacs.c (main): Add call to syms_of_xsmfns.
089fba41 3944
4006b74e 3945 * lisp.h: Declare syms_of_xsmfns as extern.
089fba41 3946
4006b74e 3947 * config.in: Add HAVE_X_SM.
089fba41 3948
7c3f9166
RS
3949 * Makefile.in (LIBXT): Add -lSM -lICE
3950 if HAVE_X_SM and not USE_X_TOOLKIT.
3951 (XOBJ): New file xsmfns.c added.
089fba41
JD
3952
3953 * xsmfns.c: New file for X session management.
3954
ad497129
JR
39552002-03-09 Jason Rumney <jasonr@gnu.org>
3956
3957 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
3958 read-only when setting modified time.
3959
f2c7b04f
GM
39602002-03-08 Gerd Moellmann <gerd@gnu.org>
3961
2c568af5
SM
3962 * xdisp.c (move_it_vertically_backward): At the end of the function,
3963 when moving forward by lines, treat terminal frames specially.
c7ad4937 3964
0d121f7c
GM
3965 * keyboard.c (echo_char): Make sure to add a separator between
3966 keys even if echo_dash hasn't been called.
3967
2051c264
GM
3968 * xdisp.c: Use new string macros.
3969 (update_echo_area): Pass number of bytes to message3 instead of
3970 number of chars.
3971 (set_message_1): Don't access a string's size_byte directly.
3972 (decode_mode_spec_coding): Use number of bytes of eoltype string
3973 instead number of chars.
3974
f2c7b04f
GM
3975 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
3976
007776bc
JB
39772002-03-08 Juanma Barranquero <lektu@terra.es>
3978
3979 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
3980 24-bit.
3981
893a741e
JR
39822002-03-06 Jason Rumney <jasonr@gnu.org>
3983
3984 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
3985
8b5eabe0
GM
39862002-03-06 Gerd Moellmann <gerd@gnu.org>
3987
d88c5449 3988 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
e60b0c44
GM
3989 (cancel_echoing, echo_length, echo_truncate): Changed to
3990 work with new kboard definition.
3991 (echo_now): Use message3_nolog instead of message2_nolog.
3992
3993 * alloc.c (mark_kboards): Mark echo_string.
3994
3995 * keyboard.h (ECHOBUFSIZE): Removed.
3996 (struct kboard): Member echoptr removed, member echobuf renamed
3997 to echo_string.
3998
8b5eabe0
GM
3999 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
4000 message3 instead of message2 to display the message using STRING's
4001 text properties.
4002
5d335845
AS
40032002-03-05 Andreas Schwab <schwab@suse.de>
4004
4005 * xdisp.c (hscroll_margin): Change to EMACS_INT.
4006
67334131
PA
40072002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
4008
4009 * frame.c (default-frame-alist): Explain that setting it doesn't
4010 affect existing frames.
4011
d88c5449
SM
40122002-03-05 Stefan Monnier <monnier@cs.yale.edu>
4013
4014 * indent.c (skip_invisible): Fix my brain fart.
4015
4016 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
4017
31ade731
SM
40182002-03-04 Stefan Monnier <monnier@cs.yale.edu>
4019
4020 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
4021 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
4022 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
4023 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
4024 and variables to use EMACS_INT instead of just int.
4025
d88c5449
SM
4026 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
4027
c0917202
EZ
40282002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4029
4030 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
4031 environment, pass it down with corrected value.
4032
f00691a3 40332002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6dc7fdd
PJ
4034
4035 * lread.c (read_filtered_event): Do not call start_hourglass
4036 before returning.
4037
9652402e
JB
40382002-03-04 Juanma Barranquero <lektu@terra.es>
4039
4040 * w32term.c (x_display_and_set_cursor): Fix typo.
4041
73344256
RS
40422002-03-03 Richard M. Stallman <rms@gnu.org>
4043
4044 * fileio.c (Fmake_temp_name): Doc fix.
4045
71091322
RS
40462002-03-03 Gary Wong <gtw@gnu.org>
4047
4048 * termcap.c [!emacs]: Replace ospeed for building standalone
4049 libtermcap, for binary compatibility.
4050
4051 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
4052
aa7e4660
RS
40532002-03-03 Richard M. Stallman <rms@gnu.org>
4054
4055 * xrdb.c (file_p): Rename arg `path' to `filename'.
4056
4057 * abbrev.c (Fexpand_abbrev): Increment plist as use count
4058 only if it is an integer.
4059
4060 * xfns.c (png_load): Set screen_gamma based on f->gamma.
4061 If png_get_sRGB gives an answer, call png_set_gamma
4062 using the default image gamma value.
4063
4064 * lread.c (read1): When reading from a file, default string to
4065 multibyte only if it has some multibyte characters.
4066
4067 * print.c (print_object): Output multibyte chars 128...255
4068 using \x even if ! print_escape_multibyte.
4069
4070 * xdisp.c (display_mode_element): Move the places where
4071 bytepos, charpos, this, and lisp_string are set.
4072 Use lisp_string to set bytepos.
4073
4074 * xdisp.c (redisplay_internal):
4075 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
4076
4077 * xdisp.c (display_mode_element): Merge properties specified with
4078 :propertize onto those that come with the string.
4079
63d5d1ee
EZ
40802002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
4081
4082 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
4083 automatic-hscrolling. Users changed.
31ade731
SM
4084 <hscroll-margin>: Renamed from automatic-hscroll-margin.
4085 Users changed.
4086 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
63d5d1ee 4087
31a6cb06
EZ
40882002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4089
4090 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
4091
ee57fd91
KS
40922002-03-02 Kim F. Storm <storm@cua.dk>
4093
4094 * window.c (Fminibuffer_selected_window): New function.
4095 (syms_of_window): Defsubr it.
4096
922eae56
KS
40972002-03-01 Kim F. Storm <storm@cua.dk>
4098
eacb44ad
KS
4099 * window.h (struct window): New member phys_cursor_width.
4100
4101 * window.c (make_window, replace_window): Init phys_cursor_width.
31ade731 4102
eacb44ad
KS
4103 * xterm.c (x_display_and_set_cursor): Blink box cursor using
4104 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
4105
4106 * w32term.c (x_display_and_set_cursor): Blink box cursor using
4107 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
4108
922eae56
KS
4109 * lisp.h (GCPRO6): New macro.
4110
4111 * process.c (Fopen_network_stream): Use GCPRO6.
4112
81d5af8b
KS
41132002-03-01 Kim F. Storm <storm@cua.dk>
4114
4115 * process.c (Qconnect, Qfailed): New variables.
4116 (syms_of_process): Intern and staticpro them.
e4984112 4117 (Fprocess_status): Document connect and failed return values.
81d5af8b
KS
4118 [NON_BLOCKING_CONNECT]: New conditional.
4119 (connect_wait_mask, num_pending_connects): New variables.
4120 (status_message): Convert Qfailed status.
4121 (Fopen_network_stream): Added support for non-blocking connect.
4122 New optional args: filter, sentinel, non_blocking. Doc updated.
6c465a15 4123 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
81d5af8b
KS
4124 (deactivate_process): Handle pending non-blocking connect.
4125 (wait_reading_process_input): Poll for status of non-blocking
4126 connects. Exec sentinel directly when connect succeeds.
4127 (status_notify): Don't read process output if not yet connected.
31ade731 4128
5705966b
KS
41292002-02-28 Kim F. Storm <storm@cua.dk>
4130
4131 * window.c: (minibuf_selected_window): Renamed from
4132 Vminibuf_selected_window. Users changed.
4133 (syms_of_window): Staticpro it.
4134
beb0acdf
KS
41352002-02-26 Kim F. Storm <storm@cua.dk>
4136
4137 The following changes add a new Vminibuf_selected_window variable
4138 which is similar to Vminibuf_scroll_window, but which is only set
4139 on entry to the minibuffer (from a non-minibuffer window):
31ade731 4140
beb0acdf
KS
4141 * window.c: (Vminibuf_selected_window): New variable.
4142 (struct save_window_data): New member minibuf_selected_window.
4143 (Fset_window_configuration): Restore Vminibuf_selected_window.
4144 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
4145 Set minibuf_scroll_window member to nil if minibuf_level is 0.
4146 (compare_window_configurations): Compare minibuf_selected_window.
4147
4148 * window.h: (Vminibuf_selected_window): Declare extern.
4149
4150 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
4151 entry to minibuffer or on entry from a non-minibuffer window.
4152
4153 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
4154 Vminibuf_selected_window instead of Vminibuf_scroll_window.
4155
4156 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
4157 instead of Vminibuf_scroll_window when deciding in which window
4158 the region should be highlighted. Consequently, the region remains
4159 highlighteded even when a completion buffer is also displayed.
4160
3dfdc066
EZ
41612002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
4162
2c568af5 4163 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
b135bd4c 4164
3dfdc066
EZ
4165 * xselect.c (Qcompound_text_with_extensions): Renamed from
4166 Qcompound_text_no_extensions.
4167 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
4168
804d894a
JB
41692002-02-26 Juanma Barranquero <lektu@terra.es>
4170
4171 * w32proc.c (syms_of_ntproc): Doc fix.
4172
f00691a3 41732002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0277b535
PJ
4174
4175 * intervals.h: Include "dispextern.h" unconditionally.
4176
1f1bce0e
JR
41772002-02-24 Jason Rumney <jasonr@gnu.org>
4178
4179 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
4180 and disp-table.elc.
82a399d2 4181 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 4182
5f245371
KS
41832002-02-24 Kim F. Storm <storm@cua.dk>
4184
4185 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
4186 The validation of the event type was too strict as it didn't
4187 allow string events; buffer names are used in bindings for
4188 menu-bar-select-buffer (see `menu-bar-update-buffers').
4189
b66bc4a4 41902002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674 4191
31ade731 4192 The following changes rework my patch of 2002-02-06 which
a34cb674
KS
4193 added command remapping by entering the commands directly into
4194 the keymaps. Now, command remapping uses an explicit `remap'
4195 prefix in the keymaps, i.e. [remap COMMAND].
31ade731 4196
a34cb674
KS
4197 * keymap.c (Qremap, remap_command_vector): New variables.
4198 (is_command_symbol): Removed function.
31ade731
SM
4199 (Fdefine_key): No longer accept a symbol for KEY.
4200 Added validation of [remap COMMAND] argument for KEY.
4201 The DEF is no longer required to be a symbol when remapping a command.
a34cb674
KS
4202 (Fremap_command): New function to remap command through keymaps.
4203 (Flookup_key): Perform command remapping initiated by
4204 Fremap_command directly for speed.
4205 (Fkey_binding): Use Fremap_command for command remapping.
4206 (where_is_internal): Handle new command remapping representation.
4207 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
4208 staticpro them. Defsubr Fremap_command.
4209
4210 * keymap.h (Fremap_command): Declare extern.
4211 (is_command_symbol): Remove extern.
31ade731 4212
a34cb674
KS
4213 * keyboard.c (command_loop_1): Use Fremap_command for command
4214 remapping; now try command remapping for all symbols.
4215
f227fded
EZ
42162002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
4217
4218 * coding.h (run_pre_post_conversion_on_str): Add prototype.
4219
54a0c8a6
JR
42202002-02-23 Jason Rumney <jasonr@gnu.org>
4221
4222 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
4223 on the string before encoding it.
4224 (Fw32_get_clipboard_data): Run post-read-conversion on the string
4225 after decoding it.
4226
4227 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
4228
f00691a3 42292002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
042c33d3
PJ
4230
4231 * w32term.c (enter_timestamp): Remove unused static variable to
4232 prevent warning.
4233
4234 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
4235
b72d9870
EZ
42362002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
4237
4238 * w16select.c (Fw16_get_clipboard_data): Fix last change.
4239
4240 * xselect.c (selection_data_to_lisp_data): Fix last change.
4241
48094ace
JR
42422002-02-22 Jason Rumney <jasonr@gnu.org>
4243
4244 * w32term.h (struct w32_output): New member menu_command_in_progress.
4245
4246 * w32menu.c (menubar_selection_callback): Free the menu and
4247 clear the menu_command_in_progress flag.
4248
4249 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
4250 (menu_free_timer): New variable.
4251 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
4252 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
4253 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
4254 menu command is in progress.
31ade731
SM
4255 <WM_COMMAND>: Set the menu_command_in_progress flag.
4256 Kill any menu_free_timer that is running.
48094ace
JR
4257
4258 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
4259 Call ExtTextOutA rather than ExtTextOut.
4260
9feba281
EZ
42612002-02-22 Eli Zaretskii <eliz@gnu.org>
4262
4263 * puresize.h (BASE_PURESIZE): Increase to 755000.
4264
3276b4fe
EZ
42652002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4266
4267 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
4268 on the string before encoding it.
4269 (Fw16_get_clipboard_data): Run post-read-conversion on the string
4270 after decoding it.
4271
fbbe0ace
EZ
42722002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
4273
4274 Support for ICCCM Extended Segments in X selections:
4275
23e16093 4276 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
4277 (syms_of_xselect): Intern and staticpro it.
4278 (selection_data_to_lisp_data): Run post-read-conversion on decoded
4279 selection text.
4280 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 4281 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
4282 compound-text.
4283
4284 * xterm.h (x_encode_text): Update prototype.
4285
4286 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
4287 callers changed. If SELECTIONP is non-zero, run the
4288 pre-write-conversion function before encoding the selection text.
4289
2a28d471
KS
42902002-02-21 Kim F. Storm <storm@cua.dk>
4291
4292 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3 4293
31ade731
SM
4294 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
4295 Correct composing of language-change event.
15fdc2e3 4296
9de46181
KS
42972002-02-20 Kim F. Storm <storm@cua.dk>
4298
4299 * keyboard.c (menu_bar_items): Don't include keymap or local-map
4300 bindings at PT when building menu (the menu is not updated often
4301 enough for this to work reliable).
4302 (tool_bar_items): Likewise.
4303 (current_active_maps): Removed unused (and buggy) function.
4304
f00691a3 43052002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c7f07c4c
PJ
4306
4307 * xfns.c (gif_load): Use correct width and height for GIF images.
4308
f8565280
EZ
43092002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
4310
4311 * floatfns.c (Fatan): Accept an optional second arg and call
4312 atan2 if passed 2 args.
4313
5be86f54
JR
43142002-02-18 Jason Rumney <jasonr@gnu.org>
4315
4316 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
4317
f7b9d4d1
JR
43182002-02-17 Jason Rumney <jasonr@gnu.org>
4319
4320 * w32term.c (x_autoselect_window_p): New variable.
4321 (syms_of_w32term): DEFVAR_BOOL and initialize it.
4322 (note_mouse_movement): Use it.
4323
4324 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
4325
4326 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
4327
4328 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
4329 New variables.
4330 (syms_of_w32fns): Intern and staticpro them.
4331 (x_frame_parms) <"fullscreen">: New parameter.
4332 (x_fullscreen_move, x_set_fullscreen): New functions.
4333 (x_set_frame_parameters): Support Qfullscreen.
31ade731 4334 (x_real_positions): Save x/y_pixels_diff frame params.
f7b9d4d1
JR
4335 (x_figure_window_size): Support full-screen frames.
4336 (Fx_create_frame): Default the fullscreen parameter.
4337
31ade731 4338 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
f7b9d4d1 4339 (x_fullscreen_adjust): New functions.
6c465a15 4340 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
f7b9d4d1 4341 fullscreen. Call x_check_fullscreen_move, and set the
31ade731 4342 want_fullscreen member of output_data.w32
f7b9d4d1
JR
4343 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
4344
4345 * w32term.h: New enum for FULLSCREEN_* constants.
4346 (struct w32_output): New members want_fullscreen, x_pixels_diff,
4347 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
4348 (x-fullscreen-adjust): New prototype.
4349
ce16e8d9
KS
43502002-02-17 Kim F. Storm <storm@cua.dk>
4351
4352 * frame.c: (Vmouse_highlight): New variable.
4353 (syms_of_frame): DEFVAR_LISP it.
4354
4355 * frame.h: (Vmouse_highlight): Declare extern.
4356
4357 * xterm.h (struct x_display_info): Add mouse_face_hidden.
4358
4359 * xterm.c (disable_mouse_highlight): Removed variable.
4360 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
4361 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
4362 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
4363 and on after keyboard input.
4364 (x_term_init): Initialize mouse_face_hidden.
4365
4366 * msdos.h (struct display_info): Add mouse_face_hidden.
4367
4368 * msdos.c (disable_mouse_highlight): Removed variable.
4369 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
4370 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
4371 (internal_terminal_init): Initialize mouse_face_hidden.
4372 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
4373 and on after keyboard input.
4374
4375 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
4376
4377 * w32term.c (disable_mouse_highlight): Removed variable.
4378 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
4379 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
4380 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
4381 and on after keyboard input.
4382 (w32_initialize_display_info): Initialize mouse_face_hidden.
4383
386c4076
EZ
43842002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
4385
9005a471
EZ
4386 * msdos.c (last_mouse_window): New variable.
4387 (dos_rawgetc): Fix last change--if the mouse is in the same window
4388 as recorded in last_mouse_window, don't select this window.
4389
31ade731 4390 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
760627fa 4391
4a137db1
EZ
4392 * msdos.c (x_autoselect_window_p): New variable.
4393 (syms_of_msdos): Defvar it.
2c568af5
SM
4394 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
4395 which the last mouse movement occured, unless it is already selected.
4a137db1 4396
31ade731
SM
4397 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
4398 New variables.
386c4076
EZ
4399 (syms_of_xdisp): DEVFAR them.
4400 (hscroll_window_tree): Use automatic_hscroll_margin and
4401 Vautomatic_hscroll_step to compute the amount of window scrolling.
4402
f00691a3 44032002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5d2200aa 4404
3996d07a
PJ
4405 * xterm.c (x-autoselect-window): New variable.
4406 (note_mouse_movement): Use it.
4407
5d2200aa
PJ
4408 * keyboard.c: Do not include "systime.h" twice.
4409
bdf67c59
AS
44102002-02-15 Andreas Schwab <schwab@suse.de>
4411
5407e8a7
AS
4412 * puresize.h (BASE_PURESIZE): Increase to 9/5.
4413
bdf67c59
AS
4414 * alloc.c (NSTATICS): Increase to 1280.
4415
98659da6
KG
44162002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
4417
f9904178
KG
4418 * alloc.c (NSTATICS): Bump to 1026.
4419
98659da6
KG
4420 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
4421 (Vx_super_keysym): New variables.
4422 (syms_of_xterm): DEFVAR_LISP them.
4423 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
31ade731 4424 variables to determine which keys to use for the various modifiers.
98659da6 4425
a48b709b 44262002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
4427
4428 * window.c: (Vmode_line_in_non_selected_windows): Removed.
4429 (mode_line_in_non_selected_windows): New variable.
4430 (syms_of_window): DEFVAR_BOOL it.
4431
31ade731
SM
4432 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
4433 Use mode_line_in_non_selected_windows.
1c9f5f23
KS
4434 (mode_line_in_non_selected_windows): Declare extern.
4435 (Vmode_line_in_non_selected_windows): Removed extern.
4436
db54c53a
RS
44372002-02-13 Richard M. Stallman <rms@gnu.org>
4438
31ade731
SM
4439 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
4440 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
db54c53a
RS
4441 (Fclear_this_command_keys): Doc fixes.
4442
31ade731 4443 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
db54c53a
RS
4444 (update_face_from_frame_parameter): Increment face_change_count
4445 and windows_or_buffers_changed to force redisplay using changed faces.
4446
4447 * xdisp.c (QCpropertize): New variable.
4448 (mode_line_proptrans_alist): New variable.
4449 (display_mode_element): New arg PROPS; all calls changed.
4450 Implement this, for strings.
4451 Handle literal output of strings by sharing the
4452 main-line code for strings, using local var `literal'.
4453 Handle :propertize feature.
31ade731 4454 (syms_of_xdisp): Initialze and staticpro QCpropertize and
db54c53a 4455 mode_line_proptrans_alist.
31ade731 4456
a48b709b 44572002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
4458
4459 * window.c: (Vmode_line_in_non_selected_windows): New variable.
4460 (syms_of_window): DEFVAR_LISP it.
4461
4462 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
4463 (CURRENT_MODE_LINE_FACE_ID): Use it.
4464 (Vmode_line_in_non_selected_windows): Declare extern.
4465
4466 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
4467 to get mode line face.
4468
573a237a
EZ
44692002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
4470
4471 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
4472 variables; cus-start.el doesn't need them anymore.
4473
73df3b72
KS
44742002-02-09 Kim F. Storm <storm@cua.dk>
4475
4476 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
4477 reduction. This fixes a display problem where stray newlines were
4478 inserted in the window (corrected by C-l). Clarified code (IMHO).
4479
18b0be7c
EZ
44802002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
4481
4482 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
4483
4484 * xdisp.c (display_mode_lines): Fix last change.
4485
442ca9ba
JR
44862002-02-09 Jason Rumney <jasonr@gnu.org>
4487
4488 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
4489 match each other.
3acfb461
JR
4490 (w32_load_system_font): Prevent Cleartype fonts from loading.
4491 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 4492
cdefda26
KS
44932002-02-09 Kim F. Storm <storm@cua.dk>
4494
4495 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
4496 (CURRENT_MODE_LINE_HEIGHT): Use it.
4497 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
4498
4499 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
4500 (pos_visible_p, handle_face_prop): Likewise.
4501 (display_mode_lines): Likewise, but for the real selected window.
4502 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
4503
4504 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
4505 in non-selected windows.
4506 (realize_basic_faces): Realize it.
4507 (syms_of_term): Intern and staticpro it.
4508
9f69e812
KS
45092002-02-08 Kim F. Storm <storm@cua.dk>
4510
31ade731 4511 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
9f69e812
KS
4512 Changed mail addresses to emacs-devel@gnu.org.
4513
6ded2c89
EZ
45142002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
4515
b5d40ceb 4516 * fileio.c (Fsubstitute_in_file_name): If the file name includes
31ade731 4517 ~user, and there's no such user, don't discard everything before ~user.
b5d40ceb 4518
6ded2c89
EZ
4519 * floatfns.c (Fround): Doc fix.
4520
f00691a3 45212002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
4522
4523 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
4524
6a229a63
SM
45252002-02-07 Stefan Monnier <monnier@cs.yale.edu>
4526
db54c53a 4527 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 4528
33b93ee5
KS
45292002-02-07 Kim F. Storm <storm@cua.dk>
4530
4531 * keymap.c (where_is_internal): Only check whether definition is
4532 remapped if it fulfills is_command_symbol.
4533
72bba9f2
AS
45342002-02-07 Andreas Schwab <schwab@suse.de>
4535
4536 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
4537
4538 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
4539
93607efd
KS
45402002-02-06 Kim F. Storm <storm@cua.dk>
4541
4542 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
4543 defining command remapping. Doc updated.
4544 (Flookup_key): Remap command through keymap if KEY is a symbol.
4545 (is_command_symbol): New function.
6a229a63
SM
4546 (Fkey_binding): Use it. New optional argument NO-REMAP.
4547 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
4548 recursive call unless that arg is non-nil.
4549 (where_is_internal): New argument no_remap. Callers changed.
4550 Call recursively to find original key bindings for a remapped
4551 comand unless that arg is non-nil.
6a229a63
SM
4552 (Fwhere_is_internal): New optional argument NO-REMAP.
4553 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
4554
4555 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
4556 (is_command_symbol): Added prototype.
4557
4558 * keyboard.c (Vthis_original_command): New variable.
4559 (syms_of_keyboard): DEFVAR_LISP it.
4560 (command_loop_1): Set it, and perform command remapping.
4561
f00691a3 45622002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e 4563
31ade731 4564 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2642a29e 4565
f4ed304f
JR
45662002-02-06 Jason Rumney <jasonr@gnu.org>
4567
4568 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
4569
b5309828
EZ
45702002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
4571
4572 * charset.c (get_charset_id): Use if-else instead of ?:.
4573
108eaabb
RS
45742002-02-06 Richard M. Stallman <rms@gnu.org>
4575
4576 * filelock.c (S_ISLNK): Define if not defined.
4577
bd3567fa
RS
45782002-02-03 Richard M. Stallman <rms@gnu.org>
4579
4580 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
4581
4582 * lread.c (read1): Redesign strategy for force_multibyte and
4583 force_singlebyte. Now is_multibyte records whether read_buffer
4584 is multibyte. Encountering any multibyte character makes it so.
6a229a63 4585
95c11956
SM
45862002-02-02 Stefan Monnier <monnier@cs.yale.edu>
4587
4588 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
4589 with the same sequence, map that sequence to f10 rather than f0.
4590
ee466d0b
AS
45912002-02-03 Andreas Schwab <schwab@suse.de>
4592
4593 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
4594 latter never being defined on GNU/Linux.
4595
f77157da
EZ
45962002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
4597
2c568af5
SM
4598 * xfaces.c (realize_default_face): Don't set the weight and slant of
4599 the default face to Qnormal, unless these attributes are unspecified.
f77157da 4600
f00691a3 46012002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 4602
95c11956
SM
4603 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
4604 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
4605
4606 * eval.c (Fsignal): Remove duplicated declaration of
4607 the variable `display_hourglass_p'.
4608
5e101746
RS
46092002-01-31 Richard M. Stallman <rms@gnu.org>
4610
4611 * editfns.c (region_limit): Nicer error message.
4612
4613 * coding.c (decode_composition_emacs_mule):
4614 Give up if NCOMPONENT gets too large to index `component'.
4615
4616 * callint.c (check_mark): New arg to specify clearer error message.
4617 Callers changed.
4618
46192002-01-27 Richard M. Stallman <rms@gnu.org>
4620
4621 * minibuf.c (Fcompleting_read): Doc fix.
4622
f00691a3 46232002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
4624
4625 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
4626 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
4627 Fix doc-strings.
7a4b11ca 4628
f5798fbd
RS
46292002-01-26 Richard M. Stallman <rms@gnu.org>
4630
4631 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
4632
4633 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
4634 and scroll_up_aggressively.
4635
f00691a3 46362002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
4637
4638 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
4639
3a232704
SM
46402002-01-25 Stefan Monnier <monnier@cs.yale.edu>
4641
4642 * textprop.c (Fnext_property_change, Fnext_single_property_change)
4643 (Fprevious_property_change, Fprevious_single_property_change):
4644 Stay within the narrowed-buffer boundaries.
4645
dd939ea1
EZ
46462002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
4647
4648 * term.c (Ftty_display_color_cells): New function.
4649 (syms_of_term): Defsubr it.
0011f346
EZ
4650 (Ftty_display_color_cells, Ftty_display_color_p): Change the
4651 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
4652
4653 * dispextern.h: Add prototype for set_tty_color_mode and
4654 tty_setup_colors.
4655
aa35b6ad
JR
46562002-01-24 Jason Rumney <jasonr@gnu.org>
4657
4658 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
4659 If region left to draw is not what was expected, mark the frame as
4660 garbaged.
4661
4662 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
4663 Combine the regions returned by BeginPaint and GetUpdateRect.
4664
ab76d376
JR
46652002-01-23 Jason Rumney <jasonr@gnu.org>
4666
4667 * w32term.c (x_update_window_begin): Only hide caret if
4668 w32_use_visible_system_caret is set.
4669 (x_update_window_end): Only show caret if
4670 w32_use_visible_system_caret is set.
4671 (syms_of_w32term): Handle SystemParametersInfo call failing.
4672
4673 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
4674
d89b617d
RS
46752002-01-22 Richard M. Stallman <rms@gnu.org>
4676
4677 * unexelf.c (unexec): Define n so as to cause compilation error
4678 for the code where people have often written n instead of nn.
4679
4680 * .gdbinit (hookpost-run): Defined.
4681
f0b9a067
JD
46822002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
4683
4684 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
4685
5f9338d5
JD
46862002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
4687
4688 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
4689 if fullscreen is being set.
4690
f00691a3 46912002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
4692
4693 * minibuf.c (Fminibuffer_contents)
4694 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
4695 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4696
8cc0e0cf
RS
46972002-01-21 Richard M. Stallman <rms@gnu.org>
4698
4699 * window.c (check_frame_size): Fix minimum height calculation.
4700
d7b8ee68
KR
47012002-01-20 Ken Raeburn <raeburn@gnu.org>
4702
4703 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
4704 height before comparison.
4705 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
4706
c3c14723
JR
47072002-01-20 Jason Rumney <jasonr@gnu.org>
4708
4709 * w32term.c (w32_system_caret_width): Remove.
4710 (w32_use_visible_system_caret): New user flag.
4711 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
4712 Windows reports a screen reader running.
4713 (x_update_window_begin): Hide the system caret.
4714 (x_update_window_end): Show the system caret.
4715 (x_display_and_set_cursor): Don't draw a cursor when
4716 w32_use_visible_system_caret is set. Do not adjust width.
4717
4718 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
4719 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
4720 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
4721 the user requests it. Use system default width when creating.
4722 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
4723
95c11956
SM
4724 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
4725 New window messages.
c3c14723 4726
75e20bec
RS
47272002-01-20 Richard M. Stallman <rms@gnu.org>
4728
4729 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
4730
f00691a3 47312002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
4732
4733 * doprnt.c (doprnt1): Fix typos in error call.
4734
3b927d14
EZ
47352002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
4736
4737 * unexelf.c (unexec) [__sgi]: Support the .got sections.
4738
aa06cb9c
JR
47392002-01-20 Jason Rumney <jasonr@gnu.org>
4740
4741 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
4742 that Windows returns. If a double check fails, try to guess how
4743 ExtTextOut is going to act.
4744
4745 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
4746 in place of stricmp.
4747 (w32_list_synthesized_fonts): Removed.
4748 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
4749 (struct enumfont_t): New element; list.
4750 (enum_font_cb2): List all style and charset variations of a font.
4751 (Fw32_select_font): New optional argument; include_proportional.
4752 Exclude vertical fonts. Exclude proportional fonts unless
4753 include_proportional is non-nil.
4754 (w32_enable_synthesized_fonts): Change to a boolean.
4755 (Fw32_send_sys_command): Doc fix.
4756
f00691a3 47572002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
4758
4759 * dispnew.c (update_frame): Move the variable `tem' to the block
4760 where it is used.
4761
815d969e
JR
47622002-01-19 Jason Rumney <jasonr@gnu.org>
4763
4764 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
4765 call to face-set-after-frame-default.
4766
a1e3dda0
RS
47672002-01-18 Richard M. Stallman <rms@gnu.org>
4768
95c11956 4769 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
4770 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
4771
daf516d3
RS
47722002-01-17 Richard M. Stallman <rms@gnu.org>
4773
4774 * window.c (enlarge_window): When exceeding size of parent,
4775 directly delete all the siblings instead of trying to resize it.
4776
f00691a3 47772002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
4778
4779 * term.c (set_tty_color_mode): Remove unused variable `tem'.
4780
3ddff138
RS
47812002-01-16 Henrik Enberg <henrik@enberg.org>
4782
7adfc0d7 4783 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 4784
465c9390
KS
47852002-01-16 Kim F. Storm <storm@cua.dk>
4786
4787 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
4788 is invisible. This can happen if cursor is on top line of a
4789 window, and we switch to a buffer with a header line.
4790
95c11956 4791 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 4792
f00691a3 47932002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
4794
4795 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
4796 `dont_resize' only when used.
4797
4798 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
4799
26f622b3
EZ
48002002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
4801
4802 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 4803 on multibyteness of elt, not the text in field.
26f622b3 4804
f00691a3 48052002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a 4806
31ade731
SM
4807 * buffer.c (Fkill_all_local_variables):
4808 Increment `update_mode_lines' only once.
1a6db83a 4809
f00691a3 48102002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 4811
aa1977d7
PJ
4812 * lisp.h (adjust_after_replace_noundo)
4813 (Fupdate_coding_systems_internal): Add prototypes.
4814
95c11956 4815 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 4816
3947677c
EZ
48172002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
4818
4819 Support for the --color command-line argument and tty-color-mode
4820 frame parameter:
4821
4822 * term.c (tty_default_color_capabilities, tty_setup_colors)
4823 (set_tty_color_mode): New functions.
4824 (term_init): Call tty_default_color_capabilities.
4825 (Qtty_color_mode_alist): New variable.
4826 (syms_of_term): Intern and staticpro it.
4827
4828 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
4829 frames.
4830 (do_switch_frame): For termcap frames, switch the tty
4831 color mode as specified by the frame's parameters.
4832 (Qtty_color_mode): New variable.
4833 (syms_of_frame): Intern and staticpro it.
4834
4835 * emacs.c (USAGE2): Add the --color option.
4836 (standard_args): Ditto.
4837
8a8e19a3
EZ
48382002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
4839
4840 * xterm.h (struct x_output): New members want_fullscreen,
4841 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
4842 y_pixels_outer_diff.
4843 New enum for FULLSCREEN_* constants.
4844 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
4845 is NULL.
4846 (x_fullscreen_adjust): Add prototype.
4847
4848 * emacs.c (USAGE2): Add the new full-screen arguments.
4849 (standard_args): Ditto.
4850
95c11956
SM
4851 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
4852 New variables.
8a8e19a3
EZ
4853 (syms_of_xfns): Intern and staticpro them.
4854 (x_frame_parms) <"fullscreen">: New parameter.
4855 (x_fullscreen_move, x_set_fullscreen): New functions.
4856 (x_set_frame_parameters): Support for Qfullscreen.
4857 (x_real_positions): More accurate computation of the frame position.
4858 (x_figure_window_size): Support full-screen frames.
4859 (Fx_create_frame): Default the fullscreen parameter.
4860
4861 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
4862 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
4863 <ConfigureNotify>: Don't resize to fullscreen.
4864 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
4865 output_data.x.
4866
4f1b1854
JR
48672002-01-13 Jason Rumney <jasonr@gnu.org>
4868
4869 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
4870 for mice with more than 3 buttons.
4871
4872 * w32term.c (parse_button): New parameter xbutton. Callers changed.
4873 (w32_read_socket): Handle new "XBUTTON" messages.
4874
4875 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
4876 (syms_of_w32fns): DEFVAR_BOOL it.
4877 (w32_wnd_proc): Handle new "XBUTTON" messages.
4878
f00691a3 48792002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 4880
95c11956 4881 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 4882
437dfb9f
AS
48832002-01-13 Andreas Schwab <schwab@suse.de>
4884
4885 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
4886
9f696a00
AS
48872002-01-12 Andreas Schwab <schwab@suse.de>
4888
4889 * .gdbinit (xbuffer): Remove address operator since data is now a
4890 pointer.
4891
d57966d7
RS
48922002-01-11 Richard M. Stallman <rms@gnu.org>
4893
4894 * insdel.c (adjust_after_replace_noundo): New function.
4895
4896 * coding.c (code_convert_region): Don't copy old text if undo disabled.
4897
74779f52
JR
48982002-01-09 Jason Rumney <jasonr@gnu.org>
4899
4900 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
4901 when checking for multiple frames.
4902
a474d59c
RS
49032002-01-08 Richard M. Stallman <rms@gnu.org>
4904
4905 * window.c (delete_window): Rewrite the code for changing the
4906 selected window to handle the case where WINDOW is not a leaf.
4907
fbb70ad9
EZ
49082002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
4909
4910 * process.c (send_process): Set src_multibyte to 1 after the call
4911 top setup_coding_system, not before the call.
4912
2d10309f
JR
49132002-01-07 Jason Rumney <jasonr@gnu.org>
4914
4915 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 4916 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
4917
4918 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
4919 (w32_dialog_show): Initialize wv->help to Qnil.
4920
7f2cddf3
JR
49212002-01-06 Jason Rumney <jasonr@gnu.org>
4922
0b1e6b54
JR
4923 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
4924
7f2cddf3
JR
4925 * w32menu.c (w32_menu_display_help): Revert last change.
4926
4927 * xmenu.c (menu_highlight_callback): Revert last change.
4928
e17144de
AS
49292002-01-06 Andreas Schwab <schwab@suse.de>
4930
4931 * insdel.c (make_gap_larger): Make sure buffer size does not
4932 overflow range of int.
4933
6637c996
JR
49342002-01-05 Jason Rumney <jasonr@gnu.org>
4935
44368f8f
JR
4936 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
4937 OVERLAPS_P.
4938
f884b6f4
JR
4939 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
4940
6637c996
JR
4941 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
4942 to the left or to the right of the pointer, put it against
4943 the left screen edge.
4944 (x_frame_parms): Add missing braces around initializer.
4945
4946 * w32term.c (x_setup_relief_colors): Don't compute an image's
4947 background color if it doesn't have a Pixmap.
4948 (notice_overwritten_cursor): Don't depend on
4949 output_cursor and updated_area. Compare pixel coordinates with
4950 window's cursor pixel coordinates.
3a232704
SM
4951 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
4952 Call notice_overwritten_cursor with new arg list.
6637c996
JR
4953 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
4954 unconditionally.
4955 (x_draw_image_relief): Use predefined macro instead of
4956 constant when the value of `tool_bar_button_relief' is negative.
4957
4958 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
4959
453c5510
RS
49602002-01-04 Richard M. Stallman <rms@gnu.org>
4961
4962 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
4963
d1d070e3
RS
49642002-01-03 Richard M. Stallman <rms@gnu.org>
4965
4966 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
4967 (Fkey_binding): Try the `keymap' property map first.
4968 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
4969 minor mode bindings.
4970
9ec1bdb6
KS
49712002-01-03 Kim F. Storm <storm@cua.dk>
4972
4973 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
4974
308dd672
RS
49752002-01-02 Richard M. Stallman <rms@gnu.org>
4976
edde72f6
RS
4977 * keyboard.c (read_key_sequence): Handle the keymap property
4978 before minor mode maps.
4979
308dd672
RS
4980 * editfns.c (Fformat): Update thissize from field_width
4981 based on the actual width, in the string case.
4982
f00691a3 49832002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 4984
03950b5b
PJ
4985 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
4986 when used as truth value to prevent gcc warnings.
4987
3c1e6b46
PJ
4988 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
4989 * w32proc.c: Include <config.h>.
4990
c1e11810
AS
49912002-01-01 Andreas Schwab <schwab@suse.de>
4992
4993 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
4994 not EMACS_INT, to make them compatible with DEFVAR_INT.
4995 * lisp.h (max_specpdl_size): Adjust declaration.
4996
1996baee
RS
49972002-01-01 Richard M. Stallman <rms@gnu.org>
4998
4999 * print.c (print_object): Test print_escape_nonascii only for
5000 unibyte strings.
5001 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
5002 when outputting to a multibyte buffer.
5003
0065bb74
RS
50042001-12-29 Richard M. Stallman <rms@gnu.org>
5005
5006 * print.c (print_object): In multibyte string, use hex escapes.
5007 Use octal only for unibyte strings.
5008 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
5009
5010 * lread.c (read_escape): New arg BYTEREP for reporting whether
5011 escape forces unibyte or multibyte.
5012 (read1): When reading a string, take note of that info.
5013
b5cb6072
KR
50142001-12-29 Ken Raeburn <raeburn@gnu.org>
5015
5016 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
5017 comparison to test lisp value returned by Fget.
5018
15fff01d
RS
50192001-12-29 Richard M. Stallman <rms@gnu.org>
5020
0065bb74
RS
5021 * lisp.h (max_specpdl_size): Add declaration.
5022
0d8466cc
RS
5023 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
5024
15fff01d
RS
5025 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
5026 Handle modifier bits. Correct typo in error message.
5027
2fae9111
RS
50282001-12-28 Richard M. Stallman <rms@gnu.org>
5029
2d6c1fc0
RS
5030 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
5031 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
5032 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
5033 Update calls to Fdefine_abbrev.
5034 (write_abbrev): Update for changed data format.
5035 Don't list "system" abbrevs.
5036 (Fexpand_abbrev): Update use count with new data format.
5037 (describe_abbrev): Update for changed data format.
5038 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
5039
07025a55
RS
5040 * config.in (HAVE_MBSINIT): Add #undef.
5041
5042 * strftime.c (mbsinit): Define as no-op if not available.
5043
5044 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
5045 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
5046
ce6eef6e
RS
5047 * keymap.c (Flookup_key): Error message if key has wrong data type.
5048 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 5049 (exclude_key): New variable.
3a232704 5050
539e92ad
GM
50512001-12-28 Gerd Moellmann <gerd@gnu.org>
5052
0cb8bb48
GM
5053 * xterm.c (x_setup_relief_colors): Don't compute an image's
5054 background color if it doesn't have a Pixmap.
3a232704 5055
60626bab
GM
5056 * xterm.c (notice_overwritten_cursor): Don't depend on
5057 output_cursor and updated_area. Compare pixel coordinates with
5058 window's cursor pixel coordinates.
3a232704
SM
5059 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5060 Call notice_overwritten_cursor with new arg list.
60626bab
GM
5061 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5062 unconditionally.
0cb8bb48 5063
539e92ad
GM
5064 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
5065 height of the cursor line to the amount to scroll.
5066
4e02881b
RS
50672001-12-27 Richard M. Stallman <rms@gnu.org>
5068
5069 * intervals.c (set_point_both): The position after an invisible,
5070 intangible character is not an acceptable stopping point.
5071
1ab964d7
KR
50722001-12-27 Ken Raeburn <raeburn@gnu.org>
5073
5074 * window.c (enlarge_window): In new preserve_before code, convert
5075 CURBEG from lisp object to integer before doing arithmetic.
5076
749f499f
RS
50772001-12-27 Richard M. Stallman <rms@gnu.org>
5078
5079 * bytecode.c (Fbyte_code): Undo previous change.
5080
b5d9aaba
KS
50812001-12-26 Kim F. Storm <storm@cua.dk>
5082
5083 * keyboard.c (record_char): Ignore duplicate help-echo events only
5084 separated by mouse-movement. When tracking mouse, only record
5085 first and last mouse-movement event in same window.
5086 Don't record mouse-movement events in keyboard macros.
3a232704 5087
d0fd26dd
RS
50882001-12-25 Richard M. Stallman <rms@gnu.org>
5089
b4c45162
RS
5090 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
5091 (Fenlarge_window): New arg PRESERVE_BEFORE.
5092
d0fd26dd
RS
5093 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
5094 instead of Fstring_as_unibyte.
5095
f00691a3 50962001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 5097
3a232704 5098 The following changes remove mocklisp support:
c95eaa61
PJ
5099
5100 * mocklisp.h, mocklisp.c: Files removed.
5101
5102 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
5103 `Qmocklisp' and `Qmocklisp_arguments'.
5104 Remove prototype of syms_of_mocklisp.
5105
3a232704 5106 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
5107
5108 * callint.c: Do not include mocklisp.h.
5109 (Fcall_interactively): Do not test for mocklisp case.
5110
5111 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
5112 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
5113 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
5114 Do not test for mocklisp case.
c95eaa61
PJ
5115 (Fwhile): Remove unused variable `tem'.
5116 (syms_of_eval): Remove variable `moclisp-arguments'.
5117
5118 * data.c (wrong_type_argument): Remove mocklisp case.
5119
5120 * doc.c (Fdocumentation): Remove mocklisp case.
5121
5122 * emacs.c (main): Do not call syms_of_mocklisp.
5123
31877e0a
RS
51242001-12-21 Richard M. Stallman <rms@gnu.org>
5125
5126 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
5127 to the left or to the right of the pointer, put it against
5128 the left screen edge.
5129
e2c3786a
EZ
51302001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
5131
5132 * Makefile.in (distclean): Remove .gdbinit if we are building
5133 outside the source tree.
5134
c513fc03
EZ
51352001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
5136
bf794306
EZ
5137 * w32.c (emacs_root_dir): New function.
5138
5139 * msdos.c (emacs_root_dir): New function.
5140
5141 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
5142 of the current drive as the fallback for default_directory.
5143
62582985
EZ
5144 * dired.c (file_name_completion): Run the elements of
5145 completion-ignored-extensions through ENCODE_FILE.
5146
c513fc03
EZ
5147 * lisp.h (scmp): Remove prototype, since it's now a static
5148 function private to dired.c.
5149
3509a04c
RS
51502001-12-18 Richard M. Stallman <rms@gnu.org>
5151
5152 * dired.c (scmp): Function moved from minibuf.c.
5153 Delete multibyte handling--used only on encoded strings.
5154
5155 * minibuf.c (scmp): Function moved to dired.c.
5156
5157 * fns.c (merge): Add QUIT call.
5158
1e9a6186
DL
51592001-12-18 Dave Love <fx@gnu.org>
5160
5161 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
5162 language/georgian.el.
5163
e4e34e31
EZ
51642001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
5165
5166 * Makefile.in (lisp, shortlisp): Synchronize with changes to
5167 lisp/Makefile.in:DONTCOMPILE.
5168
f00691a3 51692001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 5170
7c75be36
PJ
5171 * xdisp.c (window_box_height): Do not return negative values.
5172 From Gerd Moellmann <gerd@gnu.org>.
5173
4521d1fc
PJ
5174 * keyboard.c (head_table): Add missing braces around initializer.
5175
5176 * term.c (keys): Likewise.
5177
5178 * xfns.c (x_frame_parms, visual_classes): Likewise.
5179
93dec019
SS
51802001-12-17 Sam Steingold <sds@gnu.org>
5181
5182 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
5183 patch (COMPOSING_P, not COMPOSING).
5184
905cc05a
RS
51852001-12-17 Richard M. Stallman <rms@gnu.org>
5186
2ed06289
RS
5187 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
5188
0e79d667
RS
5189 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
5190 before calling decode_coding.
5191
5192 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
5193
5194 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
5195 instead of only for COMPOSITION_DISABLED.
5196
82a7ab23
RS
51972001-12-16 Richard M. Stallman <rms@gnu.org>
5198
d75bec6a
RS
5199 * alloc.c (pure_alloc): After overflow, allocate just a small block.
5200
52dcb476
RS
5201 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
5202
82a7ab23
RS
5203 * buffer.h (struct buffer): New field `display_error_modiff'.
5204 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
5205
5206 * window.c (Frecenter): Clear display_error_modiff field.
5207
5208 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
5209 Call redisplay_window, but not if display_error_modiff field says no.
5210 (redisplay_window_error): New function.
5211 (displayed_buffer): New variable.
5212 (redisplay_internal, redisplay_windows): Call the new functions
5213 instead of redisplay_window directly.
5214
4d0fa4f3
RS
52152001-12-15 Richard M. Stallman <rms@gnu.org>
5216
5217 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
5218
493faf20
AI
52192001-12-14 Andrew Innes <andrewi@gnu.org>
5220
325111e9
AI
5221 * makefile.w32-in (EMACSLOADPATH): Define.
5222 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
5223 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 5224
4971e491
EZ
52252001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
5226
397b3b50 5227 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
5228 parameter have a numeric value all the time.
5229
5230 * w32fns.c (x_report_frame_params): Likewise.
5231
d911a0fa
RS
52322001-12-12 Richard M. Stallman <rms@gnu.org>
5233
5234 * fileio.c (Fwrite_region): Doc fix.
5235
5236 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
5237 (redisplay_internal): Call clear_image_cache only for window terminals.
5238
201c831a
GM
52392001-12-12 Gerd Moellmann <gerd@gnu.org>
5240
5241 * xdisp.c (move_it_vertically_backward): Change heuristic
5242 for the case that we didn't move far enough initially.
5243
5244 * window.c (Frecenter): Simplify computation in the case of window
5245 system frames and ARG < 0; use window_box_height.
5246
34e39c95
RS
52472001-12-11 Richard M. Stallman <rms@gnu.org>
5248
5249 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
5250 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
5251
d77fbc16
AI
52522001-12-11 Andrew Innes <andrewi@gnu.org>
5253
5254 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
5255 arg is negative.
5256
61e3b944
RS
52572001-12-11 Richard M. Stallman <rms@gnu.org>
5258
5259 * m/hp800.h: Split the __hpux conditional into the parts
5260 that are right for GNU/Linux too and the parts that are not.
5261 Use the former if GNU_LINUX.
5262 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
5263
5264 * s/gnu-linux.h (GNU_LINUX): Defined.
5265
f00691a3 52662001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
5267
5268 * macros.c, msdos.c, w16select.c: Change doc-string comments to
5269 `new style' [w/`doc:' keyword].
5270
8af01033
JR
52712001-12-10 Jason Rumney <jasonr@gnu.org>
5272
5273 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
5274 before using.
5275
f00691a3 52762001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
5277
5278 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
5279 keyword].
5280
d9e6c4b1
EZ
52812001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
5282
d20fc48a
EZ
5283 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
5284
d9e6c4b1
EZ
5285 * s/hpux10.h (srand48): Don't undefine.
5286
f1a85b89
JR
52872001-12-09 Jason Rumney <jasonr@gnu.org>
5288
3a232704
SM
5289 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
5290 Add comment to explain where the struct came from.
f1a85b89
JR
5291 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
5292 (add_menu_item): Process pop-up menus first to avoid memory leak.
5293 (add_menu_item, w32_menu_display_help): Use `help' field as
5294 Lisp_Object.
5295 (w32_free_submenu_strings): Only free owner-drawn strings.
5296
f00691a3 52972001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 5298
72244db2
PJ
5299 * COPYING: Moved back.
5300
3a62677f
PJ
5301 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
5302 Add parentheses around && within ||.
5303
5304 * indent.c (compute_motion): Likewise.
5305
5306 * intervals.c (merge_properties_sticky): Likewise.
5307
5308 * coding.c (setup_coding_system, shrink_encoding_region)
5309 (Fdecode_sjis_char): Likewise.
5310
9d113d9d
AS
53112001-12-07 Andreas Schwab <schwab@suse.de>
5312
b8523839
AS
5313 * xdisp.c (display_mode_element): Don't read past end of string if
5314 it ends with '%'.
5315
9464dea4
AS
5316 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
5317 can hold.
5318
2c568af5
SM
5319 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
5320 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
9d113d9d
AS
5321 type changed to Lisp_Object.
5322 (syms_of_data): DEFVAR_LISP them.
5323
70ec1377
RS
53242001-12-07 Richard M. Stallman <rms@gnu.org>
5325
5326 * callproc.c (init_callproc): Set Vdata_directory based on the source
5327 location whenever Emacs was run uninstalled.
5328
92f7dd37
PE
53292001-12-06 Paul Eggert <eggert@twinsun.com>
5330
5331 * config.in (HAVE_WORKING_VFORK): New #undefs.
5332 * process.c (create_process):
5333 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
5334 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
5335 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
5336 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
5337 * m/intel386.h (HAVE_VFORK): Likewise.
5338 * m/mips-siemens.h (HAVE_VFORK): Likewise.
5339 * m/mips.h (HAVE_VFORK): Likewise.
5340 * s/freebsd.h (vfork): Remove #define.
5341 * s/lynxos.h (HAVE_VFORK): Remove #undef.
5342 * s/usg5-4-2.h: Fix comment about vfork.
5343
c93674bb
RS
53442001-12-06 Richard M. Stallman <rms@gnu.org>
5345
5346 * s/hpux10.h (random): Add undef.
5347 (HAVE_RANDOM): Define it just once.
5348
59b59892
SM
53492001-12-06 Stefan Monnier <monnier@cs.yale.edu>
5350
5351 * eval.c: Undo last change: the standard syntax is not wanted.
5352
c6ea2775
EZ
53532001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
5354
5355 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
5356 scroll bars of the frame before deleting the frame itself. If the
5357 frame has a widget, delete the frame with XtDestroyWidget, and do
5358 not call XDestroyWindow before that.
5359
91175673
KS
53602001-12-06 Kim F. Storm <storm@cua.dk>
5361
5362 * xfns.c (x_report_frame_params): Return actual fringe widths.
5363
5364 * w32fns.c (x_report_frame_params): Return actual fringe widths.
5365
e0fead5d
AI
53662001-12-05 Andrew Innes <andrewi@gnu.org>
5367
5368 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
5369 excessively large.
5370
5371 * insdel.c (make_gap_larger): New function.
5372 (make_gap_smaller): New function.
2c568af5
SM
5373 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
5374 Call make_gap_smaller if arg is negative.
e0fead5d 5375
c186cdb3
SM
53762001-12-04 Stefan Monnier <monnier@cs.yale.edu>
5377
5378 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
5379 Pass a dummy argument when calling interrupt_signal.
5380 (parse_menu_item): Mark disabled items before checking for empty def.
5381 (read_char_minibuf_menu_prompt): Make safety more visible.
5382 (read_key_sequence): Add a `first_unbound' variable.
5383 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
5384 unbound prefix as soon as we can detect it.
5385
5386 * doc.c (Fsnarf_documentation): Add prototype.
5387 (get_doc_string): Handle negative arguments.
5388 (Fdocumentation): Use AREF and ASIZE.
5389 Move the calls to get_doc_string to a single place.
5390 Don't confuse an interactive-spec for a docstring reference.
5391 (Fdocumentation_property): Take advantage of the fact that
5392 get_doc_string now ignores the sign of the docstring position.
5393
5394 * eval.c: Use standard syntax for usage in docstrings.
5395
f00691a3 53962001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 5397
c186cdb3 5398 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 5399
f00691a3 54002001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
5401
5402 * xterm.c (x_draw_image_relief): Use predefined macro instead of
5403 constant when the value of `tool_bar_button_relief' is negative.
5404
656f46bb
RS
54052001-12-02 Richard M. Stallman <rms@gnu.org>
5406
5407 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
5408 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
5409
5410 * fileio.c (read_non_regular): Delete Fsignal call.
5411
036e218d
SM
54122001-12-01 Stefan Monnier <monnier@cs.yale.edu>
5413
5414 * lisp.h (run_hook_list_with_args): Undo last change.
5415
7ddb2c16
GM
54162001-12-01 Gerd Moellmann <gerd@gnu.org>
5417
5418 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
5419
ace9b298
JR
54202001-12-01 Jason Rumney <jasonr@gnu.org>
5421
90647b07
JR
5422 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
5423
5424 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
5425 [!WM_MOUSELEAVE]: Define.
5426
ace9b298
JR
5427 * w32menu.c (current_popup_menu, get_menu_item_info):
5428 (set_menu_item_info): New vars.
5429 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
5430 (w32_menu_show): Set current_popup_menu.
5431 (add_menu_item): Allocate new strings for owner-drawn menu items
5432 and help strings.
5433 Use owner-draw for disabled menu items again.
5434 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
5435 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
5436
5437 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
5438 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
5439 <WM_EXITMENULOOP>: Free menu strings.
5440 <WM_MOUSELEAVE>: Stop tracking mouse.
5441 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
5442
5443 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
5444 and mouse face.
5445
a9549909 54462001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
5447
5448 The following changes add left-fringe and right-fringe
5449 frame parameters to adjust fringe widths, or remove one or
5450 both fringes.
036e218d 5451
9fbc32aa
KS
5452 * frame.h (struct frame): Remove trunc_area_pixel_width and
5453 trunc_area_cols fields.
5454 (Qleft_fringe, Qright_fringe): Declare.
5455 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
5456
5457 * frame.c (Qleft_fringe, Qright_fringe): New vars.
5458 (syms_of_frame): Initialize them.
5459
5460 * window.c (coordinates_in_window): Handle separate left and right
5461 fringe widths.
5462
5463 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
5464 and fringe_cols fields.
5465 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
5466 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
5467 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
5468 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
5469 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
5470 (x_compute_fringe_widths): Add prototype.
5471
5472 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
5473 fill fringe evenly with small dashes.
5474 (x_draw_fringe_bitmap): Clear background if necessary. Align and
5475 clip the new ZV bitmap to avoid jitter between rows.
5476 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
5477 background. Don't draw fringe bitmaps if fringe width is zero.
5478 (x_compute_fringe_widths): New function.
5479 (x_new_font, x_set_window_size_1): Use it.
5480
5481 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 5482 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
5483 parameters as fringe widths depend on it.
5484 (x_set_fringe_width): New function.
5485 (x_figure_window_size): Use x_compute_fringe_widths.
5486 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
5487 parameters.
5488
5489 * widget.c (set_frame_size): Use x_compute_fringe_widths.
5490 (EmacsFrameSetCharSize): Ditto.
5491
5492 * w32term.h: Merged changes from xterm.h.
5493 * w32term.c: Merged changes from xterm.c.
5494 * w32fns.c: Merged changes from xfns.c.
5495
f00691a3 54962001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
5497
5498 * COPYING: Removed.
5499
d4824a5d
DL
55002001-11-29 Dave Love <fx@gnu.org>
5501
5502 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
5503 extra extra slot.
5504 (detect_coding_mask): Fix call of detect_coding_iso2022.
5505
f00691a3 55062001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
5507
5508 * fileio.c (file-name-coding-system)
5509 (default-file-name-coding-system): Doc fix (links to referenced
5510 variables added).
5511
3ce081f5
SM
55122001-11-28 Stefan Monnier <monnier@cs.yale.edu>
5513
99e380ee
SM
5514 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
5515 Add dummy uses of gcproN variables.
5516
3ce081f5 5517 * category.c (describe_category, describe_category_1)
2ad56c09 5518 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
5519 (syms_of_category): Don't defsubr Sdescribe_categories.
5520
66458f32
RS
55212001-11-28 Richard M. Stallman <rms@gnu.org>
5522
5523 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
5524
5525 * Makefile.in (lispdir): New variable, referring to build dir.
5526 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
5527
59a86c99
AI
55282001-11-28 Andrew Innes <andrewi@gnu.org>
5529
5530 * w32menu.c (w32_menu_display_help): Actually add the new argument
5531 OWNER.
5532
eb77a5f4
JR
55332001-11-28 Jason Rumney <jasonr@gnu.org>
5534
5535 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
5536 menu items. From David Ponce <dponce@wanadoo.fr>.
5537 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
5538 conditionally.
5539 (w32_menu_display_help): New argument OWNER. Rewritten to store a
5540 help event in the owner frame's keyboard buffer.
5541
5542 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
5543 (Fx_show_tip): Don't subtract last width from row width.
5544
5545 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
5546 (w32_read_socket): Use EQ to compare frames.
5547
bb313871
GM
55482001-11-28 Gerd Moellmann <gerd@gnu.org>
5549
5550 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
5551 OVERLAPS_P.
5552
f00691a3 55532001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 5554
6052529b
PJ
5555 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
5556 `gcpro3' and `gcpro4'.
5557
3ce081f5
SM
5558 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
5559
55602001-11-28 Stefan Monnier <monnier@cs.yale.edu>
5561
5562 * ccl.c: Use AREF and ASIZE.
5563
55642001-11-27 Stefan Monnier <monnier@cs.yale.edu>
5565
5566 * lisp.h (run_hook_list_with_args): Remove.
5567 (LIST_END_P): Fix call to wrong_type_argument.
5568 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 5569
111ed14e
SM
55702001-11-26 Stefan Monnier <monnier@cs.yale.edu>
5571
9fabb2f5
SM
5572 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
5573 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
5574
5575 * eval.c: Use AREF and ASIZE.
5576 (Ffetch_bytecode): Add the file name to the error message.
5577
5578 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
5579 which match the end of the file-name.
5580 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
5581 is not a valid env var, but leave it as is instead.
5582
111ed14e
SM
5583 * keymap.c (access_keymap): Handle t bindings like nil bindings.
5584 Make nil bindings in char-tables transparent.
5585 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
5586
2fa0eedf
RS
55872001-11-26 Richard M. Stallman <rms@gnu.org>
5588
d1420435
RS
5589 * textprop.c (set_text_properties_1): Allow START, END in either order.
5590 Do nothing if range is empty.
5591
2fa0eedf
RS
5592 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
5593
ebcbef4e
RS
5594 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
5595 (clean): Not here.
5596
5c131048
SM
55972001-11-25 Stefan Monnier <monnier@cs.yale.edu>
5598
5599 * textprop.c (set_text_properties_1): Clearly mark that the
5600 interval should not be empty.
5601
5602 * intervals.c (graft_intervals_into_buffer):
5603 Don't call set_text_properties_1 on an empty interval.
5604
96d276c3
RS
56052001-11-25 Richard M. Stallman <rms@gnu.org>
5606
6108b49c
RS
5607 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
5608
96d276c3
RS
5609 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
5610 don't lose the data in it.
5611
5eea19a4
RS
56122001-11-25 Juanma Barranquero <lektu@terra.es>
5613
5614 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
5615
5616 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
5617
5618 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
5619
438e57dd
SM
56202001-11-25 Stefan Monnier <monnier@cs.yale.edu>
5621
5622 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
5623
c88e5347
EZ
56242001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
5625
5626 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
5627 Niemitalo <kon@iki.fi>.
5628
59ce1461
JR
56292001-11-25 Jason Rumney <jasonr@gnu.org>
5630
5631 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
5632
5633 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
5634 (Fx_show_tip): Block input during frame creation.
5635 (Fx_show_tip, Fx_hide_tip): Enable.
5636
8727d588
RS
56372001-11-24 Richard M. Stallman <rms@gnu.org>
5638
5639 * lread.c (Fload): Detect recursive load error for more than 3
5640 nestings of the same file.
5641 (Vrecursive_load_depth_limit): Variable deleted.
5642 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
5643
cc63037e
JR
56442001-11-24 Jason Rumney <jasonr@gnu.org>
5645
5646 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
5647 mouse position if either left or top is not specified.
5648
5649 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
5650 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
5651 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
5652 (my_create_tip_window): Assign tip_window.
5653 (x_create_tip_frame): Use same defaults as X.
5654 (compute_tip_xy): Remove unused variable. Use full screen width.
5655 (Fx_show_tip): Do not double height. Call ShowWindow directly.
5656
5657 * w32term.c (x_after_update_window_line): Doc fix.
5658 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
5659 frames.
5660 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
5661
5662 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
5663 for all Windowed systems.
5664
deece6f5
EZ
56652001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
5666
5667 * msdos.c (IT_clear_screen): If the frame's faces are not yet
5668 realized, use the initial screen colors to clear the screen.
5669
f00691a3 56702001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 5671
28ff4293
PJ
5672 * textprop.c (Fset_text_properties): Remove unused variables
5673 `unchanged', `prev_changed', `s' and `len'.
5674
56167cc5
PJ
5675 * search.c (Freplace_match): Remove unused variable `inslen'.
5676
1b944d9c
PJ
5677 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
5678
ca56d953
JR
56792001-11-22 Jason Rumney <jasonr@gnu.org>
5680
5681 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
5682 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
5683 (my_create_tip_window): New function.
5684 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 5685 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 5686
33399dce
JR
56872001-11-20 Jason Rumney <jasonr@gnu.org>
5688
5689 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
5690 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
5691
5692 * w32fns.c (Vw32_system_coding_system): Remove.
5693 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
5694
9b46de40
SM
56952001-11-19 Stefan Monnier <monnier@cs.yale.edu>
5696
6710ea06
SM
5697 * fileio.c (Fwrite_region): Move choose_write_coding_system to
5698 after build_annotations.
5699
a395ef6a
SM
5700 * syntax.c (describe_syntax): Add dummy arg.
5701 (describe_syntax_1): Update call to describe_vector.
5702
5703 * category.c (describe_category): Add dummy arg.
5704 (describe_category_1): Update call to describe_vector.
5705
5706 * keymap.c (Fdescribe_vector): Add `describer' parameter.
5707 (describe_command, describe_translation): Add dummy second param.
5708 (describe_map): Call elt_describer with two arguments.
5709 (describe_vector_princ): Add `fun' parameter.
5710 Call it instead of the hardcoded `princ'.
5711 (describe_vector): Add arg `args'.
5712 Pass it as a new second argument to elt_describer.
5713
5714 * keymap.h (describe_vector): Update prototype.
5715
9b46de40
SM
5716 * frame.c: Don't include keymap.h any more.
5717 (keys_of_frame): Remove.
5718
5719 * lisp.h (keys_of_frame): Remove declaration.
5720
5721 * emacs.c (main): Don't call `keys_of_frame' any more.
5722
aff37336
SS
57232001-11-14 Andreas Schwab <schwab@suse.de>
5724
5725 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
5726 if defined, 0 otherwise.
9b46de40 5727 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
5728 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
5729
b9937f07
RS
57302001-11-19 Richard M. Stallman <rms@gnu.org>
5731
5732 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
5733
2cd23960
JR
57342001-11-18 Jason Rumney <jasonr@gnu.org>
5735
5736 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
5737 (x_draw_bar_cursor): If the background color of the glyph under
5738 the cursor equals the frame's cursor color, use the glyph's
5739 foreground color for drawing the bar cursor.
5740 (x_after_update_window_line): Clear internal border in different
5741 circumstances.
5742 (w32_set_vertical_scroll_bar): Check for width and height > 0.
5743 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
5744 (x_set_glyph_string_background_width):
5745 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
5746 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
5747 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
5748 if cursor_in_non_selected_windows is false.
9b46de40 5749 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
5750 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
5751 Notice if cursor gets overwritten.
5752 (notice_overwritten_cursor): Renamed from
5753 note_overwritten_text_cursor. Rewritten to take glyph widths
5754 into account, and to take X positions as parameters.
5755 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
5756 around call to x_draw_glyphs.
5757 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
5758 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
5759 color to use for image glyph reliefs.
5760 (x_draw_image_relief): Accept zero tool_bar_button_relief.
5761 (glyph_rect): Remove unused variable `area'.
5762
5763 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
5764 some items.
5765 (x_set_internal_border_width): Set frame garbaged when window
5766 doesn't exist yet.
5767 (Fx_create_frame): Accept zero tool_bar_button_relief.
5768 (x_clear_image_1, four_corners_best, image_background)
5769 (image_background_transparent): New functions.
5770 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
5771 (gs_format): Add `:background' entry.
5772 (lookup_image): Set IMG's background color if specified.
5773 (pbm_load, xbm_load_image, png_load): Set IMG's background field
5774 when appropriate.
5775 (x_clear_image_1): Reset `background_valid' and
5776 `background_transparent_valid' fields.
5777 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
5778 calculating it here. Set IMG's background_transparent field.
5779 (enum xpm_keyword_index): Add XPM_BACKGROUND.
5780 (enum png_keyword_index): Add PNG_BACKGROUND.
5781 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
5782 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
5783 (enum gif_keyword_index): Add GIF_BACKGROUND.
5784 (enum gs_keyword_index): Add GS_BACKGROUND.
5785 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
5786 Pre-calculate image background color where necessary.
9b46de40
SM
5787 (x_create_x_image_and_pixmap, xbm_load, gs_load):
5788 Use display info's n_cbits entry for screen depth.
2cd23960
JR
5789 (Fx_show_tip): Remove unused variables `buffer', `top',
5790 `left', `max_width' and `max_height'.
5791
5792 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
5793
a4184c1c
GM
57942001-11-18 Gerd Moellmann <gerd@gnu.org>
5795
5796 * puresize.h (BASE_PURESIZE): Increase to 750000.
5797
f00691a3 57982001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
5799
5800 * frame.c (Fframe_live_p): Doc fix.
5801
f4ca4b00
RS
58022001-11-18 Richard M. Stallman <rms@gnu.org>
5803
5804 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
5805 (message_dolog_marker3): New static variables hold three markers.
5806 (syms_of_xdisp): Initialize and staticpro them.
5807 (message_dolog): Use message_dolog_marker1..3 instead of
5808 allocating markers each time. Unchain them when done.
5809
f4e25f94
RS
58102001-11-17 Richard M. Stallman <rms@gnu.org>
5811
5812 * doc.c (Fsnarf_documentation): Doc fix.
5813
91c153e2
AS
58142001-11-17 Andreas Schwab <schwab@suse.de>
5815
5816 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
5817
65b7d3e7
RS
58182001-11-17 Richard M. Stallman <rms@gnu.org>
5819
5820 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
5821
6b5f6311
JR
58222001-11-17 Jason Rumney <jasonr@gnu.org>
5823
5824 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
5825
be676094
GM
58262001-11-17 Gerd Moellmann <gerd@gnu.org>
5827
5828 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
5829 with invalid position.
5830
032a857d
RS
58312001-11-16 Richard M. Stallman <rms@gnu.org>
5832
5833 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
5834
5835 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
5836 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
5837 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
5838
5839 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
5840
b6270150
SM
58412001-11-16 Stefan Monnier <monnier@cs.yale.edu>
5842
5843 * fileio.c (build_annotations): Split off the tail.
5844 (build_annotations_2): New fun. Extracted from build_annotations.
5845 (Fwrite_region): Split the call to build_annotations into two
5846 calls to build_annotations and build_annotations_2.
5847
f00691a3 58482001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 5849
98cbb9fa
PJ
5850 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
5851 clear_waiting_for_input with argument.
5852
5853 * xterm.h (x_update_cursor): Remove duplicated prototype.
5854
b6270150 5855 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 5856
ea904403 5857 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 5858
ea904403 5859 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 5860
fa336b91
SM
58612001-11-16 Stefan Monnier <monnier@cs.yale.edu>
5862
5863 * fileio.c (choose_write_coding_system): New fun, extracted
5864 from Fwrite_region.
5865 (Fwrite_region): Use it.
5866
5867 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
5868 (funcall_lambda, run_hook_with_args): Make static and add prototype.
5869 (ml_apply, find_handler_clause): Add prototype.
5870
077907d4
EZ
58712001-11-16 Eli Zaretskii <eliz@gnu.org>
5872
aa2af83a
EZ
5873 * config.in: Add #undef HAVE_COFF_H.
5874
077907d4
EZ
5875 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
5876 Required for ISC 4.1.
5877
1756e2fb
EZ
58782001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
5879
5880 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
5881 Andrew Wiseman <a.wiseman@btclick.com>.
5882
06e8f738
KS
58832001-11-16 Kim F. Storm <storm@cua.dk>
5884
5885 The following changes are made to clean up the various internal
5886 references to the fringes to actually use the term `fringe' for
5887 them. Previously, they were called `flags areas', `bitmap areas',
5888 `left/right side of windows', or implicitly as `flags' or
5889 `bitmaps':
5890
5891 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
5892 Comments fixed. Use renamed symbols.
fa336b91 5893
06e8f738 5894 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 5895
06e8f738
KS
5896 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
5897 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
5898 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 5899
06e8f738 5900 * msdos.c: Comment fix.
fa336b91 5901
06e8f738 5902 * w32fns.c: Use renamed symbols.
fa336b91 5903
06e8f738
KS
5904 * w32term.c: Comment fixes. Use renamed symbols.
5905 (fringe_bitmap_type): Renamed from bitmap_type.
5906 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
5907 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
5908 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 5909
06e8f738
KS
5910 * w32term.h: Comment fixes. Use renamed symbols.
5911 (fringes_extra): Renamed from flags_areas_extra.
5912 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
5913 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
5914 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
5915 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
5916 (FRAME_X_LEFT_FRINGE_WIDTH):
5917 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
5918 (FRAME_X_RIGHT_FRINGE_WIDTH):
5919 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
5920
06e8f738 5921 * widget.c: Use renamed symbols.
fa336b91 5922
06e8f738
KS
5923 * window.c: Comment fixes. Use renamed symbols.
5924 (coordinates-in-window-p): Doc fix.
fa336b91 5925
06e8f738 5926 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 5927
06e8f738 5928 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 5929
06e8f738 5930 * xfns.c: Use renamed symbols.
fa336b91 5931
06e8f738
KS
5932 * xterm.c: Comment fixes. Use renamed symbols.
5933 (fringe_bitmap_type): Renamed from bitmap_type.
5934 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
5935 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
5936 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
5937
5938 * xterm.h: Comment fixes. Use renamed symbols.
5939 (fringes_extra): Renamed from flags_areas_extra.
5940 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
5941 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
5942 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
5943 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
5944 (FRAME_X_LEFT_FRINGE_WIDTH):
5945 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
5946 (FRAME_X_RIGHT_FRINGE_WIDTH):
5947 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 5948
9ce647f4
JR
59492001-11-15 Jason Rumney <jasonr@gnu.org>
5950
5951 * w32menu.c (add-menu-item): Make help_echo and radio buttons
5952 work for most menu items. From David Ponce
5953 <david.ponce@wanadoo.fr>.
5954
9b784ab8
GM
59552001-11-15 Gerd Moellmann <gerd@gnu.org>
5956
9f7e52b4
GM
5957 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
5958 Some x_set_* function expect to be called even if old and new
5959 value are equal.
5960
5961 * xdisp.c (build_desired_tool_bar_string): Accept zero
5962 tool_bar_button_relief.
5963
5964 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
5965
5966 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 5967
34e5d0af
GM
5968 * xterm.c (x_draw_bar_cursor): If the background color of the
5969 glyph under the cursor equals the frame's cursor color, use
5970 the glyph's foreground color for drawing the bar cursor.
5971
9b784ab8
GM
5972 * dispnew.c (direct_output_forward_char): Fix character/byte
5973 position comparison.
5974
89512fcd
MB
59752001-11-15 Miles Bader <miles@gnu.org>
5976
5977 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
5978 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
5979 Update arguments to find_field.
5980 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
5981 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
5982 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
5983 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
5984
7d18891d
RS
59852001-11-14 Richard M. Stallman <rms@gnu.org>
5986
d2936d21
RS
5987 * editfns.c (Fpropertize): Allow call with 1 arg.
5988
7d18891d
RS
5989 * dispextern.h (image_background, image_background_transparent):
5990 Conditionalize on HAVE_X_WINDOWS.
5991
59922001-11-13 Richard M. Stallman <rms@gnu.org>
5993
5994 * print.c (Fprin1_to_string): Doc fix.
5995
5996 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
5997
5998 * floatfns.c (Fceiling, Ffloor): Doc fixes.
5999
6000 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
6001
6002 * fileio.c (Ffile_accessible_directory_p): Doc fix.
6003
6004 * eval.c (syms_of_eval): Doc fix.
6005
6006 * coding.c (syms_of_coding): Doc fix.
6007
6008 * doc.c (Fsnarf_documentation): Doc fix.
6009
6010 * dispnew.c (syms_of_display): Doc fix.
6011
6012 * category.c (Fget_unused_category): Doc fix.
6013
6014 * buffer.c (syms_of_buffer): Doc fixes.
6015
9474c847
EZ
60162001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
6017
6018 * print.c (prin1, print): Doc fix.
6019
f00691a3 60202001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 6021
2b6f3c2b 6022 * fontset.h: Remove declarations of variables
e3059a5d
PJ
6023 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
6024
6025 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
6026 `Vclip_large_size_font'.
6027
b3700ae7
JR
60282001-11-13 Jason Rumney <jasonr@gnu.org>
6029
6030 * w32fns.c: Doc fix.
6031
f00691a3 60322001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 6033
4bb962be
PJ
6034 * xfaces.c (Fface_attributes_as_vector): Doc fix.
6035
ddb67bdc
PJ
6036 * fns.c: Doc fix.
6037
3467c402
PJ
6038 * emacs.c: Doc fix.
6039
6040 * coding.c: Doc fix.
6041
6e1b91d7
PJ
6042 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
6043 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
6044 `new style' [w/`doc:' keyword].
6045
1c1d3d69
RS
60462001-11-12 Richard M. Stallman <rms@gnu.org>
6047
6048 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
6049 LeaveNotify events. Only FocusIn and FocusOut do that now.
6050 (x_display_and_set_cursor): Do display hollow cursors in active
6051 minibuffer windows when they are not selected.
6052
b6f4c7ba
JR
60532001-11-12 Jason Rumney <jasonr@gnu.org>
6054
6055 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
6056 * w32term.c: Change doc-string comments to `new style'.
6057 [w/`doc:' keyword]. Doc fixes.
6058
6059 * w32fns.c: Don't define max.
6060 (Fx_open_connection): Only execute once.
6061
f00691a3 60622001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
6063
6064 * ccl.c: Change macros to use do-while block instead of if-else.
6065 Use braces to follow GNU Coding Standards.
6066
a4cd0cd7
RS
60672001-11-11 Richard M. Stallman <rms@gnu.org>
6068
eafb659a
RS
6069 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
6070
6071 * lread.c (read_escape): Use end_of_file_error for reporting eof.
6072
a4cd0cd7
RS
6073 * insdel.c (replace_range): Use adjust_markers_for_replace
6074 instead of adjust_markers_for_delete and adjust_markers_for_insert.
6075
6076 * intervals.h: Declare set_text_properties and set_text_properties_1.
6077
6078 * textprop.c (set_text_properties_1): New subroutine
6079 broken out of set_text_properties.
6080 (set_text_properties): Use set_text_properties_1.
6081
6082 * intervals.c (graft_intervals_into_buffer):
6083 Use set_text_properties_1 to clear out properties.
6084
6085 * search.c (Freplace_match): Use replace_range to insert
6086 and delete. Don't request property inheritance from
6087 surrounding text.
6088
91823618
JR
60892001-11-10 Jason Rumney <jasonr@gnu.org>
6090
6091 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
6092 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 6093 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 6094
86928dfb
GM
60952001-11-10 Gerd Moellmann <gerd@gnu.org>
6096
fa336b91 6097 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
6098 instead of malloc/free.
6099
f00691a3 61002001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 6101
ab8469eb
PJ
6102 * xfaces.c (merge_face_vectors): Use braces to follow GNU
6103 Coding Standards.
6104 (Finternal_set_lisp_face_attribute): Likewise.
6105
a78e0303
PJ
6106 * buffer.c (Fbury_buffer): Likewise.
6107
40ef1eda
PJ
6108 * indent.c (current_column_1): Remove unused variable `prev_col'.
6109
fabf4a91
PJ
6110 * coding.c (encode_coding): Use precomputed value of `src'.
6111 (encode_coding): Remove unused variable `src_end'.
6112 (code_convert_region): Remove unused variables `count'.
6113
0c99b139
JR
61142001-11-07 Jason Rumney <jasonr@gnu.org>
6115
6116 * w32term.c (x_display_and_set_cursor): Do not move system caret
6117 if cursor_glyph is NULL.
6118
f00691a3 61192001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
6120
6121 * keymap.c (access_keymap): Fix compilation error.
6122
55c6d645
MB
61232001-11-07 Miles Bader <miles@gnu.org>
6124
6125 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
6126
f00691a3 61272001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 6128
7a4564a4
PJ
6129 * intervals.c (graft_intervals_into_buffer):
6130 Remove #ifdef'd-out code.
6131 (graft_intervals_into_buffer): Remove unused variable `middle'.
6132
5de38842
PJ
6133 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
6134 code (eval-current-buffer).
6135 Change doc-string comments to `new style' [w/`doc:' keyword].
6136
4fa23df5
RS
61372001-11-06 Richard M. Stallman <rms@gnu.org>
6138
6139 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
6140
7a6a97d7
SM
61412001-11-06 Stefan Monnier <monnier@cs.yale.edu>
6142
c191d13c
SM
6143 * lread.c (read1): Fix behavior with nested backquoting.
6144
7a6a97d7
SM
6145 * keyboard.c (make_lispy_event): Check integerness and fix
6146 Lisp_Object/int mixup.
6147
f00691a3 61482001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
6149
6150 * fns.c (copy_hash_table): Remove unused variable `v'.
6151
17893c65
PJ
6152 * fontset.c (fontset_font_pattern): Remove unused variable
6153 `family_registry'.
6154
4d994a79
PJ
6155 * indent.c (current_column_1): Remove unused variable `prev_col'.
6156
d5360cc7
RS
61572001-11-05 Richard M. Stallman <rms@gnu.org>
6158
6159 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
6160
6161 * buffer.c (Fkill_buffer): Don't delete auto save file
6162 if buffer is modified.
6163
96238a5a
AI
61642001-11-05 Andrew Innes <andrewi@gnu.org>
6165
6166 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
6167 CHECK_NUMBER_CDR.
6168
d9d54213
RS
61692001-11-05 Richard M. Stallman <rms@gnu.org>
6170
6171 * unexelf.c (unexec): Minor changes; clean up comments.
6172
b116830b
SS
61732001-11-05 Sam Steingold <sds@gnu.org>
6174
6175 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
6176
3297e2a1
AS
61772001-11-05 Andreas Schwab <schwab@suse.de>
6178
6179 * sound.c (sound_perror): Save errno from being clobbered.
6180
9212319f 61812001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
6182
6183 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
6184 the program image directly.
6185
f00691a3 61862001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
6187
6188 * buffer.h (Fbuffer_local_value): Add prototype.
6189
982f6c7e
RS
61902001-11-04 Richard M. Stallman <rms@gnu.org>
6191
d31053f9
RS
6192 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
6193 and CHECK_BUFFER.
6194
6195 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
6196 (record_char): Likewise.
6197
6198 * keyboard.c (make_lispy_event): Don't insist a drag event must
6199 move to a different buffer position. Instead, check for moving at
6200 least double_click_fuzz.
6201
6202 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
6203
6204 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
6205
982f6c7e 6206 * indent.c (current_column_1, Fmove_to_column): Separate the code
4d8da98b 6207 for display-table glyphs from the code for buffer text, to fix
982f6c7e
RS
6208 bugs in the former.
6209
830047fd
RS
62102001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
6211
6212 * buffer.c (Fbuffer_local_value): New function.
c191d13c 6213 (syms_of_buffer): Defsubr it.
b116830b 6214
830047fd
RS
6215 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
6216 value of `cursor-in-non-selected-windows'.
6217
6218 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
6219 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
6220 (syms_of_xdisp): Initialize it.
b116830b 6221
f00691a3 62222001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 6223
4e397688
PJ
6224 * xfns.c (Fx_create_frame): Doc fix.
6225
48b0f3ae
PJ
6226 * coding.c: Change doc-string comments to `new style' [w/`doc:'
6227 keyword].
6228
2df5238c
PJ
6229 * eval.c (top_level_value, top_level_set): Remove commented and
6230 #ifdef'd-out code.
6231 (Fdefvar): Fix usage in doc-string.
6232
3ecaf7e5
RS
62332001-11-03 Richard M. Stallman <rms@gnu.org>
6234
6235 * xfns.c: Include unistd.h, if it exists.
6236
6237 * editfns.c: Move the include of ctype.h after unistd.h.
6238
6239 * gmalloc.c: Test BROKEN_PROTOTYPES.
6240
8db2e33b
KR
62412001-11-03 Ken Raeburn <raeburn@gnu.org>
6242
6243 * lisp.h (CHECK_STRING_CAR): New macro.
6244 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
6245 treating XCAR and XCDR as lvalues.
6246 (openp): Use CHECK_STRING_CAR.
6247 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
6248
aed29b97
EZ
62492001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
6250
6251 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 6252 (SIGMASKTYPE): Define.
aed29b97
EZ
6253
6254 * syssignal.h (sigunblock): Don't define if already defined.
6255
f00691a3 62562001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 6257
16b45be4
EZ
6258 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
6259 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
6260 Fix typos in comments.
6261
020f9b38
PJ
6262 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
6263 and #ifdef'd-out code.
6264 Fix and reindent comments.
6265
c191d13c 6266 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 6267
6cb16f95
PJ
6268 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
6269 argument `i' in macros.
6270
6271 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
6272 `i' in macros.
6273
16b45be4
EZ
6274 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
6275 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
6276 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
6277 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
6278 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
6279 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
6280 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
6281 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
6282 in macros.
6283
6284 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
6285 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
6286 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
6287 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
6288 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
6289 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
6290 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
6291 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
6292 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
6293 (remove unused second argument).
6294
7e9d3c2f
SM
62952001-11-02 Stefan Monnier <monnier@cs.yale.edu>
6296
6297 * syntax.c (describe_syntax): New wrapper.
6298 (Finternal_describe_syntax_value): Rename from describe_syntax.
6299 Don't insert space at front and \n at the end.
6300 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
6301
6302 * regex.c (re_wctype): Try to fix some warnings.
6303 (regcomp, regexec): Don't forget the __restrict.
6304
e6bff182
RS
63052001-11-02 Richard M. Stallman <rms@gnu.org>
6306
6307 * textprop.c (Fget_char_property): Doc fix.
6308
f00691a3 63092001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
6310
6311 * process.c (Fstart_process): Add usage to doc-string.
6312
6313 * data.c (Fsetq_default): Ditto.
6314
6315 * callint.c (Finteractive): Ditto.
6316
c22e59e1
SM
63172001-11-01 Stefan Monnier <monnier@cs.yale.edu>
6318
6319 * macros.c: Don't include keymap.h any more.
6320
9271ed2c
RS
63212001-11-01 Richard M. Stallman <rms@gnu.org>
6322
e6bff182
RS
6323 * data.c (Fmake_local_variable): Doc fix.
6324
6325 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
6326 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
6327
9271ed2c
RS
6328 * keymap.c (Fdescribe_buffer_bindings): Print character property
6329 bindings along with or instead of the buffer local map.
6330 Make the overriding maps override what they should.
6331
f00691a3 63322001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
6333
6334 * window.c (grow_mini_window): Fix typo in comment.
6335
27188d11
GM
63362001-11-01 Gerd Moellmann <gerd@gnu.org>
6337
7b49b9d2
GM
6338 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
6339 (XTset_vertical_scroll_bar): Likewise.
6340
43f7c3ea
GM
6341 * xfns.c (x_build_heuristic_mask): Use four_corners_best
6342 instead of IMAGE_BACKGROUND.
c22e59e1 6343
b350c2e5
GM
6344 * xfns.c (four_corners_best): Reindent.
6345
c22e59e1 6346 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
6347 Handle :box so that it is possible to specify sexprs.
6348
bf00d461
EZ
63492001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
6350
6351 * s/hpux11.h: New file.
6352
f00691a3 63532001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 6354
2b209b97
PJ
6355 * emacs.c (USAGE1): Show command line option --no-window-system
6356 instead of --no-windows in usage.
6357 (standard_args): Rename --no-windows to --no-window-system.
6358 (bug_reporting_address): Follow Emacs coding conventions.
6359
9dbc9081
PJ
6360 * eval.c (Fcommandp): Doc fix.
6361 Change doc-string comments to `new style' [w/`doc:' keyword].
6362
4e10df59
PJ
6363 * frame.c (Fframe_live_p): Doc fix.
6364
6365 * buffer.c (selective-display-ellipses): Doc fix.
6366
dd387b25
GM
63672001-10-31 Gerd Moellmann <gerd@gnu.org>
6368
fe957e65
GM
6369 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
6370
dd387b25
GM
6371 * xfaces.c (realize_x_face): If C is not a single-byte character,
6372 set the face's colors_copied_bitwise_p instead of the defaulted_p
6373 members which have a different meaning.
6374 (free_face_colors): Do nothing for a face whose colors have been
6375 copied bitwise.
6376
c22e59e1 6377 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 6378
f00691a3 63792001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 6380
687784e8
PJ
6381 * marker.c, mocklisp.c: Change doc-string comments to `new style'
6382 [w/`doc:' keyword].
2e1280f8 6383
b9d9a9b9
GM
63842001-10-31 Gerd Moellmann <gerd@gnu.org>
6385
6386 * fns.c (require_unwind): Return Lisp_Object.
6387
f00691a3 63882001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 6389
fa1361cb
PJ
6390 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
6391 (last-input-char): Revert doc-string to be the same as the
6392 doc-string of `last-input-event'.
6393
6c465a15 6394 * xdisp.c: Fix typos in comments.
48400103 6395
eafa3196
GM
63962001-10-31 Gerd Moellmann <gerd@gnu.org>
6397
6398 * window.c (grow_mini_window): Handle case that the root
6399 window is already smaller than the nominal mininum height.
6400
747d3f2a
SM
64012001-10-30 Stefan Monnier <monnier@cs.yale.edu>
6402
bf9bb76f
SM
6403 * emacs.c (main): Don't call keys_of_macros any more.
6404
6405 * lisp.h (keys_of_macros): Remove.
6406
6407 * macros.c (keys_of_macros): Remove.
6408
747d3f2a
SM
6409 * xfaces.c (Fface_attribute_relative_p): Declare args.
6410
5e905a57
JR
64112001-10-30 Jason Rumney <jasonr@gnu.org>
6412
6413 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
6414 (enum_font_cb2): Ignore fonts with vertical orientation.
6415
3a426197
RS
64162001-10-30 Richard M. Stallman <rms@gnu.org>
6417
6418 * keyboard.c (Finput_pending_p): Doc fix.
6419
a742d646
GM
64202001-10-30 Gerd Moellmann <gerd@gnu.org>
6421
259cf6bc
GM
6422 * xterm.c (x_after_update_window_line): Don't run the code
6423 clearing in borders for rows whose visible height is 0.
6424
3f99f948
GM
6425 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
6426 resized_p flag is set. If not set, use the much less flickering
6427 method previously used.
6428
6429 * dispnew.c (change_frame_size_1): Set frame's resized_p.
6430
6431 * frame.h (struct frame) <resized_p>: New member.
6432
b4a3be43
GM
6433 * lread.c (to_multibyte): Ensure read_buffer is at least twice
6434 as large as the number of bytes to convert.
747d3f2a 6435
a742d646
GM
6436 * lread.c (to_multibyte): New function.
6437 (read1): Use it.
6438
cacbb9e9
EZ
64392001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
6440
6441 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
6442
99cb6b2f
GM
64432001-10-30 Gerd Moellmann <gerd@gnu.org>
6444
327f42ee 6445 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
6446 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
6447 if the row's fill_line_p is set and drawing the last glyph with
6448 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 6449
99cb6b2f
GM
6450 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
6451
8e8223e2
SM
64522001-10-29 Stefan Monnier <monnier@cs.yale.edu>
6453
6454 * xmenu.c: Include coding.h and charset.h.
6455 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
6456 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
6457 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
6458 Explicitly set wv->help. Use `TRUE' rather than `True'.
6459 (menu_help_callback): Use empty_string.
6460
6461 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
6462 (Fx_popup_dialog): Explicitly init f.
6463 (w32_menu_display_help): Use empty_string.
6464
4d083a8f
RS
64652001-10-29 Richard M. Stallman <rms@gnu.org>
6466
b2304472
RS
6467 * fns.c (Frequire): Detect recursive try to require the same
6468 feature 3 or more levels deep, and get error.
6469 (require_unwind): New subroutine.
6470 (require_nesting_list): New variable.
6471 (syms_of_fns): Init and staticpro it.
6472
4d083a8f
RS
6473 * print.c (print_object): Clarify indication of insertion type.
6474
2fe41216
EZ
64752001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
6476
90480000
EZ
6477 * coding.c (syms_of_coding): Document that locale-coding-system is
6478 used for decoding input on X.
6479
2fe41216
EZ
6480 * window.c (Fscroll_left, Fscroll_right): Doc fix.
6481
f00691a3 64822001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
6483
6484 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
6485 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
6486
60ebcfe8
GM
64872001-10-29 Gerd Moellmann <gerd@gnu.org>
6488
9a7bdceb
GM
6489 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
6490 use NO_CURSOR if cursor_in_non_selected_windows is false.
6491
3f08fcd2
GM
6492 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
6493 the slant attribute if FRAME is t.
6494
0ccfdad2
GM
6495 * xfns.c (x_set_internal_border_width): Set frame garbaged
6496 when X window doesn't exist yet.
6497
ef253080
GM
6498 * xterm.c (x_after_update_window_line): Clear internal border
6499 in different circumstances.
b116830b 6500
60ebcfe8
GM
6501 * xterm.c (XTread_socket) <KeyPress>: Don't use
6502 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
6503 <handa@etl.go.jp>.
6504
73d25f9c
EZ
65052001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
6506
6507 * m/ibms390.h: New file. From Adam Thornton
6508 <athornton@sinenomine.net>.
6509
cac1daf0
GM
65102001-10-28 Gerd Moellmann <gerd@gnu.org>
6511
053b3256 6512 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 6513
cac1daf0
GM
6514 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
6515 a loop counter.
6516
f00691a3 65172001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 6518
186486eb
PJ
6519 * emacs.c: Use argv[0] instead of emacs when -t was specified.
6520
4707d2d0
PJ
6521 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
6522 keyword].
6523 Fix typos in comments.
b116830b 6524
d883731c
PJ
6525 * emacs.c (bug_reporting_address): New function.
6526 Use it when displaying usage message.
6527
04012254
PJ
6528 * minibuf.c (read_minibuf): Remove unused external declaration of
6529 variable `Qread_only'.
6530
13b1a09c
PJ
6531 * keymap.c (access_keymap): Remove unused variable `charset'.
6532
5bbf4378
MB
65332001-10-28 Miles Bader <miles@gnu.org>
6534
6535 * xfaces.c (merge_face_heights): Handle TO being relative as well.
6536 Remove #ifdef'd-out code.
6537 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
6538 (syms_of_xfaces): Initialize them.
6539
1ce1e4ee
JR
65402001-10-27 Jason Rumney <jasonr@gnu.org>
6541
6542 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
6543 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
6544 position using the system caret.
6545
6546 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
6547 (w32_system_caret_height, w32_system_caret_x)
6548 (w32_system_caret_y): New variables for tracking system caret.
6549 (w32_initialize): Initialize them.
c2d53558 6550 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 6551
c2d53558
SM
6552 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
6553 New messages types.
1ce1e4ee
JR
6554
6555 * w32term.c (note_mouse_highlight): Clear old help_echo.
6556
f00691a3 65572001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 6558
bb4600a4
PJ
6559 * xterm.c: Fix typo in a comment.
6560
7db35a48
PJ
6561 * emacs.c: Fix typos in comments.
6562 Remove unnecessary spaces.
6563 Change doc-string comments to `new style' [w/`doc:' keyword].
6564 (USAGE2): Fix typos in usage string.
6565
a7248e4f
PJ
6566 * xterm.c: Fix typo in a comment.
6567
4e30ce42
PJ
6568 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
6569 emacs.c.
6570
62725a92
GM
65712001-10-27 Gerd Moellmann <gerd@gnu.org>
6572
798dbe1f 6573 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 6574 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
6575 farther backward when target_y was not reached.
6576
62725a92
GM
6577 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
6578 Display errno only if non-zero.
6579 (sound_warning): New function.
6580 (vox_configure): Don't treat failing to set sample rate as error.
6581 (various places): Improve error messages.
6582
d4e34d24
EZ
65832001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
6584
944e6f60
EZ
6585 * fileio.c (Faccess_file): Run the argument filename through
6586 Fexpand_file_name, before using it.
6587
d4e34d24
EZ
6588 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
6589 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
6590
38d2af0c
GM
65912001-10-26 Gerd Moellmann <gerd@gnu.org>
6592
da80a8d5
GM
6593 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
6594
38d2af0c
GM
6595 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6596 Fix clearing in the case of scroll bars on the right.
c2d53558 6597
45de4a6f 65982001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
6599
6600 * w32gui.h (XImage): Add a dummy typedef.
6601
fbd5ceb2
GM
66022001-10-26 Gerd Moellmann <gerd@gnu.org>
6603
c2d53558 6604 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 6605
b23236fb
EZ
66062001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
6607
6608 * frame.c (Fframe_parameter): Fix last change.
6609
5d991fc4
EZ
6610 * fileio.c: Revert last change (which removed old commented-out
6611 version of expand-file-name). Add a comment that explains why
6612 this old version should not be removed.
6613
879eadc3
GM
66142001-10-25 Gerd Moellmann <gerd@gnu.org>
6615
75700ff2
GM
6616 * frame.c (Fframe_parameter): Fix a bug whereby some
6617 ``artificial'' frame parameters, like `minibuffer' were not
6618 obtained by calling Fframe_parameters.
6619
dfe92a6a
GM
6620 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
6621 cursor differently.
6622
879eadc3
GM
6623 * xdisp.c (move_it_vertically_backward): Compute line height
6624 differently. Add heuristic to try to be more compatible to 20.x.
6625
e1010ebe
SM
66262001-10-25 Stefan Monnier <monnier@cs.yale.edu>
6627
d73a471b
SM
6628 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
6629
d6da5a06
GM
6630 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
6631 boolean.
e1010ebe 6632
f66bd220
MB
66332001-10-25 Miles Bader <miles@gnu.org>
6634
6635 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
6636 BG is a pointer to a structure, not a structure.
6637 (gif_format, png_format): Add missing commas.
6638
d436d538
RS
66392001-10-24 Richard M. Stallman <rms@gnu.org>
6640
6641 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 6642 (syms_of_xfaces): Defsubr it.
d436d538 6643
f00691a3 66442001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
6645
6646 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
6647 variable `area'.
6648
f00691a3 66492001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 6650
c2d53558 6651 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 6652
e2a57b34
MB
66532001-10-25 Miles Bader <miles@gnu.org>
6654
6655 * dispextern.h (struct image): Add `background',
6656 `background_valid', and `background_transparent' fields.
6657 (image_background, image_background_transparent): New declarations.
6658 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
6659 * xfns.c (image_background, image_background_transparent)
6660 (four_corners_best): New functions.
c2d53558 6661 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
6662 (gs_format): Add `:background' entry.
6663 (lookup_image): Set IMG's background color if specified.
6664 (pbm_load, xbm_load_image, png_load): Set IMG's background field
6665 when appropriate.
6666 (x_clear_image_1): Reset `background_valid' and
6667 `background_transparent_valid' fields.
6668 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
6669 calculating it here. Set IMG's background_transparent field.
6670 (enum xpm_keyword_index): Add XPM_BACKGROUND.
6671 (enum png_keyword_index): Add PNG_BACKGROUND.
6672 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
6673 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
6674 (enum gif_keyword_index): Add GIF_BACKGROUND.
6675 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 6676 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
6677 Pre-calculate image background color where necessary.
6678 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
6679 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
6680 color to use for image glyph reliefs.
6681
b547b6e8
GM
66822001-10-24 Gerd Moellmann <gerd@gnu.org>
6683
d9e3b8c6
GM
6684 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
6685 in full-width rows.
c2d53558 6686
b547b6e8
GM
6687 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6688 Fix clearing of area not covered by scroll bar.
6689
f00691a3 66902001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
6691
6692 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
6693 and `real_start'.
c2d53558 6694 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
6695 (glyph_rect): Remove unused variable `area'.
6696
76cb5e06
GM
66972001-10-24 Gerd Moellmann <gerd@gnu.org>
6698
bdbdebff 6699 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
6700
6701 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
6702 (row_containing_pos): Take additional argument DY.
6703 Treat rows ending in middle of char differently.
62e33982
GM
6704 (display_line): Handle tabs on window systems differently.
6705
6706 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
6707 with additional argument.
6708
6709 * dispextern.h (row_containing_pos): Adjust prototype.
6710
76cb5e06
GM
6711 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
6712 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
6713 (try_window_id, try_window_reusing_current_matrix)
6714 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6c465a15 6715 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
76cb5e06 6716
f00691a3 67172001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 6718
c9e60620
PJ
6719 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
6720 gnuemacs).
6721 (HAVE_BOXES): Fix typo in comment.
6722 (push_menu_pane): Fix typo in comment.
6723
3b552d56
PJ
6724 * xdisp.c: (display_prop_string_p): Remove unused local declaration
6725 of `Qwhen'.
6726 (single_display_prop_string_p): Remove unused local declarations
6727 of `Qwhen' and `Qmargin'.
6728 (string_buffer_position): Remove unused variable `around'.
6729 (store_frame_title): Remove unused variable `width'.
6730
15c565ac
PJ
6731 * window.c: Don't define max.
6732 (coordinates_in_window): Remove unused variable `uy'.
6733
a8818eb9
PJ
6734 * widget.c: Don't define max.
6735
996fee11
PJ
6736 * process.c: Don't define max.
6737 (create_process): Remove unused variable `buffer'.
6738
496e1a5b
GM
67392001-10-23 Gerd Moellmann <gerd@gnu.org>
6740
c2d53558 6741 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 6742
5905ae8b
EZ
67432001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
6744
6745 * xfaces.c (Finternal_set_lisp_face_attribute)
6746 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
6747 frame is on a windowed display.
6748
24db49fb
GM
67492001-10-23 Gerd Moellmann <gerd@gnu.org>
6750
c2d53558
SM
6751 * dispnew.c (sync_window_with_frame_matrix_rows):
6752 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
6753 of marginal areas.
6754
c2d53558 6755 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 6756
f0487f05
EZ
67572001-10-23 Andreas Schwab <schwab@suse.de>
6758
6759 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
6760 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
6761
f0a48a01
GM
67622001-10-23 Gerd Moellmann <gerd@gnu.org>
6763
c2d53558 6764 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
6765 REAL_END. Notice if cursor gets overwritten.
6766 (notice_overwritten_cursor): Take X positions as parameters.
6767 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
6768 around call to x_draw_glyphs.
6769
f00691a3 67702001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 6771
fc11dff0
PJ
6772 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
6773 instead of C) and usage.
a50a10a0 6774
fc11dff0
PJ
6775 * editfns.c (char-to-string): Fix argument names (use CHAR instead
6776 of C) and usage.
a50a10a0
PJ
6777
6778 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
6779 `left', `max_width' and `max_height'.
6780
8738febd
GM
67812001-10-23 Gerd Moellmann <gerd@gnu.org>
6782
6783 * xdisp.c (display_line): For a tab continued to the next line,
6784 set row's ends_in_middle_of_char_p.
6785
653c329b
GM
67862001-10-22 Gerd Moellmann <gerd@gnu.org>
6787
6788 * xdisp.c (display_line): Fix computation of continuation lines
6789 width for TABs.
6790
f00691a3 67912001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 6792
7ba51063
PJ
6793 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
6794 `Qlaplace'.
6795
f958c5ac
PJ
6796 * fileio.c: Remove unused code.
6797
eb360291
MB
67982001-10-22 Miles Bader <miles@gnu.org>
6799
6800 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
6801 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
6802 Remove `DOC_STRINGS_IN_COMMENTS' cases.
6803
98515cf0
JR
68042001-10-21 Jason Rumney <jasonr@gnu.org>
6805
6806 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
6807
93026d88
EZ
68082001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
6809
6810 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
6811 (Finsert_string): Avoid the multi-line string literals warning.
6812
c9a95b79
MB
68132001-10-22 Miles Bader <miles@gnu.org>
6814
6815 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
6816 (Fdocumentation): Don't use it.
6817 (syms_of_doc): Don't initialize it.
6818
6819 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
6820 * print.c (Fwith_output_to_temp_buffer): Likewise.
6821 * window.c (Fsave_window_excursion): Likewise.
c2d53558 6822 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 6823 (Fsave_restriction): Likewise.
c2d53558
SM
6824 * eval.c (Frun_hooks, Frun_hook_with_args)
6825 (Frun_hook_with_args_until_failure)
6826 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
6827 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
6828 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
6829 (Funwind_protect, Fcondition_case): Likewise.
6830 * coding.c (Ffind_operation_coding_system): Likewise.
6831 * keyboard.c (Ftrack_mouse): Likewise.
6832
a3b10252
MB
68332001-10-21 Miles Bader <miles@gnu.org>
6834
c2d53558 6835 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
6836 (Fmake_hash_table): Add usage: string to doc string.
6837 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 6838 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
6839 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
6840 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
6841 (Fml_prefix_argument_loop): Likewise.
6842
f00691a3 68432001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 6844
c2d53558 6845 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 6846
c6f73eec
PJ
6847 * sysdep.c (init_sys_modes): Change doc-string comments to `new
6848 style' [w/`doc:' keyword].
6849
6850 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
6851 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
6852 comments to `new style' [w/`doc:' keyword].
6853
3cf3436e
JR
68542001-10-21 Jason Rumney <jasonr@gnu.org>
6855
6856 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
6857
c169b8f1
JR
6858 * w32term.c (remember_mouse_glyph): New function.
6859 (w32_mouse_position): Use it.
6860 (note_mouse_movement): If the mouse moved off the glyph, remember
6861 its new position.
c2d53558 6862
4fdd691b
JR
6863 * w32term.h (struct w32_output): Correct spelling of x_compatible.
6864 (w32_display_info): Add mouse_face_overlay.
6865
c169b8f1
JR
6866 * w32term.c (notice_overwritten_cursor): Renamed from
6867 note_overwritten_text_cursor. Rewritten to take glyph widths into
6868 account.
6869 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
6870 (fast_find_string_pos): New function.
6871 (fast_find_position): Return the correct vpos. Add parameter
6872 STOP. In the final row, stop before glyphs having STOP as object.
6873 Don't consider glyphs that are not from a buffer.
6874 (fast_find_position) [0]: Add a presumably more correct version
6875 for after 21.1.
6876 (expose_window_tree, expose_frame): Don't compute intersections here.
6877 (expose_window): Do it here instead.
6878 (expose_window_tree, expose_window, expose_line): Return 1 when
6879 overwriting mouse-face.
6880 (expose_window): If W is the window currently being updated, mark
6881 the frame garbaged.
6882 (expose_frame): If mouse-face was overwritten, redo it.
6883 (x_use_underline_position_properties): New variable.
6884 (syms_of_xterm): DEFVAR_BOOL it.
6885 (x_draw_glyph_string): Add comment to use it in future.
6886 (x_draw_glyph_string): Restore clipping after drawing box.
6887 Fix a computation of the underline position.
6888 (w32_get_glyph_string_clip_rect): Minor cleanup.
6889 (x_fill_stretch_glyph_string): Remove an assertion.
6890 (x_produce_glyphs): Don't convert multibyte characters
6891 to unibyte characters in unibyte buffers.
6892 (cursor_in_mouse_face_p): New function.
6893 (x_draw_stretch_glyph_string): Use it to choose a different GC
6894 when drawing a cursor within highlighted text. Don't draw
6895 background again if it has already been drawn.
6896 (x_draw_glyph_string_box): Don't draw a full-width
6897 box just because the glyph row's full_width_p flag is set.
6898 (x_draw_glyphs): Fix computation of rightmost x for
6899 full-width rows.
6900 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
6901 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
6902 change bottom shadow accordingly. Some cleanup.
6903 (x_update_window_end): Handle overwritten mouse face
6904 also for tool bar windows.
6905 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
6906 DRAW is DRAW_IMAGE_RAISED.
6907 (clear_mouse_face): Return 1 if text with mouse face was
2c568af5
SM
6908 actually redrawn. Make the function static.
6909 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
c169b8f1
JR
6910 optimize away highlighting if we pass over that same overlay again.
6911 (note_mouse_highlight): Call mouse_face_overlay_overlaps
6912 to detect a case where we have to highlight a different region
6913 despite not having left the currently highlighted region.
6914 Set mouse_face_overlay in the x_display_info. Avoid changing the
6915 mouse pointer shape when show_mouse_face has already done it, or
6916 there is no need. Handle mouse-face and help-echo in strings.
6917 (glyph_rect): New function.
6918 (w32_mouse_position): Use it to raise the threshold for mouse
6919 movement event generation.
6920 (w32_initialize_display_info): Initialize the x_display_info's
6921 mouse_face_overlay.
6922 (w32_set_vertical_scroll_bar): Don't clear a zero height
6923 or width area.
6924 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6925 a widget to zero height.
6926
3cf3436e 6927 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 6928 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
6929 equivalents in menu_items.
6930 (w32_menu_show): Don't overwrite an item's name with its key
6931 description in case the description is a multibyte string.
6932 (single_submenu): Some cleanup.
6933
6934 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
6935 (postprocess_image): New function.
6936 (lookup_image): Call it for all image types except PostScript.
6937 (x_kill_gs_process): Call postprocess_image.
6938 (tiff_error_handler, tiff_warning_handler): New functions.
6939 (tiff_load): Install them as handlers.
6940 (x_kill_gs_process): Recognize if someone has cleared the image
6941 cache under us.
6942 (valid_image_p): Protect better against invalid image
6943 specifications. Previous code could signal an error.
6944 (Fx_hide_tip, Fshow_tip): Doc fix.
6945 (Fv_max_tooltip_size): New variable.
6946 (syns_of_xfns): DEFVAR_LISP it.
6947 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
6948 window buffer to *tip* right after creating the frame. Set frame's
6949 window_width. Use a maximum tooltip size specified by
6950 Vx_max_tooltip_size, if that has valid contents.
6951 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
6952 Make sure the tooltip is completely visible.
6953 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
6954 (Fx_create_frame): Adjust the frame's height for presence
6955 of the tool bar before calling x_figure_window_size.
6956 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
6957 when the window gets smaller.
6958 (x_set_foreground_color): Set frame's cursor_pixel.
6959 (x_set_foreground_color, x_set_background_color): Cleaned up.
6960 (x_set_font): Handle case of x_new_fontset returning the same name
6961 as before, although there was a change in fontsets.
6962
386ca361
MB
69632001-10-21 Miles Bader <miles@gnu.org>
6964
c2d53558 6965 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
6966 (Flogxor): Add usage: string to doc string.
6967 * charset.c (Fstring): Likewise.
6968 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
6969 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
6970
f00691a3 69712001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 6972
03be2694
PJ
6973 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
6974
6975 * alloc.c: Reindent DEFUNs with doc: keywords.
6976
6977 * abbrev.c (Finsert_abbrev_table_description): Reindent.
6978
14ff1ee0
PJ
6979 * frame.c: Change doc-string comments to `new style' [w/`doc:'
6980 keyword].
6981
2f147815 6982See ChangeLog.9 for earlier changes.
6922b018
KH
6983
6984;; Local Variables:
49b3bd82 6985;; coding: iso-2022-7bit
6922b018 6986;; End:
2a34a036 6987
2f147815 6988 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
6989 Copying and distribution of this file, with or without modification,
6990 are permitted provided the copyright notice and this notice are preserved.