*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
1 2002-06-25 Miles Bader <miles@gnu.org>
2
3 * callint.c (Fcall_interactively): When checking to see if doprnt hit
4 the end of callint_message, allow for a terminating '\0'.
5
6 2002-06-24 Juanma Barranquero <lektu@terra.es>
7
8 * w32select.c: Include composite.h
9
10 * w16select.c: Likewise.
11
12 2002-06-24 Kenichi Handa <handa@etl.go.jp>
13
14 * callproc.c (Fcall_process): If code detection is necessary,
15 call detect_coding directly here.
16
17 * coding.c (detect_eol): Preserve coding->cmp_data.
18
19 * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
20
21 * w32fns.c (w32_to_x_font): Disable composition handling.
22
23 * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
24
25 * xselect.c (selection_data_to_lisp_data): Disable composition
26 handling.
27
28 * xterm.c (XTread_socket): Disable composition handling.
29
30 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
31
32 * print.c (temp_output_buffer_setup): Kill all local variables.
33
34 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
35
36 * lread.c (Fread): Remove redundant and imprecise declaration.
37
38 * xfns.c (check_x_display_info): Use check_x_frame.
39
40 * .gdbinit (xprintsym): Use the new `xname' field.
41 (xsymbol): Use it.
42
43 2002-06-22 Jason Rumney <jasonr@gnu.org>
44
45 * w32fns.c (file_dialog_callback): New function.
46 (Fx_file_dialog): Allow selecting directories as well as files.
47
48 2002-06-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
49
50 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
51 OpenBSD. Add support for mipseb-*-netbsd* machines.
52
53 2002-06-17 Andrew Choi <akochoi@shaw.ca>
54
55 * macterm.c (mac_scroll_area): Set foreground and backcolor to
56 black and white before scrolling. Restore frame background and
57 foreground color after scrolling.
58 (do_window_update): Call XClearWindow before calling expose_frame.
59 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
60 FRAME_FOREGROUND_PIXEL of frame.
61
62 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
63 test Mac command key as <ALT> key.
64
65 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
66
67 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
68
69 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
70 Lookup keys in function-key-map immediately so that key-translation-map
71 can be applied earlier.
72 Remove function_key_possible and key_translation_possible, replaced
73 by checking `keytran_start < t'.
74
75 * .gdbinit (xsymbol): Use the new `xname' field.
76
77 2002-06-17 Andrew Choi <akochoi@shaw.ca>
78
79 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
80 test Mac command key as <ALT> key.
81
82 * mac.c (do_applescript): Call initialize_applescript if necessary
83 when first called. Dispose of result_desc only when there is no error.
84 (Fdo_applescript): Use %d format specifier instead of %ld.
85
86 2002-06-16 Andrew Choi <akochoi@shaw.ca>
87
88 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
89 of FrontWindow for cases keyDown and autoKey.
90
91 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
92 Vdefault_fontset to Monaco with mac-roman coding.
93
94 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
95 init_process before and after inclusion of Carbon/Carbon.h, resp.
96
97 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
98 cursor_gc.
99 (add_font_name_table_entry): New function.
100 (init_font_name_table): Use add_font_name_table_entry; add italic,
101 bold, and bold-italic entries for truetype fonts.
102
103 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
104 for Mac too.
105 (try_font_list) [MAC_OS]: If no font matches given registry, try
106 fonts with any registry matching face_family.
107 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
108
109 * s/darwin.h: If autoconf detects the Ncurses library, define
110 LIBS_TERMCAP to -lncurses to use it.
111
112 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
113
114 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
115
116 2002-06-15 Richard M. Stallman <rms@gnu.org>
117
118 * window.c (Fset_window_configuration): Explicitly preserve
119 the point value that new_current_buffer had at the start.
120
121 2002-06-14 Juanma Barranquero <lektu@terra.es>
122
123 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
124 Fix typos.
125
126 2002-06-14 Kim F. Storm <storm@cua.dk>
127
128 * insdel.c (insert_1_both, insert_from_string_1)
129 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
130 insert happened in the end_unchanged region. Otherwise, the
131 redisplay may be confused and duplicate the last line in the
132 buffer [seen after save-buffer when require-final-newline==t].
133
134 2002-06-13 Jason Rumney <jasonr@gnu.org>
135
136 * w32.c (init_environment): Remove EMACSLOCKDIR.
137 (stat): Swap _S_IFDIR and _S_IFREG.
138
139 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
140
141 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
142 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
143 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
144 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
145 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
146 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
147 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
148 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
149 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
150 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
151 SELECTION_REQUEST_EVENT, selection_clear_event to
152 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
153 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
154 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
155 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
156 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
157 no_event to NO_EVENT.
158
159 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
160
161 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
162
163 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
164
165 * intervals.c (textget): Don't forget to `return'.
166 (lookup_char_property): Use XCAR/XCDR.
167
168 2002-06-12 Juanma Barranquero <lektu@terra.es>
169
170 * xdisp.c (Fformat_mode_line): Fix typo.
171
172 2002-06-12 Kim F. Storm <storm@cua.dk>
173
174 * xdisp.c (Fformat_mode_line): New function.
175 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
176 (store_frame_title_char, store_frame_title): Use unconditionally.
177 (init_xdisp): Defsubr Fformat_mode_line.
178 Initialize frame_title_buf etc. unconditionally.
179
180 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
181
182 * keyboard.c (read_key_sequence):
183 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
184 things through those maps after downcasing events.
185 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
186 applies after function-key-map.
187 Make sure that keytran can be done in the middle in the sequence.
188 Be careful not to throw away events past the one we downcase.
189
190 * lread.c (read_integer): Remove unused var `tem'.
191 (read1): Fix int/Lisp_Object mixup.
192
193 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
194
195 2002-06-11 Richard M. Stallman <rms@gnu.org>
196
197 * keyboard.c (readable_events): Ignore any number of
198 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
199
200 2002-06-09 Miles Bader <miles@gnu.org>
201
202 * xfaces.c (Ftty_supports_face_attributes_p): New function.
203 (parse_rgb_list, tty_lookup_color): New functions.
204 (tty_defined_color): Use `tty_lookup_color' to do all the work.
205 (color_distance, Fcolor_distance): New functions.
206 (TTY_SAME_COLOR_THRESHOLD): New macro.
207 (Qtty_color_standard_values): New variable.
208 (syms_of_xfaces): Initialize new vars & functions.
209
210 2002-06-08 Colin Walters <walters@verbum.org>
211
212 * textprop.c (Vchar_property_alias_alist): New variable.
213 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
214
215 * intervals.c (lookup_char_property): New function for looking up
216 overlay and text properties, created from textget.
217 (textget): Use it.
218
219 * intervals.h (lookup_char_property): Declare.
220 (Vchar_property_alias_alist): Declare.
221
222 * buffer.c (Foverlay_get): Use lookup_char_property.
223
224 2002-06-07 Sam Steingold <sds@gnu.org>
225
226 * xselect.c (lisp_data_to_selection_data): Fix last change:
227 *data_ret is not a Lisp string, while unibyte_string is.
228
229 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
230
231 * xselect.c (lisp_data_to_selection_data): Fix last change:
232 set size_ret.
233
234 2002-06-07 Andreas Schwab <schwab@suse.de>
235
236 * m/amdx86-64.h: New file.
237
238 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
239
240 * fns.c (Fstring_make_unibyte): Doc fix.
241
242 * xselect.c (lisp_data_to_selection_data): If the requested type
243 is STRING, call string_make_unibyte to encode the selected text
244 as a string.
245
246 * window.c (Fset_window_hscroll): Doc fix.
247
248 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
249
250 * fileio.c (choose_write_coding_system):
251 Call select-safe-coding-system properly.
252
253 2002-06-03 Richard M. Stallman <rms@gnu.org>
254
255 * xdisp.c (message_with_string): Error if STRING is not a string.
256
257 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
258
259 * fileio.c (choose_write_coding_system): Pass FILE arg to
260 Vselect_safe_coding_system_function.
261
262 2002-06-03 Ken Raeburn <raeburn@gnu.org>
263
264 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
265
266 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
267
268 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
269 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
270 * keymap.c (describe_command): Likewise.
271 * minibuf.c (read_minibuf): Likewise.
272
273 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
274 Cast `current_column' return value to int.
275 (back_to_previous_visible_line_start)
276 (reseat_at_next_visible_line_start, next_element_from_buffer):
277 Cast `indented_beyond_p' 3rd arg to float.
278
279 * indent.c (last_known_column): Now a float.
280 (current_column_1, position_indentation, current_column)
281 (string_display_width): Return float.
282 (Fcurrent_column): Cast `current_column' return value to int.
283 (Fcurrent_indentation): Cast `position_indentation' retval to int.
284 (indented_beyond_p): Third arg now a float.
285 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
286
287 * lisp.h (current_column): Now returns float.
288 (indented_beyond_p): 3rd arg now a float.
289
290 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
291
292 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
293 is Qcompound_text_with_extensions.
294
295 * xselect.c (lisp_data_to_selection_data): Always set selection
296 type as string if x_encode_text returns streingp non-NULL.
297
298 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
299
300 2002-05-30 Richard M. Stallman <rms@gnu.org>
301
302 * window.c (Fset_window_configuration): Correct the handling
303 of point in current buffer, to work with multiple windows.
304
305 2002-05-29 Colin Walters <walters@verbum.org>
306
307 * lread.c (Fread_from_string): Don't depend on order of evaluation
308 for C function parameters.
309
310 2002-05-28 Richard M. Stallman <rms@gnu.org>
311
312 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
313 way for blinked-off state and for a nonselected window.
314
315 * window.c (window_scroll_pixel_based): Don't call Fbolp;
316 instead, see if the new start pos is at beginning of line.
317
318 * fileio.c (Fwrite_region): If START is a string, don't
319 make any annotations.
320
321 * eval.c (syms_of_eval): Doc fix.
322
323 2002-05-28 Colin Walters <walters@debian.org>
324
325 * emacs.c (USAGE1): Add --no-splash.
326 (standard_args): Ditto.
327
328 2002-05-28 Colin Walters <walters@gnu.org>
329
330 * lread.c (readchar_count): New variable.
331 (readchar): Increment it.
332 (unreadchar): Decrement it.
333 (read_multibyte): Decrement it.
334 (Vread_with_symbol_positions): New variable.
335 (Vread_symbol_positions_list): New variable.
336 (read_internal_start): New function, created from Fread and
337 Fread_from_string. Handle Vread_symbol_positions_list and
338 Vread_with_symbol_positions.
339 (readevalloop, Fread, Fread_from_string): Use it.
340 (read1): Use readchar_count to add symbol positions to
341 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
342 (syms_of_lread): DEFVAR_LISP and initialize them.
343
344 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
345 (substitute_object_recurse, substitute_object_in_subtree)
346 (substitute_in_interval): Prototype.
347 (read_multibyte): Return c if it's less than zero.
348
349 2002-05-28 Kim F. Storm <storm@cua.dk>
350
351 * fileio.c (Fread_file_name_internal): Added brute-force
352 speed up for using predicate file-directory-p.
353
354 2002-05-28 Kim F. Storm <storm@cua.dk>
355
356 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
357 New variables.
358 (syms_of_fileio): DEFVAR_LISP them.
359 (read_file_name_cleanup): New unwind function.
360 (Fread_file_name_internal): Only return completions satifying
361 Vread_file_name_predicate. Temporarily unwind protect and rebind
362 default-directory while checking completions against the predicate.
363 (Fread_file_name): Added PREDICATE argument. Specbind it to
364 Vread_file_name_predicate during completion.
365 Call Vread_file_name_function to read the file name if non-nil.
366
367 * lisp.h (Fread_file_name): Now has 6 args.
368
369 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
370 predicate for Fread_file_name when reading directory name.
371 Supply Qnil for predicate in other calls to Fread_file_name.
372
373 2002-05-26 Miles Bader <miles@gnu.org>
374
375 * term.c (tty_capable_p): New function.
376 * dispextern.h (tty_capable_p): New function declaration.
377 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
378 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
379
380 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
381
382 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
383 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
384 (Vwrite_region_annotate_functions): Docstring fix.
385
386 2002-05-23 Kim F. Storm <storm@cua.dk>
387
388 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
389 phys_cursor's hpos is overwritten. This is still not completely
390 correct, as it doesn't really make sense to use hpos at all to
391 get the cursor glyph (as that is relative to the width of the
392 characters on the line, which may have changed during the update).
393
394 2002-05-22 Jason Rumney <jasonr@gnu.org>
395
396 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
397 Lisp_Object.
398 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
399 Use modified enumfont_t struct.
400
401 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
402
403 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
404 Handle the `hbar' cursor type.
405 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
406
407 * w32fns.c (Qhbar): New variable.
408 (x_specified_cursor_type): Use it.
409
410 2002-05-21 Ken Raeburn <raeburn@gnu.org>
411
412 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
413 now, when the address is needed.
414
415 2002-05-21 Colin Walters <walters@gnu.org>
416
417 * Makefile.in (shortlisp): Add font-core.el.
418
419 2002-05-20 Richard M. Stallman <rms@gnu.org>
420
421 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
422
423 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
424 equivalent key bindings here.
425
426 2002-05-20 Ken Raeburn <raeburn@gnu.org>
427
428 Change symbol structure to contain a lisp object for the symbol
429 name:
430 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
431 object field named "xname".
432 (SYMBOL_NAME): New macro.
433 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
434 name field.
435 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
436 (mark_object, gc_sweep): Use symbol xname field and XSTRING
437 instead of name field.
438 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
439 SYMBOL_NAME instead of XSYMBOL and name field.
440 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
441 instead of XSYMBOL and name field.
442 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
443 and SYMBOL_NAME instead of XSYMBOL and name field.
444 * coding.c (Fread_coding_system, code_convert_region1)
445 (code_convert_string1, code_convert_string_norecord)
446 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
447 XSYMBOL and name field.
448 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
449 (Fmake_variable_buffer_local, Fmake_local_variable)
450 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
451 of XSYMBOL and name field.
452 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
453 XSYMBOL and name field.
454 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
455 instead of XSYMBOL and name field.
456 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
457 XSYMBOL and name field.
458 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
459 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
460 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
461 instead of XSYMBOL and name field.
462 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
463 (parse_modifiers, apply_modifiers, Fevent_convert_list)
464 (parse_solitary_modifier, Fexecute_extended_command):
465 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
466 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
467 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
468 of XSYMBOL and name field.
469 (describe_command, describe_translation): Use SYMBOL_NAME and
470 assignment instead of XSYMBOL and name field and XSETSTRING.
471 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
472 instead of XSYMBOL and name field.
473 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
474 name field and XSETSTRING.
475 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
476 of XSYMBOL and name field.
477 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
478 assignment instead of XSYMBOL and name field and XSETSTRING.
479 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
480 XSTRING instead of XSYMBOL and name field.
481 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
482 and XSTRING instead of XSYMBOL and name field.
483 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
484 and XSTRING instead of XSYMBOL and name field.
485 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
486 XSTRING instead of XSYMBOL and name field.
487 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
488 of XSYMBOL and name field.
489 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
490 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
491
492 2002-05-19 Ken Raeburn <raeburn@gnu.org>
493
494 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
495 and XCDR real rvalues in most configurations.
496
497 * buffer.c (fix_overlays_in_range, fix_overlays_before):
498 Don't take the address of the cdr part of a cons cell; instead, track
499 the parent cell and call XSETCDR, or set the variable for the head
500 of the list if we haven't started down the list yet.
501
502 2002-05-19 Richard M. Stallman <rms@gnu.org>
503
504 * doc.c (reread_doc_file): Don't ask for confirmation.
505
506 2002-05-18 Jason Rumney <jasonr@gnu.org>
507
508 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
509 (xbm_load_image): Use it.
510 (xbm_load): Ditto.
511 (xbm_read_bitmap_data): Reverted to xfns.c version.
512 From David Ponce <david@dponce.com>.
513
514 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
515
516 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
517 2.02 and later.
518
519 2002-05-16 Juanma Barranquero <lektu@terra.es>
520
521 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
522
523 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
524
525 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
526 meaningful test.
527 (read_char_minibuf_menu_prompt): Fix typo.
528
529 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
530
531 * eval.c (Fcommandp): Doc fix.
532
533 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
534
535 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
536 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
537 (Fset_keymap_parent): Gcpro a bit more.
538 (access_keymap): Gcpro around meta_map call and around the main loop.
539 (get_keyelt): Gcpro when following indirect references.
540 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
541 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
542 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
543 Remove useless ad-hoc remap code.
544
545 2002-05-13 Richard M. Stallman <rms@gnu.org>
546
547 * search.c (search_buffer): Give up boyer moore search if inverse
548 translation change charset_base.
549
550 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
551
552 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
553 characters is carried over from the previous block of text, adjust
554 coding->produced to account for the extra character.
555
556 2002-05-11 Andreas Schwab <schwab@suse.de>
557
558 * coding.c (intersection): Keep the elements of the returned list
559 in the same order as in the first list.
560
561 2002-05-11 Kim F. Storm <storm@cua.dk>
562
563 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
564 only update cmm_size if realloc actually succeeds.
565 Testing with initial size of 2 elements revealed that using
566 realloc on GNU/Linux would cause a random trap in xmalloc
567 later on, so I rewrote the code to use malloc/bcopy/free instead
568 of realloc.
569
570 2002-05-10 Jason Rumney <jasonr@gnu.org>
571
572 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
573
574 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
575
576 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
577 parens, to ensure correct evaluation order.
578
579 2002-05-10 Kim F. Storm <storm@cua.dk>
580
581 * keymap.c (Vemulation_mode_map_alists): New variable.
582 (syms_of_keymap): DEFVAR_LISP it.
583 (current_minor_maps): Process keymap alists in that list before
584 minor-mode-overriding-map-alist and minor-mode-map-alist.
585
586 2002-05-09 Richard M. Stallman <rms@gnu.org>
587
588 * search.c (Freplace_match): Doc fix.
589
590 2002-05-09 Kim F. Storm <storm@cua.dk>
591
592 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
593 Enlarge cursor rectangle drawn around image with non-zero relief.
594
595 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
596 Enlarge cursor rectangle drawn around image with non-zero relief.
597
598 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
599 Enlarge cursor rectangle drawn around image with non-zero relief.
600
601 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
602
603 * xselect.c (lisp_data_to_selection_data): Don't set selection
604 type if comes from the Lisp object's car. If the selection
605 contains a pure ASCII text, always return QSTRING as its type.
606
607 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
608
609 * mac.c (mac-cut-function): Doc fix.
610
611 2002-05-05 Richard M. Stallman <rms@gnu.org>
612
613 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
614
615 2002-05-04 Jason Rumney <jasonr@gnu.org>
616
617 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
618 for event-click-count.
619
620 * process.c (init_process): Only add server subfeature if we can
621 use non-blocking I/O.
622
623 2002-05-04 Andrew Choi <akochoi@shaw.ca>
624
625 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
626 repeatedly.
627
628 2002-05-03 Jason Rumney <jasonr@gnu.org>
629
630 * process.c (Fmake_network_process): Only support server sockets
631 when we can make them non-blocking.
632
633 * s/ms-w32.h (HAVE_SELECT): Define.
634
635 * w32.h (FILE_NDELAY): New flag.
636
637 * w32.c (sys_getpeername, fcntl): New functions.
638 (_sys_read_ahead): Temporarily block on non-blocking sockets.
639
640 * w32proc.c: include sys/file.h.
641
642 2002-05-03 Colin Walters <walters@verbum.org>
643
644 * callproc.c (Vgame_score_directory): Renamed to
645 Vshared_game_score_directory.
646
647 2002-04-30 Richard M. Stallman <rms@gnu.org>
648
649 * s/gnu.h [emacs]: Include stdio.h.
650 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
651
652 * eval.c (do_autoload): Error if called while preparing to dump.
653
654 * fns.c (Frequire): Error if need to load while preparing to dump.
655
656 2002-04-28 Colin Walters <walters@verbum.org>
657
658 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
659 Default to "~/.emacs.d/games".
660
661 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
662
663 * lread.c (openp): Change arg exec_only to predicate.
664 (build_load_history): Use XCAR/XCDR.
665 (Flocate_file_internal): New fun.
666 (syms_of_lread): Defsubr it.
667 (Fload): Update call to openp.
668
669 * lisp.h (openp): Update prototype.
670
671 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
672 * w32proc.c (sys_spawnve):
673 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
674 * w32.c (check_windows_init_file):
675 * sound.c (Fplay_sound_internal):
676 * process.c (Fstart_process):
677 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
678 * mac.c (run_mac_command):
679 * emacs.c (init_cmdargs):
680 * callproc.c (Fcall_process): Update call to openp.
681
682 * textprop.c (remove_properties): Don't use XCAR without CONSP.
683
684 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
685
686 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
687
688 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
689 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
690
691 2002-04-28 Richard M. Stallman <rms@gnu.org>
692
693 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
694
695 * eval.c (Fcommandp): New arg for_call_interactively.
696 * lisp.h (Fcommandp): Declare new arg.
697
698 2002-04-28 Jason Rumney <jasonr@gnu.org>
699
700 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
701
702 * w32.c (stat, fstat): Use file index information to generate
703 inodes for directories where available.
704
705 2002-04-26 Andrew Choi <akochoi@shaw.ca>
706
707 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
708 [HAVE_CARBON]: Include Mac object files.
709
710 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
711 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
712 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
713 MAC_OSX, and MAC_OS instead of macintosh.
714
715 * editfns.c [MAC_OS8]: Include stdio.h.
716
717 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
718
719 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
720 Apple Monaco.
721
722 * process.c: Declare QCfamily and QCfilter as extern.
723 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
724 calling select.
725
726 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
727
728 * tparam.c [MAC_OSX]: Don't define BC and UP.
729
730 * config.in [HAVE_CARBON]: Add.
731
732 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
733 Move here from mac/src and mac/inc.
734
735 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
736
737 2002-04-26 Gerd Moellmann <gerd@gnu.org>
738
739 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
740 Compute phys_cursor_width from the x position returned
741 by x_draw_glyhs, which is cheaper.
742 (x_display_and_set_cursor): Compute the buffer-local value
743 of `cursor-in-non-selected-windows' only when needed.
744
745 2002-04-25 Gerd Moellmann <gerd@gnu.org>
746
747 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
748 cursor on a stretch glyph has a width that depends on
749 x_stretch_cursor_p.
750
751 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
752
753 * abbrev.c (abbrev-start-location): Doc fix.
754
755 * indent.c (Fvertical_motion): Fix last change.
756
757 2002-04-25 Gerd Moellmann <gerd@gnu.org>
758
759 * indent.c (Fvertical_motion): Move to the start of the line
760 containing PT before moving up or down.
761
762 2002-04-24 Gerd Moellmann <gerd@gnu.org>
763
764 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
765 case of writing a whole row, more or less analogous to the case of
766 writing only parts of a row.
767
768 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
769 0 for NO_CURSOR.
770
771 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
772
773 2002-04-23 Colin Walters <walters@verbum.org>
774
775 * buffer.c (syms_of_buffer): Doc fix.
776
777 2002-04-23 Gerd Moellmann <gerd@gnu.org>
778
779 * xterm.c (notice_overwritten_cursor): Handle the special case
780 of the cursor being in the first blank non-text line at the
781 end of a window.
782
783 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
784 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
785 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
786 bar cursors only, to make phys_cursor_width contain what its name
787 suggests.
788 (notice_overwritten_cursor): Consider the cursor image erased if
789 the output area intersects the cursor image in y-direction.
790
791 2002-04-23 Simon Marshall <simon@gnu.org>
792
793 * xfns.c (x_set_mouse_color): Change default for cross_cursor
794 to XC_hand2.
795
796 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
797
798 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
799
800 2002-04-22 Kim F. Storm <storm@cua.dk>
801
802 * textprop.c (remove_properties): Fixed trap for malformed plist.
803
804 2002-04-22 Richard M. Stallman <rms@gnu.org>
805
806 * cmds.c (Fend_of_line): Handle intangible text in mid line.
807
808 * window.c (make_window): Initialize height_fixed_p,
809 last_cursor_off_p, and p->cursor_off_p slots.
810
811 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
812
813 * fns.c (use-dialog-box): Doc fix.
814
815 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
816
817 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
818 variables `row', `i' and `area'.
819 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
820 toolkit library.
821
822 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
823
824 * xfaces.c (clear_font_table): Don't free the default font of
825 a frame even if it's on another display.
826 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
827 that could be Qt.
828
829 2002-04-19 Juanma Barranquero <lektu@terra.es>
830
831 * indent.c (Fmove_to_column): Remove unused local variable
832 `next_boundary_byte'.
833 (current_column_1): Likewise.
834
835 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
836
837 * msdos.c (Qhbar): New variable.
838 (syms_of_msdos): Intern and staticpro it.
839 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
840 cursor type.
841
842 2002-04-19 Dave Lambert <dlambert@acm.org>
843
844 Theses change implement an underscore-like (`hbar') cursor.
845
846 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
847
848 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
849 Handle the `hbar' cursor type.
850 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
851
852 * xfns.c (Qhbar): New variable.
853 (syms_of_xfns): Intern and staticpro it.
854 (x_specified_cursor_type): Handle `hbar' cursor.
855
856 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
857 not defined.
858
859 2002-04-18 Richard M. Stallman <rms@gnu.org>
860
861 * textprop.c (remove_properties): New arg LIST allows scanning
862 either a list or a plist.
863 (interval_has_some_properties_list): New function, like
864 interval_has_some_properties using list instead of plist.
865 All callers changed.
866 (Fremove_list_of_text_properties): New function.
867 (syms_of_textprop): Defsubr it.
868
869 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
870
871 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
872
873 2002-04-17 Juanma Barranquero <lektu@terra.es>
874
875 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
876
877 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
878
879 * window.c (coordinates_in_window): Don't report on margin area
880 if its width is zero.
881
882 2002-04-16 Jason Rumney <jasonr@gnu.org>
883
884 * w32fns.c (Fx_file_dialog): Decode file name before using.
885
886 * w32term.c (construct_drag_n_drop): Likewise.
887
888 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
889
890 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
891 store load-history in pure space.
892
893 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
894
895 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
896
897 * xterm.c (Qlatin_1, Qutf_8): New vars.
898 (syms_of_xterm): Initialize them.
899 (XTread_socket): Eliminate incorrect optimization that tried to avoid
900 decoding the output of X*LookupString.
901 Always use latin-1 to decode the output of XLookupString.
902 Try Xutf8LookupString if XmbLookupString failed.
903
904 * region-cache.c (new_region_cache): Use BEG.
905
906 2002-04-16 Gerd Moellmann <gerd@gnu.org>
907
908 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
909 configuration files.
910 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
911 returns 0.
912
913 2002-04-15 Andreas Schwab <schwab@suse.de>
914
915 * config.in: Regenerated using autoheader.
916
917 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
918 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
919 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
920 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
921 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
922 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
923 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
924 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
925 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
926 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
927 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
928 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
929 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
930 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
931 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
932 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
933 STACK_DIRECTION, now set by autoconf.
934
935 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
936
937 * dispnew.c (marginal_area_string): Sort arguments.
938
939 * dispextern.h (marginal_area_string): Add prototype.
940
941 2002-04-13 Richard M. Stallman <rms@gnu.org>
942
943 * fileio.c (Finsert_file_contents):
944 Don't call temp_output_buffer_setup--do just part, by hand.
945
946 * coding.c (run_pre_post_conversion_on_str):
947 Don't call temp_output_buffer_setup--do just part, by hand.
948
949 * keyboard.c (command_loop_1): Don't call start_hourglass
950 or cancel_hourglass when executing a macro.
951
952 * marker.c (count_markers): New function.
953
954 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
955 grow without limit. Move recently used elements to the front.
956
957 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
958
959 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
960
961 2002-04-12 Gerd Moellmann <gerd@gnu.org>
962
963 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
964 rows marginal areas.
965 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
966 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
967
968 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
969
970 2002-04-12 Dave Love <fx@gnu.org>
971
972 * dispnew.c (marginal_area_string): New.
973
974 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
975 (Qleft_margin, Qright_margin): Declare.
976 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
977
978 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
979 note_mode_line_highlight and extended.
980
981 * keyboard.c (Qleft_margin, Qright_margin): Declare.
982 (make_lispy_event): Deal with mouse events in margins.
983
984 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
985
986 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
987
988 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
989 than deactivating the mark if tmm is set to `lambda'.
990 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
991 Use a single event for HELP_EVENT.
992 (Fexecute_extended_command): Save last_point_position.
993
994 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
995
996 * lisp.h (Fpropertize): Add prototype.
997
998 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
999
1000 2002-04-10 Colin Walters <walters@verbum.org>
1001
1002 * config.in: Add HAVE_SHARED_GAME_DIR.
1003
1004 * callproc.c: (Vgame_score_directory): New variable.
1005 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
1006
1007 2002-04-10 Richard M. Stallman <rms@gnu.org>
1008
1009 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
1010
1011 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
1012
1013 * minibuf.c (read_minibuf): Use empty_string.
1014 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
1015 Short-circuit the search as soon as it "failed".
1016 (Fall_completions): Allow lambda forms and lists of strings for alist.
1017 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
1018 when require_match is nil.
1019 (Ftest_completion): Rename from `test_completion' and export to elisp.
1020 Call the predicate also when alist is a list.
1021 Obey Vcompletion_regexp_list.
1022 (do_completion, Fminibuffer_complete_and_exit): Use it.
1023 (Fassoc_string): Rename from `assoc_for_completion'.
1024 Allow list of strings as well and export to elisp.
1025
1026 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
1027
1028 * puresize.h (BASE_PURESIZE): Increase to 900KB.
1029
1030 2002-04-08 Juanma Barranquero <lektu@terra.es>
1031
1032 * w32.c (sys_accept): Don't hide variable `s'.
1033
1034 2002-04-05 Gerd Moellmann <gerd@gnu.org>
1035
1036 * callint.c (Fcall_interactively): Use INTEGERP instead of
1037 NUMBERP for checking Vhistory_length.
1038
1039 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1040
1041 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
1042 Doc fix to reflect it.
1043
1044 2002-04-04 Richard M. Stallman <rms@gnu.org>
1045
1046 * xdisp.c (display_mode_element): New arg RISKY.
1047 Disregard text props found or specified within a variable
1048 that isn't marked risky-local-variable.
1049 (Qrisky_local_variable): New variable.
1050 (syms_of_xdisp): Init and staticpro it.
1051
1052 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
1053
1054 * undo.c (record_point): New fun.
1055 (record_delete, record_insert): Use it.
1056
1057 2002-04-03 Juanma Barranquero <lektu@terra.es>
1058
1059 * doc.c (Fdocumentation): Add missing parentheses.
1060 (Fdocumentation_property): Likewise.
1061
1062 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
1063
1064 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
1065 data is 0, just return nil.
1066
1067 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
1068
1069 * msdos.c (syms_of_msdos): Fix last change with
1070 mouse_autoselect_window.
1071
1072 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1073
1074 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
1075 mouse_autoselect_window.
1076
1077 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
1078
1079 * keyboard.c (make_lispy_event): Handle unknown keysyms together
1080 with system-specific keysyms. Use it also for unknown function keys.
1081
1082 * doc.c (reread_doc_file): Return whether reload was attempted.
1083 (Fdocumentation, Fdocumentation_property): Don't try to reload
1084 if the doc is 0 and only ask once.
1085
1086 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
1087
1088 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
1089
1090 * keyboard.c (read_char): If the event was Qselect_window,
1091 restore timer_idleness_start_time to its previous value.
1092
1093 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
1094
1095 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
1096
1097 * region-cache.c (new_region_cache): Use BEG.
1098
1099 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
1100 Use BEG and BEG_BYTE.
1101
1102 * doc.c (get_doc_string): Return nil if the location is wrong.
1103 (reread_doc_file): New fun.
1104 (Fdocumentation, Fdocumentation_property):
1105 Call it if get_doc_string fails.
1106 (Fsnarf_documentation): Make it work for a dumped Emacs.
1107
1108 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
1109 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
1110
1111 * charset.c (Fstring): Allow 0 arguments.
1112
1113 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
1114
1115 * process.c (DATAGRAM_CONN_P, list_processes_1)
1116 (Fprocess_datagram_address, Fset_process_datagram_address)
1117 (Fset_network_process_options, server_accept_connection):
1118 Fix some int/Lisp_Object confusions (thank you union types).
1119
1120 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1121
1122 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
1123
1124 * w32term.c: Likewise.
1125 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
1126
1127 * keyboard.c (Qselect_window): New symbol.
1128 (head_table): Use it.
1129 (keys_of_keyboard): Bound select-window event to handle-select-window.
1130 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
1131
1132 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
1133 (last_window): New variable.
1134 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
1135 (note_mouse_movement): Remove reimplemented code in #if 0.
1136 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
1137 Emacs windows.
1138
1139 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
1140
1141 2002-03-31 Gerd Moellmann <gerd@gnu.org>
1142
1143 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
1144 Callers changed.
1145
1146 2002-03-30 Richard M. Stallman <rms@gnu.org>
1147
1148 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
1149 loop whenever it stops making progress.
1150
1151 * widget.c (set_frame_size): Don't call change_frame_size.
1152
1153 2002-03-30 Gerd Moellmann <gerd@gnu.org>
1154
1155 * dispnew.c (direct_output_for_insert):
1156 Call mark_window_display_accurate.
1157
1158 2002-03-29 Jason Rumney <jasonr@gnu.org>
1159
1160 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
1161
1162 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1163
1164 * Makefile.in (lread.o): Depend on coding.h.
1165
1166 * lread.c (openp, Fload): Encode the file name before passing it
1167 to `stat', `access', and `emacs_open'.
1168 (openp): GCPRO the encoded file name. Don't recompute Lisp
1169 strings unnecessarily.
1170
1171 2002-03-29 Kim F. Storm <storm@cua.dk>
1172
1173 * fns.c (Flax_plist_put): Doc fix.
1174
1175 2002-03-28 Miles Bader <miles@gnu.org>
1176
1177 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
1178
1179 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1180
1181 * process.c (set-network-process-options): Add usage.
1182 (make-network-process): Doc fix.
1183
1184 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1185
1186 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
1187
1188 2002-03-26 Richard M. Stallman <rms@gnu.org>
1189
1190 * fns.c (Fsubstring_no_properties): New function.
1191 (Flax_plist_get, Flax_plist_put): New functions.
1192 (syms_of_fns): defsubr them.
1193
1194 * xdisp.c (update_menu_bar): Test only update_mode_lines;
1195 don't test or alter w->update_mode_line.
1196
1197 * window.c (Fdisplay_buffer): Doc fix.
1198
1199 2002-03-24 Richard M. Stallman <rms@gnu.org>
1200
1201 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
1202
1203 2002-03-24 Gerd Moellmann <gerd@gnu.org>
1204
1205 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
1206 (Fdefmacro): Handle `(declare ...)'.
1207 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
1208 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
1209
1210 2002-03-24 Jason Rumney <jasonr@gnu.org>
1211
1212 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
1213 (xbm_file_p): Add prototypes.
1214 (xbm_format, xbm_image_p): Sync with xfns.c.
1215 (reflect_byte): New function.
1216 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
1217 (xbm_load_image): Create bitmaps with a depth of 1.
1218 (init_xfns): Enable XBM images.
1219
1220 2002-03-23 Jason Rumney <jasonr@gnu.org>
1221
1222 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
1223 correctly. Do not pass up_modifier to keyboard buffer.
1224
1225 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
1226
1227 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
1228
1229 * Makefile.in (bootstrapclean): New target.
1230 (bootstrap-temacs, bootstrap-doc): Remove.
1231 (bootstrap-emacs): Use a bog-standard `temacs'.
1232 Don't bother to build a DOC file.
1233
1234 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
1235
1236 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
1237 in temacs even if !CANNOT_DUMP.
1238 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
1239
1240 * alloc.c (check_pure_size): Only output a warning.
1241
1242 2002-03-22 Jason Rumney <jasonr@gnu.org>
1243
1244 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
1245 supported.
1246
1247 * w32term.c (zv_bits): Declare as short, for word alignment.
1248 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
1249 (syms_of_w32term): Define x-use-underline-position-properties.
1250
1251 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
1252 (clear_image_cache): Block input, fix logic, clear matrices in
1253 all frames that share this cache.
1254
1255 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
1256
1257 * emacs.c (main): Update the Copyright year in the blurb printed
1258 by "emacs --version".
1259
1260 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
1261
1262 * xterm.c (XTread_socket): If XK_ISO_Lock and
1263 XK_ISO_Last_Group_Lock are defined, handle keysyms between
1264 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
1265
1266 2002-03-21 Kim F. Storm <storm@cua.dk>
1267
1268 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
1269 menu-bar bindings in keymap and local-map properties _are_ used.
1270 But try keymap property first in accordance with 2002-01-03 patch.
1271 Added comment describing why this is not always reliable.
1272 (tool_bar_items): Ditto for tool-bar.
1273
1274 2002-03-21 Jason Rumney <jasonr@gnu.org>
1275
1276 * w32fns.c (x_clear_image_1): Disable color table code.
1277
1278 2002-03-21 Kim F. Storm <storm@cua.dk>
1279
1280 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
1281 removed the wrong version of the DEFUN macro; fixed it.
1282
1283 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
1284 Fmember rather than Fmemq).
1285 (Fprovide): Check that subfeatures is a list.
1286
1287 * process.c (QCfeature, QCdatagram): Removed variables.
1288 (QCtype, Qdatagram): New variables.
1289 (network_process_featurep): Removed function.
1290 (Fmake_network_process): Removed :feature check.
1291 Use :type 'datagram instead of :datagram t to create a datagram
1292 socket. This allows us to add other connection types (e.g. raw
1293 sockets) later in a consistent manner.
1294 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
1295 supported subfeatures for feature make-network-process.
1296 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
1297 Intern and staticpro QCtype and Qdatagram.
1298 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
1299
1300 * xfns.c: (QCtype): Remove duplicate declaration and
1301 initialization (is now declared in process.c).
1302
1303 * w32fns.c: (QCtype): Remove duplicate declaration and
1304 initialization (is now declared in process.c).
1305
1306 2002-03-21 Richard M. Stallman <rms@gnu.org>
1307
1308 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
1309 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
1310 when jumping to `fail' to avoid undoing reg changes in the
1311 last iteration of the loop.
1312 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
1313
1314 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
1315 Depend on process.h.
1316
1317 2002-03-20 Jason Rumney <jasonr@gnu.org>
1318
1319 Most of the following changes are still conditional on HAVE_IMAGES
1320 which is not set by default on Windows.
1321
1322 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
1323
1324 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
1325 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
1326 (four_corners_best, x_clear_image_1, x_clear_image)
1327 (x_alloc_image_color, postprocess_image)
1328 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
1329 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
1330 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
1331
1332 * w32gui.h (struct XImage): Define.
1333
1334 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
1335 extract mouse co-ordinates.
1336
1337 2002-03-20 Jason Rumney <jasonr@gnu.org>
1338
1339 * w32.c (init_winsock): Dynamically load new server and UDP
1340 socket functions.
1341 (socket_to_fd): New function.
1342 (sys_socket): Use it.
1343 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
1344 (sys_recvfrom, sys_sendto): New wrapper functions.
1345
1346 * process.c (QCfamily, QCfilter): Remove duplicate declaration
1347 and initialization.
1348
1349 * makefile.w32-in (LIBS): Remove $(WSOCK32).
1350
1351 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
1352
1353 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
1354 use "sun" as a variable, it's a predefined constant on Sun
1355 machines.
1356
1357 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1358
1359 * bytecode.c (Fbyte_code): Revert last change.
1360
1361 2002-03-19 Kim F. Storm <storm@cua.dk>
1362
1363 * makefile.w32-in (LIBS): Add $(WSOCK32).
1364 From David Ponce <dponce@voila.fr>.
1365
1366 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1367
1368 * process.c (wait_reading_process_input): Move variables `pname'
1369 and `pnamelen' down where they are used.
1370
1371 * bytecode.c (Fbyte_code): Discard unused computed value to
1372 prevent gcc warning.
1373
1374 * lisp.h (Fplist_member): Add prototype.
1375
1376 2002-03-18 Kim F. Storm <storm@cua.dk>
1377
1378 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
1379 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
1380 HAVE_SYS_UN_H.
1381
1382 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
1383 Remove explicit GNU_LINUX settings for datagram support.
1384
1385 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1386
1387 * process.c (Fmake_network_process): Remove unused variable `sa'.
1388 Doc fix. Add usage:.
1389 (set_socket_options): Remove unused variables `optnum' and
1390 `opttype'.
1391
1392 2002-03-17 Richard M. Stallman <rms@gnu.org>
1393
1394 * xdisp.c (cursor_type_changed): New variable.
1395 (redisplay_internal): Redisplay all windows if cursor_type_changed.
1396 Clear it when clearing windows_or_buffers_changed.
1397 (try_cursor_movement, redisplay_window, try_window_id)
1398 (try_window_reusing_current_matrix): Test cursor_type_changed
1399 along with windows_or_buffers_changed.
1400
1401 * window.h (cursor_type_changed): New variable.
1402
1403 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
1404 not update_mode_lines, and always set it to 1.
1405
1406 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
1407 if no frames needed redrawing.
1408
1409 2002-03-17 Kim F. Storm <storm@cua.dk>
1410
1411 The following changes add support for network server processes,
1412 datagram connections, and local (unix) sockets.
1413
1414 * process.h (struct Lisp_Process): New member log.
1415 Doc fix: Member command used to indicate stopped network process.
1416 Doc fix: Member childp contains plist for network process.
1417 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
1418
1419 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
1420 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
1421 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
1422 New variables.
1423 (NETCONN1_P): New macro.
1424 (DATAGRAM_SOCKETS): New conditional symbol.
1425 (datagram_address): New array.
1426 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
1427 (status_message): Use concat3.
1428 (Fprocess_status): Add `listen' status to doc string. Return `stop'
1429 for a stopped network process.
1430 (Fset_process_buffer): Update contact plist for network process.
1431 (Fset_process_filter): Ditto. Don't enable input for stopped
1432 network processes. Server must listen, even if filter is t.
1433 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
1434 New functions.
1435 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
1436 (Fprocess_contact): Added KEY argument. Handle datagrams.
1437 (list_processes_1): Optionally show only processes with the query
1438 on exit flag set. Dynamically adjust column widths. Omit tty
1439 column if not needed. Report stopped network processes.
1440 Identify server and datagram network processes.
1441 (Flist_processes): New optional arg `query-only'.
1442 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1443 (conv_lisp_to_sockaddr, set_socket_options)
1444 (network_process_featurep, unwind_request_sigio): New helper functions.
1445 (Fprocess_datagram_address, Fset_process_datagram_address):
1446 (Fset_network_process_options): New lisp functions.
1447 (Fopen_network_stream): Removed. Now defined in simple.el.
1448 (Fmake_network_process): New lisp function. Code is based on previous
1449 Fopen_network_stream, but heavily reworked with new property list based
1450 argument list, support for datagrams, server processes, and local
1451 sockets in addition to old client-only functionality.
1452 (server_accept_connection): New function.
1453 (wait_reading_process_input): Use it to handle incoming connects.
1454 Do not enable input on a new connection if process is stopped.
1455 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
1456 (send_process): Handle datagram sockets.
1457 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
1458 network process is indicated by setting command field to t .
1459 (Fprocess_send_eof): No-op if datagram connection.
1460 (Fstatus_notify): Don't read input for a stream server socket or a
1461 stopped network process.
1462 (init_process): Initialize datagram_address array.
1463 (syms_of_process): Intern and staticpro new variables, defsubr new
1464 functions.
1465
1466 2002-03-16 Jason Rumney <jasonr@gnu.org>
1467
1468 * w32fns.c (w32_to_all_x_charsets): Return correct type in
1469 startup case.
1470
1471 2002-03-16 Richard M. Stallman <rms@gnu.org>
1472
1473 * xdisp.c (redisplay_internal, redisplay_windows):
1474 Use list_of_error to call internal_condition_case_1.
1475 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
1476 so as to catch all errors with no possibility of debugger redisplay.
1477 (list_of_error): New variable.
1478 (syms_of_xdisp): Init and staticpro it.
1479
1480 * print.c (print_object): Delete `\ ' from printed rep of frame.
1481
1482 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
1483
1484 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
1485 until its implementation is fixed.
1486
1487 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1488
1489 * xfns.c (png_load): Remove unused variable `gamma_str'.
1490
1491 2002-03-14 Richard M. Stallman <rms@gnu.org>
1492
1493 * xfns.c (x_real_positions): Handle failure in XQueryTree.
1494
1495 2002-03-14 Miles Bader <miles@gnu.org>
1496
1497 * intervals.c (adjust_for_invis_intang): New function.
1498 (set_point_both): Use `adjust_for_invis_intang' to do most of the
1499 work for dealing with invisible+intangible regions. Do so before
1500 and after both forward and backward movements, to handle both
1501 front-sticky and rear-sticky cases.
1502 * textprop.c (text_property_stickiness): Function moved here from
1503 `editfns.c'.
1504 * intervals.h (text_property_stickiness): New declaration.
1505 * editfns.c (char_property_eq): Function removed.
1506 (text_property_stickiness): Function moved to `textprop.c'.
1507
1508 2002-03-13 Jason Rumney <jasonr@gnu.org>
1509
1510 * config.in: Add STRFTIME_NO_POSIX2.
1511
1512 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
1513 and %OX when underlying strftime does not.
1514
1515 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
1516
1517 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
1518 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
1519 line) to avoid annoying flicker.
1520 (xm_scroll_callback): Get rid of the now unnecessary kludge.
1521 (XTread_socket): Mark it static.
1522
1523 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
1524
1525 2002-03-13 Kim F. Storm <storm@cua.dk>
1526
1527 * puresize.h (BASE_PURESIZE): Increase to 775000.
1528
1529 2002-03-12 Juanma Barranquero <lektu@terra.es>
1530
1531 * editfns.c (syms_of_editfns): Fix typo.
1532
1533 2002-03-12 Gerd Moellmann <gerd@gnu.org>
1534
1535 * xsmfns.c: Include stdio.h because termhooks.h needs it.
1536 Include termopt.h for interrupt_input.
1537
1538 2002-03-11 Andreas Schwab <schwab@suse.de>
1539
1540 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
1541
1542 2002-03-11 Gerd Moellmann <gerd@gnu.org>
1543
1544 * xterm.c (note_mouse_movement): Put code for
1545 x_autoselect_window_p in #if 0.
1546
1547 * lread.c (Fload): Don't assume that message_with_string uses the
1548 string it is given like a C string.
1549
1550 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1551
1552 * xterm.h (x_session_check_input, x_session_initialize): Declared.
1553
1554 * xterm.c: (XTread_socket): Add call to x_session_check_input and
1555 x_session_have_connection.
1556 (x_initialize): Add call to x_session_initialize.
1557
1558 * termhooks.h (enum event_kind): Add save_session_event.
1559
1560 * keyboard.c: Add Emacs event save_session_event.
1561
1562 * emacs.c (main): Add call to syms_of_xsmfns.
1563
1564 * lisp.h: Declare syms_of_xsmfns as extern.
1565
1566 * config.in: Add HAVE_X_SM.
1567
1568 * Makefile.in (LIBXT): Add -lSM -lICE
1569 if HAVE_X_SM and not USE_X_TOOLKIT.
1570 (XOBJ): New file xsmfns.c added.
1571
1572 * xsmfns.c: New file for X session management.
1573
1574 2002-03-09 Jason Rumney <jasonr@gnu.org>
1575
1576 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
1577 read-only when setting modified time.
1578
1579 2002-03-08 Gerd Moellmann <gerd@gnu.org>
1580
1581 * xdisp.c (move_it_vertically_backward): At the end of the
1582 function, when moving forward by lines, treat terminal frames
1583 specially.
1584
1585 * keyboard.c (echo_char): Make sure to add a separator between
1586 keys even if echo_dash hasn't been called.
1587
1588 * xdisp.c: Use new string macros.
1589 (update_echo_area): Pass number of bytes to message3 instead of
1590 number of chars.
1591 (set_message_1): Don't access a string's size_byte directly.
1592 (decode_mode_spec_coding): Use number of bytes of eoltype string
1593 instead number of chars.
1594
1595 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
1596
1597 2002-03-08 Juanma Barranquero <lektu@terra.es>
1598
1599 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
1600 24-bit.
1601
1602 2002-03-06 Jason Rumney <jasonr@gnu.org>
1603
1604 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
1605
1606 2002-03-06 Gerd Moellmann <gerd@gnu.org>
1607
1608 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
1609 (cancel_echoing, echo_length, echo_truncate): Changed to
1610 work with new kboard definition.
1611 (echo_now): Use message3_nolog instead of message2_nolog.
1612
1613 * alloc.c (mark_kboards): Mark echo_string.
1614
1615 * keyboard.h (ECHOBUFSIZE): Removed.
1616 (struct kboard): Member echoptr removed, member echobuf renamed
1617 to echo_string.
1618
1619 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
1620 message3 instead of message2 to display the message using STRING's
1621 text properties.
1622
1623 2002-03-05 Andreas Schwab <schwab@suse.de>
1624
1625 * xdisp.c (hscroll_margin): Change to EMACS_INT.
1626
1627 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
1628
1629 * frame.c (default-frame-alist): Explain that setting it doesn't
1630 affect existing frames.
1631
1632 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
1633
1634 * indent.c (skip_invisible): Fix my brain fart.
1635
1636 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
1637
1638 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
1639
1640 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
1641 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
1642 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
1643 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
1644 and variables to use EMACS_INT instead of just int.
1645
1646 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
1647
1648 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1649
1650 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
1651 environment, pass it down with corrected value.
1652
1653 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1654
1655 * lread.c (read_filtered_event): Do not call start_hourglass
1656 before returning.
1657
1658 2002-03-04 Juanma Barranquero <lektu@terra.es>
1659
1660 * w32term.c (x_display_and_set_cursor): Fix typo.
1661
1662 2002-03-03 Richard M. Stallman <rms@gnu.org>
1663
1664 * fileio.c (Fmake_temp_name): Doc fix.
1665
1666 2002-03-03 Gary Wong <gtw@gnu.org>
1667
1668 * termcap.c [!emacs]: Replace ospeed for building standalone
1669 libtermcap, for binary compatibility.
1670
1671 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
1672
1673 2002-03-03 Richard M. Stallman <rms@gnu.org>
1674
1675 * xrdb.c (file_p): Rename arg `path' to `filename'.
1676
1677 * abbrev.c (Fexpand_abbrev): Increment plist as use count
1678 only if it is an integer.
1679
1680 * xfns.c (png_load): Set screen_gamma based on f->gamma.
1681 If png_get_sRGB gives an answer, call png_set_gamma
1682 using the default image gamma value.
1683
1684 * lread.c (read1): When reading from a file, default string to
1685 multibyte only if it has some multibyte characters.
1686
1687 * print.c (print_object): Output multibyte chars 128...255
1688 using \x even if ! print_escape_multibyte.
1689
1690 * xdisp.c (display_mode_element): Move the places where
1691 bytepos, charpos, this, and lisp_string are set.
1692 Use lisp_string to set bytepos.
1693
1694 * xdisp.c (redisplay_internal):
1695 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
1696
1697 * xdisp.c (display_mode_element): Merge properties specified with
1698 :propertize onto those that come with the string.
1699
1700 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
1701
1702 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
1703 automatic-hscrolling. Users changed.
1704 <hscroll-margin>: Renamed from automatic-hscroll-margin.
1705 Users changed.
1706 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
1707
1708 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1709
1710 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
1711
1712 2002-03-02 Kim F. Storm <storm@cua.dk>
1713
1714 * window.c (Fminibuffer_selected_window): New function.
1715 (syms_of_window): Defsubr it.
1716
1717 2002-03-01 Kim F. Storm <storm@cua.dk>
1718
1719 * window.h (struct window): New member phys_cursor_width.
1720
1721 * window.c (make_window, replace_window): Init phys_cursor_width.
1722
1723 * xterm.c (x_display_and_set_cursor): Blink box cursor using
1724 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
1725
1726 * w32term.c (x_display_and_set_cursor): Blink box cursor using
1727 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
1728
1729 * lisp.h (GCPRO6): New macro.
1730
1731 * process.c (Fopen_network_stream): Use GCPRO6.
1732
1733 2002-03-01 Kim F. Storm <storm@cua.dk>
1734
1735 * process.c (Qconnect, Qfailed): New variables.
1736 (syms_of_process): Intern and staticpro them.
1737 (Fprocess_status): Document connect and failed return values.
1738 [NON_BLOCKING_CONNECT]: New conditional.
1739 (connect_wait_mask, num_pending_connects): New variables.
1740 (status_message): Convert Qfailed status.
1741 (Fopen_network_stream): Added support for non-blocking connect.
1742 New optional args: filter, sentinel, non_blocking. Doc updated.
1743 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
1744 (deactivate_process): Handle pending non-blocking connect.
1745 (wait_reading_process_input): Poll for status of non-blocking
1746 connects. Exec sentinel directly when connect succeeds.
1747 (status_notify): Don't read process output if not yet connected.
1748
1749 2002-02-28 Kim F. Storm <storm@cua.dk>
1750
1751 * window.c: (minibuf_selected_window): Renamed from
1752 Vminibuf_selected_window. Users changed.
1753 (syms_of_window): Staticpro it.
1754
1755 2002-02-26 Kim F. Storm <storm@cua.dk>
1756
1757 The following changes add a new Vminibuf_selected_window variable
1758 which is similar to Vminibuf_scroll_window, but which is only set
1759 on entry to the minibuffer (from a non-minibuffer window):
1760
1761 * window.c: (Vminibuf_selected_window): New variable.
1762 (struct save_window_data): New member minibuf_selected_window.
1763 (Fset_window_configuration): Restore Vminibuf_selected_window.
1764 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
1765 Set minibuf_scroll_window member to nil if minibuf_level is 0.
1766 (compare_window_configurations): Compare minibuf_selected_window.
1767
1768 * window.h: (Vminibuf_selected_window): Declare extern.
1769
1770 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
1771 entry to minibuffer or on entry from a non-minibuffer window.
1772
1773 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
1774 Vminibuf_selected_window instead of Vminibuf_scroll_window.
1775
1776 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
1777 instead of Vminibuf_scroll_window when deciding in which window
1778 the region should be highlighted. Consequently, the region remains
1779 highlighteded even when a completion buffer is also displayed.
1780
1781 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
1782
1783 * fileio.c (Fsubstitute_in_file_name): Fix the change from
1784 2002-02-08.
1785
1786 * xselect.c (Qcompound_text_with_extensions): Renamed from
1787 Qcompound_text_no_extensions.
1788 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
1789
1790 2002-02-26 Juanma Barranquero <lektu@terra.es>
1791
1792 * w32proc.c (syms_of_ntproc): Doc fix.
1793
1794 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1795
1796 * intervals.h: Include "dispextern.h" unconditionally.
1797
1798 2002-02-24 Jason Rumney <jasonr@gnu.org>
1799
1800 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
1801 and disp-table.elc.
1802 (lisp): Add emacs-lisp/backquote.elc.
1803
1804 2002-02-24 Kim F. Storm <storm@cua.dk>
1805
1806 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
1807 The validation of the event type was too strict as it didn't
1808 allow string events; buffer names are used in bindings for
1809 menu-bar-select-buffer (see `menu-bar-update-buffers').
1810
1811 2002-02-23 Kim F. Storm <storm@cua.dk>
1812
1813 The following changes rework my patch of 2002-02-06 which
1814 added command remapping by entering the commands directly into
1815 the keymaps. Now, command remapping uses an explicit `remap'
1816 prefix in the keymaps, i.e. [remap COMMAND].
1817
1818 * keymap.c (Qremap, remap_command_vector): New variables.
1819 (is_command_symbol): Removed function.
1820 (Fdefine_key): No longer accept a symbol for KEY.
1821 Added validation of [remap COMMAND] argument for KEY.
1822 The DEF is no longer required to be a symbol when remapping a command.
1823 (Fremap_command): New function to remap command through keymaps.
1824 (Flookup_key): Perform command remapping initiated by
1825 Fremap_command directly for speed.
1826 (Fkey_binding): Use Fremap_command for command remapping.
1827 (where_is_internal): Handle new command remapping representation.
1828 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
1829 staticpro them. Defsubr Fremap_command.
1830
1831 * keymap.h (Fremap_command): Declare extern.
1832 (is_command_symbol): Remove extern.
1833
1834 * keyboard.c (command_loop_1): Use Fremap_command for command
1835 remapping; now try command remapping for all symbols.
1836
1837 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
1838
1839 * coding.h (run_pre_post_conversion_on_str): Add prototype.
1840
1841 2002-02-23 Jason Rumney <jasonr@gnu.org>
1842
1843 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
1844 on the string before encoding it.
1845 (Fw32_get_clipboard_data): Run post-read-conversion on the string
1846 after decoding it.
1847
1848 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
1849
1850 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1851
1852 * w32term.c (enter_timestamp): Remove unused static variable to
1853 prevent warning.
1854
1855 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
1856
1857 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
1858
1859 * w16select.c (Fw16_get_clipboard_data): Fix last change.
1860
1861 * xselect.c (selection_data_to_lisp_data): Fix last change.
1862
1863 2002-02-22 Jason Rumney <jasonr@gnu.org>
1864
1865 * w32term.h (struct w32_output): New member menu_command_in_progress.
1866
1867 * w32menu.c (menubar_selection_callback): Free the menu and
1868 clear the menu_command_in_progress flag.
1869
1870 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
1871 (menu_free_timer): New variable.
1872 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
1873 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
1874 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
1875 menu command is in progress.
1876 <WM_COMMAND>: Set the menu_command_in_progress flag.
1877 Kill any menu_free_timer that is running.
1878
1879 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
1880 Call ExtTextOutA rather than ExtTextOut.
1881
1882 2002-02-22 Eli Zaretskii <eliz@gnu.org>
1883
1884 * puresize.h (BASE_PURESIZE): Increase to 755000.
1885
1886 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1887
1888 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
1889 on the string before encoding it.
1890 (Fw16_get_clipboard_data): Run post-read-conversion on the string
1891 after decoding it.
1892
1893 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1894
1895 Support for ICCCM Extended Segments in X selections:
1896
1897 * xselect.c <Qcompound_text_no_extensions>: New variable.
1898 (syms_of_xselect): Intern and staticpro it.
1899 (selection_data_to_lisp_data): Run post-read-conversion on decoded
1900 selection text.
1901 (lisp_data_to_selection_data): If next-selection-coding-system is
1902 compound-text-no-extensions, set the type of selection to be
1903 compound-text.
1904
1905 * xterm.h (x_encode_text): Update prototype.
1906
1907 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
1908 callers changed. If SELECTIONP is non-zero, run the
1909 pre-write-conversion function before encoding the selection text.
1910
1911 2002-02-21 Kim F. Storm <storm@cua.dk>
1912
1913 * frame.c (syms_of_frame): Change mouse-highlight default to t.
1914
1915 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
1916 Correct composing of language-change event.
1917
1918 2002-02-20 Kim F. Storm <storm@cua.dk>
1919
1920 * keyboard.c (menu_bar_items): Don't include keymap or local-map
1921 bindings at PT when building menu (the menu is not updated often
1922 enough for this to work reliable).
1923 (tool_bar_items): Likewise.
1924 (current_active_maps): Removed unused (and buggy) function.
1925
1926 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1927
1928 * xfns.c (gif_load): Use correct width and height for GIF images.
1929
1930 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
1931
1932 * floatfns.c (Fatan): Accept an optional second arg and call
1933 atan2 if passed 2 args.
1934
1935 2002-02-18 Jason Rumney <jasonr@gnu.org>
1936
1937 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
1938
1939 2002-02-17 Jason Rumney <jasonr@gnu.org>
1940
1941 * w32term.c (x_autoselect_window_p): New variable.
1942 (syms_of_w32term): DEFVAR_BOOL and initialize it.
1943 (note_mouse_movement): Use it.
1944
1945 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
1946
1947 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
1948
1949 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1950 New variables.
1951 (syms_of_w32fns): Intern and staticpro them.
1952 (x_frame_parms) <"fullscreen">: New parameter.
1953 (x_fullscreen_move, x_set_fullscreen): New functions.
1954 (x_set_frame_parameters): Support Qfullscreen.
1955 (x_real_positions): Save x/y_pixels_diff frame params.
1956 (x_figure_window_size): Support full-screen frames.
1957 (Fx_create_frame): Default the fullscreen parameter.
1958
1959 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
1960 (x_fullscreen_adjust): New functions.
1961 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
1962 fullscreen. Call x_check_fullscreen_move, and set the
1963 want_fullscreen member of output_data.w32
1964 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
1965
1966 * w32term.h: New enum for FULLSCREEN_* constants.
1967 (struct w32_output): New members want_fullscreen, x_pixels_diff,
1968 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
1969 (x-fullscreen-adjust): New prototype.
1970
1971 2002-02-17 Kim F. Storm <storm@cua.dk>
1972
1973 * frame.c: (Vmouse_highlight): New variable.
1974 (syms_of_frame): DEFVAR_LISP it.
1975
1976 * frame.h: (Vmouse_highlight): Declare extern.
1977
1978 * xterm.h (struct x_display_info): Add mouse_face_hidden.
1979
1980 * xterm.c (disable_mouse_highlight): Removed variable.
1981 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
1982 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1983 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
1984 and on after keyboard input.
1985 (x_term_init): Initialize mouse_face_hidden.
1986
1987 * msdos.h (struct display_info): Add mouse_face_hidden.
1988
1989 * msdos.c (disable_mouse_highlight): Removed variable.
1990 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1991 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
1992 (internal_terminal_init): Initialize mouse_face_hidden.
1993 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
1994 and on after keyboard input.
1995
1996 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
1997
1998 * w32term.c (disable_mouse_highlight): Removed variable.
1999 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
2000 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2001 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
2002 and on after keyboard input.
2003 (w32_initialize_display_info): Initialize mouse_face_hidden.
2004
2005 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
2006
2007 * msdos.c (last_mouse_window): New variable.
2008 (dos_rawgetc): Fix last change--if the mouse is in the same window
2009 as recorded in last_mouse_window, don't select this window.
2010
2011 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
2012
2013 * msdos.c (x_autoselect_window_p): New variable.
2014 (syms_of_msdos): Defvar it.
2015 (dos_rawgetc): If x_autoselect_window_p is set, select the window
2016 in which the last mouse movement occured, unless it is already
2017 selected.
2018
2019 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
2020 New variables.
2021 (syms_of_xdisp): DEVFAR them.
2022 (hscroll_window_tree): Use automatic_hscroll_margin and
2023 Vautomatic_hscroll_step to compute the amount of window scrolling.
2024
2025 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2026
2027 * xterm.c (x-autoselect-window): New variable.
2028 (note_mouse_movement): Use it.
2029
2030 * keyboard.c: Do not include "systime.h" twice.
2031
2032 2002-02-15 Andreas Schwab <schwab@suse.de>
2033
2034 * puresize.h (BASE_PURESIZE): Increase to 9/5.
2035
2036 * alloc.c (NSTATICS): Increase to 1280.
2037
2038 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2039
2040 * alloc.c (NSTATICS): Bump to 1026.
2041
2042 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
2043 (Vx_super_keysym): New variables.
2044 (syms_of_xterm): DEFVAR_LISP them.
2045 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
2046 variables to determine which keys to use for the various modifiers.
2047
2048 2002-02-13 Kim F. Storm <storm@cua.dk>
2049
2050 * window.c: (Vmode_line_in_non_selected_windows): Removed.
2051 (mode_line_in_non_selected_windows): New variable.
2052 (syms_of_window): DEFVAR_BOOL it.
2053
2054 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
2055 Use mode_line_in_non_selected_windows.
2056 (mode_line_in_non_selected_windows): Declare extern.
2057 (Vmode_line_in_non_selected_windows): Removed extern.
2058
2059 2002-02-13 Richard M. Stallman <rms@gnu.org>
2060
2061 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
2062 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
2063 (Fclear_this_command_keys): Doc fixes.
2064
2065 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
2066 (update_face_from_frame_parameter): Increment face_change_count
2067 and windows_or_buffers_changed to force redisplay using changed faces.
2068
2069 * xdisp.c (QCpropertize): New variable.
2070 (mode_line_proptrans_alist): New variable.
2071 (display_mode_element): New arg PROPS; all calls changed.
2072 Implement this, for strings.
2073 Handle literal output of strings by sharing the
2074 main-line code for strings, using local var `literal'.
2075 Handle :propertize feature.
2076 (syms_of_xdisp): Initialze and staticpro QCpropertize and
2077 mode_line_proptrans_alist.
2078
2079 2002-02-11 Kim F. Storm <storm@cua.dk>
2080
2081 * window.c: (Vmode_line_in_non_selected_windows): New variable.
2082 (syms_of_window): DEFVAR_LISP it.
2083
2084 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
2085 (CURRENT_MODE_LINE_FACE_ID): Use it.
2086 (Vmode_line_in_non_selected_windows): Declare extern.
2087
2088 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
2089 to get mode line face.
2090
2091 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
2092
2093 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
2094 variables; cus-start.el doesn't need them anymore.
2095
2096 2002-02-09 Kim F. Storm <storm@cua.dk>
2097
2098 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
2099 reduction. This fixes a display problem where stray newlines were
2100 inserted in the window (corrected by C-l). Clarified code (IMHO).
2101
2102 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
2103
2104 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
2105
2106 * xdisp.c (display_mode_lines): Fix last change.
2107
2108 2002-02-09 Jason Rumney <jasonr@gnu.org>
2109
2110 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
2111 match each other.
2112 (w32_load_system_font): Prevent Cleartype fonts from loading.
2113 (Fx_show_tip): Ensure tip frames are above other topmost windows.
2114
2115 2002-02-09 Kim F. Storm <storm@cua.dk>
2116
2117 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
2118 (CURRENT_MODE_LINE_HEIGHT): Use it.
2119 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
2120
2121 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
2122 (pos_visible_p, handle_face_prop): Likewise.
2123 (display_mode_lines): Likewise, but for the real selected window.
2124 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
2125
2126 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
2127 in non-selected windows.
2128 (realize_basic_faces): Realize it.
2129 (syms_of_term): Intern and staticpro it.
2130
2131 2002-02-08 Kim F. Storm <storm@cua.dk>
2132
2133 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
2134 Changed mail addresses to emacs-devel@gnu.org.
2135
2136 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
2137
2138 * fileio.c (Fsubstitute_in_file_name): If the file name includes
2139 ~user, and there's no such user, don't discard everything before ~user.
2140
2141 * floatfns.c (Fround): Doc fix.
2142
2143 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2144
2145 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
2146
2147 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
2148
2149 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
2150
2151 2002-02-07 Kim F. Storm <storm@cua.dk>
2152
2153 * keymap.c (where_is_internal): Only check whether definition is
2154 remapped if it fulfills is_command_symbol.
2155
2156 2002-02-07 Andreas Schwab <schwab@suse.de>
2157
2158 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
2159
2160 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
2161
2162 2002-02-06 Kim F. Storm <storm@cua.dk>
2163
2164 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
2165 defining command remapping. Doc updated.
2166 (Flookup_key): Remap command through keymap if KEY is a symbol.
2167 (is_command_symbol): New function.
2168 (Fkey_binding): Use it. New optional argument NO-REMAP.
2169 Doc updated. Callers changed. Perform command remapping via
2170 recursive call unless that arg is non-nil.
2171 (where_is_internal): New argument no_remap. Callers changed.
2172 Call recursively to find original key bindings for a remapped
2173 comand unless that arg is non-nil.
2174 (Fwhere_is_internal): New optional argument NO-REMAP.
2175 Doc updated. Callers changed. Pass arg to where_is_internal.
2176
2177 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
2178 (is_command_symbol): Added prototype.
2179
2180 * keyboard.c (Vthis_original_command): New variable.
2181 (syms_of_keyboard): DEFVAR_LISP it.
2182 (command_loop_1): Set it, and perform command remapping.
2183
2184 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2185
2186 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2187
2188 2002-02-06 Jason Rumney <jasonr@gnu.org>
2189
2190 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
2191
2192 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
2193
2194 * charset.c (get_charset_id): Use if-else instead of ?:.
2195
2196 2002-02-06 Richard M. Stallman <rms@gnu.org>
2197
2198 * filelock.c (S_ISLNK): Define if not defined.
2199
2200 2002-02-03 Richard M. Stallman <rms@gnu.org>
2201
2202 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
2203
2204 * lread.c (read1): Redesign strategy for force_multibyte and
2205 force_singlebyte. Now is_multibyte records whether read_buffer
2206 is multibyte. Encountering any multibyte character makes it so.
2207
2208 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
2209
2210 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
2211 with the same sequence, map that sequence to f10 rather than f0.
2212
2213 2002-02-03 Andreas Schwab <schwab@suse.de>
2214
2215 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
2216 latter never being defined on GNU/Linux.
2217
2218 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2219
2220 * xfaces.c (realize_default_face): Don't set the weight and slant
2221 of the default face to Qnormal, unless these attributes are
2222 unspecified.
2223
2224 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2225
2226 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
2227 Call cancel_hourglass unconditionally.
2228
2229 * eval.c (Fsignal): Remove duplicated declaration of
2230 the variable `display_hourglass_p'.
2231
2232 2002-01-31 Richard M. Stallman <rms@gnu.org>
2233
2234 * editfns.c (region_limit): Nicer error message.
2235
2236 * coding.c (decode_composition_emacs_mule):
2237 Give up if NCOMPONENT gets too large to index `component'.
2238
2239 * callint.c (check_mark): New arg to specify clearer error message.
2240 Callers changed.
2241
2242 2002-01-27 Richard M. Stallman <rms@gnu.org>
2243
2244 * minibuf.c (Fcompleting_read): Doc fix.
2245
2246 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2247
2248 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
2249 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
2250 Fix doc-strings.
2251
2252 2002-01-26 Richard M. Stallman <rms@gnu.org>
2253
2254 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
2255
2256 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
2257 and scroll_up_aggressively.
2258
2259 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2260
2261 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
2262
2263 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
2264
2265 * textprop.c (Fnext_property_change, Fnext_single_property_change)
2266 (Fprevious_property_change, Fprevious_single_property_change):
2267 Stay within the narrowed-buffer boundaries.
2268
2269 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2270
2271 * term.c (Ftty_display_color_cells): New function.
2272 (syms_of_term): Defsubr it.
2273 (Ftty_display_color_cells, Ftty_display_color_p): Change the
2274 argument name to DISPLAY. Doc fix.
2275
2276 * dispextern.h: Add prototype for set_tty_color_mode and
2277 tty_setup_colors.
2278
2279 2002-01-24 Jason Rumney <jasonr@gnu.org>
2280
2281 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
2282 If region left to draw is not what was expected, mark the frame as
2283 garbaged.
2284
2285 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
2286 Combine the regions returned by BeginPaint and GetUpdateRect.
2287
2288 2002-01-23 Jason Rumney <jasonr@gnu.org>
2289
2290 * w32term.c (x_update_window_begin): Only hide caret if
2291 w32_use_visible_system_caret is set.
2292 (x_update_window_end): Only show caret if
2293 w32_use_visible_system_caret is set.
2294 (syms_of_w32term): Handle SystemParametersInfo call failing.
2295
2296 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
2297
2298 2002-01-22 Richard M. Stallman <rms@gnu.org>
2299
2300 * unexelf.c (unexec): Define n so as to cause compilation error
2301 for the code where people have often written n instead of nn.
2302
2303 * .gdbinit (hookpost-run): Defined.
2304
2305 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2306
2307 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
2308
2309 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2310
2311 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
2312 if fullscreen is being set.
2313
2314 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2315
2316 * minibuf.c (Fminibuffer_contents)
2317 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
2318 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
2319
2320 2002-01-21 Richard M. Stallman <rms@gnu.org>
2321
2322 * window.c (check_frame_size): Fix minimum height calculation.
2323
2324 2002-01-20 Ken Raeburn <raeburn@gnu.org>
2325
2326 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
2327 height before comparison.
2328 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
2329
2330 2002-01-20 Jason Rumney <jasonr@gnu.org>
2331
2332 * w32term.c (w32_system_caret_width): Remove.
2333 (w32_use_visible_system_caret): New user flag.
2334 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
2335 Windows reports a screen reader running.
2336 (x_update_window_begin): Hide the system caret.
2337 (x_update_window_end): Show the system caret.
2338 (x_display_and_set_cursor): Don't draw a cursor when
2339 w32_use_visible_system_caret is set. Do not adjust width.
2340
2341 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
2342 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
2343 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
2344 the user requests it. Use system default width when creating.
2345 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
2346
2347 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
2348 New window messages.
2349
2350 2002-01-20 Richard M. Stallman <rms@gnu.org>
2351
2352 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
2353
2354 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2355
2356 * doprnt.c (doprnt1): Fix typos in error call.
2357
2358 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2359
2360 * unexelf.c (unexec) [__sgi]: Support the .got sections.
2361
2362 2002-01-20 Jason Rumney <jasonr@gnu.org>
2363
2364 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
2365 that Windows returns. If a double check fails, try to guess how
2366 ExtTextOut is going to act.
2367
2368 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
2369 in place of stricmp.
2370 (w32_list_synthesized_fonts): Removed.
2371 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
2372 (struct enumfont_t): New element; list.
2373 (enum_font_cb2): List all style and charset variations of a font.
2374 (Fw32_select_font): New optional argument; include_proportional.
2375 Exclude vertical fonts. Exclude proportional fonts unless
2376 include_proportional is non-nil.
2377 (w32_enable_synthesized_fonts): Change to a boolean.
2378 (Fw32_send_sys_command): Doc fix.
2379
2380 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2381
2382 * dispnew.c (update_frame): Move the variable `tem' to the block
2383 where it is used.
2384
2385 2002-01-19 Jason Rumney <jasonr@gnu.org>
2386
2387 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
2388 call to face-set-after-frame-default.
2389
2390 2002-01-18 Richard M. Stallman <rms@gnu.org>
2391
2392 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
2393 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
2394
2395 2002-01-17 Richard M. Stallman <rms@gnu.org>
2396
2397 * window.c (enlarge_window): When exceeding size of parent,
2398 directly delete all the siblings instead of trying to resize it.
2399
2400 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2401
2402 * term.c (set_tty_color_mode): Remove unused variable `tem'.
2403
2404 2002-01-16 Henrik Enberg <henrik@enberg.org>
2405
2406 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
2407
2408 2002-01-16 Kim F. Storm <storm@cua.dk>
2409
2410 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
2411 is invisible. This can happen if cursor is on top line of a
2412 window, and we switch to a buffer with a header line.
2413
2414 * w32term.c (x_erase_phys_cursor): Ditto.
2415
2416 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2417
2418 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
2419 `dont_resize' only when used.
2420
2421 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
2422
2423 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
2424
2425 * xdisp.c (display_mode_element): When computing charpos, depend
2426 on multibyteness of elt, not the text in field.
2427
2428 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2429
2430 * buffer.c (Fkill_all_local_variables):
2431 Increment `update_mode_lines' only once.
2432
2433 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2434
2435 * lisp.h (adjust_after_replace_noundo)
2436 (Fupdate_coding_systems_internal): Add prototypes.
2437
2438 * sound.c (Fplay_sound): Initialize header_size also for :data case.
2439
2440 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
2441
2442 Support for the --color command-line argument and tty-color-mode
2443 frame parameter:
2444
2445 * term.c (tty_default_color_capabilities, tty_setup_colors)
2446 (set_tty_color_mode): New functions.
2447 (term_init): Call tty_default_color_capabilities.
2448 (Qtty_color_mode_alist): New variable.
2449 (syms_of_term): Intern and staticpro it.
2450
2451 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
2452 frames.
2453 (do_switch_frame): For termcap frames, switch the tty
2454 color mode as specified by the frame's parameters.
2455 (Qtty_color_mode): New variable.
2456 (syms_of_frame): Intern and staticpro it.
2457
2458 * emacs.c (USAGE2): Add the --color option.
2459 (standard_args): Ditto.
2460
2461 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
2462
2463 * xterm.h (struct x_output): New members want_fullscreen,
2464 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
2465 y_pixels_outer_diff.
2466 New enum for FULLSCREEN_* constants.
2467 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
2468 is NULL.
2469 (x_fullscreen_adjust): Add prototype.
2470
2471 * emacs.c (USAGE2): Add the new full-screen arguments.
2472 (standard_args): Ditto.
2473
2474 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2475 New variables.
2476 (syms_of_xfns): Intern and staticpro them.
2477 (x_frame_parms) <"fullscreen">: New parameter.
2478 (x_fullscreen_move, x_set_fullscreen): New functions.
2479 (x_set_frame_parameters): Support for Qfullscreen.
2480 (x_real_positions): More accurate computation of the frame position.
2481 (x_figure_window_size): Support full-screen frames.
2482 (Fx_create_frame): Default the fullscreen parameter.
2483
2484 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
2485 (XTread_socket) <Expose>: Call x_check_fullscreen.
2486 <ConfigureNotify>: Don't resize to fullscreen.
2487 Call x_check_fullscreen_move, and set the want_fullscreen member of
2488 output_data.x.
2489
2490 2002-01-13 Jason Rumney <jasonr@gnu.org>
2491
2492 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
2493 for mice with more than 3 buttons.
2494
2495 * w32term.c (parse_button): New parameter xbutton. Callers changed.
2496 (w32_read_socket): Handle new "XBUTTON" messages.
2497
2498 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
2499 (syms_of_w32fns): DEFVAR_BOOL it.
2500 (w32_wnd_proc): Handle new "XBUTTON" messages.
2501
2502 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2503
2504 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
2505
2506 2002-01-13 Andreas Schwab <schwab@suse.de>
2507
2508 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
2509
2510 2002-01-12 Andreas Schwab <schwab@suse.de>
2511
2512 * .gdbinit (xbuffer): Remove address operator since data is now a
2513 pointer.
2514
2515 2002-01-11 Richard M. Stallman <rms@gnu.org>
2516
2517 * insdel.c (adjust_after_replace_noundo): New function.
2518
2519 * coding.c (code_convert_region): Don't copy old text if undo disabled.
2520
2521 2002-01-09 Jason Rumney <jasonr@gnu.org>
2522
2523 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
2524 when checking for multiple frames.
2525
2526 2002-01-08 Richard M. Stallman <rms@gnu.org>
2527
2528 * window.c (delete_window): Rewrite the code for changing the
2529 selected window to handle the case where WINDOW is not a leaf.
2530
2531 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
2532
2533 * process.c (send_process): Set src_multibyte to 1 after the call
2534 top setup_coding_system, not before the call.
2535
2536 2002-01-07 Jason Rumney <jasonr@gnu.org>
2537
2538 * xmenu.c (set_frame_menubar, xmenu_show):
2539 (xdialog_show): Initialize wv->help to Qnil.
2540
2541 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
2542 (w32_dialog_show): Initialize wv->help to Qnil.
2543
2544 2002-01-06 Jason Rumney <jasonr@gnu.org>
2545
2546 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
2547
2548 * w32menu.c (w32_menu_display_help): Revert last change.
2549
2550 * xmenu.c (menu_highlight_callback): Revert last change.
2551
2552 2002-01-06 Andreas Schwab <schwab@suse.de>
2553
2554 * insdel.c (make_gap_larger): Make sure buffer size does not
2555 overflow range of int.
2556
2557 2002-01-05 Jason Rumney <jasonr@gnu.org>
2558
2559 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2560 OVERLAPS_P.
2561
2562 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
2563
2564 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
2565 to the left or to the right of the pointer, put it against
2566 the left screen edge.
2567 (x_frame_parms): Add missing braces around initializer.
2568
2569 * w32term.c (x_setup_relief_colors): Don't compute an image's
2570 background color if it doesn't have a Pixmap.
2571 (notice_overwritten_cursor): Don't depend on
2572 output_cursor and updated_area. Compare pixel coordinates with
2573 window's cursor pixel coordinates.
2574 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2575 Call notice_overwritten_cursor with new arg list.
2576 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2577 unconditionally.
2578 (x_draw_image_relief): Use predefined macro instead of
2579 constant when the value of `tool_bar_button_relief' is negative.
2580
2581 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
2582
2583 2002-01-04 Richard M. Stallman <rms@gnu.org>
2584
2585 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
2586
2587 2002-01-03 Richard M. Stallman <rms@gnu.org>
2588
2589 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
2590 (Fkey_binding): Try the `keymap' property map first.
2591 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
2592 minor mode bindings.
2593
2594 2002-01-03 Kim F. Storm <storm@cua.dk>
2595
2596 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
2597
2598 2002-01-02 Richard M. Stallman <rms@gnu.org>
2599
2600 * keyboard.c (read_key_sequence): Handle the keymap property
2601 before minor mode maps.
2602
2603 * editfns.c (Fformat): Update thissize from field_width
2604 based on the actual width, in the string case.
2605
2606 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2607
2608 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
2609 when used as truth value to prevent gcc warnings.
2610
2611 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
2612 * w32proc.c: Include <config.h>.
2613
2614 2002-01-01 Andreas Schwab <schwab@suse.de>
2615
2616 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
2617 not EMACS_INT, to make them compatible with DEFVAR_INT.
2618 * lisp.h (max_specpdl_size): Adjust declaration.
2619
2620 2002-01-01 Richard M. Stallman <rms@gnu.org>
2621
2622 * print.c (print_object): Test print_escape_nonascii only for
2623 unibyte strings.
2624 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
2625 when outputting to a multibyte buffer.
2626
2627 2001-12-29 Richard M. Stallman <rms@gnu.org>
2628
2629 * print.c (print_object): In multibyte string, use hex escapes.
2630 Use octal only for unibyte strings.
2631 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
2632
2633 * lread.c (read_escape): New arg BYTEREP for reporting whether
2634 escape forces unibyte or multibyte.
2635 (read1): When reading a string, take note of that info.
2636
2637 2001-12-29 Ken Raeburn <raeburn@gnu.org>
2638
2639 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
2640 comparison to test lisp value returned by Fget.
2641
2642 2001-12-29 Richard M. Stallman <rms@gnu.org>
2643
2644 * lisp.h (max_specpdl_size): Add declaration.
2645
2646 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
2647
2648 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
2649 Handle modifier bits. Correct typo in error message.
2650
2651 2001-12-28 Richard M. Stallman <rms@gnu.org>
2652
2653 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
2654 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
2655 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2656 Update calls to Fdefine_abbrev.
2657 (write_abbrev): Update for changed data format.
2658 Don't list "system" abbrevs.
2659 (Fexpand_abbrev): Update use count with new data format.
2660 (describe_abbrev): Update for changed data format.
2661 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
2662
2663 * config.in (HAVE_MBSINIT): Add #undef.
2664
2665 * strftime.c (mbsinit): Define as no-op if not available.
2666
2667 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
2668 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
2669
2670 * keymap.c (Flookup_key): Error message if key has wrong data type.
2671 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
2672 (exclude_key): New variable.
2673
2674 2001-12-28 Gerd Moellmann <gerd@gnu.org>
2675
2676 * xterm.c (x_setup_relief_colors): Don't compute an image's
2677 background color if it doesn't have a Pixmap.
2678
2679 * xterm.c (notice_overwritten_cursor): Don't depend on
2680 output_cursor and updated_area. Compare pixel coordinates with
2681 window's cursor pixel coordinates.
2682 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2683 Call notice_overwritten_cursor with new arg list.
2684 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2685 unconditionally.
2686
2687 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
2688 height of the cursor line to the amount to scroll.
2689
2690 2001-12-27 Richard M. Stallman <rms@gnu.org>
2691
2692 * intervals.c (set_point_both): The position after an invisible,
2693 intangible character is not an acceptable stopping point.
2694
2695 2001-12-27 Ken Raeburn <raeburn@gnu.org>
2696
2697 * window.c (enlarge_window): In new preserve_before code, convert
2698 CURBEG from lisp object to integer before doing arithmetic.
2699
2700 2001-12-27 Richard M. Stallman <rms@gnu.org>
2701
2702 * bytecode.c (Fbyte_code): Undo previous change.
2703
2704 2001-12-26 Kim F. Storm <storm@cua.dk>
2705
2706 * keyboard.c (record_char): Ignore duplicate help-echo events only
2707 separated by mouse-movement. When tracking mouse, only record
2708 first and last mouse-movement event in same window.
2709 Don't record mouse-movement events in keyboard macros.
2710
2711 2001-12-25 Richard M. Stallman <rms@gnu.org>
2712
2713 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
2714 (Fenlarge_window): New arg PRESERVE_BEFORE.
2715
2716 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
2717 instead of Fstring_as_unibyte.
2718
2719 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2720
2721 The following changes remove mocklisp support:
2722
2723 * mocklisp.h, mocklisp.c: Files removed.
2724
2725 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
2726 `Qmocklisp' and `Qmocklisp_arguments'.
2727 Remove prototype of syms_of_mocklisp.
2728
2729 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
2730
2731 * callint.c: Do not include mocklisp.h.
2732 (Fcall_interactively): Do not test for mocklisp case.
2733
2734 * eval.c: Remove variables `Qmocklisp_arguments',
2735 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
2736 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
2737 Do not test for mocklisp case.
2738 (Fwhile): Remove unused variable `tem'.
2739 (syms_of_eval): Remove variable `moclisp-arguments'.
2740
2741 * data.c (wrong_type_argument): Remove mocklisp case.
2742
2743 * doc.c (Fdocumentation): Remove mocklisp case.
2744
2745 * emacs.c (main): Do not call syms_of_mocklisp.
2746
2747 2001-12-21 Richard M. Stallman <rms@gnu.org>
2748
2749 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
2750 to the left or to the right of the pointer, put it against
2751 the left screen edge.
2752
2753 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
2754
2755 * Makefile.in (distclean): Remove .gdbinit if we are building
2756 outside the source tree.
2757
2758 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2759
2760 * w32.c (emacs_root_dir): New function.
2761
2762 * msdos.c (emacs_root_dir): New function.
2763
2764 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
2765 of the current drive as the fallback for default_directory.
2766
2767 * dired.c (file_name_completion): Run the elements of
2768 completion-ignored-extensions through ENCODE_FILE.
2769
2770 * lisp.h (scmp): Remove prototype, since it's now a static
2771 function private to dired.c.
2772
2773 2001-12-18 Richard M. Stallman <rms@gnu.org>
2774
2775 * dired.c (scmp): Function moved from minibuf.c.
2776 Delete multibyte handling--used only on encoded strings.
2777
2778 * minibuf.c (scmp): Function moved to dired.c.
2779
2780 * fns.c (merge): Add QUIT call.
2781
2782 2001-12-18 Dave Love <fx@gnu.org>
2783
2784 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
2785 language/georgian.el.
2786
2787 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2788
2789 * Makefile.in (lisp, shortlisp): Synchronize with changes to
2790 lisp/Makefile.in:DONTCOMPILE.
2791
2792 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2793
2794 * xdisp.c (window_box_height): Do not return negative values.
2795 From Gerd Moellmann <gerd@gnu.org>.
2796
2797 * keyboard.c (head_table): Add missing braces around initializer.
2798
2799 * term.c (keys): Likewise.
2800
2801 * xfns.c (x_frame_parms, visual_classes): Likewise.
2802
2803 2001-12-17 Sam Steingold <sds@gnu.org>
2804
2805 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
2806 patch (COMPOSING_P, not COMPOSING).
2807
2808 2001-12-17 Richard M. Stallman <rms@gnu.org>
2809
2810 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
2811
2812 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
2813 before calling decode_coding.
2814
2815 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
2816
2817 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
2818 instead of only for COMPOSITION_DISABLED.
2819
2820 2001-12-16 Richard M. Stallman <rms@gnu.org>
2821
2822 * alloc.c (pure_alloc): After overflow, allocate just a small block.
2823
2824 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
2825
2826 * buffer.h (struct buffer): New field `display_error_modiff'.
2827 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
2828
2829 * window.c (Frecenter): Clear display_error_modiff field.
2830
2831 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
2832 Call redisplay_window, but not if display_error_modiff field says no.
2833 (redisplay_window_error): New function.
2834 (displayed_buffer): New variable.
2835 (redisplay_internal, redisplay_windows): Call the new functions
2836 instead of redisplay_window directly.
2837
2838 2001-12-15 Richard M. Stallman <rms@gnu.org>
2839
2840 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2841
2842 2001-12-14 Andrew Innes <andrewi@gnu.org>
2843
2844 * makefile.w32-in (EMACSLOADPATH): Define.
2845 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
2846 (bootstrap-temacs): Remove dependency on bootstrap-clean.
2847
2848 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
2849
2850 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
2851 parameter have a numeric value all the time.
2852
2853 * w32fns.c (x_report_frame_params): Likewise.
2854
2855 2001-12-12 Richard M. Stallman <rms@gnu.org>
2856
2857 * fileio.c (Fwrite_region): Doc fix.
2858
2859 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
2860 (redisplay_internal): Call clear_image_cache only for window terminals.
2861
2862 2001-12-12 Gerd Moellmann <gerd@gnu.org>
2863
2864 * xdisp.c (move_it_vertically_backward): Change heuristic
2865 for the case that we didn't move far enough initially.
2866
2867 * window.c (Frecenter): Simplify computation in the case of window
2868 system frames and ARG < 0; use window_box_height.
2869
2870 2001-12-11 Richard M. Stallman <rms@gnu.org>
2871
2872 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
2873 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
2874
2875 2001-12-11 Andrew Innes <andrewi@gnu.org>
2876
2877 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
2878 arg is negative.
2879
2880 2001-12-11 Richard M. Stallman <rms@gnu.org>
2881
2882 * m/hp800.h: Split the __hpux conditional into the parts
2883 that are right for GNU/Linux too and the parts that are not.
2884 Use the former if GNU_LINUX.
2885 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
2886
2887 * s/gnu-linux.h (GNU_LINUX): Defined.
2888
2889 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2890
2891 * macros.c, msdos.c, w16select.c: Change doc-string comments to
2892 `new style' [w/`doc:' keyword].
2893
2894 2001-12-10 Jason Rumney <jasonr@gnu.org>
2895
2896 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
2897 before using.
2898
2899 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2900
2901 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
2902 keyword].
2903
2904 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
2905
2906 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
2907
2908 * s/hpux10.h (srand48): Don't undefine.
2909
2910 2001-12-09 Jason Rumney <jasonr@gnu.org>
2911
2912 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
2913 Add comment to explain where the struct came from.
2914 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
2915 (add_menu_item): Process pop-up menus first to avoid memory leak.
2916 (add_menu_item, w32_menu_display_help): Use `help' field as
2917 Lisp_Object.
2918 (w32_free_submenu_strings): Only free owner-drawn strings.
2919
2920 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2921
2922 * COPYING: Moved back.
2923
2924 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
2925 Add parentheses around && within ||.
2926
2927 * indent.c (compute_motion): Likewise.
2928
2929 * intervals.c (merge_properties_sticky): Likewise.
2930
2931 * coding.c (setup_coding_system, shrink_encoding_region)
2932 (Fdecode_sjis_char): Likewise.
2933
2934 2001-12-07 Andreas Schwab <schwab@suse.de>
2935
2936 * xdisp.c (display_mode_element): Don't read past end of string if
2937 it ends with '%'.
2938
2939 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
2940 can hold.
2941
2942 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
2943 from most_positive_fixnum and most_negative_fixnum, resp., and
2944 type changed to Lisp_Object.
2945 (syms_of_data): DEFVAR_LISP them.
2946
2947 2001-12-07 Richard M. Stallman <rms@gnu.org>
2948
2949 * callproc.c (init_callproc): Set Vdata_directory based on the source
2950 location whenever Emacs was run uninstalled.
2951
2952 2001-12-06 Paul Eggert <eggert@twinsun.com>
2953
2954 * config.in (HAVE_WORKING_VFORK): New #undefs.
2955 * process.c (create_process):
2956 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
2957 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
2958 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
2959 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
2960 * m/intel386.h (HAVE_VFORK): Likewise.
2961 * m/mips-siemens.h (HAVE_VFORK): Likewise.
2962 * m/mips.h (HAVE_VFORK): Likewise.
2963 * s/freebsd.h (vfork): Remove #define.
2964 * s/lynxos.h (HAVE_VFORK): Remove #undef.
2965 * s/usg5-4-2.h: Fix comment about vfork.
2966
2967 2001-12-06 Richard M. Stallman <rms@gnu.org>
2968
2969 * s/hpux10.h (random): Add undef.
2970 (HAVE_RANDOM): Define it just once.
2971
2972 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
2973
2974 * eval.c: Undo last change: the standard syntax is not wanted.
2975
2976 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2977
2978 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
2979 scroll bars of the frame before deleting the frame itself. If the
2980 frame has a widget, delete the frame with XtDestroyWidget, and do
2981 not call XDestroyWindow before that.
2982
2983 2001-12-06 Kim F. Storm <storm@cua.dk>
2984
2985 * xfns.c (x_report_frame_params): Return actual fringe widths.
2986
2987 * w32fns.c (x_report_frame_params): Return actual fringe widths.
2988
2989 2001-12-05 Andrew Innes <andrewi@gnu.org>
2990
2991 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
2992 excessively large.
2993
2994 * insdel.c (make_gap_larger): New function.
2995 (make_gap_smaller): New function.
2996 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
2997 make_gap_smaller if arg is negative.
2998
2999 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
3000
3001 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
3002 Pass a dummy argument when calling interrupt_signal.
3003 (parse_menu_item): Mark disabled items before checking for empty def.
3004 (read_char_minibuf_menu_prompt): Make safety more visible.
3005 (read_key_sequence): Add a `first_unbound' variable.
3006 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
3007 unbound prefix as soon as we can detect it.
3008
3009 * doc.c (Fsnarf_documentation): Add prototype.
3010 (get_doc_string): Handle negative arguments.
3011 (Fdocumentation): Use AREF and ASIZE.
3012 Move the calls to get_doc_string to a single place.
3013 Don't confuse an interactive-spec for a docstring reference.
3014 (Fdocumentation_property): Take advantage of the fact that
3015 get_doc_string now ignores the sign of the docstring position.
3016
3017 * eval.c: Use standard syntax for usage in docstrings.
3018
3019 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3020
3021 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
3022
3023 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3024
3025 * xterm.c (x_draw_image_relief): Use predefined macro instead of
3026 constant when the value of `tool_bar_button_relief' is negative.
3027
3028 2001-12-02 Richard M. Stallman <rms@gnu.org>
3029
3030 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
3031 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
3032
3033 * fileio.c (read_non_regular): Delete Fsignal call.
3034
3035 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
3036
3037 * lisp.h (run_hook_list_with_args): Undo last change.
3038
3039 2001-12-01 Gerd Moellmann <gerd@gnu.org>
3040
3041 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
3042
3043 2001-12-01 Jason Rumney <jasonr@gnu.org>
3044
3045 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
3046
3047 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
3048 [!WM_MOUSELEAVE]: Define.
3049
3050 * w32menu.c (current_popup_menu, get_menu_item_info):
3051 (set_menu_item_info): New vars.
3052 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
3053 (w32_menu_show): Set current_popup_menu.
3054 (add_menu_item): Allocate new strings for owner-drawn menu items
3055 and help strings.
3056 Use owner-draw for disabled menu items again.
3057 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
3058 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
3059
3060 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
3061 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
3062 <WM_EXITMENULOOP>: Free menu strings.
3063 <WM_MOUSELEAVE>: Stop tracking mouse.
3064 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
3065
3066 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
3067 and mouse face.
3068
3069 2001-12-01 Kim F. Storm <storm@cua.dk>
3070
3071 The following changes add left-fringe and right-fringe
3072 frame parameters to adjust fringe widths, or remove one or
3073 both fringes.
3074
3075 * frame.h (struct frame): Remove trunc_area_pixel_width and
3076 trunc_area_cols fields.
3077 (Qleft_fringe, Qright_fringe): Declare.
3078 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
3079
3080 * frame.c (Qleft_fringe, Qright_fringe): New vars.
3081 (syms_of_frame): Initialize them.
3082
3083 * window.c (coordinates_in_window): Handle separate left and right
3084 fringe widths.
3085
3086 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
3087 and fringe_cols fields.
3088 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
3089 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
3090 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
3091 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
3092 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
3093 (x_compute_fringe_widths): Add prototype.
3094
3095 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
3096 fill fringe evenly with small dashes.
3097 (x_draw_fringe_bitmap): Clear background if necessary. Align and
3098 clip the new ZV bitmap to avoid jitter between rows.
3099 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
3100 background. Don't draw fringe bitmaps if fringe width is zero.
3101 (x_compute_fringe_widths): New function.
3102 (x_new_font, x_set_window_size_1): Use it.
3103
3104 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
3105 (x_set_frame_parameters): Process `font' parameter before other
3106 parameters as fringe widths depend on it.
3107 (x_set_fringe_width): New function.
3108 (x_figure_window_size): Use x_compute_fringe_widths.
3109 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
3110 parameters.
3111
3112 * widget.c (set_frame_size): Use x_compute_fringe_widths.
3113 (EmacsFrameSetCharSize): Ditto.
3114
3115 * w32term.h: Merged changes from xterm.h.
3116 * w32term.c: Merged changes from xterm.c.
3117 * w32fns.c: Merged changes from xfns.c.
3118
3119 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3120
3121 * COPYING: Removed.
3122
3123 2001-11-29 Dave Love <fx@gnu.org>
3124
3125 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
3126 extra extra slot.
3127 (detect_coding_mask): Fix call of detect_coding_iso2022.
3128
3129 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3130
3131 * fileio.c (file-name-coding-system)
3132 (default-file-name-coding-system): Doc fix (links to referenced
3133 variables added).
3134
3135 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
3136
3137 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3138 Add dummy uses of gcproN variables.
3139
3140 * category.c (describe_category, describe_category_1)
3141 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3142 (syms_of_category): Don't defsubr Sdescribe_categories.
3143
3144 2001-11-28 Richard M. Stallman <rms@gnu.org>
3145
3146 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
3147
3148 * Makefile.in (lispdir): New variable, referring to build dir.
3149 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
3150
3151 2001-11-28 Andrew Innes <andrewi@gnu.org>
3152
3153 * w32menu.c (w32_menu_display_help): Actually add the new argument
3154 OWNER.
3155
3156 2001-11-28 Jason Rumney <jasonr@gnu.org>
3157
3158 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
3159 menu items. From David Ponce <dponce@wanadoo.fr>.
3160 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
3161 conditionally.
3162 (w32_menu_display_help): New argument OWNER. Rewritten to store a
3163 help event in the owner frame's keyboard buffer.
3164
3165 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
3166 (Fx_show_tip): Don't subtract last width from row width.
3167
3168 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
3169 (w32_read_socket): Use EQ to compare frames.
3170
3171 2001-11-28 Gerd Moellmann <gerd@gnu.org>
3172
3173 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
3174 OVERLAPS_P.
3175
3176 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3177
3178 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
3179 `gcpro3' and `gcpro4'.
3180
3181 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
3182
3183 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
3184
3185 * ccl.c: Use AREF and ASIZE.
3186
3187 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
3188
3189 * lisp.h (run_hook_list_with_args): Remove.
3190 (LIST_END_P): Fix call to wrong_type_argument.
3191 (make_fixnum_or_float): Use EMACS_INT rather than int.
3192
3193 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
3194
3195 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
3196 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
3197
3198 * eval.c: Use AREF and ASIZE.
3199 (Ffetch_bytecode): Add the file name to the error message.
3200
3201 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
3202 which match the end of the file-name.
3203 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
3204 is not a valid env var, but leave it as is instead.
3205
3206 * keymap.c (access_keymap): Handle t bindings like nil bindings.
3207 Make nil bindings in char-tables transparent.
3208 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
3209
3210 2001-11-26 Richard M. Stallman <rms@gnu.org>
3211
3212 * textprop.c (set_text_properties_1): Allow START, END in either order.
3213 Do nothing if range is empty.
3214
3215 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
3216
3217 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
3218 (clean): Not here.
3219
3220 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
3221
3222 * textprop.c (set_text_properties_1): Clearly mark that the
3223 interval should not be empty.
3224
3225 * intervals.c (graft_intervals_into_buffer):
3226 Don't call set_text_properties_1 on an empty interval.
3227
3228 2001-11-25 Richard M. Stallman <rms@gnu.org>
3229
3230 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
3231
3232 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
3233 don't lose the data in it.
3234
3235 2001-11-25 Juanma Barranquero <lektu@terra.es>
3236
3237 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
3238
3239 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
3240
3241 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
3242
3243 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
3244
3245 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
3246
3247 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
3248
3249 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
3250 Niemitalo <kon@iki.fi>.
3251
3252 2001-11-25 Jason Rumney <jasonr@gnu.org>
3253
3254 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
3255
3256 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
3257 (Fx_show_tip): Block input during frame creation.
3258 (Fx_show_tip, Fx_hide_tip): Enable.
3259
3260 2001-11-24 Richard M. Stallman <rms@gnu.org>
3261
3262 * lread.c (Fload): Detect recursive load error for more than 3
3263 nestings of the same file.
3264 (Vrecursive_load_depth_limit): Variable deleted.
3265 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
3266
3267 2001-11-24 Jason Rumney <jasonr@gnu.org>
3268
3269 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
3270 mouse position if either left or top is not specified.
3271
3272 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
3273 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
3274 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
3275 (my_create_tip_window): Assign tip_window.
3276 (x_create_tip_frame): Use same defaults as X.
3277 (compute_tip_xy): Remove unused variable. Use full screen width.
3278 (Fx_show_tip): Do not double height. Call ShowWindow directly.
3279
3280 * w32term.c (x_after_update_window_line): Doc fix.
3281 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
3282 frames.
3283 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
3284
3285 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
3286 for all Windowed systems.
3287
3288 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3289
3290 * msdos.c (IT_clear_screen): If the frame's faces are not yet
3291 realized, use the initial screen colors to clear the screen.
3292
3293 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3294
3295 * textprop.c (Fset_text_properties): Remove unused variables
3296 `unchanged', `prev_changed', `s' and `len'.
3297
3298 * search.c (Freplace_match): Remove unused variable `inslen'.
3299
3300 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
3301
3302 2001-11-22 Jason Rumney <jasonr@gnu.org>
3303
3304 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
3305 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
3306 (my_create_tip_window): New function.
3307 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
3308 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
3309
3310 2001-11-20 Jason Rumney <jasonr@gnu.org>
3311
3312 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
3313 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
3314
3315 * w32fns.c (Vw32_system_coding_system): Remove.
3316 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
3317
3318 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
3319
3320 * fileio.c (Fwrite_region): Move choose_write_coding_system to
3321 after build_annotations.
3322
3323 * syntax.c (describe_syntax): Add dummy arg.
3324 (describe_syntax_1): Update call to describe_vector.
3325
3326 * category.c (describe_category): Add dummy arg.
3327 (describe_category_1): Update call to describe_vector.
3328
3329 * keymap.c (Fdescribe_vector): Add `describer' parameter.
3330 (describe_command, describe_translation): Add dummy second param.
3331 (describe_map): Call elt_describer with two arguments.
3332 (describe_vector_princ): Add `fun' parameter.
3333 Call it instead of the hardcoded `princ'.
3334 (describe_vector): Add arg `args'.
3335 Pass it as a new second argument to elt_describer.
3336
3337 * keymap.h (describe_vector): Update prototype.
3338
3339 * frame.c: Don't include keymap.h any more.
3340 (keys_of_frame): Remove.
3341
3342 * lisp.h (keys_of_frame): Remove declaration.
3343
3344 * emacs.c (main): Don't call `keys_of_frame' any more.
3345
3346 2001-11-14 Andreas Schwab <schwab@suse.de>
3347
3348 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
3349 if defined, 0 otherwise.
3350 (MAP_FAILED): Define if not defined and use it to test mmap failure.
3351 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
3352
3353 2001-11-19 Richard M. Stallman <rms@gnu.org>
3354
3355 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
3356
3357 2001-11-18 Jason Rumney <jasonr@gnu.org>
3358
3359 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
3360 (x_draw_bar_cursor): If the background color of the glyph under
3361 the cursor equals the frame's cursor color, use the glyph's
3362 foreground color for drawing the bar cursor.
3363 (x_after_update_window_line): Clear internal border in different
3364 circumstances.
3365 (w32_set_vertical_scroll_bar): Check for width and height > 0.
3366 (w32_draw_relief_rect): Correct relief by 1 pixel.
3367 (x_set_glyph_string_background_width):
3368 Set extends_to_end_of_line_p if the row's fill_line_p is set and
3369 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
3370 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
3371 if cursor_in_non_selected_windows is false.
3372 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
3373 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
3374 Notice if cursor gets overwritten.
3375 (notice_overwritten_cursor): Renamed from
3376 note_overwritten_text_cursor. Rewritten to take glyph widths
3377 into account, and to take X positions as parameters.
3378 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3379 around call to x_draw_glyphs.
3380 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3381 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3382 color to use for image glyph reliefs.
3383 (x_draw_image_relief): Accept zero tool_bar_button_relief.
3384 (glyph_rect): Remove unused variable `area'.
3385
3386 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
3387 some items.
3388 (x_set_internal_border_width): Set frame garbaged when window
3389 doesn't exist yet.
3390 (Fx_create_frame): Accept zero tool_bar_button_relief.
3391 (x_clear_image_1, four_corners_best, image_background)
3392 (image_background_transparent): New functions.
3393 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3394 (gs_format): Add `:background' entry.
3395 (lookup_image): Set IMG's background color if specified.
3396 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3397 when appropriate.
3398 (x_clear_image_1): Reset `background_valid' and
3399 `background_transparent_valid' fields.
3400 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3401 calculating it here. Set IMG's background_transparent field.
3402 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3403 (enum png_keyword_index): Add PNG_BACKGROUND.
3404 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3405 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3406 (enum gif_keyword_index): Add GIF_BACKGROUND.
3407 (enum gs_keyword_index): Add GS_BACKGROUND.
3408 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3409 Pre-calculate image background color where necessary.
3410 (x_create_x_image_and_pixmap, xbm_load, gs_load):
3411 Use display info's n_cbits entry for screen depth.
3412 (Fx_show_tip): Remove unused variables `buffer', `top',
3413 `left', `max_width' and `max_height'.
3414
3415 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
3416
3417 2001-11-18 Gerd Moellmann <gerd@gnu.org>
3418
3419 * puresize.h (BASE_PURESIZE): Increase to 750000.
3420
3421 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3422
3423 * frame.c (Fframe_live_p): Doc fix.
3424
3425 2001-11-18 Richard M. Stallman <rms@gnu.org>
3426
3427 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
3428 (message_dolog_marker3): New static variables hold three markers.
3429 (syms_of_xdisp): Initialize and staticpro them.
3430 (message_dolog): Use message_dolog_marker1..3 instead of
3431 allocating markers each time. Unchain them when done.
3432
3433 2001-11-17 Richard M. Stallman <rms@gnu.org>
3434
3435 * doc.c (Fsnarf_documentation): Doc fix.
3436
3437 2001-11-17 Andreas Schwab <schwab@suse.de>
3438
3439 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
3440
3441 2001-11-17 Richard M. Stallman <rms@gnu.org>
3442
3443 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
3444
3445 2001-11-17 Jason Rumney <jasonr@gnu.org>
3446
3447 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
3448
3449 2001-11-17 Gerd Moellmann <gerd@gnu.org>
3450
3451 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
3452 with invalid position.
3453
3454 2001-11-16 Richard M. Stallman <rms@gnu.org>
3455
3456 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
3457
3458 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
3459 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
3460 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
3461
3462 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
3463
3464 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
3465
3466 * fileio.c (build_annotations): Split off the tail.
3467 (build_annotations_2): New fun. Extracted from build_annotations.
3468 (Fwrite_region): Split the call to build_annotations into two
3469 calls to build_annotations and build_annotations_2.
3470
3471 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3472
3473 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
3474 clear_waiting_for_input with argument.
3475
3476 * xterm.h (x_update_cursor): Remove duplicated prototype.
3477
3478 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
3479
3480 * xterm.c (waiting_for_input): Remove unnecessary declaration.
3481
3482 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
3483
3484 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
3485
3486 * fileio.c (choose_write_coding_system): New fun, extracted
3487 from Fwrite_region.
3488 (Fwrite_region): Use it.
3489
3490 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
3491 (funcall_lambda, run_hook_with_args): Make static and add prototype.
3492 (ml_apply, find_handler_clause): Add prototype.
3493
3494 2001-11-16 Eli Zaretskii <eliz@gnu.org>
3495
3496 * config.in: Add #undef HAVE_COFF_H.
3497
3498 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
3499 Required for ISC 4.1.
3500
3501 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
3502
3503 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
3504 Andrew Wiseman <a.wiseman@btclick.com>.
3505
3506 2001-11-16 Kim F. Storm <storm@cua.dk>
3507
3508 The following changes are made to clean up the various internal
3509 references to the fringes to actually use the term `fringe' for
3510 them. Previously, they were called `flags areas', `bitmap areas',
3511 `left/right side of windows', or implicitly as `flags' or
3512 `bitmaps':
3513
3514 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
3515 Comments fixed. Use renamed symbols.
3516
3517 * dispnew.c: Comment fix. Use renamed symbols.
3518
3519 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
3520 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
3521 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
3522
3523 * msdos.c: Comment fix.
3524
3525 * w32fns.c: Use renamed symbols.
3526
3527 * w32term.c: Comment fixes. Use renamed symbols.
3528 (fringe_bitmap_type): Renamed from bitmap_type.
3529 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3530 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
3531 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3532
3533 * w32term.h: Comment fixes. Use renamed symbols.
3534 (fringes_extra): Renamed from flags_areas_extra.
3535 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3536 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3537 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3538 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
3539 (FRAME_X_LEFT_FRINGE_WIDTH):
3540 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3541 (FRAME_X_RIGHT_FRINGE_WIDTH):
3542 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3543
3544 * widget.c: Use renamed symbols.
3545
3546 * window.c: Comment fixes. Use renamed symbols.
3547 (coordinates-in-window-p): Doc fix.
3548
3549 * xdisp.c: Comment fixes. Use renamed symbols.
3550
3551 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
3552
3553 * xfns.c: Use renamed symbols.
3554
3555 * xterm.c: Comment fixes. Use renamed symbols.
3556 (fringe_bitmap_type): Renamed from bitmap_type.
3557 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3558 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
3559 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3560
3561 * xterm.h: Comment fixes. Use renamed symbols.
3562 (fringes_extra): Renamed from flags_areas_extra.
3563 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3564 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3565 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3566 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
3567 (FRAME_X_LEFT_FRINGE_WIDTH):
3568 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3569 (FRAME_X_RIGHT_FRINGE_WIDTH):
3570 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3571
3572 2001-11-15 Jason Rumney <jasonr@gnu.org>
3573
3574 * w32menu.c (add-menu-item): Make help_echo and radio buttons
3575 work for most menu items. From David Ponce
3576 <david.ponce@wanadoo.fr>.
3577
3578 2001-11-15 Gerd Moellmann <gerd@gnu.org>
3579
3580 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
3581 Some x_set_* function expect to be called even if old and new
3582 value are equal.
3583
3584 * xdisp.c (build_desired_tool_bar_string): Accept zero
3585 tool_bar_button_relief.
3586
3587 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
3588
3589 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
3590
3591 * xterm.c (x_draw_bar_cursor): If the background color of the
3592 glyph under the cursor equals the frame's cursor color, use
3593 the glyph's foreground color for drawing the bar cursor.
3594
3595 * dispnew.c (direct_output_forward_char): Fix character/byte
3596 position comparison.
3597
3598 2001-11-15 Miles Bader <miles@gnu.org>
3599
3600 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
3601 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
3602 Update arguments to find_field.
3603 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
3604 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
3605 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
3606 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
3607
3608 2001-11-14 Richard M. Stallman <rms@gnu.org>
3609
3610 * editfns.c (Fpropertize): Allow call with 1 arg.
3611
3612 * dispextern.h (image_background, image_background_transparent):
3613 Conditionalize on HAVE_X_WINDOWS.
3614
3615 2001-11-13 Richard M. Stallman <rms@gnu.org>
3616
3617 * print.c (Fprin1_to_string): Doc fix.
3618
3619 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
3620
3621 * floatfns.c (Fceiling, Ffloor): Doc fixes.
3622
3623 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
3624
3625 * fileio.c (Ffile_accessible_directory_p): Doc fix.
3626
3627 * eval.c (syms_of_eval): Doc fix.
3628
3629 * coding.c (syms_of_coding): Doc fix.
3630
3631 * doc.c (Fsnarf_documentation): Doc fix.
3632
3633 * dispnew.c (syms_of_display): Doc fix.
3634
3635 * category.c (Fget_unused_category): Doc fix.
3636
3637 * buffer.c (syms_of_buffer): Doc fixes.
3638
3639 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
3640
3641 * print.c (prin1, print): Doc fix.
3642
3643 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3644
3645 * fontset.h: Remove declarations of variables
3646 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
3647
3648 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
3649 `Vclip_large_size_font'.
3650
3651 2001-11-13 Jason Rumney <jasonr@gnu.org>
3652
3653 * w32fns.c: Doc fix.
3654
3655 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3656
3657 * xfaces.c (Fface_attributes_as_vector): Doc fix.
3658
3659 * fns.c: Doc fix.
3660
3661 * emacs.c: Doc fix.
3662
3663 * coding.c: Doc fix.
3664
3665 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
3666 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
3667 `new style' [w/`doc:' keyword].
3668
3669 2001-11-12 Richard M. Stallman <rms@gnu.org>
3670
3671 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
3672 LeaveNotify events. Only FocusIn and FocusOut do that now.
3673 (x_display_and_set_cursor): Do display hollow cursors in active
3674 minibuffer windows when they are not selected.
3675
3676 2001-11-12 Jason Rumney <jasonr@gnu.org>
3677
3678 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3679 * w32term.c: Change doc-string comments to `new style'.
3680 [w/`doc:' keyword]. Doc fixes.
3681
3682 * w32fns.c: Don't define max.
3683 (Fx_open_connection): Only execute once.
3684
3685 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3686
3687 * ccl.c: Change macros to use do-while block instead of if-else.
3688 Use braces to follow GNU Coding Standards.
3689
3690 2001-11-11 Richard M. Stallman <rms@gnu.org>
3691
3692 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
3693
3694 * lread.c (read_escape): Use end_of_file_error for reporting eof.
3695
3696 * insdel.c (replace_range): Use adjust_markers_for_replace
3697 instead of adjust_markers_for_delete and adjust_markers_for_insert.
3698
3699 * intervals.h: Declare set_text_properties and set_text_properties_1.
3700
3701 * textprop.c (set_text_properties_1): New subroutine
3702 broken out of set_text_properties.
3703 (set_text_properties): Use set_text_properties_1.
3704
3705 * intervals.c (graft_intervals_into_buffer):
3706 Use set_text_properties_1 to clear out properties.
3707
3708 * search.c (Freplace_match): Use replace_range to insert
3709 and delete. Don't request property inheritance from
3710 surrounding text.
3711
3712 2001-11-10 Jason Rumney <jasonr@gnu.org>
3713
3714 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
3715 vertical fonts. Allow them if face name is explicitly specified.
3716 Do not give up if we find a font that cannot be converted to an xlfd.
3717
3718 2001-11-10 Gerd Moellmann <gerd@gnu.org>
3719
3720 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
3721 instead of malloc/free.
3722
3723 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3724
3725 * xfaces.c (merge_face_vectors): Use braces to follow GNU
3726 Coding Standards.
3727 (Finternal_set_lisp_face_attribute): Likewise.
3728
3729 * buffer.c (Fbury_buffer): Likewise.
3730
3731 * indent.c (current_column_1): Remove unused variable `prev_col'.
3732
3733 * coding.c (encode_coding): Use precomputed value of `src'.
3734 (encode_coding): Remove unused variable `src_end'.
3735 (code_convert_region): Remove unused variables `count'.
3736
3737 2001-11-07 Jason Rumney <jasonr@gnu.org>
3738
3739 * w32term.c (x_display_and_set_cursor): Do not move system caret
3740 if cursor_glyph is NULL.
3741
3742 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3743
3744 * keymap.c (access_keymap): Fix compilation error.
3745
3746 2001-11-07 Miles Bader <miles@gnu.org>
3747
3748 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
3749
3750 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3751
3752 * intervals.c (graft_intervals_into_buffer):
3753 Remove #ifdef'd-out code.
3754 (graft_intervals_into_buffer): Remove unused variable `middle'.
3755
3756 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
3757 code (eval-current-buffer).
3758 Change doc-string comments to `new style' [w/`doc:' keyword].
3759
3760 2001-11-06 Richard M. Stallman <rms@gnu.org>
3761
3762 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
3763
3764 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
3765
3766 * lread.c (read1): Fix behavior with nested backquoting.
3767
3768 * keyboard.c (make_lispy_event): Check integerness and fix
3769 Lisp_Object/int mixup.
3770
3771 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3772
3773 * fns.c (copy_hash_table): Remove unused variable `v'.
3774
3775 * fontset.c (fontset_font_pattern): Remove unused variable
3776 `family_registry'.
3777
3778 * indent.c (current_column_1): Remove unused variable `prev_col'.
3779
3780 2001-11-05 Richard M. Stallman <rms@gnu.org>
3781
3782 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
3783
3784 * buffer.c (Fkill_buffer): Don't delete auto save file
3785 if buffer is modified.
3786
3787 2001-11-05 Andrew Innes <andrewi@gnu.org>
3788
3789 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
3790 CHECK_NUMBER_CDR.
3791
3792 2001-11-05 Richard M. Stallman <rms@gnu.org>
3793
3794 * unexelf.c (unexec): Minor changes; clean up comments.
3795
3796 2001-11-05 Sam Steingold <sds@gnu.org>
3797
3798 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
3799
3800 2001-11-05 Andreas Schwab <schwab@suse.de>
3801
3802 * sound.c (sound_perror): Save errno from being clobbered.
3803
3804 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
3805
3806 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
3807 the program image directly.
3808
3809 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3810
3811 * buffer.h (Fbuffer_local_value): Add prototype.
3812
3813 2001-11-04 Richard M. Stallman <rms@gnu.org>
3814
3815 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
3816 and CHECK_BUFFER.
3817
3818 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
3819 (record_char): Likewise.
3820
3821 * keyboard.c (make_lispy_event): Don't insist a drag event must
3822 move to a different buffer position. Instead, check for moving at
3823 least double_click_fuzz.
3824
3825 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
3826
3827 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
3828
3829 * indent.c (current_column_1, Fmove_to_column): Separate the code
3830 for display-table glyphs from the code buffer text, to fix
3831 bugs in the former.
3832
3833 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
3834
3835 * buffer.c (Fbuffer_local_value): New function.
3836 (syms_of_buffer): Defsubr it.
3837
3838 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
3839 value of `cursor-in-non-selected-windows'.
3840
3841 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
3842 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
3843 (syms_of_xdisp): Initialize it.
3844
3845 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3846
3847 * xfns.c (Fx_create_frame): Doc fix.
3848
3849 * coding.c: Change doc-string comments to `new style' [w/`doc:'
3850 keyword].
3851
3852 * eval.c (top_level_value, top_level_set): Remove commented and
3853 #ifdef'd-out code.
3854 (Fdefvar): Fix usage in doc-string.
3855
3856 2001-11-03 Richard M. Stallman <rms@gnu.org>
3857
3858 * xfns.c: Include unistd.h, if it exists.
3859
3860 * editfns.c: Move the include of ctype.h after unistd.h.
3861
3862 * gmalloc.c: Test BROKEN_PROTOTYPES.
3863
3864 2001-11-03 Ken Raeburn <raeburn@gnu.org>
3865
3866 * lisp.h (CHECK_STRING_CAR): New macro.
3867 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
3868 treating XCAR and XCDR as lvalues.
3869 (openp): Use CHECK_STRING_CAR.
3870 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
3871
3872 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
3873
3874 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
3875 (SIGMASKTYPE): Define.
3876
3877 * syssignal.h (sigunblock): Don't define if already defined.
3878
3879 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3880
3881 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
3882 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
3883 Fix typos in comments.
3884
3885 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
3886 and #ifdef'd-out code.
3887 Fix and reindent comments.
3888
3889 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
3890
3891 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
3892 argument `i' in macros.
3893
3894 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
3895 `i' in macros.
3896
3897 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3898 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
3899 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
3900 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
3901 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
3902 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3903 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
3904 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
3905 in macros.
3906
3907 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
3908 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
3909 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
3910 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
3911 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
3912 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
3913 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
3914 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
3915 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
3916 (remove unused second argument).
3917
3918 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
3919
3920 * syntax.c (describe_syntax): New wrapper.
3921 (Finternal_describe_syntax_value): Rename from describe_syntax.
3922 Don't insert space at front and \n at the end.
3923 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
3924
3925 * regex.c (re_wctype): Try to fix some warnings.
3926 (regcomp, regexec): Don't forget the __restrict.
3927
3928 2001-11-02 Richard M. Stallman <rms@gnu.org>
3929
3930 * textprop.c (Fget_char_property): Doc fix.
3931
3932 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3933
3934 * process.c (Fstart_process): Add usage to doc-string.
3935
3936 * data.c (Fsetq_default): Ditto.
3937
3938 * callint.c (Finteractive): Ditto.
3939
3940 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
3941
3942 * macros.c: Don't include keymap.h any more.
3943
3944 2001-11-01 Richard M. Stallman <rms@gnu.org>
3945
3946 * data.c (Fmake_local_variable): Doc fix.
3947
3948 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
3949 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
3950
3951 * keymap.c (Fdescribe_buffer_bindings): Print character property
3952 bindings along with or instead of the buffer local map.
3953 Make the overriding maps override what they should.
3954
3955 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3956
3957 * window.c (grow_mini_window): Fix typo in comment.
3958
3959 2001-11-01 Gerd Moellmann <gerd@gnu.org>
3960
3961 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
3962 (XTset_vertical_scroll_bar): Likewise.
3963
3964 * xfns.c (x_build_heuristic_mask): Use four_corners_best
3965 instead of IMAGE_BACKGROUND.
3966
3967 * xfns.c (four_corners_best): Reindent.
3968
3969 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3970 Handle :box so that it is possible to specify sexprs.
3971
3972 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
3973
3974 * s/hpux11.h: New file.
3975
3976 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3977
3978 * emacs.c (USAGE1): Show command line option --no-window-system
3979 instead of --no-windows in usage.
3980 (standard_args): Rename --no-windows to --no-window-system.
3981 (bug_reporting_address): Follow Emacs coding conventions.
3982
3983 * eval.c (Fcommandp): Doc fix.
3984 Change doc-string comments to `new style' [w/`doc:' keyword].
3985
3986 * frame.c (Fframe_live_p): Doc fix.
3987
3988 * buffer.c (selective-display-ellipses): Doc fix.
3989
3990 2001-10-31 Gerd Moellmann <gerd@gnu.org>
3991
3992 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
3993
3994 * xfaces.c (realize_x_face): If C is not a single-byte character,
3995 set the face's colors_copied_bitwise_p instead of the defaulted_p
3996 members which have a different meaning.
3997 (free_face_colors): Do nothing for a face whose colors have been
3998 copied bitwise.
3999
4000 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
4001
4002 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4003
4004 * marker.c, mocklisp.c: Change doc-string comments to `new style'
4005 [w/`doc:' keyword].
4006
4007 2001-10-31 Gerd Moellmann <gerd@gnu.org>
4008
4009 * fns.c (require_unwind): Return Lisp_Object.
4010
4011 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4012
4013 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
4014 (last-input-char): Revert doc-string to be the same as the
4015 doc-string of `last-input-event'.
4016
4017 * xdisp.c: Fix typos in comments.
4018
4019 2001-10-31 Gerd Moellmann <gerd@gnu.org>
4020
4021 * window.c (grow_mini_window): Handle case that the root
4022 window is already smaller than the nominal mininum height.
4023
4024 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
4025
4026 * emacs.c (main): Don't call keys_of_macros any more.
4027
4028 * lisp.h (keys_of_macros): Remove.
4029
4030 * macros.c (keys_of_macros): Remove.
4031
4032 * xfaces.c (Fface_attribute_relative_p): Declare args.
4033
4034 2001-10-30 Jason Rumney <jasonr@gnu.org>
4035
4036 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
4037 (enum_font_cb2): Ignore fonts with vertical orientation.
4038
4039 2001-10-30 Richard M. Stallman <rms@gnu.org>
4040
4041 * keyboard.c (Finput_pending_p): Doc fix.
4042
4043 2001-10-30 Gerd Moellmann <gerd@gnu.org>
4044
4045 * xterm.c (x_after_update_window_line): Don't run the code
4046 clearing in borders for rows whose visible height is 0.
4047
4048 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
4049 resized_p flag is set. If not set, use the much less flickering
4050 method previously used.
4051
4052 * dispnew.c (change_frame_size_1): Set frame's resized_p.
4053
4054 * frame.h (struct frame) <resized_p>: New member.
4055
4056 * lread.c (to_multibyte): Ensure read_buffer is at least twice
4057 as large as the number of bytes to convert.
4058
4059 * lread.c (to_multibyte): New function.
4060 (read1): Use it.
4061
4062 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
4063
4064 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
4065
4066 2001-10-30 Gerd Moellmann <gerd@gnu.org>
4067
4068 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
4069 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
4070 if the row's fill_line_p is set and drawing the last glyph with
4071 DRAW_IMAGE_{RAISED,SUNKEN}.
4072
4073 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
4074
4075 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
4076
4077 * xmenu.c: Include coding.h and charset.h.
4078 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
4079 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
4080 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
4081 Explicitly set wv->help. Use `TRUE' rather than `True'.
4082 (menu_help_callback): Use empty_string.
4083
4084 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
4085 (Fx_popup_dialog): Explicitly init f.
4086 (w32_menu_display_help): Use empty_string.
4087
4088 2001-10-29 Richard M. Stallman <rms@gnu.org>
4089
4090 * fns.c (Frequire): Detect recursive try to require the same
4091 feature 3 or more levels deep, and get error.
4092 (require_unwind): New subroutine.
4093 (require_nesting_list): New variable.
4094 (syms_of_fns): Init and staticpro it.
4095
4096 * print.c (print_object): Clarify indication of insertion type.
4097
4098 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
4099
4100 * coding.c (syms_of_coding): Document that locale-coding-system is
4101 used for decoding input on X.
4102
4103 * window.c (Fscroll_left, Fscroll_right): Doc fix.
4104
4105 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4106
4107 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
4108 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
4109
4110 2001-10-29 Gerd Moellmann <gerd@gnu.org>
4111
4112 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
4113 use NO_CURSOR if cursor_in_non_selected_windows is false.
4114
4115 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
4116 the slant attribute if FRAME is t.
4117
4118 * xfns.c (x_set_internal_border_width): Set frame garbaged
4119 when X window doesn't exist yet.
4120
4121 * xterm.c (x_after_update_window_line): Clear internal border
4122 in different circumstances.
4123
4124 * xterm.c (XTread_socket) <KeyPress>: Don't use
4125 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
4126 <handa@etl.go.jp>.
4127
4128 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4129
4130 * m/ibms390.h: New file. From Adam Thornton
4131 <athornton@sinenomine.net>.
4132
4133 2001-10-28 Gerd Moellmann <gerd@gnu.org>
4134
4135 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
4136
4137 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
4138 a loop counter.
4139
4140 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4141
4142 * emacs.c: Use argv[0] instead of emacs when -t was specified.
4143
4144 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
4145 keyword].
4146 Fix typos in comments.
4147
4148 * emacs.c (bug_reporting_address): New function.
4149 Use it when displaying usage message.
4150
4151 * minibuf.c (read_minibuf): Remove unused external declaration of
4152 variable `Qread_only'.
4153
4154 * keymap.c (access_keymap): Remove unused variable `charset'.
4155
4156 2001-10-28 Miles Bader <miles@gnu.org>
4157
4158 * xfaces.c (merge_face_heights): Handle TO being relative as well.
4159 Remove #ifdef'd-out code.
4160 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
4161 (syms_of_xfaces): Initialize them.
4162
4163 2001-10-27 Jason Rumney <jasonr@gnu.org>
4164
4165 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
4166 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
4167 position using the system caret.
4168
4169 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
4170 (w32_system_caret_height, w32_system_caret_x)
4171 (w32_system_caret_y): New variables for tracking system caret.
4172 (w32_initialize): Initialize them.
4173 (x_display_and_set_cursor): Make system caret follow the active cursor.
4174
4175 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
4176 New messages types.
4177
4178 * w32term.c (note_mouse_highlight): Clear old help_echo.
4179
4180 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4181
4182 * xterm.c: Fix typo in a comment.
4183
4184 * emacs.c: Fix typos in comments.
4185 Remove unnecessary spaces.
4186 Change doc-string comments to `new style' [w/`doc:' keyword].
4187 (USAGE2): Fix typos in usage string.
4188
4189 * xterm.c: Fix typo in a comment.
4190
4191 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
4192 emacs.c.
4193
4194 2001-10-27 Gerd Moellmann <gerd@gnu.org>
4195
4196 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
4197 instead of 1/2 line_height in the heuristic for skipping
4198 farther backward when target_y was not reached.
4199
4200 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
4201 Display errno only if non-zero.
4202 (sound_warning): New function.
4203 (vox_configure): Don't treat failing to set sample rate as error.
4204 (various places): Improve error messages.
4205
4206 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
4207
4208 * fileio.c (Faccess_file): Run the argument filename through
4209 Fexpand_file_name, before using it.
4210
4211 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
4212 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
4213
4214 2001-10-26 Gerd Moellmann <gerd@gnu.org>
4215
4216 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
4217
4218 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4219 Fix clearing in the case of scroll bars on the right.
4220
4221 2001-10-26 Juanma Barranquero <lektu@terra.es>
4222
4223 * w32gui.h (XImage): Add a dummy typedef.
4224
4225 2001-10-26 Gerd Moellmann <gerd@gnu.org>
4226
4227 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
4228
4229 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
4230
4231 * frame.c (Fframe_parameter): Fix last change.
4232
4233 * fileio.c: Revert last change (which removed old commented-out
4234 version of expand-file-name). Add a comment that explains why
4235 this old version should not be removed.
4236
4237 2001-10-25 Gerd Moellmann <gerd@gnu.org>
4238
4239 * frame.c (Fframe_parameter): Fix a bug whereby some
4240 ``artificial'' frame parameters, like `minibuffer' were not
4241 obtained by calling Fframe_parameters.
4242
4243 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
4244 cursor differently.
4245
4246 * xdisp.c (move_it_vertically_backward): Compute line height
4247 differently. Add heuristic to try to be more compatible to 20.x.
4248
4249 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
4250
4251 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
4252
4253 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
4254 boolean.
4255
4256 2001-10-25 Miles Bader <miles@gnu.org>
4257
4258 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
4259 BG is a pointer to a structure, not a structure.
4260 (gif_format, png_format): Add missing commas.
4261
4262 2001-10-24 Richard M. Stallman <rms@gnu.org>
4263
4264 * xfaces.c (Fface_attributes_as_vector): New function.
4265 (syms_of_xfaces): Defsubr it.
4266
4267 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4268
4269 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
4270 variable `area'.
4271
4272 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4273
4274 * search.c (scan_newline): Remove unused variable `selective_display'.
4275
4276 2001-10-25 Miles Bader <miles@gnu.org>
4277
4278 * dispextern.h (struct image): Add `background',
4279 `background_valid', and `background_transparent' fields.
4280 (image_background, image_background_transparent): New declarations.
4281 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
4282 * xfns.c (image_background, image_background_transparent)
4283 (four_corners_best): New functions.
4284 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
4285 (gs_format): Add `:background' entry.
4286 (lookup_image): Set IMG's background color if specified.
4287 (pbm_load, xbm_load_image, png_load): Set IMG's background field
4288 when appropriate.
4289 (x_clear_image_1): Reset `background_valid' and
4290 `background_transparent_valid' fields.
4291 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
4292 calculating it here. Set IMG's background_transparent field.
4293 (enum xpm_keyword_index): Add XPM_BACKGROUND.
4294 (enum png_keyword_index): Add PNG_BACKGROUND.
4295 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
4296 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
4297 (enum gif_keyword_index): Add GIF_BACKGROUND.
4298 (enum gs_keyword_index): Add GS_BACKGROUND.
4299 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
4300 Pre-calculate image background color where necessary.
4301 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
4302 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
4303 color to use for image glyph reliefs.
4304
4305 2001-10-24 Gerd Moellmann <gerd@gnu.org>
4306
4307 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
4308 in full-width rows.
4309
4310 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4311 Fix clearing of area not covered by scroll bar.
4312
4313 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4314
4315 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
4316 and `real_start'.
4317 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
4318 (glyph_rect): Remove unused variable `area'.
4319
4320 2001-10-24 Gerd Moellmann <gerd@gnu.org>
4321
4322 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
4323
4324 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
4325 (row_containing_pos): Take additional argument DY.
4326 Treat rows ending in middle of char differently.
4327 (display_line): Handle tabs on window systems differently.
4328
4329 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
4330 with additional argument.
4331
4332 * dispextern.h (row_containing_pos): Adjust prototype.
4333
4334 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
4335 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
4336 (try_window_id, try_window_reusing_current_matrix)
4337 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
4338 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
4339
4340 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4341
4342 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
4343 gnuemacs).
4344 (HAVE_BOXES): Fix typo in comment.
4345 (push_menu_pane): Fix typo in comment.
4346
4347 * xdisp.c: (display_prop_string_p): Remove unused local declaration
4348 of `Qwhen'.
4349 (single_display_prop_string_p): Remove unused local declarations
4350 of `Qwhen' and `Qmargin'.
4351 (string_buffer_position): Remove unused variable `around'.
4352 (store_frame_title): Remove unused variable `width'.
4353
4354 * window.c: Don't define max.
4355 (coordinates_in_window): Remove unused variable `uy'.
4356
4357 * widget.c: Don't define max.
4358
4359 * process.c: Don't define max.
4360 (create_process): Remove unused variable `buffer'.
4361
4362 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4363
4364 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
4365
4366 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
4367
4368 * xfaces.c (Finternal_set_lisp_face_attribute)
4369 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
4370 frame is on a windowed display.
4371
4372 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4373
4374 * dispnew.c (sync_window_with_frame_matrix_rows):
4375 Fix handling of windows which aren't full-width, fix handling
4376 of marginal areas.
4377
4378 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
4379
4380 2001-10-23 Andreas Schwab <schwab@suse.de>
4381
4382 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
4383 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
4384
4385 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4386
4387 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
4388 REAL_END. Notice if cursor gets overwritten.
4389 (notice_overwritten_cursor): Take X positions as parameters.
4390 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
4391 around call to x_draw_glyphs.
4392
4393 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4394
4395 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
4396 instead of C) and usage.
4397
4398 * editfns.c (char-to-string): Fix argument names (use CHAR instead
4399 of C) and usage.
4400
4401 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
4402 `left', `max_width' and `max_height'.
4403
4404 2001-10-23 Gerd Moellmann <gerd@gnu.org>
4405
4406 * xdisp.c (display_line): For a tab continued to the next line,
4407 set row's ends_in_middle_of_char_p.
4408
4409 2001-10-22 Gerd Moellmann <gerd@gnu.org>
4410
4411 * xdisp.c (display_line): Fix computation of continuation lines
4412 width for TABs.
4413
4414 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4415
4416 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
4417 `Qlaplace'.
4418
4419 * fileio.c: Remove unused code.
4420
4421 2001-10-22 Miles Bader <miles@gnu.org>
4422
4423 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
4424 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
4425 Remove `DOC_STRINGS_IN_COMMENTS' cases.
4426
4427 2001-10-21 Jason Rumney <jasonr@gnu.org>
4428
4429 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
4430
4431 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4432
4433 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
4434 (Finsert_string): Avoid the multi-line string literals warning.
4435
4436 2001-10-22 Miles Bader <miles@gnu.org>
4437
4438 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
4439 (Fdocumentation): Don't use it.
4440 (syms_of_doc): Don't initialize it.
4441
4442 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
4443 * print.c (Fwith_output_to_temp_buffer): Likewise.
4444 * window.c (Fsave_window_excursion): Likewise.
4445 * editfns.c (Fsave_excursion, Fsave_current_buffer)
4446 (Fsave_restriction): Likewise.
4447 * eval.c (Frun_hooks, Frun_hook_with_args)
4448 (Frun_hook_with_args_until_failure)
4449 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
4450 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
4451 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
4452 (Funwind_protect, Fcondition_case): Likewise.
4453 * coding.c (Ffind_operation_coding_system): Likewise.
4454 * keyboard.c (Ftrack_mouse): Likewise.
4455
4456 2001-10-21 Miles Bader <miles@gnu.org>
4457
4458 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
4459 (Fmake_hash_table): Add usage: string to doc string.
4460 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
4461 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
4462 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
4463 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
4464 (Fml_prefix_argument_loop): Likewise.
4465
4466 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4467
4468 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
4469
4470 * sysdep.c (init_sys_modes): Change doc-string comments to `new
4471 style' [w/`doc:' keyword].
4472
4473 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
4474 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
4475 comments to `new style' [w/`doc:' keyword].
4476
4477 2001-10-21 Jason Rumney <jasonr@gnu.org>
4478
4479 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
4480
4481 * w32term.c (remember_mouse_glyph): New function.
4482 (w32_mouse_position): Use it.
4483 (note_mouse_movement): If the mouse moved off the glyph, remember
4484 its new position.
4485
4486 * w32term.h (struct w32_output): Correct spelling of x_compatible.
4487 (w32_display_info): Add mouse_face_overlay.
4488
4489 * w32term.c (notice_overwritten_cursor): Renamed from
4490 note_overwritten_text_cursor. Rewritten to take glyph widths into
4491 account.
4492 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4493 (fast_find_string_pos): New function.
4494 (fast_find_position): Return the correct vpos. Add parameter
4495 STOP. In the final row, stop before glyphs having STOP as object.
4496 Don't consider glyphs that are not from a buffer.
4497 (fast_find_position) [0]: Add a presumably more correct version
4498 for after 21.1.
4499 (expose_window_tree, expose_frame): Don't compute intersections here.
4500 (expose_window): Do it here instead.
4501 (expose_window_tree, expose_window, expose_line): Return 1 when
4502 overwriting mouse-face.
4503 (expose_window): If W is the window currently being updated, mark
4504 the frame garbaged.
4505 (expose_frame): If mouse-face was overwritten, redo it.
4506 (x_use_underline_position_properties): New variable.
4507 (syms_of_xterm): DEFVAR_BOOL it.
4508 (x_draw_glyph_string): Add comment to use it in future.
4509 (x_draw_glyph_string): Restore clipping after drawing box.
4510 Fix a computation of the underline position.
4511 (w32_get_glyph_string_clip_rect): Minor cleanup.
4512 (x_fill_stretch_glyph_string): Remove an assertion.
4513 (x_produce_glyphs): Don't convert multibyte characters
4514 to unibyte characters in unibyte buffers.
4515 (cursor_in_mouse_face_p): New function.
4516 (x_draw_stretch_glyph_string): Use it to choose a different GC
4517 when drawing a cursor within highlighted text. Don't draw
4518 background again if it has already been drawn.
4519 (x_draw_glyph_string_box): Don't draw a full-width
4520 box just because the glyph row's full_width_p flag is set.
4521 (x_draw_glyphs): Fix computation of rightmost x for
4522 full-width rows.
4523 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4524 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
4525 change bottom shadow accordingly. Some cleanup.
4526 (x_update_window_end): Handle overwritten mouse face
4527 also for tool bar windows.
4528 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4529 DRAW is DRAW_IMAGE_RAISED.
4530 (clear_mouse_face): Return 1 if text with mouse face was
4531 actually redrawn. Make the function static. Reset
4532 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
4533 optimize away highlighting if we pass over that same overlay again.
4534 (note_mouse_highlight): Call mouse_face_overlay_overlaps
4535 to detect a case where we have to highlight a different region
4536 despite not having left the currently highlighted region.
4537 Set mouse_face_overlay in the x_display_info. Avoid changing the
4538 mouse pointer shape when show_mouse_face has already done it, or
4539 there is no need. Handle mouse-face and help-echo in strings.
4540 (glyph_rect): New function.
4541 (w32_mouse_position): Use it to raise the threshold for mouse
4542 movement event generation.
4543 (w32_initialize_display_info): Initialize the x_display_info's
4544 mouse_face_overlay.
4545 (w32_set_vertical_scroll_bar): Don't clear a zero height
4546 or width area.
4547 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4548 a widget to zero height.
4549
4550 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4551 Protect unibyte strings created by replacing their multibyte
4552 equivalents in menu_items.
4553 (w32_menu_show): Don't overwrite an item's name with its key
4554 description in case the description is a multibyte string.
4555 (single_submenu): Some cleanup.
4556
4557 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
4558 (postprocess_image): New function.
4559 (lookup_image): Call it for all image types except PostScript.
4560 (x_kill_gs_process): Call postprocess_image.
4561 (tiff_error_handler, tiff_warning_handler): New functions.
4562 (tiff_load): Install them as handlers.
4563 (x_kill_gs_process): Recognize if someone has cleared the image
4564 cache under us.
4565 (valid_image_p): Protect better against invalid image
4566 specifications. Previous code could signal an error.
4567 (Fx_hide_tip, Fshow_tip): Doc fix.
4568 (Fv_max_tooltip_size): New variable.
4569 (syns_of_xfns): DEFVAR_LISP it.
4570 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
4571 window buffer to *tip* right after creating the frame. Set frame's
4572 window_width. Use a maximum tooltip size specified by
4573 Vx_max_tooltip_size, if that has valid contents.
4574 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4575 Make sure the tooltip is completely visible.
4576 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4577 (Fx_create_frame): Adjust the frame's height for presence
4578 of the tool bar before calling x_figure_window_size.
4579 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
4580 when the window gets smaller.
4581 (x_set_foreground_color): Set frame's cursor_pixel.
4582 (x_set_foreground_color, x_set_background_color): Cleaned up.
4583 (x_set_font): Handle case of x_new_fontset returning the same name
4584 as before, although there was a change in fontsets.
4585
4586 2001-10-21 Miles Bader <miles@gnu.org>
4587
4588 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
4589 (Flogxor): Add usage: string to doc string.
4590 * charset.c (Fstring): Likewise.
4591 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
4592 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
4593
4594 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4595
4596 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
4597
4598 * alloc.c: Reindent DEFUNs with doc: keywords.
4599
4600 * abbrev.c (Finsert_abbrev_table_description): Reindent.
4601
4602 * frame.c: Change doc-string comments to `new style' [w/`doc:'
4603 keyword].
4604
4605 See ChangeLog.9 for earlier changes.
4606
4607 ;; Local Variables:
4608 ;; coding: iso-2022-7bit
4609 ;; End:
4610
4611 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4612 Copying and distribution of this file, with or without modification,
4613 are permitted provided the copyright notice and this notice are preserved.