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