(Fset_window_hscroll): Doc fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ebadb1e4
EZ
12002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * window.c (Fset_window_hscroll): Doc fix.
4
1909941a
PJ
52002-06-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
6
7 * fileio.c (choose_write_coding_system): Call
8 select-safe-coding-system properly.
9
3a2ff803
RS
102002-06-03 Richard M. Stallman <rms@gnu.org>
11
12 * xdisp.c (message_with_string): Error if STRING is not a string.
13
14 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
15
16 * fileio.c (choose_write_coding_system): Pass FILE arg to
17 Vselect_safe_coding_system_function.
18
382f558b 192002-06-03 Ken Raeburn <raeburn@gnu.org>
504322ad
KR
20
21 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19
22 change.
23
e2c0561e
TTN
242002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
25
26 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
27 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
28 * keymap.c (describe_command): Likewise.
29 * minibuf.c (read_minibuf): Likewise.
30
31 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
32 Cast `current_column' return value to int.
33 (back_to_previous_visible_line_start,
34 reseat_at_next_visible_line_start, next_element_from_buffer):
35 Cast `indented_beyond_p' 3rd arg to float.
36
37 * indent.c (last_known_column): Now a float.
38 (current_column_1, position_indentation, current_column,
39 string_display_width): Return float.
40 (Fcurrent_column): Cast `current_column' return value to int.
41 (Fcurrent_indentation): Cast `position_indentation' retval to int.
42 (indented_beyond_p): Third arg now a float.
43 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
44
45 * lisp.h (current_column): Now returns float.
46 (indented_beyond_p): 3rd arg now a float.
47
420a345c
EZ
482002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
49
43dc73f1
EZ
50 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
51 is Qcompound_text_with_extensions.
52
53 * xselect.c (lisp_data_to_selection_data): Always set selection
54 type as string if x_encode_text returns streingp non-NULL.
55
420a345c
EZ
56 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
57
a71867c5
RS
582002-05-30 Richard M. Stallman <rms@gnu.org>
59
60 * window.c (Fset_window_configuration): Correct the handling
61 of point in current buffer, to work with multiple windows.
62
96801005
CW
632002-05-29 Colin Walters <walters@verbum.org>
64
65 * lread.c (Fread_from_string): Don't depend on order of evaluation
66 for C function parameters.
67
f7e039de
RS
682002-05-28 Richard M. Stallman <rms@gnu.org>
69
70 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
71 way for blinked-off state and for a nonselected window.
72
73 * window.c (window_scroll_pixel_based): Don't call Fbolp;
74 instead, see if the new start pos is at beginning of line.
75
76 * fileio.c (Fwrite_region): If START is a string, don't
77 make any annotations.
78
79 * eval.c (syms_of_eval): Doc fix.
80
532a8e8b
CW
812002-05-28 Colin Walters <walters@debian.org>
82
83 * emacs.c (USAGE1): Add --no-splash.
84 (standard_args): Ditto.
85
862002-05-28 Colin Walters <walters@gnu.org>
87
88 * lread.c (readchar_count): New variable.
89 (readchar): Increment it.
90 (unreadchar): Decrement it.
91 (read_multibyte): Decrement it.
92 (Vread_with_symbol_positions): New variable.
93 (Vread_symbol_positions_list): New variable.
94 (read_internal_start): New function, created from Fread and
95 Fread_from_string. Handle Vread_symbol_positions_list and
96 Vread_with_symbol_positions.
97 (readevalloop, Fread, Fread_from_string): Use it.
98 (read1): Use readchar_count to add symbol positions to
99 Vread_symbol_positions_list if Vread_with_symbol_positions is
100 non-nil.
101 (syms_of_lread): DEFVAR_LISP and initialize them.
102
103 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
104 (substitute_object_recurse, substitute_object_in_subtree)
105 (substitute_in_interval): Prototype.
106 (read_multibyte): Return c if it's less than zero.
e2c0561e 107
02f20f98
KS
1082002-05-28 Kim F. Storm <storm@cua.dk>
109
b44ec8e3
KS
110 * fileio.c (Fread_file_name_internal): Added brute-force
111 speed up for using predicate file-directory-p.
112
1132002-05-28 Kim F. Storm <storm@cua.dk>
114
115 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
02f20f98
KS
116 New variables.
117 (syms_of_fileio): DEFVAR_LISP them.
118 (read_file_name_cleanup): New unwind function.
119 (Fread_file_name_internal): Only return completions satifying
120 Vread_file_name_predicate. Temporarily unwind protect and rebind
121 default-directory while checking completions against the predicate.
122 (Fread_file_name): Added PREDICATE argument. Specbind it to
123 Vread_file_name_predicate during completion.
124 Call Vread_file_name_function to read the file name if non-nil.
125
126 * lisp.h (Fread_file_name): Now has 6 args.
e2c0561e 127
02f20f98
KS
128 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
129 predicate for Fread_file_name when reading directory name.
130 Supply Qnil for predicate in other calls to Fread_file_name.
131
9e8abde7
MB
1322002-05-26 Miles Bader <miles@gnu.org>
133
134 * term.c (tty_capable_p): New function.
135 * dispextern.h (tty_capable_p): New function declaration.
136 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
137 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
138
3751c81b
SM
1392002-05-23 Stefan Monnier <monnier@cs.yale.edu>
140
141 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
142 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
143 (Vwrite_region_annotate_functions): Docstring fix.
144
6065f9e2 1452002-05-23 Kim F. Storm <storm@cua.dk>
39bb5900
KS
146
147 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
148 phys_cursor's hpos is overwritten. This is still not completely
149 correct, as it doesn't really make sense to use hpos at all to
150 get the cursor glyph (as that is relative to the width of the
151 characters on the line, which may have changed during the update).
152
17456df1
JR
1532002-05-22 Jason Rumney <jasonr@gnu.org>
154
155 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
156 Lisp_Object.
157 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
158 Use modified enumfont_t struct.
159
160 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3751c81b 161
17456df1
JR
162 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
163 Handle the `hbar' cursor type.
164 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
165
166 * w32fns.c (Qhbar): New variable.
167 (x_specified_cursor_type): Use it.
168
1b65564c
KR
1692002-05-21 Ken Raeburn <raeburn@gnu.org>
170
171 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
172 now, when the address is needed.
173
a7c4d9c8
CW
1742002-05-21 Colin Walters <walters@gnu.org>
175
176 * Makefile.in (shortlisp): Add font-core.el.
177
301d4a3f
RS
1782002-05-20 Richard M. Stallman <rms@gnu.org>
179
cd8d5236
RS
180 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
181
301d4a3f
RS
182 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
183 equivalent key bindings here.
184
07e9823c
KR
1852002-05-20 Ken Raeburn <raeburn@gnu.org>
186
187 Change symbol structure to contain a lisp object for the symbol
188 name:
189 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
190 object field named "xname".
191 (SYMBOL_NAME): New macro.
192 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
193 name field.
194 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
195 (mark_object, gc_sweep): Use symbol xname field and XSTRING
196 instead of name field.
197 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
198 SYMBOL_NAME instead of XSYMBOL and name field.
199 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
200 instead of XSYMBOL and name field.
201 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
202 and SYMBOL_NAME instead of XSYMBOL and name field.
203 * coding.c (Fread_coding_system, code_convert_region1)
204 (code_convert_string1, code_convert_string_norecord)
205 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
206 XSYMBOL and name field.
3751c81b
SM
207 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
208 (Fmake_variable_buffer_local, Fmake_local_variable)
07e9823c
KR
209 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
210 of XSYMBOL and name field.
211 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
212 XSYMBOL and name field.
213 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
214 instead of XSYMBOL and name field.
215 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
216 XSYMBOL and name field.
3751c81b
SM
217 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
218 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c
KR
219 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
220 instead of XSYMBOL and name field.
3751c81b
SM
221 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
222 (parse_modifiers, apply_modifiers, Fevent_convert_list)
223 (parse_solitary_modifier, Fexecute_extended_command):
224 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
225 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
07e9823c
KR
226 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
227 of XSYMBOL and name field.
228 (describe_command, describe_translation): Use SYMBOL_NAME and
229 assignment instead of XSYMBOL and name field and XSETSTRING.
230 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
231 instead of XSYMBOL and name field.
232 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
233 name field and XSETSTRING.
234 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
235 of XSYMBOL and name field.
236 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
237 assignment instead of XSYMBOL and name field and XSETSTRING.
238 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
239 XSTRING instead of XSYMBOL and name field.
240 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
241 and XSTRING instead of XSYMBOL and name field.
242 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
243 and XSTRING instead of XSYMBOL and name field.
244 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
245 XSTRING instead of XSYMBOL and name field.
246 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
247 of XSYMBOL and name field.
3751c81b
SM
248 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
249 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c 250
7340cc50
KR
2512002-05-19 Ken Raeburn <raeburn@gnu.org>
252
253 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
254 and XCDR real rvalues in most configurations.
255
3751c81b
SM
256 * buffer.c (fix_overlays_in_range, fix_overlays_before):
257 Don't take the address of the cdr part of a cons cell; instead, track
7340cc50
KR
258 the parent cell and call XSETCDR, or set the variable for the head
259 of the list if we haven't started down the list yet.
260
8bad880b
RS
2612002-05-19 Richard M. Stallman <rms@gnu.org>
262
263 * doc.c (reread_doc_file): Don't ask for confirmation.
264
0708de07
JR
2652002-05-18 Jason Rumney <jasonr@gnu.org>
266
267 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
268 (xbm_load_image): Use it.
269 (xbm_load): Ditto.
270 (xbm_read_bitmap_data): Reverted to xfns.c version.
271 From David Ponce <david@dponce.com>.
272
2c978faf
EZ
2732002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
274
275 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
276 2.02 and later.
277
b96fb65c
JB
2782002-05-16 Juanma Barranquero <lektu@terra.es>
279
3751c81b 280 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
b96fb65c 281
daaf4dfc
SM
2822002-05-15 Stefan Monnier <monnier@cs.yale.edu>
283
284 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
285 meaningful test.
286 (read_char_minibuf_menu_prompt): Fix typo.
287
f8229bf6
EZ
2882002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
289
290 * eval.c (Fcommandp): Doc fix.
291
31bea176
SM
2922002-05-13 Stefan Monnier <monnier@cs.yale.edu>
293
294 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
295 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
296 (Fset_keymap_parent): Gcpro a bit more.
297 (access_keymap): Gcpro around meta_map call and around the main loop.
298 (get_keyelt): Gcpro when following indirect references.
299 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
300 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
301 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
302 Remove useless ad-hoc remap code.
303
4d8ff34d
KH
3042002-05-13 Richard M. Stallman <rms@gnu.org>
305
306 * search.c (search_buffer): Give up boyer moore search if inverse
307 translation change charset_base.
308
9861e777
EZ
3092002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
310
311 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
312 characters is carried over from the previous block of text, adjust
313 coding->produced to account for the extra character.
314
eef762fc
AS
3152002-05-11 Andreas Schwab <schwab@suse.de>
316
317 * coding.c (intersection): Keep the elements of the returned list
318 in the same order as in the first list.
319
6d8c02ae
KS
3202002-05-11 Kim F. Storm <storm@cua.dk>
321
322 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
323 only update cmm_size if realloc actually succeeds.
324 Testing with initial size of 2 elements revealed that using
325 realloc on GNU/Linux would cause a random trap in xmalloc
326 later on, so I rewrote the code to use malloc/bcopy/free instead
327 of realloc.
328
6358474d
JR
3292002-05-10 Jason Rumney <jasonr@gnu.org>
330
331 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
332
22a2a460
EZ
3332002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
334
335 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
336 parens, to ensure correct evaluation order.
337
05b2c53f
KS
3382002-05-10 Kim F. Storm <storm@cua.dk>
339
340 * keymap.c (Vemulation_mode_map_alists): New variable.
341 (syms_of_keymap): DEFVAR_LISP it.
342 (current_minor_maps): Process keymap alists in that list before
343 minor-mode-overriding-map-alist and minor-mode-map-alist.
344
ccc8c8bb
RS
3452002-05-09 Richard M. Stallman <rms@gnu.org>
346
347 * search.c (Freplace_match): Doc fix.
348
f2131323
KS
3492002-05-09 Kim F. Storm <storm@cua.dk>
350
3751c81b 351 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
352 Enlarge cursor rectangle drawn around image with non-zero relief.
353
3751c81b 354 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
f2131323
KS
355 Enlarge cursor rectangle drawn around image with non-zero relief.
356
3751c81b 357 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
358 Enlarge cursor rectangle drawn around image with non-zero relief.
359
7b9ae523
EZ
3602002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
361
362 * xselect.c (lisp_data_to_selection_data): Don't set selection
363 type if comes from the Lisp object's car. If the selection
364 contains a pure ASCII text, always return QSTRING as its type.
365
14bda6db
PJ
3662002-05-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
367
368 * mac.c (mac-cut-function): Doc fix.
369
6b529d78
RS
3702002-05-05 Richard M. Stallman <rms@gnu.org>
371
372 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
373
1d5e0b52
JR
3742002-05-04 Jason Rumney <jasonr@gnu.org>
375
5259a0d0
JR
376 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
377 for event-click-count.
378
1d5e0b52
JR
379 * process.c (init_process): Only add server subfeature if we can
380 use non-blocking I/O.
381
c7764932
AC
3822002-05-04 Andrew Choi <akochoi@shaw.ca>
383
384 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
385 repeatedly.
386
e151372d
JR
3872002-05-03 Jason Rumney <jasonr@gnu.org>
388
389 * process.c (Fmake_network_process): Only support server sockets
390 when we can make them non-blocking.
391
392 * s/ms-w32.h (HAVE_SELECT): Define.
393
394 * w32.h (FILE_NDELAY): New flag.
395
396 * w32.c (sys_getpeername, fcntl): New functions.
397 (_sys_read_ahead): Temporarily block on non-blocking sockets.
398
399 * w32proc.c: include sys/file.h.
400
43936bf4
CW
4012002-05-03 Colin Walters <walters@verbum.org>
402
403 * callproc.c (Vgame_score_directory): Renamed to
404 Vshared_game_score_directory.
405
0c8c6322
RS
4062002-04-30 Richard M. Stallman <rms@gnu.org>
407
397214d4
RS
408 * s/gnu.h [emacs]: Include stdio.h.
409 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
410
0c8c6322
RS
411 * eval.c (do_autoload): Error if called while preparing to dump.
412
413 * fns.c (Frequire): Error if need to load while preparing to dump.
414
5a234d25
CW
4152002-04-28 Colin Walters <walters@verbum.org>
416
5167cfda
CW
417 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
418 Default to "~/.emacs.d/games".
5a234d25 419
96035dca
SM
4202002-04-29 Stefan Monnier <monnier@cs.yale.edu>
421
de2413e9
SM
422 * lread.c (openp): Change arg exec_only to predicate.
423 (build_load_history): Use XCAR/XCDR.
424 (Flocate_file_internal): New fun.
425 (syms_of_lread): Defsubr it.
426 (Fload): Update call to openp.
427
428 * lisp.h (openp): Update prototype.
429
430 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
431 * w32proc.c (sys_spawnve):
432 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
433 * w32.c (check_windows_init_file):
434 * sound.c (Fplay_sound_internal):
435 * process.c (Fstart_process):
436 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
437 * mac.c (run_mac_command):
438 * emacs.c (init_cmdargs):
439 * callproc.c (Fcall_process): Update call to openp.
440
962ba97c
SM
441 * textprop.c (remove_properties): Don't use XCAR without CONSP.
442
96035dca
SM
443 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
444
e656fc9d
PJ
4452002-04-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
446
447 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
448 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
449
43bbe516
RS
4502002-04-28 Richard M. Stallman <rms@gnu.org>
451
452 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
453
454 * eval.c (Fcommandp): New arg for_call_interactively.
455 * lisp.h (Fcommandp): Declare new arg.
456
6fb6f3ac
JR
4572002-04-28 Jason Rumney <jasonr@gnu.org>
458
459 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
460
461 * w32.c (stat, fstat): Use file index information to generate
462 inodes for directories where available.
463
e0f712ba
AC
4642002-04-26 Andrew Choi <akochoi@shaw.ca>
465
466 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
467 [HAVE_CARBON]: Include Mac object files.
468
469 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
470 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
471 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
472 MAC_OSX, and MAC_OS instead of macintosh.
473
474 * editfns.c [MAC_OS8]: Include stdio.h.
475
476 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
477
478 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
479 Apple Monaco.
480
481 * process.c: Declare QCfamily and QCfilter as extern.
482 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
483 calling select.
484
96035dca
SM
485 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
486
e0f712ba 487 * tparam.c [MAC_OSX]: Don't define BC and UP.
96035dca 488
e0f712ba
AC
489 * config.in [HAVE_CARBON]: Add.
490
96035dca
SM
491 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
492 Move here from mac/src and mac/inc.
e0f712ba
AC
493
494 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
96035dca 495
56a0382c
GM
4962002-04-26 Gerd Moellmann <gerd@gnu.org>
497
96035dca
SM
498 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
499 Compute phys_cursor_width from the x position returned
500 by x_draw_glyhs, which is cheaper.
56a0382c
GM
501 (x_display_and_set_cursor): Compute the buffer-local value
502 of `cursor-in-non-selected-windows' only when needed.
503
ef58a7ec
GM
5042002-04-25 Gerd Moellmann <gerd@gnu.org>
505
506 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
507 cursor on a stretch glyph has a width that depends on
508 x_stretch_cursor_p.
509
6f442633
PJ
5102002-04-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
511
ca70e62f
PJ
512 * abbrev.c (abbrev-start-location): Doc fix.
513
6f442633
PJ
514 * indent.c (Fvertical_motion): Fix last change.
515
3a46a5de
GM
5162002-04-25 Gerd Moellmann <gerd@gnu.org>
517
518 * indent.c (Fvertical_motion): Move to the start of the line
519 containing PT before moving up or down.
520
f7c5994d
GM
5212002-04-24 Gerd Moellmann <gerd@gnu.org>
522
60f2f3f1
GM
523 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
524 case of writing a whole row, more or less analogous to the case of
525 writing only parts of a row.
526
527 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
528 0 for NO_CURSOR.
96035dca 529
f7c5994d
GM
530 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
531
973c3c87
CW
5322002-04-23 Colin Walters <walters@verbum.org>
533
534 * buffer.c (syms_of_buffer): Doc fix.
535
b3738089
GM
5362002-04-23 Gerd Moellmann <gerd@gnu.org>
537
516074a1
GM
538 * xterm.c (notice_overwritten_cursor): Handle the special case
539 of the cursor being in the first blank non-text line at the
540 end of a window.
96035dca 541
b3738089
GM
542 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
543 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
544 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
545 bar cursors only, to make phys_cursor_width contain what its name
546 suggests.
547 (notice_overwritten_cursor): Consider the cursor image erased if
548 the output area intersects the cursor image in y-direction.
549
5d449b17
RS
5502002-04-23 Simon Marshall <simon@gnu.org>
551
552 * xfns.c (x_set_mouse_color): Change default for cross_cursor
553 to XC_hand2.
554
e6b6f919
PJ
5552002-04-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
556
96035dca 557 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
e6b6f919 558
f25d60d6
KS
5592002-04-22 Kim F. Storm <storm@cua.dk>
560
561 * textprop.c (remove_properties): Fixed trap for malformed plist.
562
6b448755
RS
5632002-04-22 Richard M. Stallman <rms@gnu.org>
564
df218ce6
RS
565 * cmds.c (Fend_of_line): Handle intangible text in mid line.
566
6b448755
RS
567 * window.c (make_window): Initialize height_fixed_p,
568 last_cursor_off_p, and p->cursor_off_p slots.
569
7769818b
PJ
5702002-04-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
571
572 * fns.c (use-dialog-box): Doc fix.
573
6ad6535b
PJ
5742002-04-19 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
575
576 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
577 variables `row', `i' and `area'.
578 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
579 toolkit library.
580
3d90c96c
SM
5812002-04-19 Stefan Monnier <monnier@cs.yale.edu>
582
583 * xfaces.c (clear_font_table): Don't free the default font of
584 a frame even if it's on another display.
585 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
586 that could be Qt.
587
58b1103e
JB
5882002-04-19 Juanma Barranquero <lektu@terra.es>
589
590 * indent.c (Fmove_to_column): Remove unused local variable
591 `next_boundary_byte'.
592 (current_column_1): Likewise.
593
175e150b
EZ
5942002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
595
596 * msdos.c (Qhbar): New variable.
3d90c96c 597 (syms_of_msdos): Intern and staticpro it.
175e150b
EZ
598 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
599 cursor type.
600
6fab1572
EZ
6012002-04-19 Dave Lambert <dlambert@acm.org>
602
603 Theses change implement an underscore-like (`hbar') cursor.
604
605 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
606
607 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
608 Handle the `hbar' cursor type.
609 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
610
611 * xfns.c (Qhbar): New variable.
3d90c96c 612 (syms_of_xfns): Intern and staticpro it.
6fab1572 613 (x_specified_cursor_type): Handle `hbar' cursor.
5e3238f4
EZ
614
615 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
616 not defined.
617
0cf5c1e7
RS
6182002-04-18 Richard M. Stallman <rms@gnu.org>
619
620 * textprop.c (remove_properties): New arg LIST allows scanning
621 either a list or a plist.
622 (interval_has_some_properties_list): New function, like
623 interval_has_some_properties using list instead of plist.
624 All callers changed.
625 (Fremove_list_of_text_properties): New function.
626 (syms_of_textprop): Defsubr it.
627
1a4140b0
EZ
6282002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
629
630 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
631
59b7fa65
JB
6322002-04-17 Juanma Barranquero <lektu@terra.es>
633
3d90c96c 634 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
59b7fa65 635
ac431108
EZ
6362002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
637
638 * window.c (coordinates_in_window): Don't report on margin area
639 if its width is zero.
640
1c565847
JR
6412002-04-16 Jason Rumney <jasonr@gnu.org>
642
643 * w32fns.c (Fx_file_dialog): Decode file name before using.
644
645 * w32term.c (construct_drag_n_drop): Likewise.
3d90c96c 646
852eef40
EZ
6472002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
648
649 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
650 store load-history in pure space.
651
652 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
653
c997eae5
SM
6542002-04-16 Stefan Monnier <monnier@cs.yale.edu>
655
656 * xterm.c (Qlatin_1, Qutf_8): New vars.
657 (syms_of_xterm): Initialize them.
658 (XTread_socket): Eliminate incorrect optimization that tried to avoid
659 decoding the output of X*LookupString.
660 Always use latin-1 to decode the output of XLookupString.
661 Try Xutf8LookupString if XmbLookupString failed.
662
663 * region-cache.c (new_region_cache): Use BEG.
664
08327b22
GM
6652002-04-16 Gerd Moellmann <gerd@gnu.org>
666
667 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
668 configuration files.
669 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
670 returns 0.
671
d8f6d720
AS
6722002-04-15 Andreas Schwab <schwab@suse.de>
673
674 * config.in: Regenerated using autoheader.
675
676 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
677 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
678 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
679 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
680 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
681 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
682 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
683 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
684 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
685 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
686 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
687 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
688 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
689 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
690 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
691 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
692 STACK_DIRECTION, now set by autoconf.
693
0e03b0c2
PJ
6942002-04-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
695
696 * dispnew.c (marginal_area_string): Sort arguments.
697
698 * dispextern.h (marginal_area_string): Add prototype.
699
685fc579
RS
7002002-04-13 Richard M. Stallman <rms@gnu.org>
701
c997eae5 702 * fileio.c (Finsert_file_contents):
685fc579
RS
703 Don't call temp_output_buffer_setup--do just part, by hand.
704
705 * coding.c (run_pre_post_conversion_on_str):
706 Don't call temp_output_buffer_setup--do just part, by hand.
707
708 * keyboard.c (command_loop_1): Don't call start_hourglass
709 or cancel_hourglass when executing a macro.
710
711 * marker.c (count_markers): New function.
712
713 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
714 grow without limit. Move recently used elements to the front.
715
e144dfa8
EZ
7162002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
717
718 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
719
e9f8a3ab
GM
7202002-04-12 Gerd Moellmann <gerd@gnu.org>
721
7d4cc828
GM
722 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
723 rows marginal areas.
724 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
725 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
726
e9f8a3ab
GM
727 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
728
7292002-04-12 Dave Love <fx@gnu.org>
730
731 * dispnew.c (marginal_area_string): New.
732
733 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
734 (Qleft_margin, Qright_margin): Declare.
c997eae5 735 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
e9f8a3ab
GM
736
737 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
738 note_mode_line_highlight and extended.
739
740 * keyboard.c (Qleft_margin, Qright_margin): Declare.
741 (make_lispy_event): Deal with mouse events in margins.
742
d7565649
SM
7432002-04-12 Stefan Monnier <monnier@cs.yale.edu>
744
745 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
746
747 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
748 than deactivating the mark if tmm is set to `lambda'.
749 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
750 Use a single event for HELP_EVENT.
751 (Fexecute_extended_command): Save last_point_position.
752
034a7130
PJ
7532002-04-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
754
755 * lisp.h (Fpropertize): Add prototype.
756
757 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
758
e82defd1
CW
7592002-04-10 Colin Walters <walters@verbum.org>
760
b9b966e0
CW
761 * config.in: Add HAVE_SHARED_GAME_DIR.
762
e82defd1
CW
763 * callproc.c: (Vgame_score_directory): New variable.
764 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
765
05ea8efd
RS
7662002-04-10 Richard M. Stallman <rms@gnu.org>
767
768 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
769
f9cf4c2c
SM
7702002-04-09 Stefan Monnier <monnier@cs.yale.edu>
771
772 * minibuf.c (read_minibuf): Use empty_string.
773 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
774 Short-circuit the search as soon as it "failed".
775 (Fall_completions): Allow lambda forms and lists of strings for alist.
776 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
777 when require_match is nil.
778 (Ftest_completion): Rename from `test_completion' and export to elisp.
779 Call the predicate also when alist is a list.
780 Obey Vcompletion_regexp_list.
781 (do_completion, Fminibuffer_complete_and_exit): Use it.
782 (Fassoc_string): Rename from `assoc_for_completion'.
783 Allow list of strings as well and export to elisp.
784
dba57d89
SM
7852002-04-08 Stefan Monnier <monnier@cs.yale.edu>
786
787 * puresize.h (BASE_PURESIZE): Increase to 900KB.
788
a0ad1860
JB
7892002-04-08 Juanma Barranquero <lektu@terra.es>
790
791 * w32.c (sys_accept): Don't hide variable `s'.
792
b9f0b172
GM
7932002-04-05 Gerd Moellmann <gerd@gnu.org>
794
0d1bf3f7 795 * callint.c (Fcall_interactively): Use INTEGERP instead of
b9f0b172
GM
796 NUMBERP for checking Vhistory_length.
797
368ab68f
PJ
7982002-04-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
799
800 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
801 Doc fix to reflect it.
802
d3012189
RS
8032002-04-04 Richard M. Stallman <rms@gnu.org>
804
805 * xdisp.c (display_mode_element): New arg RISKY.
806 Disregard text props found or specified within a variable
807 that isn't marked risky-local-variable.
808 (Qrisky_local_variable): New variable.
809 (syms_of_xdisp): Init and staticpro it.
810
0d1bf3f7
SM
8112002-04-04 Stefan Monnier <monnier@cs.yale.edu>
812
813 * undo.c (record_point): New fun.
814 (record_delete, record_insert): Use it.
815
8caa93d2
JB
8162002-04-03 Juanma Barranquero <lektu@terra.es>
817
818 * doc.c (Fdocumentation): Add missing parentheses.
819 (Fdocumentation_property): Likewise.
820
b3bbfb96
SM
8212002-04-03 Stefan Monnier <monnier@cs.yale.edu>
822
823 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
824 data is 0, just return nil.
825
db4a142a
EZ
8262002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
827
828 * msdos.c (syms_of_msdos): Fix last change with
829 mouse_autoselect_window.
830
dc8cd652
PJ
8312002-04-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
832
833 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
834 mouse_autoselect_window.
835
e5aa79fa
SM
8362002-04-02 Stefan Monnier <monnier@cs.yale.edu>
837
4c8bc894
SM
838 * keyboard.c (make_lispy_event): Handle unknown keysyms together
839 with system-specific keysyms. Use it also for unknown function keys.
840
e5aa79fa
SM
841 * doc.c (reread_doc_file): Return whether reload was attempted.
842 (Fdocumentation, Fdocumentation_property): Don't try to reload
843 if the doc is 0 and only ask once.
844
845 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
846
5d12f14d
EZ
8472002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
848
849 * keyboard.c (read_char): If the event was Qselect_window,
850 restore timer_idleness_start_time to its previous value.
851
e5aa79fa 852 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5d12f14d 853
bed9664a
SM
8542002-04-01 Stefan Monnier <monnier@cs.yale.edu>
855
c5e5e1f8
SM
856 * region-cache.c (new_region_cache): Use BEG.
857
858 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
859 Use BEG and BEG_BYTE.
860
e5aa79fa 861 * doc.c (get_doc_string): Return nil if the location is wrong.
c5e5e1f8
SM
862 (reread_doc_file): New fun.
863 (Fdocumentation, Fdocumentation_property):
864 Call it if get_doc_string fails.
865 (Fsnarf_documentation): Make it work for a dumped Emacs.
866
867 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
868 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
869
870 * charset.c (Fstring): Allow 0 arguments.
871
bed9664a
SM
872 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
873
874 * process.c (DATAGRAM_CONN_P, list_processes_1)
875 (Fprocess_datagram_address, Fset_process_datagram_address)
876 (Fset_network_process_options, server_accept_connection):
877 Fix some int/Lisp_Object confusions (thank you union types).
878
83512b21
PJ
8792002-04-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
880
881 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
882
883 * w32term.c: Likewise.
bed9664a 884 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
83512b21
PJ
885
886 * keyboard.c (Qselect_window): New symbol.
887 (head_table): Use it.
bed9664a
SM
888 (keys_of_keyboard): Bound select-window event to handle-select-window.
889 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
83512b21
PJ
890
891 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
892 (last_window): New variable.
893 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
894 (note_mouse_movement): Remove reimplemented code in #if 0.
093484c7
PJ
895 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
896 Emacs windows.
83512b21 897
bed9664a 898 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
83512b21 899
abfb6b46
GM
9002002-03-31 Gerd Moellmann <gerd@gnu.org>
901
902 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
903 Callers changed.
904
9b2bba76
RS
9052002-03-30 Richard M. Stallman <rms@gnu.org>
906
907 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
908 loop whenever it stops making progress.
909
910 * widget.c (set_frame_size): Don't call change_frame_size.
911
fd524c21
GM
9122002-03-30 Gerd Moellmann <gerd@gnu.org>
913
bed9664a
SM
914 * dispnew.c (direct_output_for_insert):
915 Call mark_window_display_accurate.
fd524c21 916
df3bd29d
JR
9172002-03-29 Jason Rumney <jasonr@gnu.org>
918
919 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
920
eb191db2
EZ
9212002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
922
8bff61e5
EZ
923 * Makefile.in (lread.o): Depend on coding.h.
924
544bf8ad 925 * lread.c (openp, Fload): Encode the file name before passing it
eb191db2
EZ
926 to `stat', `access', and `emacs_open'.
927 (openp): GCPRO the encoded file name. Don't recompute Lisp
928 strings unnecessarily.
929
f9b33abb
KS
9302002-03-29 Kim F. Storm <storm@cua.dk>
931
932 * fns.c (Flax_plist_put): Doc fix.
933
d4648402
MB
9342002-03-28 Miles Bader <miles@gnu.org>
935
936 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
937
320aebc9
PJ
9382002-03-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
939
940 * process.c (set-network-process-options): Add usage.
941 (make-network-process): Doc fix.
942
4aaa3607
EZ
9432002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
944
945 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
946
a5f08374
RS
9472002-03-26 Richard M. Stallman <rms@gnu.org>
948
9356fe5a
RS
949 * fns.c (Fsubstring_no_properties): New function.
950 (Flax_plist_get, Flax_plist_put): New functions.
951 (syms_of_fns): defsubr them.
952
a5f08374
RS
953 * xdisp.c (update_menu_bar): Test only update_mode_lines;
954 don't test or alter w->update_mode_line.
955
956 * window.c (Fdisplay_buffer): Doc fix.
957
9582002-03-24 Richard M. Stallman <rms@gnu.org>
959
960 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
961
0af6533d
GM
9622002-03-24 Gerd Moellmann <gerd@gnu.org>
963
964 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
965 (Fdefmacro): Handle `(declare ...)'.
966 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
967 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
968
217e5be0
JR
9692002-03-24 Jason Rumney <jasonr@gnu.org>
970
971 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
972 (xbm_file_p): Add prototypes.
973 (xbm_format, xbm_image_p): Sync with xfns.c.
974 (reflect_byte): New function.
975 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
976 (xbm_load_image): Create bitmaps with a depth of 1.
977 (init_xfns): Enable XBM images.
978
919f1e88
JR
9792002-03-23 Jason Rumney <jasonr@gnu.org>
980
981 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
982 correctly. Do not pass up_modifier to keyboard buffer.
983
984 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
985
44d38e8d
SM
9862002-03-22 Stefan Monnier <monnier@cs.yale.edu>
987
988 * Makefile.in (bootstrapclean): New target.
989 (bootstrap-temacs, bootstrap-doc): Remove.
990 (bootstrap-emacs): Use a bog-standard `temacs'.
991 Don't bother to build a DOC file.
992
993 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
994
995 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
996 in temacs even if !CANNOT_DUMP.
997 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
998
999 * alloc.c (check_pure_size): Only output a warning.
1000
b8b47c19
JR
10012002-03-22 Jason Rumney <jasonr@gnu.org>
1002
d3109773
JR
1003 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
1004 supported.
1005
ef07a497 1006 * w32term.c (zv_bits): Declare as short, for word alignment.
b8b47c19
JR
1007 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
1008 (syms_of_w32term): Define x-use-underline-position-properties.
1009
1010 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
1011 (clear_image_cache): Block input, fix logic, clear matrices in
1012 all frames that share this cache.
1013
b9b1a853
EZ
10142002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
1015
483812ae
EZ
1016 * emacs.c (main): Update the Copyright year in the blurb printed
1017 by "emacs --version".
1018
78e17433
EZ
1019 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
1020
b9b1a853
EZ
1021 * xterm.c (XTread_socket): If XK_ISO_Lock and
1022 XK_ISO_Last_Group_Lock are defined, handle keysyms between
1023 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
1024
fd646341
KS
10252002-03-21 Kim F. Storm <storm@cua.dk>
1026
1027 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
1028 menu-bar bindings in keymap and local-map properties _are_ used.
1029 But try keymap property first in accordance with 2002-01-03 patch.
1030 Added comment describing why this is not always reliable.
1031 (tool_bar_items): Ditto for tool-bar.
1032
bf76fe9c
JR
10332002-03-21 Jason Rumney <jasonr@gnu.org>
1034
1035 * w32fns.c (x_clear_image_1): Disable color table code.
1036
41ad6233
KS
10372002-03-21 Kim F. Storm <storm@cua.dk>
1038
1039 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
1040 removed the wrong version of the DEFUN macro; fixed it.
1041
1042 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
1043 Fmember rather than Fmemq).
1044 (Fprovide): Check that subfeatures is a list.
1045
1046 * process.c (QCfeature, QCdatagram): Removed variables.
1047 (QCtype, Qdatagram): New variables.
1048 (network_process_featurep): Removed function.
1049 (Fmake_network_process): Removed :feature check.
1050 Use :type 'datagram instead of :datagram t to create a datagram
1051 socket. This allows us to add other connection types (e.g. raw
1052 sockets) later in a consistent manner.
3ae1b884
KS
1053 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
1054 supported subfeatures for feature make-network-process.
41ad6233
KS
1055 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
1056 Intern and staticpro QCtype and Qdatagram.
1057 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
1058
1059 * xfns.c: (QCtype): Remove duplicate declaration and
1060 initialization (is now declared in process.c).
1061
1062 * w32fns.c: (QCtype): Remove duplicate declaration and
1063 initialization (is now declared in process.c).
1064
27950b47
RS
10652002-03-21 Richard M. Stallman <rms@gnu.org>
1066
f6df485f
RS
1067 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
1068 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
1069 when jumping to `fail' to avoid undoing reg changes in the
1070 last iteration of the loop.
1071 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
1072
27950b47
RS
1073 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
1074 Depend on process.h.
1075
3be38152
JR
10762002-03-20 Jason Rumney <jasonr@gnu.org>
1077
1078 Most of the following changes are still conditional on HAVE_IMAGES
1079 which is not set by default on Windows.
1080
47bcdab2
JR
1081 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
1082
3be38152
JR
1083 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
1084 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
1085 (four_corners_best, x_clear_image_1, x_clear_image)
e2c0561e
TTN
1086 (x_alloc_image_color, postprocess_image)
1087 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
3be38152
JR
1088 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
1089 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
1090
1091 * w32gui.h (struct XImage): Define.
1092
1093 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
1094 extract mouse co-ordinates.
1095
f37577f9
JR
10962002-03-20 Jason Rumney <jasonr@gnu.org>
1097
1098 * w32.c (init_winsock): Dynamically load new server and UDP
1099 socket functions.
1100 (socket_to_fd): New function.
1101 (sys_socket): Use it.
e2c0561e 1102 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
f37577f9
JR
1103 (sys_recvfrom, sys_sendto): New wrapper functions.
1104
1105 * process.c (QCfamily, QCfilter): Remove duplicate declaration
1106 and initialization.
1107
1108 * makefile.w32-in (LIBS): Remove $(WSOCK32).
1109
ab8a75de
EZ
11102002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
1111
1112 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
1113 use "sun" as a variable, it's a predefined constant on Sun
1114 machines.
1115
9ab7ff8b
PJ
11162002-03-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1117
1118 * bytecode.c (Fbyte_code): Revert last change.
1119
d1ef18f2
KS
11202002-03-19 Kim F. Storm <storm@cua.dk>
1121
1122 * makefile.w32-in (LIBS): Add $(WSOCK32).
1123 From David Ponce <dponce@voila.fr>.
1124
99982883
PJ
11252002-03-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1126
44c887be
PJ
1127 * process.c (wait_reading_process_input): Move variables `pname'
1128 and `pnamelen' down where they are used.
1129
18f85cdd
PJ
1130 * bytecode.c (Fbyte_code): Discard unused computed value to
1131 prevent gcc warning.
1132
99982883
PJ
1133 * lisp.h (Fplist_member): Add prototype.
1134
10ce34dc
KS
11352002-03-18 Kim F. Storm <storm@cua.dk>
1136
1137 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
1138 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
1139 HAVE_SYS_UN_H.
1140
744d746b 1141 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10ce34dc
KS
1142 Remove explicit GNU_LINUX settings for datagram support.
1143
fa9d4315
PJ
11442002-03-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1145
1146 * process.c (Fmake_network_process): Remove unused variable `sa'.
1147 Doc fix. Add usage:.
1148 (set_socket_options): Remove unused variables `optnum' and
1149 `opttype'.
1150
6147334f
RS
11512002-03-17 Richard M. Stallman <rms@gnu.org>
1152
1153 * xdisp.c (cursor_type_changed): New variable.
1154 (redisplay_internal): Redisplay all windows if cursor_type_changed.
1155 Clear it when clearing windows_or_buffers_changed.
1156 (try_cursor_movement, redisplay_window, try_window_id)
1157 (try_window_reusing_current_matrix): Test cursor_type_changed
1158 along with windows_or_buffers_changed.
1159
623fa9e7 1160 * window.h (cursor_type_changed): New variable.
6147334f
RS
1161
1162 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
1163 not update_mode_lines, and always set it to 1.
1164
1165 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
1166 if no frames needed redrawing.
1167
5439f987
KS
11682002-03-17 Kim F. Storm <storm@cua.dk>
1169
623fa9e7 1170 The following changes add support for network server processes,
5439f987
KS
1171 datagram connections, and local (unix) sockets.
1172
1173 * process.h (struct Lisp_Process): New member log.
1174 Doc fix: Member command used to indicate stopped network process.
1175 Doc fix: Member childp contains plist for network process.
1176 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
1177
1178 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
1179 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
1180 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
1181 New variables.
1182 (NETCONN1_P): New macro.
1183 (DATAGRAM_SOCKETS): New conditional symbol.
1184 (datagram_address): New array.
1185 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
1186 (status_message): Use concat3.
1187 (Fprocess_status): Add `listen' status to doc string. Return `stop'
1188 for a stopped network process.
1189 (Fset_process_buffer): Update contact plist for network process.
1190 (Fset_process_filter): Ditto. Don't enable input for stopped
1191 network processes. Server must listen, even if filter is t.
1192 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
1193 New functions.
1194 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
1195 (Fprocess_contact): Added KEY argument. Handle datagrams.
1196 (list_processes_1): Optionally show only processes with the query
1197 on exit flag set. Dynamically adjust column widths. Omit tty
1198 column if not needed. Report stopped network processes.
1199 Identify server and datagram network processes.
1200 (Flist_processes): New optional arg `query-only'.
1201 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1202 (conv_lisp_to_sockaddr, set_socket_options)
1203 (network_process_featurep, unwind_request_sigio): New helper functions.
1204 (Fprocess_datagram_address, Fset_process_datagram_address):
1205 (Fset_network_process_options): New lisp functions.
1206 (Fopen_network_stream): Removed. Now defined in simple.el.
1207 (Fmake_network_process): New lisp function. Code is based on previous
1208 Fopen_network_stream, but heavily reworked with new property list based
1209 argument list, support for datagrams, server processes, and local
1210 sockets in addition to old client-only functionality.
1211 (server_accept_connection): New function.
1212 (wait_reading_process_input): Use it to handle incoming connects.
1213 Do not enable input on a new connection if process is stopped.
1214 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
1215 (send_process): Handle datagram sockets.
1216 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
1217 network process is indicated by setting command field to t .
1218 (Fprocess_send_eof): No-op if datagram connection.
1219 (Fstatus_notify): Don't read input for a stream server socket or a
1220 stopped network process.
1221 (init_process): Initialize datagram_address array.
1222 (syms_of_process): Intern and staticpro new variables, defsubr new
1223 functions.
1224
f779bd4c
JR
12252002-03-16 Jason Rumney <jasonr@gnu.org>
1226
1227 * w32fns.c (w32_to_all_x_charsets): Return correct type in
1228 startup case.
1229
a9c1a157
RS
12302002-03-16 Richard M. Stallman <rms@gnu.org>
1231
e2c0561e 1232 * xdisp.c (redisplay_internal, redisplay_windows):
a9c1a157
RS
1233 Use list_of_error to call internal_condition_case_1.
1234 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
1235 so as to catch all errors with no possibility of debugger redisplay.
1236 (list_of_error): New variable.
1237 (syms_of_xdisp): Init and staticpro it.
1238
1239 * print.c (print_object): Delete `\ ' from printed rep of frame.
1240
7264f28d
EZ
12412002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
1242
1243 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
1244 until its implementation is fixed.
1245
6ee8e167
PJ
12462002-03-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1247
1248 * xfns.c (png_load): Remove unused variable `gamma_str'.
1249
7c3f9166
RS
12502002-03-14 Richard M. Stallman <rms@gnu.org>
1251
1252 * xfns.c (x_real_positions): Handle failure in XQueryTree.
1253
5b905677
MB
12542002-03-14 Miles Bader <miles@gnu.org>
1255
1256 * intervals.c (adjust_for_invis_intang): New function.
1257 (set_point_both): Use `adjust_for_invis_intang' to do most of the
1258 work for dealing with invisible+intangible regions. Do so before
1259 and after both forward and backward movements, to handle both
1260 front-sticky and rear-sticky cases.
1261 * textprop.c (text_property_stickiness): Function moved here from
1262 `editfns.c'.
1263 * intervals.h (text_property_stickiness): New declaration.
1264 * editfns.c (char_property_eq): Function removed.
1265 (text_property_stickiness): Function moved to `textprop.c'.
1266
73792b51
JR
12672002-03-13 Jason Rumney <jasonr@gnu.org>
1268
1269 * config.in: Add STRFTIME_NO_POSIX2.
1270
1271 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
1272 and %OX when underlying strftime does not.
1273
dc3b2c8b
SM
12742002-03-13 Stefan Monnier <monnier@cs.yale.edu>
1275
6f2a7a68
SM
1276 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
1277 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
1278 line) to avoid annoying flicker.
1279 (xm_scroll_callback): Get rid of the now unnecessary kludge.
1280 (XTread_socket): Mark it static.
1281
dc3b2c8b
SM
1282 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
1283
98243275
KS
12842002-03-13 Kim F. Storm <storm@cua.dk>
1285
1286 * puresize.h (BASE_PURESIZE): Increase to 775000.
1287
7dcece14
JB
12882002-03-12 Juanma Barranquero <lektu@terra.es>
1289
1290 * editfns.c (syms_of_editfns): Fix typo.
1291
656132eb
GM
12922002-03-12 Gerd Moellmann <gerd@gnu.org>
1293
1294 * xsmfns.c: Include stdio.h because termhooks.h needs it.
1295 Include termopt.h for interrupt_input.
1296
ff955d90
AS
12972002-03-11 Andreas Schwab <schwab@suse.de>
1298
1299 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
1300
714d8c39
GM
13012002-03-11 Gerd Moellmann <gerd@gnu.org>
1302
073448c5
GM
1303 * xterm.c (note_mouse_movement): Put code for
1304 x_autoselect_window_p in #if 0.
1305
4006b74e 1306 * lread.c (Fload): Don't assume that message_with_string uses the
714d8c39
GM
1307 string it is given like a C string.
1308
089fba41
JD
13092002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1310
7c3f9166 1311 * xterm.h (x_session_check_input, x_session_initialize): Declared.
089fba41 1312
363a4df6
JD
1313 * xterm.c: (XTread_socket): Add call to x_session_check_input and
1314 x_session_have_connection.
1315 (x_initialize): Add call to x_session_initialize.
089fba41 1316
4006b74e 1317 * termhooks.h (enum event_kind): Add save_session_event.
089fba41 1318
4006b74e 1319 * keyboard.c: Add Emacs event save_session_event.
089fba41 1320
4006b74e 1321 * emacs.c (main): Add call to syms_of_xsmfns.
089fba41 1322
4006b74e 1323 * lisp.h: Declare syms_of_xsmfns as extern.
089fba41 1324
4006b74e 1325 * config.in: Add HAVE_X_SM.
089fba41 1326
7c3f9166
RS
1327 * Makefile.in (LIBXT): Add -lSM -lICE
1328 if HAVE_X_SM and not USE_X_TOOLKIT.
1329 (XOBJ): New file xsmfns.c added.
089fba41
JD
1330
1331 * xsmfns.c: New file for X session management.
1332
ad497129
JR
13332002-03-09 Jason Rumney <jasonr@gnu.org>
1334
1335 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
1336 read-only when setting modified time.
1337
f2c7b04f
GM
13382002-03-08 Gerd Moellmann <gerd@gnu.org>
1339
c7ad4937
GM
1340 * xdisp.c (move_it_vertically_backward): At the end of the
1341 function, when moving forward by lines, treat terminal frames
1342 specially.
1343
0d121f7c
GM
1344 * keyboard.c (echo_char): Make sure to add a separator between
1345 keys even if echo_dash hasn't been called.
1346
2051c264
GM
1347 * xdisp.c: Use new string macros.
1348 (update_echo_area): Pass number of bytes to message3 instead of
1349 number of chars.
1350 (set_message_1): Don't access a string's size_byte directly.
1351 (decode_mode_spec_coding): Use number of bytes of eoltype string
1352 instead number of chars.
1353
f2c7b04f
GM
1354 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
1355
007776bc
JB
13562002-03-08 Juanma Barranquero <lektu@terra.es>
1357
1358 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
1359 24-bit.
1360
893a741e
JR
13612002-03-06 Jason Rumney <jasonr@gnu.org>
1362
1363 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
1364
8b5eabe0
GM
13652002-03-06 Gerd Moellmann <gerd@gnu.org>
1366
d88c5449 1367 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
e60b0c44
GM
1368 (cancel_echoing, echo_length, echo_truncate): Changed to
1369 work with new kboard definition.
1370 (echo_now): Use message3_nolog instead of message2_nolog.
1371
1372 * alloc.c (mark_kboards): Mark echo_string.
1373
1374 * keyboard.h (ECHOBUFSIZE): Removed.
1375 (struct kboard): Member echoptr removed, member echobuf renamed
1376 to echo_string.
1377
8b5eabe0
GM
1378 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
1379 message3 instead of message2 to display the message using STRING's
1380 text properties.
1381
5d335845
AS
13822002-03-05 Andreas Schwab <schwab@suse.de>
1383
1384 * xdisp.c (hscroll_margin): Change to EMACS_INT.
1385
67334131
PA
13862002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
1387
1388 * frame.c (default-frame-alist): Explain that setting it doesn't
1389 affect existing frames.
1390
d88c5449
SM
13912002-03-05 Stefan Monnier <monnier@cs.yale.edu>
1392
1393 * indent.c (skip_invisible): Fix my brain fart.
1394
1395 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
1396
31ade731
SM
13972002-03-04 Stefan Monnier <monnier@cs.yale.edu>
1398
1399 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
1400 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
1401 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
1402 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
1403 and variables to use EMACS_INT instead of just int.
1404
d88c5449
SM
1405 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
1406
c0917202
EZ
14072002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1408
1409 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
1410 environment, pass it down with corrected value.
1411
c6dc7fdd
PJ
14122002-03-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1413
1414 * lread.c (read_filtered_event): Do not call start_hourglass
1415 before returning.
1416
9652402e
JB
14172002-03-04 Juanma Barranquero <lektu@terra.es>
1418
1419 * w32term.c (x_display_and_set_cursor): Fix typo.
1420
73344256
RS
14212002-03-03 Richard M. Stallman <rms@gnu.org>
1422
1423 * fileio.c (Fmake_temp_name): Doc fix.
1424
71091322
RS
14252002-03-03 Gary Wong <gtw@gnu.org>
1426
1427 * termcap.c [!emacs]: Replace ospeed for building standalone
1428 libtermcap, for binary compatibility.
1429
1430 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
1431
aa7e4660
RS
14322002-03-03 Richard M. Stallman <rms@gnu.org>
1433
1434 * xrdb.c (file_p): Rename arg `path' to `filename'.
1435
1436 * abbrev.c (Fexpand_abbrev): Increment plist as use count
1437 only if it is an integer.
1438
1439 * xfns.c (png_load): Set screen_gamma based on f->gamma.
1440 If png_get_sRGB gives an answer, call png_set_gamma
1441 using the default image gamma value.
1442
1443 * lread.c (read1): When reading from a file, default string to
1444 multibyte only if it has some multibyte characters.
1445
1446 * print.c (print_object): Output multibyte chars 128...255
1447 using \x even if ! print_escape_multibyte.
1448
1449 * xdisp.c (display_mode_element): Move the places where
1450 bytepos, charpos, this, and lisp_string are set.
1451 Use lisp_string to set bytepos.
1452
1453 * xdisp.c (redisplay_internal):
1454 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
1455
1456 * xdisp.c (display_mode_element): Merge properties specified with
1457 :propertize onto those that come with the string.
1458
63d5d1ee
EZ
14592002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
1460
1461 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
1462 automatic-hscrolling. Users changed.
31ade731
SM
1463 <hscroll-margin>: Renamed from automatic-hscroll-margin.
1464 Users changed.
1465 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
63d5d1ee 1466
31a6cb06
EZ
14672002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1468
1469 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
1470
ee57fd91
KS
14712002-03-02 Kim F. Storm <storm@cua.dk>
1472
1473 * window.c (Fminibuffer_selected_window): New function.
1474 (syms_of_window): Defsubr it.
1475
922eae56
KS
14762002-03-01 Kim F. Storm <storm@cua.dk>
1477
eacb44ad
KS
1478 * window.h (struct window): New member phys_cursor_width.
1479
1480 * window.c (make_window, replace_window): Init phys_cursor_width.
31ade731 1481
eacb44ad
KS
1482 * xterm.c (x_display_and_set_cursor): Blink box cursor using
1483 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
1484
1485 * w32term.c (x_display_and_set_cursor): Blink box cursor using
1486 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
1487
922eae56
KS
1488 * lisp.h (GCPRO6): New macro.
1489
1490 * process.c (Fopen_network_stream): Use GCPRO6.
1491
81d5af8b
KS
14922002-03-01 Kim F. Storm <storm@cua.dk>
1493
1494 * process.c (Qconnect, Qfailed): New variables.
1495 (syms_of_process): Intern and staticpro them.
e4984112 1496 (Fprocess_status): Document connect and failed return values.
81d5af8b
KS
1497 [NON_BLOCKING_CONNECT]: New conditional.
1498 (connect_wait_mask, num_pending_connects): New variables.
1499 (status_message): Convert Qfailed status.
1500 (Fopen_network_stream): Added support for non-blocking connect.
1501 New optional args: filter, sentinel, non_blocking. Doc updated.
1502 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
1503 (deactivate_process): Handle pending non-blocking connect.
1504 (wait_reading_process_input): Poll for status of non-blocking
1505 connects. Exec sentinel directly when connect succeeds.
1506 (status_notify): Don't read process output if not yet connected.
31ade731 1507
5705966b
KS
15082002-02-28 Kim F. Storm <storm@cua.dk>
1509
1510 * window.c: (minibuf_selected_window): Renamed from
1511 Vminibuf_selected_window. Users changed.
1512 (syms_of_window): Staticpro it.
1513
beb0acdf
KS
15142002-02-26 Kim F. Storm <storm@cua.dk>
1515
1516 The following changes add a new Vminibuf_selected_window variable
1517 which is similar to Vminibuf_scroll_window, but which is only set
1518 on entry to the minibuffer (from a non-minibuffer window):
31ade731 1519
beb0acdf
KS
1520 * window.c: (Vminibuf_selected_window): New variable.
1521 (struct save_window_data): New member minibuf_selected_window.
1522 (Fset_window_configuration): Restore Vminibuf_selected_window.
1523 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
1524 Set minibuf_scroll_window member to nil if minibuf_level is 0.
1525 (compare_window_configurations): Compare minibuf_selected_window.
1526
1527 * window.h: (Vminibuf_selected_window): Declare extern.
1528
1529 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
1530 entry to minibuffer or on entry from a non-minibuffer window.
1531
1532 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
1533 Vminibuf_selected_window instead of Vminibuf_scroll_window.
1534
1535 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
1536 instead of Vminibuf_scroll_window when deciding in which window
1537 the region should be highlighted. Consequently, the region remains
1538 highlighteded even when a completion buffer is also displayed.
1539
3dfdc066
EZ
15402002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
1541
b135bd4c
EZ
1542 * fileio.c (Fsubstitute_in_file_name): Fix the change from
1543 2002-02-08.
1544
3dfdc066
EZ
1545 * xselect.c (Qcompound_text_with_extensions): Renamed from
1546 Qcompound_text_no_extensions.
1547 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
1548
804d894a
JB
15492002-02-26 Juanma Barranquero <lektu@terra.es>
1550
1551 * w32proc.c (syms_of_ntproc): Doc fix.
1552
0277b535
PJ
15532002-02-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1554
1555 * intervals.h: Include "dispextern.h" unconditionally.
1556
1f1bce0e
JR
15572002-02-24 Jason Rumney <jasonr@gnu.org>
1558
1559 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
1560 and disp-table.elc.
82a399d2 1561 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 1562
5f245371
KS
15632002-02-24 Kim F. Storm <storm@cua.dk>
1564
1565 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
1566 The validation of the event type was too strict as it didn't
1567 allow string events; buffer names are used in bindings for
1568 menu-bar-select-buffer (see `menu-bar-update-buffers').
1569
b66bc4a4 15702002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674 1571
31ade731 1572 The following changes rework my patch of 2002-02-06 which
a34cb674
KS
1573 added command remapping by entering the commands directly into
1574 the keymaps. Now, command remapping uses an explicit `remap'
1575 prefix in the keymaps, i.e. [remap COMMAND].
31ade731 1576
a34cb674
KS
1577 * keymap.c (Qremap, remap_command_vector): New variables.
1578 (is_command_symbol): Removed function.
31ade731
SM
1579 (Fdefine_key): No longer accept a symbol for KEY.
1580 Added validation of [remap COMMAND] argument for KEY.
1581 The DEF is no longer required to be a symbol when remapping a command.
a34cb674
KS
1582 (Fremap_command): New function to remap command through keymaps.
1583 (Flookup_key): Perform command remapping initiated by
1584 Fremap_command directly for speed.
1585 (Fkey_binding): Use Fremap_command for command remapping.
1586 (where_is_internal): Handle new command remapping representation.
1587 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
1588 staticpro them. Defsubr Fremap_command.
1589
1590 * keymap.h (Fremap_command): Declare extern.
1591 (is_command_symbol): Remove extern.
31ade731 1592
a34cb674
KS
1593 * keyboard.c (command_loop_1): Use Fremap_command for command
1594 remapping; now try command remapping for all symbols.
1595
f227fded
EZ
15962002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
1597
1598 * coding.h (run_pre_post_conversion_on_str): Add prototype.
1599
54a0c8a6
JR
16002002-02-23 Jason Rumney <jasonr@gnu.org>
1601
1602 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
1603 on the string before encoding it.
1604 (Fw32_get_clipboard_data): Run post-read-conversion on the string
1605 after decoding it.
1606
1607 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
1608
042c33d3
PJ
16092002-02-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1610
1611 * w32term.c (enter_timestamp): Remove unused static variable to
1612 prevent warning.
1613
1614 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
1615
b72d9870
EZ
16162002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
1617
1618 * w16select.c (Fw16_get_clipboard_data): Fix last change.
1619
1620 * xselect.c (selection_data_to_lisp_data): Fix last change.
1621
48094ace
JR
16222002-02-22 Jason Rumney <jasonr@gnu.org>
1623
1624 * w32term.h (struct w32_output): New member menu_command_in_progress.
1625
1626 * w32menu.c (menubar_selection_callback): Free the menu and
1627 clear the menu_command_in_progress flag.
1628
1629 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
1630 (menu_free_timer): New variable.
1631 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
1632 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
1633 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
1634 menu command is in progress.
31ade731
SM
1635 <WM_COMMAND>: Set the menu_command_in_progress flag.
1636 Kill any menu_free_timer that is running.
48094ace
JR
1637
1638 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
1639 Call ExtTextOutA rather than ExtTextOut.
1640
9feba281
EZ
16412002-02-22 Eli Zaretskii <eliz@gnu.org>
1642
1643 * puresize.h (BASE_PURESIZE): Increase to 755000.
1644
3276b4fe
EZ
16452002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1646
1647 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
1648 on the string before encoding it.
1649 (Fw16_get_clipboard_data): Run post-read-conversion on the string
1650 after decoding it.
1651
fbbe0ace
EZ
16522002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1653
1654 Support for ICCCM Extended Segments in X selections:
1655
23e16093 1656 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
1657 (syms_of_xselect): Intern and staticpro it.
1658 (selection_data_to_lisp_data): Run post-read-conversion on decoded
1659 selection text.
1660 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 1661 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
1662 compound-text.
1663
1664 * xterm.h (x_encode_text): Update prototype.
1665
1666 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
1667 callers changed. If SELECTIONP is non-zero, run the
1668 pre-write-conversion function before encoding the selection text.
1669
2a28d471
KS
16702002-02-21 Kim F. Storm <storm@cua.dk>
1671
1672 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3 1673
31ade731
SM
1674 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
1675 Correct composing of language-change event.
15fdc2e3 1676
9de46181
KS
16772002-02-20 Kim F. Storm <storm@cua.dk>
1678
1679 * keyboard.c (menu_bar_items): Don't include keymap or local-map
1680 bindings at PT when building menu (the menu is not updated often
1681 enough for this to work reliable).
1682 (tool_bar_items): Likewise.
1683 (current_active_maps): Removed unused (and buggy) function.
1684
c7f07c4c
PJ
16852002-02-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1686
1687 * xfns.c (gif_load): Use correct width and height for GIF images.
1688
f8565280
EZ
16892002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
1690
1691 * floatfns.c (Fatan): Accept an optional second arg and call
1692 atan2 if passed 2 args.
1693
5be86f54
JR
16942002-02-18 Jason Rumney <jasonr@gnu.org>
1695
1696 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
1697
f7b9d4d1
JR
16982002-02-17 Jason Rumney <jasonr@gnu.org>
1699
1700 * w32term.c (x_autoselect_window_p): New variable.
1701 (syms_of_w32term): DEFVAR_BOOL and initialize it.
1702 (note_mouse_movement): Use it.
1703
1704 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
1705
1706 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
1707
1708 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1709 New variables.
1710 (syms_of_w32fns): Intern and staticpro them.
1711 (x_frame_parms) <"fullscreen">: New parameter.
1712 (x_fullscreen_move, x_set_fullscreen): New functions.
1713 (x_set_frame_parameters): Support Qfullscreen.
31ade731 1714 (x_real_positions): Save x/y_pixels_diff frame params.
f7b9d4d1
JR
1715 (x_figure_window_size): Support full-screen frames.
1716 (Fx_create_frame): Default the fullscreen parameter.
1717
31ade731 1718 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
f7b9d4d1
JR
1719 (x_fullscreen_adjust): New functions.
1720 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
1721 fullscreen. Call x_check_fullscreen_move, and set the
31ade731 1722 want_fullscreen member of output_data.w32
f7b9d4d1
JR
1723 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
1724
1725 * w32term.h: New enum for FULLSCREEN_* constants.
1726 (struct w32_output): New members want_fullscreen, x_pixels_diff,
1727 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
1728 (x-fullscreen-adjust): New prototype.
1729
ce16e8d9
KS
17302002-02-17 Kim F. Storm <storm@cua.dk>
1731
1732 * frame.c: (Vmouse_highlight): New variable.
1733 (syms_of_frame): DEFVAR_LISP it.
1734
1735 * frame.h: (Vmouse_highlight): Declare extern.
1736
1737 * xterm.h (struct x_display_info): Add mouse_face_hidden.
1738
1739 * xterm.c (disable_mouse_highlight): Removed variable.
1740 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
1741 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1742 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
1743 and on after keyboard input.
1744 (x_term_init): Initialize mouse_face_hidden.
1745
1746 * msdos.h (struct display_info): Add mouse_face_hidden.
1747
1748 * msdos.c (disable_mouse_highlight): Removed variable.
1749 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1750 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
1751 (internal_terminal_init): Initialize mouse_face_hidden.
1752 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
1753 and on after keyboard input.
1754
1755 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
1756
1757 * w32term.c (disable_mouse_highlight): Removed variable.
1758 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
1759 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1760 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
1761 and on after keyboard input.
1762 (w32_initialize_display_info): Initialize mouse_face_hidden.
1763
386c4076
EZ
17642002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
1765
9005a471
EZ
1766 * msdos.c (last_mouse_window): New variable.
1767 (dos_rawgetc): Fix last change--if the mouse is in the same window
1768 as recorded in last_mouse_window, don't select this window.
1769
31ade731 1770 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
760627fa 1771
4a137db1
EZ
1772 * msdos.c (x_autoselect_window_p): New variable.
1773 (syms_of_msdos): Defvar it.
1774 (dos_rawgetc): If x_autoselect_window_p is set, select the window
1775 in which the last mouse movement occured, unless it is already
1776 selected.
1777
31ade731
SM
1778 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
1779 New variables.
386c4076
EZ
1780 (syms_of_xdisp): DEVFAR them.
1781 (hscroll_window_tree): Use automatic_hscroll_margin and
1782 Vautomatic_hscroll_step to compute the amount of window scrolling.
1783
5d2200aa
PJ
17842002-02-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1785
3996d07a
PJ
1786 * xterm.c (x-autoselect-window): New variable.
1787 (note_mouse_movement): Use it.
1788
5d2200aa
PJ
1789 * keyboard.c: Do not include "systime.h" twice.
1790
bdf67c59
AS
17912002-02-15 Andreas Schwab <schwab@suse.de>
1792
5407e8a7
AS
1793 * puresize.h (BASE_PURESIZE): Increase to 9/5.
1794
bdf67c59
AS
1795 * alloc.c (NSTATICS): Increase to 1280.
1796
98659da6
KG
17972002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
1798
f9904178
KG
1799 * alloc.c (NSTATICS): Bump to 1026.
1800
98659da6
KG
1801 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
1802 (Vx_super_keysym): New variables.
1803 (syms_of_xterm): DEFVAR_LISP them.
1804 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
31ade731 1805 variables to determine which keys to use for the various modifiers.
98659da6 1806
a48b709b 18072002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
1808
1809 * window.c: (Vmode_line_in_non_selected_windows): Removed.
1810 (mode_line_in_non_selected_windows): New variable.
1811 (syms_of_window): DEFVAR_BOOL it.
1812
31ade731
SM
1813 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
1814 Use mode_line_in_non_selected_windows.
1c9f5f23
KS
1815 (mode_line_in_non_selected_windows): Declare extern.
1816 (Vmode_line_in_non_selected_windows): Removed extern.
1817
db54c53a
RS
18182002-02-13 Richard M. Stallman <rms@gnu.org>
1819
31ade731
SM
1820 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
1821 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
db54c53a
RS
1822 (Fclear_this_command_keys): Doc fixes.
1823
31ade731 1824 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
db54c53a
RS
1825 (update_face_from_frame_parameter): Increment face_change_count
1826 and windows_or_buffers_changed to force redisplay using changed faces.
1827
1828 * xdisp.c (QCpropertize): New variable.
1829 (mode_line_proptrans_alist): New variable.
1830 (display_mode_element): New arg PROPS; all calls changed.
1831 Implement this, for strings.
1832 Handle literal output of strings by sharing the
1833 main-line code for strings, using local var `literal'.
1834 Handle :propertize feature.
31ade731 1835 (syms_of_xdisp): Initialze and staticpro QCpropertize and
db54c53a 1836 mode_line_proptrans_alist.
31ade731 1837
a48b709b 18382002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
1839
1840 * window.c: (Vmode_line_in_non_selected_windows): New variable.
1841 (syms_of_window): DEFVAR_LISP it.
1842
1843 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
1844 (CURRENT_MODE_LINE_FACE_ID): Use it.
1845 (Vmode_line_in_non_selected_windows): Declare extern.
1846
1847 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
1848 to get mode line face.
1849
573a237a
EZ
18502002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
1851
1852 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
1853 variables; cus-start.el doesn't need them anymore.
1854
73df3b72
KS
18552002-02-09 Kim F. Storm <storm@cua.dk>
1856
1857 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
1858 reduction. This fixes a display problem where stray newlines were
1859 inserted in the window (corrected by C-l). Clarified code (IMHO).
1860
18b0be7c
EZ
18612002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
1862
1863 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
1864
1865 * xdisp.c (display_mode_lines): Fix last change.
1866
442ca9ba
JR
18672002-02-09 Jason Rumney <jasonr@gnu.org>
1868
1869 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
1870 match each other.
3acfb461
JR
1871 (w32_load_system_font): Prevent Cleartype fonts from loading.
1872 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 1873
cdefda26
KS
18742002-02-09 Kim F. Storm <storm@cua.dk>
1875
1876 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
1877 (CURRENT_MODE_LINE_HEIGHT): Use it.
1878 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
1879
1880 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
1881 (pos_visible_p, handle_face_prop): Likewise.
1882 (display_mode_lines): Likewise, but for the real selected window.
1883 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
1884
1885 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
1886 in non-selected windows.
1887 (realize_basic_faces): Realize it.
1888 (syms_of_term): Intern and staticpro it.
1889
9f69e812
KS
18902002-02-08 Kim F. Storm <storm@cua.dk>
1891
31ade731 1892 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
9f69e812
KS
1893 Changed mail addresses to emacs-devel@gnu.org.
1894
6ded2c89
EZ
18952002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
1896
b5d40ceb 1897 * fileio.c (Fsubstitute_in_file_name): If the file name includes
31ade731 1898 ~user, and there's no such user, don't discard everything before ~user.
b5d40ceb 1899
6ded2c89
EZ
1900 * floatfns.c (Fround): Doc fix.
1901
7b403e01 19022002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
1903
1904 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
1905
6a229a63
SM
19062002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1907
db54c53a 1908 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 1909
33b93ee5
KS
19102002-02-07 Kim F. Storm <storm@cua.dk>
1911
1912 * keymap.c (where_is_internal): Only check whether definition is
1913 remapped if it fulfills is_command_symbol.
1914
72bba9f2
AS
19152002-02-07 Andreas Schwab <schwab@suse.de>
1916
1917 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
1918
1919 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
1920
93607efd
KS
19212002-02-06 Kim F. Storm <storm@cua.dk>
1922
1923 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
1924 defining command remapping. Doc updated.
1925 (Flookup_key): Remap command through keymap if KEY is a symbol.
1926 (is_command_symbol): New function.
6a229a63
SM
1927 (Fkey_binding): Use it. New optional argument NO-REMAP.
1928 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
1929 recursive call unless that arg is non-nil.
1930 (where_is_internal): New argument no_remap. Callers changed.
1931 Call recursively to find original key bindings for a remapped
1932 comand unless that arg is non-nil.
6a229a63
SM
1933 (Fwhere_is_internal): New optional argument NO-REMAP.
1934 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
1935
1936 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
1937 (is_command_symbol): Added prototype.
1938
1939 * keyboard.c (Vthis_original_command): New variable.
1940 (syms_of_keyboard): DEFVAR_LISP it.
1941 (command_loop_1): Set it, and perform command remapping.
1942
7b403e01 19432002-02-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2642a29e 1944
31ade731 1945 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2642a29e 1946
f4ed304f
JR
19472002-02-06 Jason Rumney <jasonr@gnu.org>
1948
1949 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
1950
b5309828
EZ
19512002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
1952
1953 * charset.c (get_charset_id): Use if-else instead of ?:.
1954
108eaabb
RS
19552002-02-06 Richard M. Stallman <rms@gnu.org>
1956
1957 * filelock.c (S_ISLNK): Define if not defined.
1958
bd3567fa
RS
19592002-02-03 Richard M. Stallman <rms@gnu.org>
1960
1961 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
1962
1963 * lread.c (read1): Redesign strategy for force_multibyte and
1964 force_singlebyte. Now is_multibyte records whether read_buffer
1965 is multibyte. Encountering any multibyte character makes it so.
6a229a63 1966
95c11956
SM
19672002-02-02 Stefan Monnier <monnier@cs.yale.edu>
1968
1969 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
1970 with the same sequence, map that sequence to f10 rather than f0.
1971
ee466d0b
AS
19722002-02-03 Andreas Schwab <schwab@suse.de>
1973
1974 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
1975 latter never being defined on GNU/Linux.
1976
f77157da
EZ
19772002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1978
1979 * xfaces.c (realize_default_face): Don't set the weight and slant
1980 of the default face to Qnormal, unless these attributes are
1981 unspecified.
1982
7b403e01 19832002-02-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
4fbcc9b1 1984
95c11956
SM
1985 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
1986 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
1987
1988 * eval.c (Fsignal): Remove duplicated declaration of
1989 the variable `display_hourglass_p'.
1990
5e101746
RS
19912002-01-31 Richard M. Stallman <rms@gnu.org>
1992
1993 * editfns.c (region_limit): Nicer error message.
1994
1995 * coding.c (decode_composition_emacs_mule):
1996 Give up if NCOMPONENT gets too large to index `component'.
1997
1998 * callint.c (check_mark): New arg to specify clearer error message.
1999 Callers changed.
2000
20012002-01-27 Richard M. Stallman <rms@gnu.org>
2002
2003 * minibuf.c (Fcompleting_read): Doc fix.
2004
7b403e01 20052002-01-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
2006
2007 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
2008 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
2009 Fix doc-strings.
7a4b11ca 2010
f5798fbd
RS
20112002-01-26 Richard M. Stallman <rms@gnu.org>
2012
2013 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
2014
2015 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
2016 and scroll_up_aggressively.
2017
7b403e01 20182002-01-26 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
2019
2020 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
2021
3a232704
SM
20222002-01-25 Stefan Monnier <monnier@cs.yale.edu>
2023
2024 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2025 (Fprevious_property_change, Fprevious_single_property_change):
2026 Stay within the narrowed-buffer boundaries.
2027
dd939ea1
EZ
20282002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2029
2030 * term.c (Ftty_display_color_cells): New function.
2031 (syms_of_term): Defsubr it.
0011f346
EZ
2032 (Ftty_display_color_cells, Ftty_display_color_p): Change the
2033 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
2034
2035 * dispextern.h: Add prototype for set_tty_color_mode and
2036 tty_setup_colors.
2037
aa35b6ad
JR
20382002-01-24 Jason Rumney <jasonr@gnu.org>
2039
2040 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
2041 If region left to draw is not what was expected, mark the frame as
2042 garbaged.
2043
2044 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
2045 Combine the regions returned by BeginPaint and GetUpdateRect.
2046
ab76d376
JR
20472002-01-23 Jason Rumney <jasonr@gnu.org>
2048
2049 * w32term.c (x_update_window_begin): Only hide caret if
2050 w32_use_visible_system_caret is set.
2051 (x_update_window_end): Only show caret if
2052 w32_use_visible_system_caret is set.
2053 (syms_of_w32term): Handle SystemParametersInfo call failing.
2054
2055 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
2056
d89b617d
RS
20572002-01-22 Richard M. Stallman <rms@gnu.org>
2058
2059 * unexelf.c (unexec): Define n so as to cause compilation error
2060 for the code where people have often written n instead of nn.
2061
2062 * .gdbinit (hookpost-run): Defined.
2063
f0b9a067
JD
20642002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2065
2066 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
2067
5f9338d5
JD
20682002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2069
2070 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
2071 if fullscreen is being set.
2072
7b403e01 20732002-01-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
029a305c
PJ
2074
2075 * minibuf.c (Fminibuffer_contents)
2076 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
2077 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
2078
8cc0e0cf
RS
20792002-01-21 Richard M. Stallman <rms@gnu.org>
2080
2081 * window.c (check_frame_size): Fix minimum height calculation.
2082
d7b8ee68
KR
20832002-01-20 Ken Raeburn <raeburn@gnu.org>
2084
2085 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
2086 height before comparison.
2087 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
2088
c3c14723
JR
20892002-01-20 Jason Rumney <jasonr@gnu.org>
2090
2091 * w32term.c (w32_system_caret_width): Remove.
2092 (w32_use_visible_system_caret): New user flag.
2093 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
2094 Windows reports a screen reader running.
2095 (x_update_window_begin): Hide the system caret.
2096 (x_update_window_end): Show the system caret.
2097 (x_display_and_set_cursor): Don't draw a cursor when
2098 w32_use_visible_system_caret is set. Do not adjust width.
2099
2100 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
2101 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
2102 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
2103 the user requests it. Use system default width when creating.
2104 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
2105
95c11956
SM
2106 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
2107 New window messages.
c3c14723 2108
75e20bec
RS
21092002-01-20 Richard M. Stallman <rms@gnu.org>
2110
2111 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
2112
7b403e01 21132002-01-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
2114
2115 * doprnt.c (doprnt1): Fix typos in error call.
2116
3b927d14
EZ
21172002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2118
2119 * unexelf.c (unexec) [__sgi]: Support the .got sections.
2120
aa06cb9c
JR
21212002-01-20 Jason Rumney <jasonr@gnu.org>
2122
2123 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
2124 that Windows returns. If a double check fails, try to guess how
2125 ExtTextOut is going to act.
2126
2127 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
2128 in place of stricmp.
2129 (w32_list_synthesized_fonts): Removed.
2130 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
2131 (struct enumfont_t): New element; list.
2132 (enum_font_cb2): List all style and charset variations of a font.
2133 (Fw32_select_font): New optional argument; include_proportional.
2134 Exclude vertical fonts. Exclude proportional fonts unless
2135 include_proportional is non-nil.
2136 (w32_enable_synthesized_fonts): Change to a boolean.
2137 (Fw32_send_sys_command): Doc fix.
2138
7b403e01 21392002-01-19 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
2140
2141 * dispnew.c (update_frame): Move the variable `tem' to the block
2142 where it is used.
2143
815d969e
JR
21442002-01-19 Jason Rumney <jasonr@gnu.org>
2145
2146 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
2147 call to face-set-after-frame-default.
2148
a1e3dda0
RS
21492002-01-18 Richard M. Stallman <rms@gnu.org>
2150
95c11956 2151 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
2152 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
2153
daf516d3
RS
21542002-01-17 Richard M. Stallman <rms@gnu.org>
2155
2156 * window.c (enlarge_window): When exceeding size of parent,
2157 directly delete all the siblings instead of trying to resize it.
2158
7b403e01 21592002-01-17 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
2160
2161 * term.c (set_tty_color_mode): Remove unused variable `tem'.
2162
3ddff138
RS
21632002-01-16 Henrik Enberg <henrik@enberg.org>
2164
7adfc0d7 2165 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 2166
465c9390
KS
21672002-01-16 Kim F. Storm <storm@cua.dk>
2168
2169 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
2170 is invisible. This can happen if cursor is on top line of a
2171 window, and we switch to a buffer with a header line.
2172
95c11956 2173 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 2174
7b403e01 21752002-01-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
2176
2177 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
2178 `dont_resize' only when used.
2179
2180 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
2181
26f622b3
EZ
21822002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
2183
2184 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 2185 on multibyteness of elt, not the text in field.
26f622b3 2186
7b403e01 21872002-01-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1a6db83a 2188
31ade731
SM
2189 * buffer.c (Fkill_all_local_variables):
2190 Increment `update_mode_lines' only once.
1a6db83a 2191
7b403e01 21922002-01-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
a4ff5d67 2193
aa1977d7
PJ
2194 * lisp.h (adjust_after_replace_noundo)
2195 (Fupdate_coding_systems_internal): Add prototypes.
2196
95c11956 2197 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 2198
3947677c
EZ
21992002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
2200
2201 Support for the --color command-line argument and tty-color-mode
2202 frame parameter:
2203
2204 * term.c (tty_default_color_capabilities, tty_setup_colors)
2205 (set_tty_color_mode): New functions.
2206 (term_init): Call tty_default_color_capabilities.
2207 (Qtty_color_mode_alist): New variable.
2208 (syms_of_term): Intern and staticpro it.
2209
2210 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
2211 frames.
2212 (do_switch_frame): For termcap frames, switch the tty
2213 color mode as specified by the frame's parameters.
2214 (Qtty_color_mode): New variable.
2215 (syms_of_frame): Intern and staticpro it.
2216
2217 * emacs.c (USAGE2): Add the --color option.
2218 (standard_args): Ditto.
2219
8a8e19a3
EZ
22202002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
2221
2222 * xterm.h (struct x_output): New members want_fullscreen,
2223 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
2224 y_pixels_outer_diff.
2225 New enum for FULLSCREEN_* constants.
2226 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
2227 is NULL.
2228 (x_fullscreen_adjust): Add prototype.
2229
2230 * emacs.c (USAGE2): Add the new full-screen arguments.
2231 (standard_args): Ditto.
2232
95c11956
SM
2233 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2234 New variables.
8a8e19a3
EZ
2235 (syms_of_xfns): Intern and staticpro them.
2236 (x_frame_parms) <"fullscreen">: New parameter.
2237 (x_fullscreen_move, x_set_fullscreen): New functions.
2238 (x_set_frame_parameters): Support for Qfullscreen.
2239 (x_real_positions): More accurate computation of the frame position.
2240 (x_figure_window_size): Support full-screen frames.
2241 (Fx_create_frame): Default the fullscreen parameter.
2242
2243 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
2244 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
2245 <ConfigureNotify>: Don't resize to fullscreen.
2246 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
2247 output_data.x.
2248
4f1b1854
JR
22492002-01-13 Jason Rumney <jasonr@gnu.org>
2250
2251 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
2252 for mice with more than 3 buttons.
2253
2254 * w32term.c (parse_button): New parameter xbutton. Callers changed.
2255 (w32_read_socket): Handle new "XBUTTON" messages.
2256
2257 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
2258 (syms_of_w32fns): DEFVAR_BOOL it.
2259 (w32_wnd_proc): Handle new "XBUTTON" messages.
2260
7b403e01 22612002-01-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
5cb6905d 2262
95c11956 2263 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 2264
437dfb9f
AS
22652002-01-13 Andreas Schwab <schwab@suse.de>
2266
2267 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
2268
9f696a00
AS
22692002-01-12 Andreas Schwab <schwab@suse.de>
2270
2271 * .gdbinit (xbuffer): Remove address operator since data is now a
2272 pointer.
2273
d57966d7
RS
22742002-01-11 Richard M. Stallman <rms@gnu.org>
2275
2276 * insdel.c (adjust_after_replace_noundo): New function.
2277
2278 * coding.c (code_convert_region): Don't copy old text if undo disabled.
2279
74779f52
JR
22802002-01-09 Jason Rumney <jasonr@gnu.org>
2281
2282 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
2283 when checking for multiple frames.
2284
a474d59c
RS
22852002-01-08 Richard M. Stallman <rms@gnu.org>
2286
2287 * window.c (delete_window): Rewrite the code for changing the
2288 selected window to handle the case where WINDOW is not a leaf.
2289
fbb70ad9
EZ
22902002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
2291
2292 * process.c (send_process): Set src_multibyte to 1 after the call
2293 top setup_coding_system, not before the call.
2294
2d10309f
JR
22952002-01-07 Jason Rumney <jasonr@gnu.org>
2296
2297 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 2298 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
2299
2300 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
2301 (w32_dialog_show): Initialize wv->help to Qnil.
2302
7f2cddf3
JR
23032002-01-06 Jason Rumney <jasonr@gnu.org>
2304
0b1e6b54
JR
2305 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
2306
7f2cddf3
JR
2307 * w32menu.c (w32_menu_display_help): Revert last change.
2308
2309 * xmenu.c (menu_highlight_callback): Revert last change.
2310
e17144de
AS
23112002-01-06 Andreas Schwab <schwab@suse.de>
2312
2313 * insdel.c (make_gap_larger): Make sure buffer size does not
2314 overflow range of int.
2315
6637c996
JR
23162002-01-05 Jason Rumney <jasonr@gnu.org>
2317
44368f8f
JR
2318 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2319 OVERLAPS_P.
2320
f884b6f4
JR
2321 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
2322
6637c996
JR
2323 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
2324 to the left or to the right of the pointer, put it against
2325 the left screen edge.
2326 (x_frame_parms): Add missing braces around initializer.
2327
2328 * w32term.c (x_setup_relief_colors): Don't compute an image's
2329 background color if it doesn't have a Pixmap.
2330 (notice_overwritten_cursor): Don't depend on
2331 output_cursor and updated_area. Compare pixel coordinates with
2332 window's cursor pixel coordinates.
3a232704
SM
2333 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2334 Call notice_overwritten_cursor with new arg list.
6637c996
JR
2335 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2336 unconditionally.
2337 (x_draw_image_relief): Use predefined macro instead of
2338 constant when the value of `tool_bar_button_relief' is negative.
2339
2340 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
2341
453c5510
RS
23422002-01-04 Richard M. Stallman <rms@gnu.org>
2343
2344 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
2345
d1d070e3
RS
23462002-01-03 Richard M. Stallman <rms@gnu.org>
2347
2348 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
2349 (Fkey_binding): Try the `keymap' property map first.
2350 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
2351 minor mode bindings.
2352
9ec1bdb6
KS
23532002-01-03 Kim F. Storm <storm@cua.dk>
2354
2355 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
2356
308dd672
RS
23572002-01-02 Richard M. Stallman <rms@gnu.org>
2358
edde72f6
RS
2359 * keyboard.c (read_key_sequence): Handle the keymap property
2360 before minor mode maps.
2361
308dd672
RS
2362 * editfns.c (Fformat): Update thissize from field_width
2363 based on the actual width, in the string case.
2364
7b403e01 23652002-01-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3c1e6b46 2366
03950b5b
PJ
2367 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
2368 when used as truth value to prevent gcc warnings.
2369
3c1e6b46
PJ
2370 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
2371 * w32proc.c: Include <config.h>.
2372
c1e11810
AS
23732002-01-01 Andreas Schwab <schwab@suse.de>
2374
2375 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
2376 not EMACS_INT, to make them compatible with DEFVAR_INT.
2377 * lisp.h (max_specpdl_size): Adjust declaration.
2378
1996baee
RS
23792002-01-01 Richard M. Stallman <rms@gnu.org>
2380
2381 * print.c (print_object): Test print_escape_nonascii only for
2382 unibyte strings.
2383 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
2384 when outputting to a multibyte buffer.
2385
0065bb74
RS
23862001-12-29 Richard M. Stallman <rms@gnu.org>
2387
2388 * print.c (print_object): In multibyte string, use hex escapes.
2389 Use octal only for unibyte strings.
2390 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
2391
2392 * lread.c (read_escape): New arg BYTEREP for reporting whether
2393 escape forces unibyte or multibyte.
2394 (read1): When reading a string, take note of that info.
2395
b5cb6072
KR
23962001-12-29 Ken Raeburn <raeburn@gnu.org>
2397
2398 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
2399 comparison to test lisp value returned by Fget.
2400
15fff01d
RS
24012001-12-29 Richard M. Stallman <rms@gnu.org>
2402
0065bb74
RS
2403 * lisp.h (max_specpdl_size): Add declaration.
2404
0d8466cc
RS
2405 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
2406
15fff01d
RS
2407 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
2408 Handle modifier bits. Correct typo in error message.
2409
2fae9111
RS
24102001-12-28 Richard M. Stallman <rms@gnu.org>
2411
2d6c1fc0
RS
2412 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
2413 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
2414 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2415 Update calls to Fdefine_abbrev.
2416 (write_abbrev): Update for changed data format.
2417 Don't list "system" abbrevs.
2418 (Fexpand_abbrev): Update use count with new data format.
2419 (describe_abbrev): Update for changed data format.
2420 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
2421
07025a55
RS
2422 * config.in (HAVE_MBSINIT): Add #undef.
2423
2424 * strftime.c (mbsinit): Define as no-op if not available.
2425
2426 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
2427 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
2428
ce6eef6e
RS
2429 * keymap.c (Flookup_key): Error message if key has wrong data type.
2430 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 2431 (exclude_key): New variable.
3a232704 2432
539e92ad
GM
24332001-12-28 Gerd Moellmann <gerd@gnu.org>
2434
0cb8bb48
GM
2435 * xterm.c (x_setup_relief_colors): Don't compute an image's
2436 background color if it doesn't have a Pixmap.
3a232704 2437
60626bab
GM
2438 * xterm.c (notice_overwritten_cursor): Don't depend on
2439 output_cursor and updated_area. Compare pixel coordinates with
2440 window's cursor pixel coordinates.
3a232704
SM
2441 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2442 Call notice_overwritten_cursor with new arg list.
60626bab
GM
2443 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2444 unconditionally.
0cb8bb48 2445
539e92ad
GM
2446 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
2447 height of the cursor line to the amount to scroll.
2448
4e02881b
RS
24492001-12-27 Richard M. Stallman <rms@gnu.org>
2450
2451 * intervals.c (set_point_both): The position after an invisible,
2452 intangible character is not an acceptable stopping point.
2453
1ab964d7
KR
24542001-12-27 Ken Raeburn <raeburn@gnu.org>
2455
2456 * window.c (enlarge_window): In new preserve_before code, convert
2457 CURBEG from lisp object to integer before doing arithmetic.
2458
749f499f
RS
24592001-12-27 Richard M. Stallman <rms@gnu.org>
2460
2461 * bytecode.c (Fbyte_code): Undo previous change.
2462
b5d9aaba
KS
24632001-12-26 Kim F. Storm <storm@cua.dk>
2464
2465 * keyboard.c (record_char): Ignore duplicate help-echo events only
2466 separated by mouse-movement. When tracking mouse, only record
2467 first and last mouse-movement event in same window.
2468 Don't record mouse-movement events in keyboard macros.
3a232704 2469
d0fd26dd
RS
24702001-12-25 Richard M. Stallman <rms@gnu.org>
2471
b4c45162
RS
2472 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
2473 (Fenlarge_window): New arg PRESERVE_BEFORE.
2474
d0fd26dd
RS
2475 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
2476 instead of Fstring_as_unibyte.
2477
7b403e01 24782001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
c95eaa61 2479
3a232704 2480 The following changes remove mocklisp support:
c95eaa61
PJ
2481
2482 * mocklisp.h, mocklisp.c: Files removed.
2483
2484 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
2485 `Qmocklisp' and `Qmocklisp_arguments'.
2486 Remove prototype of syms_of_mocklisp.
2487
3a232704 2488 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
2489
2490 * callint.c: Do not include mocklisp.h.
2491 (Fcall_interactively): Do not test for mocklisp case.
2492
2493 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
2494 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
2495 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
2496 Do not test for mocklisp case.
c95eaa61
PJ
2497 (Fwhile): Remove unused variable `tem'.
2498 (syms_of_eval): Remove variable `moclisp-arguments'.
2499
2500 * data.c (wrong_type_argument): Remove mocklisp case.
2501
2502 * doc.c (Fdocumentation): Remove mocklisp case.
2503
2504 * emacs.c (main): Do not call syms_of_mocklisp.
2505
31877e0a
RS
25062001-12-21 Richard M. Stallman <rms@gnu.org>
2507
2508 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
2509 to the left or to the right of the pointer, put it against
2510 the left screen edge.
2511
e2c3786a
EZ
25122001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
2513
2514 * Makefile.in (distclean): Remove .gdbinit if we are building
2515 outside the source tree.
2516
c513fc03
EZ
25172001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2518
bf794306
EZ
2519 * w32.c (emacs_root_dir): New function.
2520
2521 * msdos.c (emacs_root_dir): New function.
2522
2523 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
2524 of the current drive as the fallback for default_directory.
2525
62582985
EZ
2526 * dired.c (file_name_completion): Run the elements of
2527 completion-ignored-extensions through ENCODE_FILE.
2528
c513fc03
EZ
2529 * lisp.h (scmp): Remove prototype, since it's now a static
2530 function private to dired.c.
2531
3509a04c
RS
25322001-12-18 Richard M. Stallman <rms@gnu.org>
2533
2534 * dired.c (scmp): Function moved from minibuf.c.
2535 Delete multibyte handling--used only on encoded strings.
2536
2537 * minibuf.c (scmp): Function moved to dired.c.
2538
2539 * fns.c (merge): Add QUIT call.
2540
1e9a6186
DL
25412001-12-18 Dave Love <fx@gnu.org>
2542
2543 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
2544 language/georgian.el.
2545
e4e34e31
EZ
25462001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2547
2548 * Makefile.in (lisp, shortlisp): Synchronize with changes to
2549 lisp/Makefile.in:DONTCOMPILE.
2550
7b403e01 25512001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
4521d1fc 2552
7c75be36
PJ
2553 * xdisp.c (window_box_height): Do not return negative values.
2554 From Gerd Moellmann <gerd@gnu.org>.
2555
4521d1fc
PJ
2556 * keyboard.c (head_table): Add missing braces around initializer.
2557
2558 * term.c (keys): Likewise.
2559
2560 * xfns.c (x_frame_parms, visual_classes): Likewise.
2561
93dec019
SS
25622001-12-17 Sam Steingold <sds@gnu.org>
2563
2564 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
2565 patch (COMPOSING_P, not COMPOSING).
2566
905cc05a
RS
25672001-12-17 Richard M. Stallman <rms@gnu.org>
2568
2ed06289
RS
2569 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
2570
0e79d667
RS
2571 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
2572 before calling decode_coding.
2573
2574 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
2575
2576 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
2577 instead of only for COMPOSITION_DISABLED.
2578
82a7ab23
RS
25792001-12-16 Richard M. Stallman <rms@gnu.org>
2580
d75bec6a
RS
2581 * alloc.c (pure_alloc): After overflow, allocate just a small block.
2582
52dcb476
RS
2583 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
2584
82a7ab23
RS
2585 * buffer.h (struct buffer): New field `display_error_modiff'.
2586 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
2587
2588 * window.c (Frecenter): Clear display_error_modiff field.
2589
2590 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
2591 Call redisplay_window, but not if display_error_modiff field says no.
2592 (redisplay_window_error): New function.
2593 (displayed_buffer): New variable.
2594 (redisplay_internal, redisplay_windows): Call the new functions
2595 instead of redisplay_window directly.
2596
4d0fa4f3
RS
25972001-12-15 Richard M. Stallman <rms@gnu.org>
2598
2599 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2600
493faf20
AI
26012001-12-14 Andrew Innes <andrewi@gnu.org>
2602
325111e9
AI
2603 * makefile.w32-in (EMACSLOADPATH): Define.
2604 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
2605 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 2606
4971e491
EZ
26072001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
2608
397b3b50 2609 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
2610 parameter have a numeric value all the time.
2611
2612 * w32fns.c (x_report_frame_params): Likewise.
2613
d911a0fa
RS
26142001-12-12 Richard M. Stallman <rms@gnu.org>
2615
2616 * fileio.c (Fwrite_region): Doc fix.
2617
2618 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
2619 (redisplay_internal): Call clear_image_cache only for window terminals.
2620
201c831a
GM
26212001-12-12 Gerd Moellmann <gerd@gnu.org>
2622
2623 * xdisp.c (move_it_vertically_backward): Change heuristic
2624 for the case that we didn't move far enough initially.
2625
2626 * window.c (Frecenter): Simplify computation in the case of window
2627 system frames and ARG < 0; use window_box_height.
2628
34e39c95
RS
26292001-12-11 Richard M. Stallman <rms@gnu.org>
2630
2631 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
2632 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
2633
d77fbc16
AI
26342001-12-11 Andrew Innes <andrewi@gnu.org>
2635
2636 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
2637 arg is negative.
2638
61e3b944
RS
26392001-12-11 Richard M. Stallman <rms@gnu.org>
2640
2641 * m/hp800.h: Split the __hpux conditional into the parts
2642 that are right for GNU/Linux too and the parts that are not.
2643 Use the former if GNU_LINUX.
2644 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
2645
2646 * s/gnu-linux.h (GNU_LINUX): Defined.
2647
7b403e01 26482001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
2649
2650 * macros.c, msdos.c, w16select.c: Change doc-string comments to
2651 `new style' [w/`doc:' keyword].
2652
8af01033
JR
26532001-12-10 Jason Rumney <jasonr@gnu.org>
2654
2655 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
2656 before using.
2657
7b403e01 26582001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7363986a
PJ
2659
2660 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
2661 keyword].
2662
d9e6c4b1
EZ
26632001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
2664
d20fc48a
EZ
2665 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
2666
d9e6c4b1
EZ
2667 * s/hpux10.h (srand48): Don't undefine.
2668
f1a85b89
JR
26692001-12-09 Jason Rumney <jasonr@gnu.org>
2670
3a232704
SM
2671 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
2672 Add comment to explain where the struct came from.
f1a85b89
JR
2673 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
2674 (add_menu_item): Process pop-up menus first to avoid memory leak.
2675 (add_menu_item, w32_menu_display_help): Use `help' field as
2676 Lisp_Object.
2677 (w32_free_submenu_strings): Only free owner-drawn strings.
2678
7b403e01 26792001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3a62677f 2680
72244db2
PJ
2681 * COPYING: Moved back.
2682
3a62677f
PJ
2683 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
2684 Add parentheses around && within ||.
2685
2686 * indent.c (compute_motion): Likewise.
2687
2688 * intervals.c (merge_properties_sticky): Likewise.
2689
2690 * coding.c (setup_coding_system, shrink_encoding_region)
2691 (Fdecode_sjis_char): Likewise.
2692
9d113d9d
AS
26932001-12-07 Andreas Schwab <schwab@suse.de>
2694
b8523839
AS
2695 * xdisp.c (display_mode_element): Don't read past end of string if
2696 it ends with '%'.
2697
9464dea4
AS
2698 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
2699 can hold.
2700
3a232704 2701 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
9d113d9d
AS
2702 from most_positive_fixnum and most_negative_fixnum, resp., and
2703 type changed to Lisp_Object.
2704 (syms_of_data): DEFVAR_LISP them.
2705
70ec1377
RS
27062001-12-07 Richard M. Stallman <rms@gnu.org>
2707
2708 * callproc.c (init_callproc): Set Vdata_directory based on the source
2709 location whenever Emacs was run uninstalled.
2710
92f7dd37
PE
27112001-12-06 Paul Eggert <eggert@twinsun.com>
2712
2713 * config.in (HAVE_WORKING_VFORK): New #undefs.
2714 * process.c (create_process):
2715 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
2716 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
2717 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
2718 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
2719 * m/intel386.h (HAVE_VFORK): Likewise.
2720 * m/mips-siemens.h (HAVE_VFORK): Likewise.
2721 * m/mips.h (HAVE_VFORK): Likewise.
2722 * s/freebsd.h (vfork): Remove #define.
2723 * s/lynxos.h (HAVE_VFORK): Remove #undef.
2724 * s/usg5-4-2.h: Fix comment about vfork.
2725
c93674bb
RS
27262001-12-06 Richard M. Stallman <rms@gnu.org>
2727
2728 * s/hpux10.h (random): Add undef.
2729 (HAVE_RANDOM): Define it just once.
2730
59b59892
SM
27312001-12-06 Stefan Monnier <monnier@cs.yale.edu>
2732
2733 * eval.c: Undo last change: the standard syntax is not wanted.
2734
c6ea2775
EZ
27352001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2736
2737 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
2738 scroll bars of the frame before deleting the frame itself. If the
2739 frame has a widget, delete the frame with XtDestroyWidget, and do
2740 not call XDestroyWindow before that.
2741
91175673
KS
27422001-12-06 Kim F. Storm <storm@cua.dk>
2743
2744 * xfns.c (x_report_frame_params): Return actual fringe widths.
2745
2746 * w32fns.c (x_report_frame_params): Return actual fringe widths.
2747
e0fead5d
AI
27482001-12-05 Andrew Innes <andrewi@gnu.org>
2749
2750 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
2751 excessively large.
2752
2753 * insdel.c (make_gap_larger): New function.
2754 (make_gap_smaller): New function.
2755 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
2756 make_gap_smaller if arg is negative.
2757
c186cdb3
SM
27582001-12-04 Stefan Monnier <monnier@cs.yale.edu>
2759
2760 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
2761 Pass a dummy argument when calling interrupt_signal.
2762 (parse_menu_item): Mark disabled items before checking for empty def.
2763 (read_char_minibuf_menu_prompt): Make safety more visible.
2764 (read_key_sequence): Add a `first_unbound' variable.
2765 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
2766 unbound prefix as soon as we can detect it.
2767
2768 * doc.c (Fsnarf_documentation): Add prototype.
2769 (get_doc_string): Handle negative arguments.
2770 (Fdocumentation): Use AREF and ASIZE.
2771 Move the calls to get_doc_string to a single place.
2772 Don't confuse an interactive-spec for a docstring reference.
2773 (Fdocumentation_property): Take advantage of the fact that
2774 get_doc_string now ignores the sign of the docstring position.
2775
2776 * eval.c: Use standard syntax for usage in docstrings.
2777
7b403e01 27782001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
58cfce98 2779
c186cdb3 2780 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 2781
7b403e01 27822001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
2783
2784 * xterm.c (x_draw_image_relief): Use predefined macro instead of
2785 constant when the value of `tool_bar_button_relief' is negative.
2786
656f46bb
RS
27872001-12-02 Richard M. Stallman <rms@gnu.org>
2788
2789 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
2790 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
2791
2792 * fileio.c (read_non_regular): Delete Fsignal call.
2793
036e218d
SM
27942001-12-01 Stefan Monnier <monnier@cs.yale.edu>
2795
2796 * lisp.h (run_hook_list_with_args): Undo last change.
2797
7ddb2c16
GM
27982001-12-01 Gerd Moellmann <gerd@gnu.org>
2799
2800 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
2801
ace9b298
JR
28022001-12-01 Jason Rumney <jasonr@gnu.org>
2803
90647b07
JR
2804 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
2805
2806 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
2807 [!WM_MOUSELEAVE]: Define.
2808
ace9b298
JR
2809 * w32menu.c (current_popup_menu, get_menu_item_info):
2810 (set_menu_item_info): New vars.
2811 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
2812 (w32_menu_show): Set current_popup_menu.
2813 (add_menu_item): Allocate new strings for owner-drawn menu items
2814 and help strings.
2815 Use owner-draw for disabled menu items again.
2816 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
2817 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
2818
2819 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
2820 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
2821 <WM_EXITMENULOOP>: Free menu strings.
2822 <WM_MOUSELEAVE>: Stop tracking mouse.
2823 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
2824
2825 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
2826 and mouse face.
2827
a9549909 28282001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
2829
2830 The following changes add left-fringe and right-fringe
2831 frame parameters to adjust fringe widths, or remove one or
2832 both fringes.
036e218d 2833
9fbc32aa
KS
2834 * frame.h (struct frame): Remove trunc_area_pixel_width and
2835 trunc_area_cols fields.
2836 (Qleft_fringe, Qright_fringe): Declare.
2837 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
2838
2839 * frame.c (Qleft_fringe, Qright_fringe): New vars.
2840 (syms_of_frame): Initialize them.
2841
2842 * window.c (coordinates_in_window): Handle separate left and right
2843 fringe widths.
2844
2845 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
2846 and fringe_cols fields.
2847 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
2848 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
2849 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
2850 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
2851 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
2852 (x_compute_fringe_widths): Add prototype.
2853
2854 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
2855 fill fringe evenly with small dashes.
2856 (x_draw_fringe_bitmap): Clear background if necessary. Align and
2857 clip the new ZV bitmap to avoid jitter between rows.
2858 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
2859 background. Don't draw fringe bitmaps if fringe width is zero.
2860 (x_compute_fringe_widths): New function.
2861 (x_new_font, x_set_window_size_1): Use it.
2862
2863 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 2864 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
2865 parameters as fringe widths depend on it.
2866 (x_set_fringe_width): New function.
2867 (x_figure_window_size): Use x_compute_fringe_widths.
2868 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
2869 parameters.
2870
2871 * widget.c (set_frame_size): Use x_compute_fringe_widths.
2872 (EmacsFrameSetCharSize): Ditto.
2873
2874 * w32term.h: Merged changes from xterm.h.
2875 * w32term.c: Merged changes from xterm.c.
2876 * w32fns.c: Merged changes from xfns.c.
2877
7b403e01 28782001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
0142178a
PJ
2879
2880 * COPYING: Removed.
2881
d4824a5d
DL
28822001-11-29 Dave Love <fx@gnu.org>
2883
2884 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
2885 extra extra slot.
2886 (detect_coding_mask): Fix call of detect_coding_iso2022.
2887
7b403e01 28882001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
b1356234
PJ
2889
2890 * fileio.c (file-name-coding-system)
2891 (default-file-name-coding-system): Doc fix (links to referenced
2892 variables added).
2893
3ce081f5
SM
28942001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2895
99e380ee
SM
2896 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
2897 Add dummy uses of gcproN variables.
2898
3ce081f5 2899 * category.c (describe_category, describe_category_1)
2ad56c09 2900 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
2901 (syms_of_category): Don't defsubr Sdescribe_categories.
2902
66458f32
RS
29032001-11-28 Richard M. Stallman <rms@gnu.org>
2904
2905 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
2906
2907 * Makefile.in (lispdir): New variable, referring to build dir.
2908 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
2909
59a86c99
AI
29102001-11-28 Andrew Innes <andrewi@gnu.org>
2911
2912 * w32menu.c (w32_menu_display_help): Actually add the new argument
2913 OWNER.
2914
eb77a5f4
JR
29152001-11-28 Jason Rumney <jasonr@gnu.org>
2916
2917 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
2918 menu items. From David Ponce <dponce@wanadoo.fr>.
2919 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
2920 conditionally.
2921 (w32_menu_display_help): New argument OWNER. Rewritten to store a
2922 help event in the owner frame's keyboard buffer.
2923
2924 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
2925 (Fx_show_tip): Don't subtract last width from row width.
2926
2927 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
2928 (w32_read_socket): Use EQ to compare frames.
2929
bb313871
GM
29302001-11-28 Gerd Moellmann <gerd@gnu.org>
2931
2932 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2933 OVERLAPS_P.
2934
7b403e01 29352001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
55b43a63 2936
6052529b
PJ
2937 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
2938 `gcpro3' and `gcpro4'.
2939
3ce081f5
SM
2940 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
2941
29422001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2943
2944 * ccl.c: Use AREF and ASIZE.
2945
29462001-11-27 Stefan Monnier <monnier@cs.yale.edu>
2947
2948 * lisp.h (run_hook_list_with_args): Remove.
2949 (LIST_END_P): Fix call to wrong_type_argument.
2950 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 2951
111ed14e
SM
29522001-11-26 Stefan Monnier <monnier@cs.yale.edu>
2953
9fabb2f5
SM
2954 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
2955 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
2956
2957 * eval.c: Use AREF and ASIZE.
2958 (Ffetch_bytecode): Add the file name to the error message.
2959
2960 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
2961 which match the end of the file-name.
2962 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
2963 is not a valid env var, but leave it as is instead.
2964
111ed14e
SM
2965 * keymap.c (access_keymap): Handle t bindings like nil bindings.
2966 Make nil bindings in char-tables transparent.
2967 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
2968
2fa0eedf
RS
29692001-11-26 Richard M. Stallman <rms@gnu.org>
2970
d1420435
RS
2971 * textprop.c (set_text_properties_1): Allow START, END in either order.
2972 Do nothing if range is empty.
2973
2fa0eedf
RS
2974 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
2975
ebcbef4e
RS
2976 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
2977 (clean): Not here.
2978
5c131048
SM
29792001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2980
2981 * textprop.c (set_text_properties_1): Clearly mark that the
2982 interval should not be empty.
2983
2984 * intervals.c (graft_intervals_into_buffer):
2985 Don't call set_text_properties_1 on an empty interval.
2986
96d276c3
RS
29872001-11-25 Richard M. Stallman <rms@gnu.org>
2988
6108b49c
RS
2989 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
2990
96d276c3
RS
2991 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
2992 don't lose the data in it.
2993
5eea19a4
RS
29942001-11-25 Juanma Barranquero <lektu@terra.es>
2995
2996 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
2997
2998 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
2999
3000 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
3001
438e57dd
SM
30022001-11-25 Stefan Monnier <monnier@cs.yale.edu>
3003
3004 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
3005
c88e5347
EZ
30062001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
3007
3008 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
3009 Niemitalo <kon@iki.fi>.
3010
59ce1461
JR
30112001-11-25 Jason Rumney <jasonr@gnu.org>
3012
3013 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
3014
3015 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
3016 (Fx_show_tip): Block input during frame creation.
3017 (Fx_show_tip, Fx_hide_tip): Enable.
3018
8727d588
RS
30192001-11-24 Richard M. Stallman <rms@gnu.org>
3020
3021 * lread.c (Fload): Detect recursive load error for more than 3
3022 nestings of the same file.
3023 (Vrecursive_load_depth_limit): Variable deleted.
3024 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
3025
cc63037e
JR
30262001-11-24 Jason Rumney <jasonr@gnu.org>
3027
3028 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
3029 mouse position if either left or top is not specified.
3030
3031 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
3032 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
3033 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
3034 (my_create_tip_window): Assign tip_window.
3035 (x_create_tip_frame): Use same defaults as X.
3036 (compute_tip_xy): Remove unused variable. Use full screen width.
3037 (Fx_show_tip): Do not double height. Call ShowWindow directly.
3038
3039 * w32term.c (x_after_update_window_line): Doc fix.
3040 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
3041 frames.
3042 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
3043
3044 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
3045 for all Windowed systems.
3046
deece6f5
EZ
30472001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3048
3049 * msdos.c (IT_clear_screen): If the frame's faces are not yet
3050 realized, use the initial screen colors to clear the screen.
3051
7b403e01 30522001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1b944d9c 3053
28ff4293
PJ
3054 * textprop.c (Fset_text_properties): Remove unused variables
3055 `unchanged', `prev_changed', `s' and `len'.
3056
56167cc5
PJ
3057 * search.c (Freplace_match): Remove unused variable `inslen'.
3058
1b944d9c
PJ
3059 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
3060
ca56d953
JR
30612001-11-22 Jason Rumney <jasonr@gnu.org>
3062
3063 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
3064 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
3065 (my_create_tip_window): New function.
3066 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 3067 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 3068
33399dce
JR
30692001-11-20 Jason Rumney <jasonr@gnu.org>
3070
3071 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
3072 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
3073
3074 * w32fns.c (Vw32_system_coding_system): Remove.
3075 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
3076
9b46de40
SM
30772001-11-19 Stefan Monnier <monnier@cs.yale.edu>
3078
6710ea06
SM
3079 * fileio.c (Fwrite_region): Move choose_write_coding_system to
3080 after build_annotations.
3081
a395ef6a
SM
3082 * syntax.c (describe_syntax): Add dummy arg.
3083 (describe_syntax_1): Update call to describe_vector.
3084
3085 * category.c (describe_category): Add dummy arg.
3086 (describe_category_1): Update call to describe_vector.
3087
3088 * keymap.c (Fdescribe_vector): Add `describer' parameter.
3089 (describe_command, describe_translation): Add dummy second param.
3090 (describe_map): Call elt_describer with two arguments.
3091 (describe_vector_princ): Add `fun' parameter.
3092 Call it instead of the hardcoded `princ'.
3093 (describe_vector): Add arg `args'.
3094 Pass it as a new second argument to elt_describer.
3095
3096 * keymap.h (describe_vector): Update prototype.
3097
9b46de40
SM
3098 * frame.c: Don't include keymap.h any more.
3099 (keys_of_frame): Remove.
3100
3101 * lisp.h (keys_of_frame): Remove declaration.
3102
3103 * emacs.c (main): Don't call `keys_of_frame' any more.
3104
aff37336
SS
31052001-11-14 Andreas Schwab <schwab@suse.de>
3106
3107 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
3108 if defined, 0 otherwise.
9b46de40 3109 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
3110 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
3111
b9937f07
RS
31122001-11-19 Richard M. Stallman <rms@gnu.org>
3113
3114 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
3115
2cd23960
JR
31162001-11-18 Jason Rumney <jasonr@gnu.org>
3117
3118 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
3119 (x_draw_bar_cursor): If the background color of the glyph under
3120 the cursor equals the frame's cursor color, use the glyph's
3121 foreground color for drawing the bar cursor.
3122 (x_after_update_window_line): Clear internal border in different
3123 circumstances.
3124 (w32_set_vertical_scroll_bar): Check for width and height > 0.
3125 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
3126 (x_set_glyph_string_background_width):
3127 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
3128 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
3129 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
3130 if cursor_in_non_selected_windows is false.
9b46de40 3131 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
3132 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
3133 Notice if cursor gets overwritten.
3134 (notice_overwritten_cursor): Renamed from
3135 note_overwritten_text_cursor. Rewritten to take glyph widths
3136 into account, and to take X positions as parameters.
3137 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3138 around call to x_draw_glyphs.
3139 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3140 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3141 color to use for image glyph reliefs.
3142 (x_draw_image_relief): Accept zero tool_bar_button_relief.
3143 (glyph_rect): Remove unused variable `area'.
3144
3145 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
3146 some items.
3147 (x_set_internal_border_width): Set frame garbaged when window
3148 doesn't exist yet.
3149 (Fx_create_frame): Accept zero tool_bar_button_relief.
3150 (x_clear_image_1, four_corners_best, image_background)
3151 (image_background_transparent): New functions.
3152 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3153 (gs_format): Add `:background' entry.
3154 (lookup_image): Set IMG's background color if specified.
3155 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3156 when appropriate.
3157 (x_clear_image_1): Reset `background_valid' and
3158 `background_transparent_valid' fields.
3159 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3160 calculating it here. Set IMG's background_transparent field.
3161 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3162 (enum png_keyword_index): Add PNG_BACKGROUND.
3163 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3164 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3165 (enum gif_keyword_index): Add GIF_BACKGROUND.
3166 (enum gs_keyword_index): Add GS_BACKGROUND.
3167 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3168 Pre-calculate image background color where necessary.
9b46de40
SM
3169 (x_create_x_image_and_pixmap, xbm_load, gs_load):
3170 Use display info's n_cbits entry for screen depth.
2cd23960
JR
3171 (Fx_show_tip): Remove unused variables `buffer', `top',
3172 `left', `max_width' and `max_height'.
3173
3174 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
3175
a4184c1c
GM
31762001-11-18 Gerd Moellmann <gerd@gnu.org>
3177
3178 * puresize.h (BASE_PURESIZE): Increase to 750000.
3179
7b403e01 31802001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
3181
3182 * frame.c (Fframe_live_p): Doc fix.
3183
f4ca4b00
RS
31842001-11-18 Richard M. Stallman <rms@gnu.org>
3185
3186 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
3187 (message_dolog_marker3): New static variables hold three markers.
3188 (syms_of_xdisp): Initialize and staticpro them.
3189 (message_dolog): Use message_dolog_marker1..3 instead of
3190 allocating markers each time. Unchain them when done.
3191
f4e25f94
RS
31922001-11-17 Richard M. Stallman <rms@gnu.org>
3193
3194 * doc.c (Fsnarf_documentation): Doc fix.
3195
91c153e2
AS
31962001-11-17 Andreas Schwab <schwab@suse.de>
3197
3198 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
3199
65b7d3e7
RS
32002001-11-17 Richard M. Stallman <rms@gnu.org>
3201
3202 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
3203
6b5f6311
JR
32042001-11-17 Jason Rumney <jasonr@gnu.org>
3205
3206 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
3207
be676094
GM
32082001-11-17 Gerd Moellmann <gerd@gnu.org>
3209
3210 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
3211 with invalid position.
3212
032a857d
RS
32132001-11-16 Richard M. Stallman <rms@gnu.org>
3214
3215 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
3216
3217 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
3218 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
3219 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
3220
3221 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
3222
b6270150
SM
32232001-11-16 Stefan Monnier <monnier@cs.yale.edu>
3224
3225 * fileio.c (build_annotations): Split off the tail.
3226 (build_annotations_2): New fun. Extracted from build_annotations.
3227 (Fwrite_region): Split the call to build_annotations into two
3228 calls to build_annotations and build_annotations_2.
3229
7b403e01 32302001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
792e5cbd 3231
98cbb9fa
PJ
3232 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
3233 clear_waiting_for_input with argument.
3234
3235 * xterm.h (x_update_cursor): Remove duplicated prototype.
3236
b6270150 3237 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 3238
ea904403 3239 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 3240
ea904403 3241 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 3242
fa336b91
SM
32432001-11-16 Stefan Monnier <monnier@cs.yale.edu>
3244
3245 * fileio.c (choose_write_coding_system): New fun, extracted
3246 from Fwrite_region.
3247 (Fwrite_region): Use it.
3248
3249 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
3250 (funcall_lambda, run_hook_with_args): Make static and add prototype.
3251 (ml_apply, find_handler_clause): Add prototype.
3252
077907d4
EZ
32532001-11-16 Eli Zaretskii <eliz@gnu.org>
3254
aa2af83a
EZ
3255 * config.in: Add #undef HAVE_COFF_H.
3256
077907d4
EZ
3257 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
3258 Required for ISC 4.1.
3259
1756e2fb
EZ
32602001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
3261
3262 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
3263 Andrew Wiseman <a.wiseman@btclick.com>.
3264
06e8f738
KS
32652001-11-16 Kim F. Storm <storm@cua.dk>
3266
3267 The following changes are made to clean up the various internal
3268 references to the fringes to actually use the term `fringe' for
3269 them. Previously, they were called `flags areas', `bitmap areas',
3270 `left/right side of windows', or implicitly as `flags' or
3271 `bitmaps':
3272
3273 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
3274 Comments fixed. Use renamed symbols.
fa336b91 3275
06e8f738 3276 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 3277
06e8f738
KS
3278 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
3279 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
3280 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 3281
06e8f738 3282 * msdos.c: Comment fix.
fa336b91 3283
06e8f738 3284 * w32fns.c: Use renamed symbols.
fa336b91 3285
06e8f738
KS
3286 * w32term.c: Comment fixes. Use renamed symbols.
3287 (fringe_bitmap_type): Renamed from bitmap_type.
3288 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3289 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
3290 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 3291
06e8f738
KS
3292 * w32term.h: Comment fixes. Use renamed symbols.
3293 (fringes_extra): Renamed from flags_areas_extra.
3294 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3295 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3296 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3297 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
3298 (FRAME_X_LEFT_FRINGE_WIDTH):
3299 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3300 (FRAME_X_RIGHT_FRINGE_WIDTH):
3301 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3302
06e8f738 3303 * widget.c: Use renamed symbols.
fa336b91 3304
06e8f738
KS
3305 * window.c: Comment fixes. Use renamed symbols.
3306 (coordinates-in-window-p): Doc fix.
fa336b91 3307
06e8f738 3308 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 3309
06e8f738 3310 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 3311
06e8f738 3312 * xfns.c: Use renamed symbols.
fa336b91 3313
06e8f738
KS
3314 * xterm.c: Comment fixes. Use renamed symbols.
3315 (fringe_bitmap_type): Renamed from bitmap_type.
3316 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3317 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
3318 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3319
3320 * xterm.h: Comment fixes. Use renamed symbols.
3321 (fringes_extra): Renamed from flags_areas_extra.
3322 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3323 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3324 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3325 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
3326 (FRAME_X_LEFT_FRINGE_WIDTH):
3327 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3328 (FRAME_X_RIGHT_FRINGE_WIDTH):
3329 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 3330
9ce647f4
JR
33312001-11-15 Jason Rumney <jasonr@gnu.org>
3332
3333 * w32menu.c (add-menu-item): Make help_echo and radio buttons
3334 work for most menu items. From David Ponce
3335 <david.ponce@wanadoo.fr>.
3336
9b784ab8
GM
33372001-11-15 Gerd Moellmann <gerd@gnu.org>
3338
9f7e52b4
GM
3339 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
3340 Some x_set_* function expect to be called even if old and new
3341 value are equal.
3342
3343 * xdisp.c (build_desired_tool_bar_string): Accept zero
3344 tool_bar_button_relief.
3345
3346 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
3347
3348 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 3349
34e5d0af
GM
3350 * xterm.c (x_draw_bar_cursor): If the background color of the
3351 glyph under the cursor equals the frame's cursor color, use
3352 the glyph's foreground color for drawing the bar cursor.
3353
9b784ab8
GM
3354 * dispnew.c (direct_output_forward_char): Fix character/byte
3355 position comparison.
3356
89512fcd
MB
33572001-11-15 Miles Bader <miles@gnu.org>
3358
3359 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
3360 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
3361 Update arguments to find_field.
3362 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
3363 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
3364 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
3365 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
3366
7d18891d
RS
33672001-11-14 Richard M. Stallman <rms@gnu.org>
3368
d2936d21
RS
3369 * editfns.c (Fpropertize): Allow call with 1 arg.
3370
7d18891d
RS
3371 * dispextern.h (image_background, image_background_transparent):
3372 Conditionalize on HAVE_X_WINDOWS.
3373
33742001-11-13 Richard M. Stallman <rms@gnu.org>
3375
3376 * print.c (Fprin1_to_string): Doc fix.
3377
3378 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
3379
3380 * floatfns.c (Fceiling, Ffloor): Doc fixes.
3381
3382 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
3383
3384 * fileio.c (Ffile_accessible_directory_p): Doc fix.
3385
3386 * eval.c (syms_of_eval): Doc fix.
3387
3388 * coding.c (syms_of_coding): Doc fix.
3389
3390 * doc.c (Fsnarf_documentation): Doc fix.
3391
3392 * dispnew.c (syms_of_display): Doc fix.
3393
3394 * category.c (Fget_unused_category): Doc fix.
3395
3396 * buffer.c (syms_of_buffer): Doc fixes.
3397
9474c847
EZ
33982001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
3399
3400 * print.c (prin1, print): Doc fix.
3401
7b403e01 34022001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
e3059a5d 3403
2b6f3c2b 3404 * fontset.h: Remove declarations of variables
e3059a5d
PJ
3405 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
3406
3407 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
3408 `Vclip_large_size_font'.
3409
b3700ae7
JR
34102001-11-13 Jason Rumney <jasonr@gnu.org>
3411
3412 * w32fns.c: Doc fix.
3413
7b403e01 34142001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
eae936e2 3415
4bb962be
PJ
3416 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3417
ddb67bdc
PJ
3418 * fns.c: Doc fix.
3419
3467c402
PJ
3420 * emacs.c: Doc fix.
3421
3422 * coding.c: Doc fix.
3423
6e1b91d7
PJ
3424 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
3425 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
3426 `new style' [w/`doc:' keyword].
3427
1c1d3d69
RS
34282001-11-12 Richard M. Stallman <rms@gnu.org>
3429
3430 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
3431 LeaveNotify events. Only FocusIn and FocusOut do that now.
3432 (x_display_and_set_cursor): Do display hollow cursors in active
3433 minibuffer windows when they are not selected.
3434
b6f4c7ba
JR
34352001-11-12 Jason Rumney <jasonr@gnu.org>
3436
3437 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3438 * w32term.c: Change doc-string comments to `new style'.
3439 [w/`doc:' keyword]. Doc fixes.
3440
3441 * w32fns.c: Don't define max.
3442 (Fx_open_connection): Only execute once.
3443
7b403e01 34442001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
3445
3446 * ccl.c: Change macros to use do-while block instead of if-else.
3447 Use braces to follow GNU Coding Standards.
3448
a4cd0cd7
RS
34492001-11-11 Richard M. Stallman <rms@gnu.org>
3450
eafb659a
RS
3451 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
3452
3453 * lread.c (read_escape): Use end_of_file_error for reporting eof.
3454
a4cd0cd7
RS
3455 * insdel.c (replace_range): Use adjust_markers_for_replace
3456 instead of adjust_markers_for_delete and adjust_markers_for_insert.
3457
3458 * intervals.h: Declare set_text_properties and set_text_properties_1.
3459
3460 * textprop.c (set_text_properties_1): New subroutine
3461 broken out of set_text_properties.
3462 (set_text_properties): Use set_text_properties_1.
3463
3464 * intervals.c (graft_intervals_into_buffer):
3465 Use set_text_properties_1 to clear out properties.
3466
3467 * search.c (Freplace_match): Use replace_range to insert
3468 and delete. Don't request property inheritance from
3469 surrounding text.
3470
91823618
JR
34712001-11-10 Jason Rumney <jasonr@gnu.org>
3472
3473 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
3474 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 3475 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 3476
86928dfb
GM
34772001-11-10 Gerd Moellmann <gerd@gnu.org>
3478
fa336b91 3479 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
3480 instead of malloc/free.
3481
7b403e01 34822001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
40ef1eda 3483
ab8469eb
PJ
3484 * xfaces.c (merge_face_vectors): Use braces to follow GNU
3485 Coding Standards.
3486 (Finternal_set_lisp_face_attribute): Likewise.
3487
a78e0303
PJ
3488 * buffer.c (Fbury_buffer): Likewise.
3489
40ef1eda
PJ
3490 * indent.c (current_column_1): Remove unused variable `prev_col'.
3491
fabf4a91
PJ
3492 * coding.c (encode_coding): Use precomputed value of `src'.
3493 (encode_coding): Remove unused variable `src_end'.
3494 (code_convert_region): Remove unused variables `count'.
3495
0c99b139
JR
34962001-11-07 Jason Rumney <jasonr@gnu.org>
3497
3498 * w32term.c (x_display_and_set_cursor): Do not move system caret
3499 if cursor_glyph is NULL.
3500
7b403e01 35012001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
3502
3503 * keymap.c (access_keymap): Fix compilation error.
3504
55c6d645
MB
35052001-11-07 Miles Bader <miles@gnu.org>
3506
3507 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
3508
7b403e01 35092001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
5de38842 3510
7a4564a4
PJ
3511 * intervals.c (graft_intervals_into_buffer):
3512 Remove #ifdef'd-out code.
3513 (graft_intervals_into_buffer): Remove unused variable `middle'.
3514
5de38842
PJ
3515 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
3516 code (eval-current-buffer).
3517 Change doc-string comments to `new style' [w/`doc:' keyword].
3518
4fa23df5
RS
35192001-11-06 Richard M. Stallman <rms@gnu.org>
3520
3521 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
3522
7a6a97d7
SM
35232001-11-06 Stefan Monnier <monnier@cs.yale.edu>
3524
c191d13c
SM
3525 * lread.c (read1): Fix behavior with nested backquoting.
3526
7a6a97d7
SM
3527 * keyboard.c (make_lispy_event): Check integerness and fix
3528 Lisp_Object/int mixup.
3529
7b403e01 35302001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
3531
3532 * fns.c (copy_hash_table): Remove unused variable `v'.
3533
17893c65
PJ
3534 * fontset.c (fontset_font_pattern): Remove unused variable
3535 `family_registry'.
3536
4d994a79
PJ
3537 * indent.c (current_column_1): Remove unused variable `prev_col'.
3538
d5360cc7
RS
35392001-11-05 Richard M. Stallman <rms@gnu.org>
3540
3541 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
3542
3543 * buffer.c (Fkill_buffer): Don't delete auto save file
3544 if buffer is modified.
3545
96238a5a
AI
35462001-11-05 Andrew Innes <andrewi@gnu.org>
3547
3548 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
3549 CHECK_NUMBER_CDR.
3550
d9d54213
RS
35512001-11-05 Richard M. Stallman <rms@gnu.org>
3552
3553 * unexelf.c (unexec): Minor changes; clean up comments.
3554
b116830b
SS
35552001-11-05 Sam Steingold <sds@gnu.org>
3556
3557 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
3558
3297e2a1
AS
35592001-11-05 Andreas Schwab <schwab@suse.de>
3560
3561 * sound.c (sound_perror): Save errno from being clobbered.
3562
9212319f 35632001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
3564
3565 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
3566 the program image directly.
3567
7b403e01 35682001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
3569
3570 * buffer.h (Fbuffer_local_value): Add prototype.
3571
982f6c7e
RS
35722001-11-04 Richard M. Stallman <rms@gnu.org>
3573
d31053f9
RS
3574 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
3575 and CHECK_BUFFER.
3576
3577 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
3578 (record_char): Likewise.
3579
3580 * keyboard.c (make_lispy_event): Don't insist a drag event must
3581 move to a different buffer position. Instead, check for moving at
3582 least double_click_fuzz.
3583
3584 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
3585
3586 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
3587
982f6c7e
RS
3588 * indent.c (current_column_1, Fmove_to_column): Separate the code
3589 for display-table glyphs from the code buffer text, to fix
3590 bugs in the former.
3591
830047fd
RS
35922001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
3593
3594 * buffer.c (Fbuffer_local_value): New function.
c191d13c 3595 (syms_of_buffer): Defsubr it.
b116830b 3596
830047fd
RS
3597 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
3598 value of `cursor-in-non-selected-windows'.
3599
3600 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
3601 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
3602 (syms_of_xdisp): Initialize it.
b116830b 3603
7b403e01 36042001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2df5238c 3605
4e397688
PJ
3606 * xfns.c (Fx_create_frame): Doc fix.
3607
48b0f3ae
PJ
3608 * coding.c: Change doc-string comments to `new style' [w/`doc:'
3609 keyword].
3610
2df5238c
PJ
3611 * eval.c (top_level_value, top_level_set): Remove commented and
3612 #ifdef'd-out code.
3613 (Fdefvar): Fix usage in doc-string.
3614
3ecaf7e5
RS
36152001-11-03 Richard M. Stallman <rms@gnu.org>
3616
3617 * xfns.c: Include unistd.h, if it exists.
3618
3619 * editfns.c: Move the include of ctype.h after unistd.h.
3620
3621 * gmalloc.c: Test BROKEN_PROTOTYPES.
3622
8db2e33b
KR
36232001-11-03 Ken Raeburn <raeburn@gnu.org>
3624
3625 * lisp.h (CHECK_STRING_CAR): New macro.
3626 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
3627 treating XCAR and XCDR as lvalues.
3628 (openp): Use CHECK_STRING_CAR.
3629 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
3630
aed29b97
EZ
36312001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
3632
3633 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 3634 (SIGMASKTYPE): Define.
aed29b97
EZ
3635
3636 * syssignal.h (sigunblock): Don't define if already defined.
3637
7b403e01 36382001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
6cb16f95 3639
16b45be4
EZ
3640 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
3641 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
3642 Fix typos in comments.
3643
020f9b38
PJ
3644 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
3645 and #ifdef'd-out code.
3646 Fix and reindent comments.
3647
c191d13c 3648 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 3649
6cb16f95
PJ
3650 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
3651 argument `i' in macros.
3652
3653 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
3654 `i' in macros.
3655
16b45be4
EZ
3656 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3657 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
3658 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
3659 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
3660 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
3661 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3662 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
3663 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
3664 in macros.
3665
3666 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
3667 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
3668 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
3669 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
3670 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
3671 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
3672 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
3673 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
3674 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
3675 (remove unused second argument).
3676
7e9d3c2f
SM
36772001-11-02 Stefan Monnier <monnier@cs.yale.edu>
3678
3679 * syntax.c (describe_syntax): New wrapper.
3680 (Finternal_describe_syntax_value): Rename from describe_syntax.
3681 Don't insert space at front and \n at the end.
3682 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
3683
3684 * regex.c (re_wctype): Try to fix some warnings.
3685 (regcomp, regexec): Don't forget the __restrict.
3686
e6bff182
RS
36872001-11-02 Richard M. Stallman <rms@gnu.org>
3688
3689 * textprop.c (Fget_char_property): Doc fix.
3690
7b403e01 36912001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
3692
3693 * process.c (Fstart_process): Add usage to doc-string.
3694
3695 * data.c (Fsetq_default): Ditto.
3696
3697 * callint.c (Finteractive): Ditto.
3698
c22e59e1
SM
36992001-11-01 Stefan Monnier <monnier@cs.yale.edu>
3700
3701 * macros.c: Don't include keymap.h any more.
3702
9271ed2c
RS
37032001-11-01 Richard M. Stallman <rms@gnu.org>
3704
e6bff182
RS
3705 * data.c (Fmake_local_variable): Doc fix.
3706
3707 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
3708 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
3709
9271ed2c
RS
3710 * keymap.c (Fdescribe_buffer_bindings): Print character property
3711 bindings along with or instead of the buffer local map.
3712 Make the overriding maps override what they should.
3713
7b403e01 37142001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
3715
3716 * window.c (grow_mini_window): Fix typo in comment.
3717
27188d11
GM
37182001-11-01 Gerd Moellmann <gerd@gnu.org>
3719
7b49b9d2
GM
3720 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
3721 (XTset_vertical_scroll_bar): Likewise.
3722
43f7c3ea
GM
3723 * xfns.c (x_build_heuristic_mask): Use four_corners_best
3724 instead of IMAGE_BACKGROUND.
c22e59e1 3725
b350c2e5
GM
3726 * xfns.c (four_corners_best): Reindent.
3727
c22e59e1 3728 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
3729 Handle :box so that it is possible to specify sexprs.
3730
bf00d461
EZ
37312001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
3732
3733 * s/hpux11.h: New file.
3734
7b403e01 37352001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
4e10df59 3736
2b209b97
PJ
3737 * emacs.c (USAGE1): Show command line option --no-window-system
3738 instead of --no-windows in usage.
3739 (standard_args): Rename --no-windows to --no-window-system.
3740 (bug_reporting_address): Follow Emacs coding conventions.
3741
9dbc9081
PJ
3742 * eval.c (Fcommandp): Doc fix.
3743 Change doc-string comments to `new style' [w/`doc:' keyword].
3744
4e10df59
PJ
3745 * frame.c (Fframe_live_p): Doc fix.
3746
3747 * buffer.c (selective-display-ellipses): Doc fix.
3748
dd387b25
GM
37492001-10-31 Gerd Moellmann <gerd@gnu.org>
3750
fe957e65
GM
3751 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
3752
dd387b25
GM
3753 * xfaces.c (realize_x_face): If C is not a single-byte character,
3754 set the face's colors_copied_bitwise_p instead of the defaulted_p
3755 members which have a different meaning.
3756 (free_face_colors): Do nothing for a face whose colors have been
3757 copied bitwise.
3758
c22e59e1 3759 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 3760
7b403e01 37612001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2e1280f8 3762
687784e8
PJ
3763 * marker.c, mocklisp.c: Change doc-string comments to `new style'
3764 [w/`doc:' keyword].
2e1280f8 3765
b9d9a9b9
GM
37662001-10-31 Gerd Moellmann <gerd@gnu.org>
3767
3768 * fns.c (require_unwind): Return Lisp_Object.
3769
7b403e01 37702001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
48400103 3771
fa1361cb
PJ
3772 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
3773 (last-input-char): Revert doc-string to be the same as the
3774 doc-string of `last-input-event'.
3775
48400103
PJ
3776 * xdisp.c: Fix typos in comments.
3777
eafa3196
GM
37782001-10-31 Gerd Moellmann <gerd@gnu.org>
3779
3780 * window.c (grow_mini_window): Handle case that the root
3781 window is already smaller than the nominal mininum height.
3782
747d3f2a
SM
37832001-10-30 Stefan Monnier <monnier@cs.yale.edu>
3784
bf9bb76f
SM
3785 * emacs.c (main): Don't call keys_of_macros any more.
3786
3787 * lisp.h (keys_of_macros): Remove.
3788
3789 * macros.c (keys_of_macros): Remove.
3790
747d3f2a
SM
3791 * xfaces.c (Fface_attribute_relative_p): Declare args.
3792
5e905a57
JR
37932001-10-30 Jason Rumney <jasonr@gnu.org>
3794
3795 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
3796 (enum_font_cb2): Ignore fonts with vertical orientation.
3797
3a426197
RS
37982001-10-30 Richard M. Stallman <rms@gnu.org>
3799
3800 * keyboard.c (Finput_pending_p): Doc fix.
3801
a742d646
GM
38022001-10-30 Gerd Moellmann <gerd@gnu.org>
3803
259cf6bc
GM
3804 * xterm.c (x_after_update_window_line): Don't run the code
3805 clearing in borders for rows whose visible height is 0.
3806
3f99f948
GM
3807 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
3808 resized_p flag is set. If not set, use the much less flickering
3809 method previously used.
3810
3811 * dispnew.c (change_frame_size_1): Set frame's resized_p.
3812
3813 * frame.h (struct frame) <resized_p>: New member.
3814
b4a3be43
GM
3815 * lread.c (to_multibyte): Ensure read_buffer is at least twice
3816 as large as the number of bytes to convert.
747d3f2a 3817
a742d646
GM
3818 * lread.c (to_multibyte): New function.
3819 (read1): Use it.
3820
cacbb9e9
EZ
38212001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
3822
3823 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
3824
99cb6b2f
GM
38252001-10-30 Gerd Moellmann <gerd@gnu.org>
3826
327f42ee 3827 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
3828 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
3829 if the row's fill_line_p is set and drawing the last glyph with
3830 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 3831
99cb6b2f
GM
3832 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
3833
8e8223e2
SM
38342001-10-29 Stefan Monnier <monnier@cs.yale.edu>
3835
3836 * xmenu.c: Include coding.h and charset.h.
3837 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
3838 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
3839 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
3840 Explicitly set wv->help. Use `TRUE' rather than `True'.
3841 (menu_help_callback): Use empty_string.
3842
3843 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
3844 (Fx_popup_dialog): Explicitly init f.
3845 (w32_menu_display_help): Use empty_string.
3846
4d083a8f
RS
38472001-10-29 Richard M. Stallman <rms@gnu.org>
3848
b2304472
RS
3849 * fns.c (Frequire): Detect recursive try to require the same
3850 feature 3 or more levels deep, and get error.
3851 (require_unwind): New subroutine.
3852 (require_nesting_list): New variable.
3853 (syms_of_fns): Init and staticpro it.
3854
4d083a8f
RS
3855 * print.c (print_object): Clarify indication of insertion type.
3856
2fe41216
EZ
38572001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
3858
90480000
EZ
3859 * coding.c (syms_of_coding): Document that locale-coding-system is
3860 used for decoding input on X.
3861
2fe41216
EZ
3862 * window.c (Fscroll_left, Fscroll_right): Doc fix.
3863
7b403e01 38642001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
74e79967
PJ
3865
3866 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
3867 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
3868
60ebcfe8
GM
38692001-10-29 Gerd Moellmann <gerd@gnu.org>
3870
9a7bdceb
GM
3871 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3872 use NO_CURSOR if cursor_in_non_selected_windows is false.
3873
3f08fcd2
GM
3874 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3875 the slant attribute if FRAME is t.
3876
0ccfdad2
GM
3877 * xfns.c (x_set_internal_border_width): Set frame garbaged
3878 when X window doesn't exist yet.
3879
ef253080
GM
3880 * xterm.c (x_after_update_window_line): Clear internal border
3881 in different circumstances.
b116830b 3882
60ebcfe8
GM
3883 * xterm.c (XTread_socket) <KeyPress>: Don't use
3884 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
3885 <handa@etl.go.jp>.
3886
73d25f9c
EZ
38872001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3888
3889 * m/ibms390.h: New file. From Adam Thornton
3890 <athornton@sinenomine.net>.
3891
cac1daf0
GM
38922001-10-28 Gerd Moellmann <gerd@gnu.org>
3893
053b3256 3894 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 3895
cac1daf0
GM
3896 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3897 a loop counter.
3898
7b403e01 38992001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
13b1a09c 3900
186486eb
PJ
3901 * emacs.c: Use argv[0] instead of emacs when -t was specified.
3902
4707d2d0
PJ
3903 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3904 keyword].
3905 Fix typos in comments.
b116830b 3906
d883731c
PJ
3907 * emacs.c (bug_reporting_address): New function.
3908 Use it when displaying usage message.
3909
04012254
PJ
3910 * minibuf.c (read_minibuf): Remove unused external declaration of
3911 variable `Qread_only'.
3912
13b1a09c
PJ
3913 * keymap.c (access_keymap): Remove unused variable `charset'.
3914
5bbf4378
MB
39152001-10-28 Miles Bader <miles@gnu.org>
3916
3917 * xfaces.c (merge_face_heights): Handle TO being relative as well.
3918 Remove #ifdef'd-out code.
3919 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3920 (syms_of_xfaces): Initialize them.
3921
1ce1e4ee
JR
39222001-10-27 Jason Rumney <jasonr@gnu.org>
3923
3924 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
3925 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
3926 position using the system caret.
3927
3928 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
3929 (w32_system_caret_height, w32_system_caret_x)
3930 (w32_system_caret_y): New variables for tracking system caret.
3931 (w32_initialize): Initialize them.
c2d53558 3932 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 3933
c2d53558
SM
3934 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
3935 New messages types.
1ce1e4ee
JR
3936
3937 * w32term.c (note_mouse_highlight): Clear old help_echo.
3938
7b403e01 39392001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
4e30ce42 3940
bb4600a4
PJ
3941 * xterm.c: Fix typo in a comment.
3942
7db35a48
PJ
3943 * emacs.c: Fix typos in comments.
3944 Remove unnecessary spaces.
3945 Change doc-string comments to `new style' [w/`doc:' keyword].
3946 (USAGE2): Fix typos in usage string.
3947
a7248e4f
PJ
3948 * xterm.c: Fix typo in a comment.
3949
4e30ce42
PJ
3950 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
3951 emacs.c.
3952
62725a92
GM
39532001-10-27 Gerd Moellmann <gerd@gnu.org>
3954
798dbe1f 3955 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 3956 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
3957 farther backward when target_y was not reached.
3958
62725a92
GM
3959 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
3960 Display errno only if non-zero.
3961 (sound_warning): New function.
3962 (vox_configure): Don't treat failing to set sample rate as error.
3963 (various places): Improve error messages.
3964
d4e34d24
EZ
39652001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
3966
944e6f60
EZ
3967 * fileio.c (Faccess_file): Run the argument filename through
3968 Fexpand_file_name, before using it.
3969
d4e34d24
EZ
3970 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
3971 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
3972
38d2af0c
GM
39732001-10-26 Gerd Moellmann <gerd@gnu.org>
3974
da80a8d5
GM
3975 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
3976
38d2af0c
GM
3977 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3978 Fix clearing in the case of scroll bars on the right.
c2d53558 3979
56f508dd
EZ
39802001-10-26 Juanma Barranquero <lektu@terra.es>
3981
3982 * w32gui.h (XImage): Add a dummy typedef.
3983
fbd5ceb2
GM
39842001-10-26 Gerd Moellmann <gerd@gnu.org>
3985
c2d53558 3986 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 3987
b23236fb
EZ
39882001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
3989
3990 * frame.c (Fframe_parameter): Fix last change.
3991
5d991fc4
EZ
3992 * fileio.c: Revert last change (which removed old commented-out
3993 version of expand-file-name). Add a comment that explains why
3994 this old version should not be removed.
3995
879eadc3
GM
39962001-10-25 Gerd Moellmann <gerd@gnu.org>
3997
75700ff2
GM
3998 * frame.c (Fframe_parameter): Fix a bug whereby some
3999 ``artificial'' frame parameters, like `minibuffer' were not
4000 obtained by calling Fframe_parameters.
4001
dfe92a6a
GM
4002 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
4003 cursor differently.
4004
879eadc3
GM
4005 * xdisp.c (move_it_vertically_backward): Compute line height
4006 differently. Add heuristic to try to be more compatible to 20.x.
4007
e1010ebe
SM
40082001-10-25 Stefan Monnier <monnier@cs.yale.edu>
4009
d73a471b
SM
4010 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
4011
d6da5a06
GM
4012 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
4013 boolean.
e1010ebe 4014
f66bd220
MB
40152001-10-25 Miles Bader <miles@gnu.org>
4016
4017 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
4018 BG is a pointer to a structure, not a structure.
4019 (gif_format, png_format): Add missing commas.
4020
d436d538
RS
40212001-10-24 Richard M. Stallman <rms@gnu.org>
4022
4023 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 4024 (syms_of_xfaces): Defsubr it.
d436d538 4025
7b403e01 40262001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
075c507b
PJ
4027
4028 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
4029 variable `area'.
4030
7b403e01 40312001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
d492b584 4032
c2d53558 4033 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 4034
e2a57b34
MB
40352001-10-25 Miles Bader <miles@gnu.org>
4036
4037 * dispextern.h (struct image): Add `background',
4038 `background_valid', and `background_transparent' fields.
4039 (image_background, image_background_transparent): New declarations.
4040 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
4041 * xfns.c (image_background, image_background_transparent)
4042 (four_corners_best): New functions.
c2d53558 4043 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
4044 (gs_format): Add `:background' entry.
4045 (lookup_image): Set IMG's background color if specified.
4046 (pbm_load, xbm_load_image, png_load): Set IMG's background field
4047 when appropriate.
4048 (x_clear_image_1): Reset `background_valid' and
4049 `background_transparent_valid' fields.
4050 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
4051 calculating it here. Set IMG's background_transparent field.
4052 (enum xpm_keyword_index): Add XPM_BACKGROUND.
4053 (enum png_keyword_index): Add PNG_BACKGROUND.
4054 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
4055 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
4056 (enum gif_keyword_index): Add GIF_BACKGROUND.
4057 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 4058 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
4059 Pre-calculate image background color where necessary.
4060 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
4061 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
4062 color to use for image glyph reliefs.
4063
b547b6e8
GM
40642001-10-24 Gerd Moellmann <gerd@gnu.org>
4065
d9e3b8c6
GM
4066 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
4067 in full-width rows.
c2d53558 4068
b547b6e8
GM
4069 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4070 Fix clearing of area not covered by scroll bar.
4071
7b403e01 40722001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
4073
4074 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
4075 and `real_start'.
c2d53558 4076 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
4077 (glyph_rect): Remove unused variable `area'.
4078
76cb5e06
GM
40792001-10-24 Gerd Moellmann <gerd@gnu.org>
4080
bdbdebff 4081 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
4082
4083 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
4084 (row_containing_pos): Take additional argument DY.
4085 Treat rows ending in middle of char differently.
62e33982
GM
4086 (display_line): Handle tabs on window systems differently.
4087
4088 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
4089 with additional argument.
4090
4091 * dispextern.h (row_containing_pos): Adjust prototype.
4092
76cb5e06
GM
4093 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
4094 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
4095 (try_window_id, try_window_reusing_current_matrix)
4096 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
4097 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
4098
7b403e01 40992001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
996fee11 4100
c9e60620
PJ
4101 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
4102 gnuemacs).
4103 (HAVE_BOXES): Fix typo in comment.
4104 (push_menu_pane): Fix typo in comment.
4105
3b552d56
PJ
4106 * xdisp.c: (display_prop_string_p): Remove unused local declaration
4107 of `Qwhen'.
4108 (single_display_prop_string_p): Remove unused local declarations
4109 of `Qwhen' and `Qmargin'.
4110 (string_buffer_position): Remove unused variable `around'.
4111 (store_frame_title): Remove unused variable `width'.
4112
15c565ac
PJ
4113 * window.c: Don't define max.
4114 (coordinates_in_window): Remove unused variable `uy'.
4115
a8818eb9
PJ
4116 * widget.c: Don't define max.
4117
996fee11
PJ
4118 * process.c: Don't define max.
4119 (create_process): Remove unused variable `buffer'.
4120
496e1a5b
GM
41212001-10-23 Gerd Moellmann <gerd@gnu.org>
4122
c2d53558 4123 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 4124
5905ae8b
EZ
41252001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
4126
4127 * xfaces.c (Finternal_set_lisp_face_attribute)
4128 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
4129 frame is on a windowed display.
4130
24db49fb
GM
41312001-10-23 Gerd Moellmann <gerd@gnu.org>
4132
c2d53558
SM
4133 * dispnew.c (sync_window_with_frame_matrix_rows):
4134 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
4135 of marginal areas.
4136
c2d53558 4137 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 4138
f0487f05
EZ
41392001-10-23 Andreas Schwab <schwab@suse.de>
4140
4141 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
4142 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
4143
f0a48a01
GM
41442001-10-23 Gerd Moellmann <gerd@gnu.org>
4145
c2d53558 4146 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
4147 REAL_END. Notice if cursor gets overwritten.
4148 (notice_overwritten_cursor): Take X positions as parameters.
4149 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
4150 around call to x_draw_glyphs.
4151
7b403e01 41522001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
a50a10a0 4153
fc11dff0
PJ
4154 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
4155 instead of C) and usage.
a50a10a0 4156
fc11dff0
PJ
4157 * editfns.c (char-to-string): Fix argument names (use CHAR instead
4158 of C) and usage.
a50a10a0
PJ
4159
4160 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
4161 `left', `max_width' and `max_height'.
4162
8738febd
GM
41632001-10-23 Gerd Moellmann <gerd@gnu.org>
4164
4165 * xdisp.c (display_line): For a tab continued to the next line,
4166 set row's ends_in_middle_of_char_p.
4167
653c329b
GM
41682001-10-22 Gerd Moellmann <gerd@gnu.org>
4169
4170 * xdisp.c (display_line): Fix computation of continuation lines
4171 width for TABs.
4172
7b403e01 41732001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
f958c5ac 4174
7ba51063
PJ
4175 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
4176 `Qlaplace'.
4177
f958c5ac
PJ
4178 * fileio.c: Remove unused code.
4179
eb360291
MB
41802001-10-22 Miles Bader <miles@gnu.org>
4181
4182 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
4183 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
4184 Remove `DOC_STRINGS_IN_COMMENTS' cases.
4185
98515cf0
JR
41862001-10-21 Jason Rumney <jasonr@gnu.org>
4187
4188 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
4189
93026d88
EZ
41902001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4191
4192 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
4193 (Finsert_string): Avoid the multi-line string literals warning.
4194
c9a95b79
MB
41952001-10-22 Miles Bader <miles@gnu.org>
4196
4197 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
4198 (Fdocumentation): Don't use it.
4199 (syms_of_doc): Don't initialize it.
4200
4201 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
4202 * print.c (Fwith_output_to_temp_buffer): Likewise.
4203 * window.c (Fsave_window_excursion): Likewise.
c2d53558 4204 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 4205 (Fsave_restriction): Likewise.
c2d53558
SM
4206 * eval.c (Frun_hooks, Frun_hook_with_args)
4207 (Frun_hook_with_args_until_failure)
4208 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
4209 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
4210 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
4211 (Funwind_protect, Fcondition_case): Likewise.
4212 * coding.c (Ffind_operation_coding_system): Likewise.
4213 * keyboard.c (Ftrack_mouse): Likewise.
4214
a3b10252
MB
42152001-10-21 Miles Bader <miles@gnu.org>
4216
c2d53558 4217 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
4218 (Fmake_hash_table): Add usage: string to doc string.
4219 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 4220 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
4221 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
4222 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
4223 (Fml_prefix_argument_loop): Likewise.
4224
7b403e01 42252001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
c6f73eec 4226
c2d53558 4227 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 4228
c6f73eec
PJ
4229 * sysdep.c (init_sys_modes): Change doc-string comments to `new
4230 style' [w/`doc:' keyword].
4231
4232 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
4233 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
4234 comments to `new style' [w/`doc:' keyword].
4235
3cf3436e
JR
42362001-10-21 Jason Rumney <jasonr@gnu.org>
4237
4238 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
4239
c169b8f1
JR
4240 * w32term.c (remember_mouse_glyph): New function.
4241 (w32_mouse_position): Use it.
4242 (note_mouse_movement): If the mouse moved off the glyph, remember
4243 its new position.
c2d53558 4244
4fdd691b
JR
4245 * w32term.h (struct w32_output): Correct spelling of x_compatible.
4246 (w32_display_info): Add mouse_face_overlay.
4247
c169b8f1
JR
4248 * w32term.c (notice_overwritten_cursor): Renamed from
4249 note_overwritten_text_cursor. Rewritten to take glyph widths into
4250 account.
4251 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4252 (fast_find_string_pos): New function.
4253 (fast_find_position): Return the correct vpos. Add parameter
4254 STOP. In the final row, stop before glyphs having STOP as object.
4255 Don't consider glyphs that are not from a buffer.
4256 (fast_find_position) [0]: Add a presumably more correct version
4257 for after 21.1.
4258 (expose_window_tree, expose_frame): Don't compute intersections here.
4259 (expose_window): Do it here instead.
4260 (expose_window_tree, expose_window, expose_line): Return 1 when
4261 overwriting mouse-face.
4262 (expose_window): If W is the window currently being updated, mark
4263 the frame garbaged.
4264 (expose_frame): If mouse-face was overwritten, redo it.
4265 (x_use_underline_position_properties): New variable.
4266 (syms_of_xterm): DEFVAR_BOOL it.
4267 (x_draw_glyph_string): Add comment to use it in future.
4268 (x_draw_glyph_string): Restore clipping after drawing box.
4269 Fix a computation of the underline position.
4270 (w32_get_glyph_string_clip_rect): Minor cleanup.
4271 (x_fill_stretch_glyph_string): Remove an assertion.
4272 (x_produce_glyphs): Don't convert multibyte characters
4273 to unibyte characters in unibyte buffers.
4274 (cursor_in_mouse_face_p): New function.
4275 (x_draw_stretch_glyph_string): Use it to choose a different GC
4276 when drawing a cursor within highlighted text. Don't draw
4277 background again if it has already been drawn.
4278 (x_draw_glyph_string_box): Don't draw a full-width
4279 box just because the glyph row's full_width_p flag is set.
4280 (x_draw_glyphs): Fix computation of rightmost x for
4281 full-width rows.
4282 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4283 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
4284 change bottom shadow accordingly. Some cleanup.
4285 (x_update_window_end): Handle overwritten mouse face
4286 also for tool bar windows.
4287 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4288 DRAW is DRAW_IMAGE_RAISED.
4289 (clear_mouse_face): Return 1 if text with mouse face was
4290 actually redrawn. Make the function static. Reset
4291 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
4292 optimize away highlighting if we pass over that same overlay again.
4293 (note_mouse_highlight): Call mouse_face_overlay_overlaps
4294 to detect a case where we have to highlight a different region
4295 despite not having left the currently highlighted region.
4296 Set mouse_face_overlay in the x_display_info. Avoid changing the
4297 mouse pointer shape when show_mouse_face has already done it, or
4298 there is no need. Handle mouse-face and help-echo in strings.
4299 (glyph_rect): New function.
4300 (w32_mouse_position): Use it to raise the threshold for mouse
4301 movement event generation.
4302 (w32_initialize_display_info): Initialize the x_display_info's
4303 mouse_face_overlay.
4304 (w32_set_vertical_scroll_bar): Don't clear a zero height
4305 or width area.
4306 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4307 a widget to zero height.
4308
3cf3436e 4309 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 4310 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
4311 equivalents in menu_items.
4312 (w32_menu_show): Don't overwrite an item's name with its key
4313 description in case the description is a multibyte string.
4314 (single_submenu): Some cleanup.
4315
4316 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
4317 (postprocess_image): New function.
4318 (lookup_image): Call it for all image types except PostScript.
4319 (x_kill_gs_process): Call postprocess_image.
4320 (tiff_error_handler, tiff_warning_handler): New functions.
4321 (tiff_load): Install them as handlers.
4322 (x_kill_gs_process): Recognize if someone has cleared the image
4323 cache under us.
4324 (valid_image_p): Protect better against invalid image
4325 specifications. Previous code could signal an error.
4326 (Fx_hide_tip, Fshow_tip): Doc fix.
4327 (Fv_max_tooltip_size): New variable.
4328 (syns_of_xfns): DEFVAR_LISP it.
4329 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
4330 window buffer to *tip* right after creating the frame. Set frame's
4331 window_width. Use a maximum tooltip size specified by
4332 Vx_max_tooltip_size, if that has valid contents.
4333 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4334 Make sure the tooltip is completely visible.
4335 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4336 (Fx_create_frame): Adjust the frame's height for presence
4337 of the tool bar before calling x_figure_window_size.
4338 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
4339 when the window gets smaller.
4340 (x_set_foreground_color): Set frame's cursor_pixel.
4341 (x_set_foreground_color, x_set_background_color): Cleaned up.
4342 (x_set_font): Handle case of x_new_fontset returning the same name
4343 as before, although there was a change in fontsets.
4344
386ca361
MB
43452001-10-21 Miles Bader <miles@gnu.org>
4346
c2d53558 4347 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
4348 (Flogxor): Add usage: string to doc string.
4349 * charset.c (Fstring): Likewise.
4350 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
4351 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
4352
7b403e01 43532001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
14ff1ee0 4354
03be2694
PJ
4355 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
4356
4357 * alloc.c: Reindent DEFUNs with doc: keywords.
4358
4359 * abbrev.c (Finsert_abbrev_table_description): Reindent.
4360
14ff1ee0
PJ
4361 * frame.c: Change doc-string comments to `new style' [w/`doc:'
4362 keyword].
4363
2f147815 4364See ChangeLog.9 for earlier changes.
6922b018
KH
4365
4366;; Local Variables:
49b3bd82 4367;; coding: iso-2022-7bit
6922b018 4368;; End:
2a34a036 4369
2f147815 4370 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
4371 Copying and distribution of this file, with or without modification,
4372 are permitted provided the copyright notice and this notice are preserved.