*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
775b3d2d
KH
12002-08-19 Kenichi Handa <handa@localhost>
2
3 * composite.c (run_composition_function): Call FUNC if it is
4 fboundp.
5
6 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
7 cons, return Qnil.
8
c387c986
RS
92002-08-17 Richard M. Stallman <rms@gnu.org>
10
11 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12
13 * sysdep.c [!VMS]: Include sys/files.h.
14
15 * editfns.c (save_restriction_restore): Defend from unchained marker.
16
17 * buffer.c (overlays_at): Handle extending vec uniformly.
18 (overlays_in): Handle extending vec from length 0 as in overlays_at.
19
1000788b
AC
202002-08-15 Andrew Choi <akochoi@shaw.ca>
21
22 * mac.c (init_mac_osx_environment): New function.
23
24 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
25
82802164
KS
262002-08-14 Kim F. Storm <storm@cua.dk>
27
28 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
29 executing macro before appending to it (when used from Lisp).
30 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
31 which is called prior to each iteration of macro (for kmacro.el).
32 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
33
34 * lisp.h (Fexecute_kbd_macro): Update prototype.
35
36 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
37
13a45e6c
KH
382002-08-14 Kenichi Handa <handa@etl.go.jp>
39
40 * xselect.c (QUTF8_STRING): New variable.
41 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
42 (x_atom_to_symbol): Likewise.
43 (x_get_local_selection): New argument local_request. If it is
44 nonzero, call handler_fn with the second arg nil.
45 (x_handle_selection_request): Call x_get_local_selection with
46 local_request 0.
47 (lisp_data_to_selection_data): Don't encode the string here.
48 (Fx_get_selection_internal): Call x_get_local_selection with
49 local_request 1.
50 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
51
52 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
53
54 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
55
79fab26b
RS
562002-08-13 Richard M. Stallman <rms@gnu.org>
57
58 * minibuf.c (Fminibufferp): New function.
59 (syms_of_minibuf): Defsubr it.
60 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
61
96d2e64d
GM
622002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
63
64 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
65
450565cb
RS
662002-08-12 Richard M. Stallman <rms@gnu.org>
67
68 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
69 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
70 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
71 already.
72
73 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
74
5883787c
AC
752002-08-11 Andrew Choi <akochoi@shaw.ca>
76
77 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
78 (Vmac_pass_command_to_system): New variable.
79 (Vmac_pass_control_to_system): New variable.
80 (do_mouse_moved): Check wp with is_emacs_window.
81 (XTread_socket): Check window_ptr with is_emacs_window. Call
82 FrontNonFloatingWindow instead of FrontWindow. Send keydown
83 events back to Mac Toolbox for processing, depending on values of
84 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
85 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
86 Vmac_pass_control_to_system.
87
054e62ae
KH
882002-08-10 Kenichi Handa <handa@etl.go.jp>
89
90 * coding.c (unencodable_char_position): New function.
91 (Funencodable_char_position): New function.
92 (syms_of_coding): Defsubr Funencodable_char_position.
93
8030369c
AC
942002-08-10 Andrew Choi <akochoi@shaw.ca>
95
96 * mac.c (sys_select) [MAC_OSX]: New function.
97
98 * macterm.c (MakeMeTheFrontProcess): New function.
99 (mac_initialize): Call MakeMeTheFrontProcess.
100
101 * s/darwin.h: Define select to sys_select.
102
1e7c162f
RS
1032002-08-09 Richard M. Stallman <rms@gnu.org>
104
105 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
106
d43be70c
GM
1072002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
108
109 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
110 end of the buffer.
111
d90ed3b4
KR
1122002-08-08 Ken Raeburn <raeburn@mit.edu>
113
114 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int
115 mixup.
116
b177738e
KR
117 * puresize.h (BASE_PURESIZE): Increase to 910000.
118
b12a8058
KH
1192002-08-08 Kenichi Handa <handa@etl.go.jp>
120
121 * coding.c (Ffind_operation_coding_system): For write-region, if
122 VISIT is a filename, make it the target.
123
46e3984f
RS
1242002-08-07 Richard M. Stallman <rms@gnu.org>
125
126 * alloc.c (mark_object): Detect long lists for debugging.
127 (mark_object_loop_halt): New variable.
128
129 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
130
131 * data.c (Fmake_variable_frame_local): Doc fix.
132
86d98c33
RS
1332002-08-01 David Ponce <david@dponce.com>
134
135 * w32menu.c (local_heap, local_alloc, local_free): New macros.
136 (malloc_widget_value, free_widget_value)
137 (w32_free_submenu_strings): Use them.
138
139 (push_submenu_start, push_submenu_end, push_left_right_boundary)
140 (push_menu_pane, push_menu_item, single_keymap_panes)
141 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
142 (single_submenu, set_frame_menubar)
143 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
144
145 (Fx_popup_menu): Don't show pop up menu until preceding one is
146 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
147
148 * w32menu.c: Changes adapted from xmenu.c
149 (set_frame_menubar): First parse all submenus,
150 then make widget_value trees from them.
151 Don't allocate any widget_value objects
152 until we are done with the parsing.
153 (parse_single_submenu): New function.
154 (digest_single_submenu): New function.
155 (single_submenu): Function deleted, replaced by those two.
156
44fab9c1
AC
1572002-08-04 Andrew Choi <akochoi@shaw.ca>
158
159 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
160 returns a valid window pointer before proceeding for keyDown and
161 autoKey events.
162
742fbed7
AC
1632002-08-03 Andrew Choi <akochoi@shaw.ca>
164
165 * macterm.c (USE_CARBON_EVENTS): New macro.
166 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
167 (x_iconify_frame): Call CollapseWindow.
168 (Vmac_reverse_ctrl_meta): New variable.
169 (Vmac_wheel_button_is_mouse_2): New variable.
170 (init_mac_drag_n_drop): New function.
171 (mac_do_receive_drag): New function.
172 (mac_handle_service_event): New function.
173 (init_service_handler): New function.
174 (mac_to_emacs_modifiers): New function.
175 (mac_event_to_emacs_modifiers): New function.
176 (mac_get_mouse_btn): New function.
177 (mac_convert_event_ref): New function.
178 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
179 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
180 mac_get_mouse_btn.
181 (mac_initialize): Call init_mac_drag_n_drop and
182 init_service_handler.
183
184 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
185 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
186 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
187 TOOL_BAR_EVENT for MAC_OS as well.
188 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
189 as for WINDOWS_NT.
190 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
191
192 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
193 MAC_OSX.
194
db0bb807
GM
1952002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
196
197 * xdisp.c (forward_to_next_line_start): Fix a condition that
198 lead to a newline being skipped.
199
36426689
AC
2002002-08-02 Andrew Choi <akochoi@shaw.ca>
201
202 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
203
ad44f2a1
RS
2042002-08-01 Richard M. Stallman <rms@gnu.org>
205
206 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
207
9794a8cd
AC
2082002-07-31 Andrew Choi <akochoi@shaw.ca>
209
41428ec4
AC
210 * macfns.c: #undef init_process before #define-ing it.
211
9794a8cd
AC
212 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
213 HAVE_CARBON is defined.
214
ced89c24
RS
2152002-07-31 Richard M. Stallman <rms@gnu.org>
216
217 * xmenu.c (set_frame_menubar): First parse all submenus,
218 then make widget_value trees from them.
219 Don't allocate any widget_value objects
220 until we are done with the parsing.
221 (parse_single_submenu): New function.
222 (digest_single_submenu): New function.
223 (single_submenu): Function deleted, replaced by those two.
224
45de4a6f
JB
2252002-07-30 Juanma Barranquero <lektu@terra.es>
226
227 * w32proc.c (syms_of_ntproc): Fix docstring of
228 `w32-get-true-file-attributes'.
229
3ea1bfb2
RS
2302002-07-28 Richard M. Stallman <rms@gnu.org>
231
232 * s/hpux8.h (HPUX8): Define this before including hpux.h.
233 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
45de4a6f 234
3ea1bfb2
RS
235 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
236
237 * keyboard.c (make_lispy_event):
238 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
239 Explicitly clear up_modifier in event->modifiers.
240
01af8a38
RS
2412002-07-27 Richard M. Stallman <rms@gnu.org>
242
243 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
244
245 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
246 for bar cursor.
247
5483cd4e
KH
2482002-07-26 Kenichi Handa <handa@etl.go.jp>
249
250 * coding.c (detect_coding_iso2022): While checking a byte sequence
251 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
252 it in the normal loop.
253
acfca545
RS
2542002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
255
256 * xterm.c (expose_overlaps): New function.
257 (expose_window): Use it to fix the display of overlapping rows.
258
259 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
260
be3abfa2
KR
2612002-07-23 Ken Raeburn <raeburn@gnu.org>
262
263 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
264 since it only depends on XUINT.
265
266 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
267 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
268 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
269 Macros deleted.
270
271 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
272 its value over other approaches.
273 * sysdep.c (start_of_data): Don't define the function if a macro
274 form has been defined.
275
9a654855
RS
2762002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
277
278 * xdisp.c (redisplay_updating_p): New variable.
279 (init_iterator): Don't free realized faces when
280 redisplay_updating_p is set.
281 (redisplay_internal): Set redisplay_updating_p while updating
282 the display.
283
6076e561
RS
2842002-07-23 Richard M. Stallman <rms@gnu.org>
285
286 * editfns.c (Fmessage): Treat "" like nil.
287
1d1b6e6a
KH
2882002-07-23 Kenichi Handa <handa@etl.go.jp>
289
290 * xdisp.c (face_before_or_after_it_pos): Call
291 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
292
c9a883b8
JB
2932002-07-22 Juanma Barranquero <lektu@terra.es>
294
295 * callproc.c (init_callproc) [DOS_NT]: Initialize
296 Vshared_game_score_directory to nil.
297 (syms_of_callproc) [DOS_NT]: Likewise.
298
72b8c434
RS
2992002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
300
301 * xdisp.c (display_line): Replace an abort with xassert.
302
a8bbe549
RS
3032002-07-21 Richard M. Stallman <rms@gnu.org>
304
305 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
306 and END_UNCHANGED when setting buffer_unchanged_p.
307 Use current_matrix_up_to_date_p to decide whether to use
308 try_cursor_movement.
309
310 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
311
312 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
313
314 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
315 Set to nil if dir does not exist.
316 (syms_of_callproc): Init unconditionally and simply.
317
318 * buffer.c (Fbuffer_list): Doc fix.
319
bb63c5c9
KR
3202002-07-21 Ken Raeburn <raeburn@gnu.org>
321
56468649
KR
322 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
323
bb63c5c9 324 * buffer.c (mmap_realloc): When shrinking, make sure number of
3fb7ef6f 325 pages to unmap is rounded towards zero.
bb63c5c9 326
4648267b 327 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
915882da 328 (XSETINT): Deleted.
4648267b 329
b0e057bc
KR
330 * m/att3b.h (XINT): Don't define.
331 (VALBITS, VALMASK, XTYPE): Deleted.
332 (DATA_SEG_BITS): Define.
333 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
334 ARRAY_MARK_FLAG): Deleted.
335 (DATA_SEG_BITS): Define.
336 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
337 (DATA_SEG_BITS): Define.
338
56592beb
RS
3392002-07-20 Richard M. Stallman <rms@gnu.org>
340
341 * print.c (print_error_message): New args CONTEXT and CALLER.
342 Calls changed.
45de4a6f 343
56592beb
RS
344 * lisp.h (print_error_message): Declare new args.
345
346 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
347 and CONTEXT to print_error_message, don't print them here.
348 For a Quit, don't use Vsignaling_function.
349 Call message_log_maybe_newline.
45de4a6f 350
56592beb
RS
351 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
352
3532002-07-20 Kim F. Storm <storm@cua.dk>
354
355 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
356
dffb0c47
KR
3572002-07-19 Ken Raeburn <raeburn@gnu.org>
358
359 * bytecode.c (struct byte_stack): Pointers into byte string now
360 point to const.
361 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
362 const.
363 * charset.h (BCOPY_SHORT): Source pointer now points to const.
364 * coding.c (encode_eol, detect_coding, detect_eol):
365 (decode_coding, encode_coding, detect_coding_system): Source
366 strings now treated as const.
367 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
368 modify Lisp string contents.
369 * coding.h (decode_coding, encode_coding, detect_coding,
370 detect_eol): Declarations updated.
371 * composite.c (compose_chars_in_text): Treat Lisp string contents
372 as const.
373 * dispnew.c (safe_bcopy): Source pointer now points to const.
374 * lisp.h (STRING_COPYIN): New macro.
375 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
376 (internal_with_output_to_temp_buffer): Declarations updated.
377 * print.c (temp_output_buffer_setup):
378 (internal_with_output_to_temp_buffer): Buffer name argument is now
379 pointer to const.
380 * sound.c (struct sound_device): Function pointer field "write"
381 buffer argument now points to const.
382 (vox_write): Buffer argument points to const.
383 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
384 contents as const.
405ea71c
KR
385 * sysdep.c (emacs_write): Buffer pointer now const.
386 * term.c (encode_terminal_code): Buffer pointer now const.
dffb0c47
KR
387 * xfaces.c (may_use_scalable_font_p): Argument now points to
388 const.
389 (x_face_list_fonts, x_update_menu_appearance):
390 (hash_string_case_insensitive): Treat Lisp string contents as
391 const.
392
dd8d66ad
JB
3932002-07-19 Juanma Barranquero <lektu@terra.es>
394
0dac4f85 395 * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
8cfd6446 396 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
0dac4f85 397
dd8d66ad
JB
398 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
399
400 * fileio.c (syms_of_fileio): Likewise.
401
f33f4398
RS
4022002-07-18 Richard M. Stallman <rms@gnu.org>
403
404 * data.c (Fdefalias): Doc fix.
405
f860212e
DL
4062002-07-17 Dave Love <fx@gnu.org>
407
46f4bf30
DL
408 * intervals.h (text_property_stickiness): Use P_.
409
f860212e
DL
410 * ccl.c: Remove `emacs' conditionals.
411 (ccl_backtrace_table): Fix size spec.
412 (ccl_driver): Fix type errors.
413
674537ea
KR
4142002-07-16 Ken Raeburn <raeburn@gnu.org>
415
bd66096a
KR
416 * alloc.c (xstrdup, make_string, make_unibyte_string)
417 (make_multibyte_string, build_string): String pointer args now
418 point to const.
419 * charset.c (find_charset_in_text, c_string_width):
420 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
421 * fileio.c (report_file_error):
422 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
423 (count_combining_before, count_combining_after, insert_1_both):
424 (insert, insert_and_inherit, insert_string):
425 (insert_before_markers, insert_before_markers_and_inherit):
426 * lread.c (intern, oblookup, hash_string):
427 * minibuf.c (temp_echo_area_glyphs):
428 * search.c (fast_c_string_match_ignore_case):
429 * sysdep.c (emacs_open, set_file_times):
430 * xfaces.c (xstricmp):
431 * xdisp.c (store_frame_title, string_char_and_length):
432 (message_dolog, message2, message2_nolog, set_message): Likewise.
433 (set_message_1): Cast message string argument to const pointer.
434 * editfns.c (general_insert_function): Insertion function now
435 takes pointer to const for input data.
436 * charset.h (find_charset_in_text, c_string_width):
437 (parse_str_as_multibyte): Declarations updated.
438 * dispextern.h (xstricmp): Declaration updated.
439 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
440 (count_size_as_multibyte, count_combining_before):
441 (count_combining_after, insert_1, insert_1_both, message_dolog):
442 (insert, insert_and_inherit, insert_before_markers)
443 (insert_before_markers_and_inherit, set_message, message2):
444 (message2_dolog, build_string, make_string, make_unibyte_string):
445 (make_multibyte_string, intern, oblookup, report_file_error):
446 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
447 (emacs_open, xstrdup): Declarations updated.
448 * systime.h (set_file_times): Declaration updated.
449
450 * charset.c (find_charset_in_text, lisp_string_width): Use const
451 for pointer to lisp string data.
452 * charset.h (FETCH_STRING_CHAR_ADVANCE):
453 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
454 * coding.c (Ffind_coding_systems_region_interval):
455 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
456 (Fmake_directory_internal, Fdelete_directory):
457 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
458 * fontset.c (font_family_registry, fs_query_fontset):
459 (list_fontsets):
460 * frame.c (Fframe_parameter):
461 * keyboard.c (cmd_error_internal):
462 * keymap.c (Fdescribe_buffer_bindings):
463 * lread.c (complete_filename_p, openp):
464 * minibuf.c (Fminibuffer_complete_word):
465 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
466 (face_before_or_after_it_pos, next_element_from_string):
467 (get_overlay_arrow_glyph_row, display_mode_element):
468 (decode_mode_spec_coding):
469 * xterm.c (same_x_server): Likewise.
470
943afcc7
KR
471 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
472 settings of non-existent fields.
473
474 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
475 copy a lisp value.
476
477 * lread.c (Fintern_soft): Use string macros instead of
478 Lisp_String fields.
1b049b51
KR
479 * keyboard.c (echo_char, parse_modifiers_uncached):
480 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
943afcc7
KR
481 * textprop.c (validate_interval_range, interval_of): Likewise.
482
9f5348e3
KR
483 * fontset.c (Fset_fontset_font): Use SDATA instead of
484 XSTRING()->data.
485
486 * charset.h (FETCH_STRING_CHAR_ADVANCE,
487 FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
488 XSTRING()->size_byte.
489
7da167cd
KR
490 * lisp.h (SDATA, SREF): Produce rvalue.
491 (SSET): New macro.
492 * alloc.c (make_event_array): Use SSET for storing into a string.
493 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
494 a string.
495 * casefiddle.c (casify_object): Use SSET.
496 * charset.h (FETCH_STRING_CHAR_ADVANCE,
497 FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
498 address of string contents.
499 * data.c (Faref): Use SDATA.
500 (Faset): Use SDATA, SSET.
501 * dired.c (directory_files_internal): Use SSET.
502 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
503 (Fread_file_name): Use SREF, SSET.
504 * fns.c (concat): Use SSET.
505 (concat, Fdelete): Use SDATA.
506 * insdel.c (insert_from_string_1): Use SDATA.
507 * keyboard.c (Fevent_convert_list): Use SREF.
508 * lread.c (Fload): Use SDATA, SSET.
509 * macfns.c (validate_x_resource_name): Use SSET.
510 * process.c (status_message): Use SSET.
511 * search.c (wordify): Use SDATA.
512 (Freplace_match): Use SREF.
513 * w32fns.c (validate_x_resource_name): Use SSET.
514 * xfns.c (validate_x_resource_name): Use SSET.
515 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
674537ea 516
9ee49ebc
RS
5172002-07-16 Richard M. Stallman <rms@gnu.org>
518
519 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
520
521 * xdisp.c (reconsider_clip_changes):
522 Don't test prevent_redisplay_optimizations_p.
523 (redisplay_internal): Test prevent_redisplay_optimizations_p
524 along with clip_changed in some cases.
525 (try_window_id): Likewise.
526 (redisplay_window): New local var buffer_unchanged_p.
527
528 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
529
530 * process.c (create_process): Test USG_SUBTTY_WORKS.
531 (process_send_signal): Clean up handling of GID.
532 Detect errors in ioctls meant to set GID.
533
534 * window.c (temp_output_buffer_show):
535 Don't set prevent_redisplay_optimizations_p.
536
d907a3bf
JB
5372002-07-15 Juanma Barranquero <lektu@terra.es>
538
539 * eval.c (Fdefvaralias): Add docstring argument.
540
9056febe
KR
5412002-07-15 Ken Raeburn <raeburn@gnu.org>
542
543 * lisp.h (STRING_INTERVALS): Produce rvalue.
544 (STRING_SET_INTERVALS): New macro.
545 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
546 * fns.c (Fstring_as_multibyte): Likewise.
979a8abc
SM
547 * intervals.c (balance_possible_root_interval, delete_interval)
548 (create_root_interval, copy_intervals_to_string): Likewise.
9056febe
KR
549 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
550 instead of 0.
551
d5db4077
KR
5522002-07-14 Ken Raeburn <raeburn@gnu.org>
553
bee91904
KR
554 * lisp.h (STRING_SET_CHARS): New macro.
555 (SCHARS, SBYTES): Produce rvalues.
556 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
557 * fns.c (concat): Likewise.
558 * lread.c (read_vector): Likewise.
559
d5db4077
KR
560 * lisp.h (SMBP): Deleted. All uses changed to STRING_MULTIBYTE.
561 (STRING_SET_UNIBYTE): New macro.
562 (SET_STRING_BYTES): Deleted. Callers (all of which supplied a
563 length of -1) changed to use STRING_SET_UNIBYTE.
d5db4077
KR
564 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
565 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
566 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
567 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
568 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
569 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
570 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
571 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
572 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
573 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
574 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
575 STRING_BYTES or indirection changed to SCHARS, SBYTES,
576 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
577 unchanged for now.
578
aae2ce50
KS
5792002-07-13 Kim F. Storm <storm@cua.dk>
580
581 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
582
a8fda945
RS
5832002-07-12 Richard M. Stallman <rms@gnu.org>
584
32a86c99
RS
585 * fileio.c (Fwrite_region): Doc fix.
586
a8fda945
RS
587 * print.c (print_error_message): Don't handle Vsignaling_function here.
588
589 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
590 (command_loop_1): Avoid certain actions after memory-full error.
591
592 * eval.c (Fsignal): Don't call cancel_hourglass.
593 For a memory-full error, don't call Vsignal_hook_function
594 and don't set Vsignaling_function.
595
596 * process.c (process_send_signal): Add abort call.
597
35936c5c
MR
5982002-07-11 Markus Rost <rost@math.ohio-state.edu>
599
600 * keymap.c (Fkey_binding): Fix typo.
601
42cec426
RS
6022002-07-11 Richard M. Stallman <rms@gnu.org>
603
a8fda945
RS
604 * alloc.c (Vmemory_full): New variable.
605 (Vmemory_signal_data): Renamed from memory_signal_data.
606 Uses changed.
607 (syms_of_alloc): Defvar them.
608 (memory_full, buffer_memory_full): Set Vmemory_full.
979a8abc 609
a8fda945
RS
610 * lisp.h (Vmemory_full): Add declaration.
611 (current_column, indented_beyond_p): Change declaration.
612
613 * indent.c (last_known_column): Declare as double, not float.
614 (current_column, current_column_1, string_display_width)
615 (position_indentation): Return `double'.
616 (indented_beyond_p): Arg `column' is `double'. Callers changed.
979a8abc 617
a8fda945 618 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
979a8abc
SM
619 (back_to_previous_visible_line_start)
620 (reseat_at_next_visible_line_start, next_element_from_buffer):
a8fda945
RS
621 Use `double', not `float', when calling indented_beyond_p.
622
42cec426
RS
623 * s/hpux11.h (BROKEN_SA_RESTART): Defined.
624
625 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
626
89297f23
JB
6272002-07-11 Juanma Barranquero <lektu@terra.es>
628
71c5e9bb
JB
629 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
630 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
631 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
632 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
633 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
634 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
89297f23 635
3cca0d40
JB
6362002-07-10 Juanma Barranquero <lektu@terra.es>
637
638 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
639 changed.
640
f61cd322
SM
6412002-07-09 Stefan Monnier <monnier@cs.yale.edu>
642
979a8abc
SM
643 * data.c (Fdefalias): Add an optional `docstring' argument.
644 (set_internal, Fsetq_default): Use XCAR/XCDR.
645
646 * composite.c (HASH_VALUE, HASH_KEY):
f61cd322
SM
647 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
648
282b5fb7
KH
6492002-07-09 Kenichi Handa <handa@etl.go.jp>
650
651 * callproc.c (Fcall_process): Fix previous change.
652
5d733a9c
SM
6532002-07-07 Stefan Monnier <monnier@cs.yale.edu>
654
655 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
656 Add support for hash-tables.
657 (Ftry_completion): Return t even if the string appears multiple times.
658
659 * fns.c (Fnconc): Use XCDR.
660 (Fprovide): Use CONSP and XCDR.
661 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
662 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
663 (Fmake_hash_table): Accept `:size nil'.
664 (Fmakehash): Delete: moved to subr.el.
665 (syms_of_fns): Don't defsubr makehash.
666
667 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
668 (HASH_TABLE_SIZE): Move from fns.c.
669
af7272b1
RS
6702002-07-07 Richard M. Stallman <rms@gnu.org>
671
672 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
673 Instead just return 0 when there is something to be done.
674 (try_scrolling): If make_cursor_line_fully_visible returns 0,
675 retry scrolling as if cursor were off the bottom.
676 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
677 return CURSOR_MOVEMENT_MUST_SCROLL.
678 (redisplay_window): If make_cursor_line_fully_visible returns 0,
679 go to try_to_scroll.
680
681 * buffer.c (Fbuffer_local_value): Store current value into its binding
682 so we get the up-to-date value for the binding that is loaded.
683
684 * eval.c (Fdefmacro): Doc fix.
685
9406d1d9
DL
6862002-07-05 Dave Love <fx@gnu.org>
687
688 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
689 correctly.
690
691 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
692 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
693 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
694 CCL_LookupCharConstTbl.
695 (syms_of_ccl): Defvar translation-hash-table-vector.
696
89297f23 6972002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e9b60209
PJ
698
699 * xdisp.c: Remove unused variable `face'.
700
cf9b6656
JB
7012002-07-04 Juanma Barranquero <lektu@terra.es>
702
703 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
704 obsolescence information.
705
a0f593ff
AC
7062002-07-03 Andrew Choi <akochoi@shaw.ca>
707
10ba2aec
AC
708 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
709 pattern. Search cache first.
710 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
711 for Japanese font.
a0f593ff
AC
712 (XLoadQueryFont): Use it.
713
64805fb0
RS
7142002-07-02 Richard M. Stallman <rms@gnu.org>
715
716 * keymap.c (Fdefine_key): Doc fix.
717
718 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
719
df1890b0
JB
7202002-07-02 Juanma Barranquero <lektu@terra.es>
721
722 * keymap.c (syms_of_keymap): Fix typo.
723
bc21bf11
AC
7242002-07-01 Andrew Choi <akochoi@shaw.ca>
725
09740ad8
AC
726 * s/darwin.h: Define POSIX_SIGNALS.
727
bc21bf11
AC
728 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
729 and FSRefMakePath to convert FSSpec returned with Apple Event to
730 Posix pathname.
5d733a9c
SM
731 (mac_initialize) [TARGET_API_MAC_CARBON]:
732 Call init_required_apple_events and disable the `Quit' menu item
bc21bf11
AC
733 provided automatically by the Carbon Toolbox.
734
dc976f2c
DL
7352002-07-01 Dave Love <fx@gnu.org>
736
737 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
738 for K&R.
739
740 * xterm.c: Fix prototype for K&R.
741
742 * term.c (costs_set): Declare static, non-initialized for pcc.
743
ec962374
RS
7442002-07-01 Richard M. Stallman <rms@gnu.org>
745
746 * keyboard.c (timer_last_idleness_start_time): New variable.
747 (timer_start_idle): Set that.
748 (read_key_sequence): Use that to reset timer_idleness_start_time
749 to previous value.
cf9b6656 750
ec962374
RS
751 * window.c (Frecenter): With arg, set optional_new_start.
752
753 * xdisp.c (redisplay_internal): Make optional_new_start really work.
754
755 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
756 buffer for completion.
757
c8224325
KR
7582002-06-29 Ken Raeburn <raeburn@gnu.org>
759
760 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
761
20057d52
JD
7622002-06-28 Jan D. <jan.h.d@swipnet.se>
763
764 * keyboard.c (readable_filtered_events): New function that filters
765 FOCUS_IN_EVENT depending on parameter.
766 (readable_events): Calls readable_filtered_events, not filtering
767 FOCUS_IN_EVENT.
768 (get_filtered_input_pending): New function, filtering parameter passed
769 to readable_filtered_events.
770 (get_input_pending): Calls get_filtered_input_pending, not filtering
771 FOCUS_IN_EVENT.
772 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
773 FOCUS_IN_EVENT.
774
775 * xterm.h (struct x_output): Add focus_state.
776
777 * xterm.c (x_focus_changed): New function.
778 (x_detect_focus_change): New function.
779 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
780 EnterNotify and LeaveNotify to track X focus changes.
781
1aa1cb66
AS
7822002-06-28 Andreas Schwab <schwab@suse.de>
783
784 * lisp.h: Remove duplicate declaration of
785 code_convert_string_norecord.
786
377408cf
KS
7872002-06-27 Kim F. Storm <storm@cua.dk>
788
789 * xdisp.c: (mode_line_string_list, mode_line_string_face)
790 (mode_line_string_face_prop): New variables.
791 (store_mode_line_string): New function.
792 (display_mode_element): Use store_mode_line_string to
793 add mode-line string elements to mode_line_string_list
794 when mode_line_string_list is non-nil.
795 (Fformat_mode_line): Now returns propertized string by
796 default. New arg NO-PROPS to ignore properties.
797 (decode_mode_spec): Only add two dashes for %- in propertized
798 mode-line string.
799 (syms_of_xdisp): Init and staticpro mode_line_string_list.
cf9b6656 800
5b62b301
SM
8012002-06-27 Stefan Monnier <monnier@cs.yale.edu>
802
803 * minibuf.c (minibuffer_completion_contents): Add return type.
804
23a3b598
JB
8052002-06-27 Juanma Barranquero <lektu@terra.es>
806
5b62b301 807 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
23a3b598 808
7182e608
JB
8092002-06-26 Juanma Barranquero <lektu@terra.es>
810
811 * fileio.c (read_file_name_cleanup): Add missing return.
812
6c488ddb
RS
8132002-06-26 Richard M. Stallman <rms@gnu.org>
814
8ce9dfc1
RS
815 * window.c (Frecenter): Don't set force_start flag.
816
5b62b301 817 * minibuf.c (do_completion, Fminibuffer_complete_word)
8ce9dfc1
RS
818 (Fminibuffer_completion_help): Complete just the text before point.
819 (minibuffer_completion_contents): New function.
820
6c488ddb
RS
821 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
822
823 * frame.c (frames_bury_buffer): Function deleted.
824
c2b736ca
MB
8252002-06-25 Miles Bader <miles@gnu.org>
826
827 * callint.c (Fcall_interactively): When checking to see if doprnt hit
828 the end of callint_message, allow for a terminating '\0'.
829
d0db8f56
JB
8302002-06-24 Juanma Barranquero <lektu@terra.es>
831
832 * w32select.c: Include composite.h
833
f7d05dc4
JB
834 * w16select.c: Likewise.
835
24df0f36
KH
8362002-06-24 Kenichi Handa <handa@etl.go.jp>
837
838 * callproc.c (Fcall_process): If code detection is necessary,
839 call detect_coding directly here.
840
841 * coding.c (detect_eol): Preserve coding->cmp_data.
842
04f13f39 843 * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
24df0f36
KH
844
845 * w32fns.c (w32_to_x_font): Disable composition handling.
846
04f13f39 847 * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
24df0f36
KH
848
849 * xselect.c (selection_data_to_lisp_data): Disable composition
850 handling.
851
852 * xterm.c (XTread_socket): Disable composition handling.
853
04f13f39
SM
8542002-06-24 Stefan Monnier <monnier@cs.yale.edu>
855
856 * print.c (temp_output_buffer_setup): Kill all local variables.
857
f352c826
SM
8582002-06-22 Stefan Monnier <monnier@cs.yale.edu>
859
11554bdd
SM
860 * lread.c (Fread): Remove redundant and imprecise declaration.
861
862 * xfns.c (check_x_display_info): Use check_x_frame.
863
f352c826
SM
864 * .gdbinit (xprintsym): Use the new `xname' field.
865 (xsymbol): Use it.
866
1030b26b
JR
8672002-06-22 Jason Rumney <jasonr@gnu.org>
868
869 * w32fns.c (file_dialog_callback): New function.
870 (Fx_file_dialog): Allow selecting directories as well as files.
871
bc21bf11 8722002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
29c3cbf0
PJ
873
874 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
875 OpenBSD. Add support for mipseb-*-netbsd* machines.
876
b432b442
AC
8772002-06-17 Andrew Choi <akochoi@shaw.ca>
878
2d97ff8c
AC
879 * macterm.c (mac_scroll_area): Set foreground and backcolor to
880 black and white before scrolling. Restore frame background and
881 foreground color after scrolling.
882 (do_window_update): Call XClearWindow before calling expose_frame.
883 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
884 FRAME_FOREGROUND_PIXEL of frame.
f352c826 885
b432b442
AC
886 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
887 test Mac command key as <ALT> key.
888
f9c0c10f
SM
8892002-06-17 Stefan Monnier <monnier@cs.yale.edu>
890
65e0fbbf
SM
891 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
892
893 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
894 Lookup keys in function-key-map immediately so that key-translation-map
895 can be applied earlier.
896 Remove function_key_possible and key_translation_possible, replaced
897 by checking `keytran_start < t'.
898
f352c826 899 * .gdbinit (xsymbol): Use the new `xname' field.
f9c0c10f 900
84c0c2cc
AC
9012002-06-17 Andrew Choi <akochoi@shaw.ca>
902
b432b442
AC
903 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
904 test Mac command key as <ALT> key.
905
84c0c2cc 906 * mac.c (do_applescript): Call initialize_applescript if necessary
f9c0c10f 907 when first called. Dispose of result_desc only when there is no error.
84c0c2cc 908 (Fdo_applescript): Use %d format specifier instead of %ld.
f9c0c10f 909
f00691a3
AC
9102002-06-16 Andrew Choi <akochoi@shaw.ca>
911
b6cce0b7
AC
912 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
913 of FrontWindow for cases keyDown and autoKey.
914
f00691a3
AC
915 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
916 Vdefault_fontset to Monaco with mac-roman coding.
917
918 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
919 init_process before and after inclusion of Carbon/Carbon.h, resp.
920
921 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
922 cursor_gc.
923 (add_font_name_table_entry): New function.
924 (init_font_name_table): Use add_font_name_table_entry; add italic,
925 bold, and bold-italic entries for truetype fonts.
926
927 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
928 for Mac too.
929 (try_font_list) [MAC_OS]: If no font matches given registry, try
930 fonts with any registry matching face_family.
f9c0c10f 931 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
f00691a3
AC
932
933 * s/darwin.h: If autoconf detects the Ncurses library, define
934 LIBS_TERMCAP to -lncurses to use it.
f9c0c10f 935
5fd4d159
EZ
9362002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
937
938 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
939
93731c54
RS
9402002-06-15 Richard M. Stallman <rms@gnu.org>
941
942 * window.c (Fset_window_configuration): Explicitly preserve
943 the point value that new_current_buffer had at the start.
944
2268661a
JB
9452002-06-14 Juanma Barranquero <lektu@terra.es>
946
947 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
948 Fix typos.
949
e4f10c83
KS
9502002-06-14 Kim F. Storm <storm@cua.dk>
951
952 * insdel.c (insert_1_both, insert_from_string_1)
953 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
954 insert happened in the end_unchanged region. Otherwise, the
955 redisplay may be confused and duplicate the last line in the
956 buffer [seen after save-buffer when require-final-newline==t].
957
960f21ae
JR
9582002-06-13 Jason Rumney <jasonr@gnu.org>
959
960 * w32.c (init_environment): Remove EMACSLOCKDIR.
91224f9e 961 (stat): Swap _S_IFDIR and _S_IFREG.
960f21ae 962
f00691a3 9632002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e43bd4f5 964
cc1b792b
PJ
965 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
966 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
967 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
968 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
969 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
970 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
971 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
972 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
973 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
974 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
e43bd4f5
PJ
975 SELECTION_REQUEST_EVENT, selection_clear_event to
976 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
977 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
978 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
979 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
cc1b792b
PJ
980 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
981 no_event to NO_EVENT.
e43bd4f5 982
f00691a3 9832002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b3e8cc4d
PJ
984
985 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
986
91b53904
SM
9872002-06-12 Stefan Monnier <monnier@cs.yale.edu>
988
989 * intervals.c (textget): Don't forget to `return'.
990 (lookup_char_property): Use XCAR/XCDR.
991
8b22c65a
JB
9922002-06-12 Juanma Barranquero <lektu@terra.es>
993
994 * xdisp.c (Fformat_mode_line): Fix typo.
995
aba91547
KS
9962002-06-12 Kim F. Storm <storm@cua.dk>
997
998 * xdisp.c (Fformat_mode_line): New function.
999 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
1000 (store_frame_title_char, store_frame_title): Use unconditionally.
1001 (init_xdisp): Defsubr Fformat_mode_line.
1002 Initialize frame_title_buf etc. unconditionally.
1003
2cf4b7b2
SM
10042002-06-11 Stefan Monnier <monnier@cs.yale.edu>
1005
1006 * keyboard.c (read_key_sequence):
1007 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
1008 things through those maps after downcasing events.
1009 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
1010 applies after function-key-map.
1011 Make sure that keytran can be done in the middle in the sequence.
1012 Be careful not to throw away events past the one we downcase.
1013
1014 * lread.c (read_integer): Remove unused var `tem'.
1015 (read1): Fix int/Lisp_Object mixup.
1016
1017 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
1018
0672b5a0
RS
10192002-06-11 Richard M. Stallman <rms@gnu.org>
1020
1021 * keyboard.c (readable_events): Ignore any number of
1022 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
1023
ab2e49a0
MB
10242002-06-09 Miles Bader <miles@gnu.org>
1025
1026 * xfaces.c (Ftty_supports_face_attributes_p): New function.
1027 (parse_rgb_list, tty_lookup_color): New functions.
1028 (tty_defined_color): Use `tty_lookup_color' to do all the work.
1029 (color_distance, Fcolor_distance): New functions.
1030 (TTY_SAME_COLOR_THRESHOLD): New macro.
1031 (Qtty_color_standard_values): New variable.
1032 (syms_of_xfaces): Initialize new vars & functions.
1033
a8f57660
CW
10342002-06-08 Colin Walters <walters@verbum.org>
1035
1036 * textprop.c (Vchar_property_alias_alist): New variable.
2cf4b7b2 1037 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
a8f57660
CW
1038
1039 * intervals.c (lookup_char_property): New function for looking up
1040 overlay and text properties, created from textget.
1041 (textget): Use it.
2cf4b7b2 1042
a8f57660
CW
1043 * intervals.h (lookup_char_property): Declare.
1044 (Vchar_property_alias_alist): Declare.
1045
1046 * buffer.c (Foverlay_get): Use lookup_char_property.
1047
1b65481e
SS
10482002-06-07 Sam Steingold <sds@gnu.org>
1049
1050 * xselect.c (lisp_data_to_selection_data): Fix last change:
1051 *data_ret is not a Lisp string, while unibyte_string is.
1052
9cbd5852
EZ
10532002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
1054
2cf4b7b2
SM
1055 * xselect.c (lisp_data_to_selection_data): Fix last change:
1056 set size_ret.
9cbd5852 1057
3fa4ac47
AS
10582002-06-07 Andreas Schwab <schwab@suse.de>
1059
1060 * m/amdx86-64.h: New file.
1061
ebadb1e4
EZ
10622002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
1063
4ddc38a1
EZ
1064 * fns.c (Fstring_make_unibyte): Doc fix.
1065
8f9b87b5
EZ
1066 * xselect.c (lisp_data_to_selection_data): If the requested type
1067 is STRING, call string_make_unibyte to encode the selected text
1068 as a string.
1069
ebadb1e4
EZ
1070 * window.c (Fset_window_hscroll): Doc fix.
1071
f00691a3 10722002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1909941a 1073
2cf4b7b2
SM
1074 * fileio.c (choose_write_coding_system):
1075 Call select-safe-coding-system properly.
1909941a 1076
3a2ff803
RS
10772002-06-03 Richard M. Stallman <rms@gnu.org>
1078
1079 * xdisp.c (message_with_string): Error if STRING is not a string.
1080
1081 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
1082
1083 * fileio.c (choose_write_coding_system): Pass FILE arg to
1084 Vselect_safe_coding_system_function.
1085
382f558b 10862002-06-03 Ken Raeburn <raeburn@gnu.org>
504322ad 1087
2cf4b7b2 1088 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
504322ad 1089
e2c0561e
TTN
10902002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
1091
1092 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
1093 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
1094 * keymap.c (describe_command): Likewise.
1095 * minibuf.c (read_minibuf): Likewise.
1096
1097 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1098 Cast `current_column' return value to int.
2cf4b7b2
SM
1099 (back_to_previous_visible_line_start)
1100 (reseat_at_next_visible_line_start, next_element_from_buffer):
e2c0561e
TTN
1101 Cast `indented_beyond_p' 3rd arg to float.
1102
1103 * indent.c (last_known_column): Now a float.
2cf4b7b2
SM
1104 (current_column_1, position_indentation, current_column)
1105 (string_display_width): Return float.
e2c0561e
TTN
1106 (Fcurrent_column): Cast `current_column' return value to int.
1107 (Fcurrent_indentation): Cast `position_indentation' retval to int.
1108 (indented_beyond_p): Third arg now a float.
1109 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
1110
1111 * lisp.h (current_column): Now returns float.
1112 (indented_beyond_p): 3rd arg now a float.
1113
420a345c
EZ
11142002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
1115
43dc73f1
EZ
1116 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
1117 is Qcompound_text_with_extensions.
1118
1119 * xselect.c (lisp_data_to_selection_data): Always set selection
1120 type as string if x_encode_text returns streingp non-NULL.
1121
420a345c
EZ
1122 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
1123
a71867c5
RS
11242002-05-30 Richard M. Stallman <rms@gnu.org>
1125
1126 * window.c (Fset_window_configuration): Correct the handling
1127 of point in current buffer, to work with multiple windows.
1128
96801005
CW
11292002-05-29 Colin Walters <walters@verbum.org>
1130
1131 * lread.c (Fread_from_string): Don't depend on order of evaluation
1132 for C function parameters.
1133
f7e039de
RS
11342002-05-28 Richard M. Stallman <rms@gnu.org>
1135
1136 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
1137 way for blinked-off state and for a nonselected window.
1138
1139 * window.c (window_scroll_pixel_based): Don't call Fbolp;
1140 instead, see if the new start pos is at beginning of line.
1141
1142 * fileio.c (Fwrite_region): If START is a string, don't
1143 make any annotations.
1144
1145 * eval.c (syms_of_eval): Doc fix.
1146
532a8e8b
CW
11472002-05-28 Colin Walters <walters@debian.org>
1148
1149 * emacs.c (USAGE1): Add --no-splash.
1150 (standard_args): Ditto.
1151
11522002-05-28 Colin Walters <walters@gnu.org>
1153
1154 * lread.c (readchar_count): New variable.
1155 (readchar): Increment it.
1156 (unreadchar): Decrement it.
1157 (read_multibyte): Decrement it.
1158 (Vread_with_symbol_positions): New variable.
1159 (Vread_symbol_positions_list): New variable.
1160 (read_internal_start): New function, created from Fread and
1161 Fread_from_string. Handle Vread_symbol_positions_list and
1162 Vread_with_symbol_positions.
1163 (readevalloop, Fread, Fread_from_string): Use it.
1164 (read1): Use readchar_count to add symbol positions to
2cf4b7b2 1165 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
532a8e8b
CW
1166 (syms_of_lread): DEFVAR_LISP and initialize them.
1167
1168 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
1169 (substitute_object_recurse, substitute_object_in_subtree)
1170 (substitute_in_interval): Prototype.
1171 (read_multibyte): Return c if it's less than zero.
e2c0561e 1172
02f20f98
KS
11732002-05-28 Kim F. Storm <storm@cua.dk>
1174
b44ec8e3
KS
1175 * fileio.c (Fread_file_name_internal): Added brute-force
1176 speed up for using predicate file-directory-p.
1177
11782002-05-28 Kim F. Storm <storm@cua.dk>
1179
1180 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
02f20f98
KS
1181 New variables.
1182 (syms_of_fileio): DEFVAR_LISP them.
1183 (read_file_name_cleanup): New unwind function.
1184 (Fread_file_name_internal): Only return completions satifying
1185 Vread_file_name_predicate. Temporarily unwind protect and rebind
1186 default-directory while checking completions against the predicate.
1187 (Fread_file_name): Added PREDICATE argument. Specbind it to
1188 Vread_file_name_predicate during completion.
1189 Call Vread_file_name_function to read the file name if non-nil.
1190
1191 * lisp.h (Fread_file_name): Now has 6 args.
e2c0561e 1192
02f20f98
KS
1193 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
1194 predicate for Fread_file_name when reading directory name.
1195 Supply Qnil for predicate in other calls to Fread_file_name.
1196
9e8abde7
MB
11972002-05-26 Miles Bader <miles@gnu.org>
1198
1199 * term.c (tty_capable_p): New function.
1200 * dispextern.h (tty_capable_p): New function declaration.
1201 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
1202 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
1203
3751c81b
SM
12042002-05-23 Stefan Monnier <monnier@cs.yale.edu>
1205
1206 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
1207 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
1208 (Vwrite_region_annotate_functions): Docstring fix.
1209
6065f9e2 12102002-05-23 Kim F. Storm <storm@cua.dk>
39bb5900
KS
1211
1212 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
1213 phys_cursor's hpos is overwritten. This is still not completely
1214 correct, as it doesn't really make sense to use hpos at all to
1215 get the cursor glyph (as that is relative to the width of the
1216 characters on the line, which may have changed during the update).
1217
17456df1
JR
12182002-05-22 Jason Rumney <jasonr@gnu.org>
1219
1220 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
1221 Lisp_Object.
1222 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
1223 Use modified enumfont_t struct.
1224
1225 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3751c81b 1226
17456df1
JR
1227 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
1228 Handle the `hbar' cursor type.
1229 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
1230
1231 * w32fns.c (Qhbar): New variable.
1232 (x_specified_cursor_type): Use it.
1233
1b65564c
KR
12342002-05-21 Ken Raeburn <raeburn@gnu.org>
1235
1236 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
1237 now, when the address is needed.
1238
a7c4d9c8
CW
12392002-05-21 Colin Walters <walters@gnu.org>
1240
1241 * Makefile.in (shortlisp): Add font-core.el.
1242
301d4a3f
RS
12432002-05-20 Richard M. Stallman <rms@gnu.org>
1244
cd8d5236
RS
1245 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
1246
301d4a3f
RS
1247 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
1248 equivalent key bindings here.
1249
07e9823c
KR
12502002-05-20 Ken Raeburn <raeburn@gnu.org>
1251
1252 Change symbol structure to contain a lisp object for the symbol
1253 name:
1254 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
1255 object field named "xname".
1256 (SYMBOL_NAME): New macro.
1257 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
1258 name field.
1259 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
1260 (mark_object, gc_sweep): Use symbol xname field and XSTRING
1261 instead of name field.
1262 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
1263 SYMBOL_NAME instead of XSYMBOL and name field.
1264 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
1265 instead of XSYMBOL and name field.
1266 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
1267 and SYMBOL_NAME instead of XSYMBOL and name field.
1268 * coding.c (Fread_coding_system, code_convert_region1)
1269 (code_convert_string1, code_convert_string_norecord)
1270 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
1271 XSYMBOL and name field.
3751c81b
SM
1272 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
1273 (Fmake_variable_buffer_local, Fmake_local_variable)
07e9823c
KR
1274 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
1275 of XSYMBOL and name field.
1276 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
1277 XSYMBOL and name field.
1278 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
1279 instead of XSYMBOL and name field.
1280 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
1281 XSYMBOL and name field.
3751c81b
SM
1282 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
1283 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c
KR
1284 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
1285 instead of XSYMBOL and name field.
3751c81b
SM
1286 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
1287 (parse_modifiers, apply_modifiers, Fevent_convert_list)
1288 (parse_solitary_modifier, Fexecute_extended_command):
1289 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
1290 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
07e9823c
KR
1291 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
1292 of XSYMBOL and name field.
1293 (describe_command, describe_translation): Use SYMBOL_NAME and
1294 assignment instead of XSYMBOL and name field and XSETSTRING.
1295 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
1296 instead of XSYMBOL and name field.
1297 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
1298 name field and XSETSTRING.
1299 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
1300 of XSYMBOL and name field.
1301 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
1302 assignment instead of XSYMBOL and name field and XSETSTRING.
1303 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
1304 XSTRING instead of XSYMBOL and name field.
1305 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
1306 and XSTRING instead of XSYMBOL and name field.
1307 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
1308 and XSTRING instead of XSYMBOL and name field.
1309 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
1310 XSTRING instead of XSYMBOL and name field.
1311 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
1312 of XSYMBOL and name field.
3751c81b
SM
1313 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
1314 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
07e9823c 1315
7340cc50
KR
13162002-05-19 Ken Raeburn <raeburn@gnu.org>
1317
1318 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
1319 and XCDR real rvalues in most configurations.
1320
3751c81b
SM
1321 * buffer.c (fix_overlays_in_range, fix_overlays_before):
1322 Don't take the address of the cdr part of a cons cell; instead, track
7340cc50
KR
1323 the parent cell and call XSETCDR, or set the variable for the head
1324 of the list if we haven't started down the list yet.
1325
8bad880b
RS
13262002-05-19 Richard M. Stallman <rms@gnu.org>
1327
1328 * doc.c (reread_doc_file): Don't ask for confirmation.
1329
0708de07
JR
13302002-05-18 Jason Rumney <jasonr@gnu.org>
1331
1332 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
1333 (xbm_load_image): Use it.
1334 (xbm_load): Ditto.
1335 (xbm_read_bitmap_data): Reverted to xfns.c version.
1336 From David Ponce <david@dponce.com>.
1337
2c978faf
EZ
13382002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
1339
1340 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
1341 2.02 and later.
1342
b96fb65c
JB
13432002-05-16 Juanma Barranquero <lektu@terra.es>
1344
3751c81b 1345 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
b96fb65c 1346
daaf4dfc
SM
13472002-05-15 Stefan Monnier <monnier@cs.yale.edu>
1348
1349 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
1350 meaningful test.
1351 (read_char_minibuf_menu_prompt): Fix typo.
1352
f8229bf6
EZ
13532002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
1354
1355 * eval.c (Fcommandp): Doc fix.
1356
31bea176
SM
13572002-05-13 Stefan Monnier <monnier@cs.yale.edu>
1358
1359 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
1360 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
1361 (Fset_keymap_parent): Gcpro a bit more.
1362 (access_keymap): Gcpro around meta_map call and around the main loop.
1363 (get_keyelt): Gcpro when following indirect references.
1364 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
1365 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
1366 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
1367 Remove useless ad-hoc remap code.
1368
4d8ff34d
KH
13692002-05-13 Richard M. Stallman <rms@gnu.org>
1370
1371 * search.c (search_buffer): Give up boyer moore search if inverse
1372 translation change charset_base.
1373
9861e777
EZ
13742002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
1375
1376 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
1377 characters is carried over from the previous block of text, adjust
1378 coding->produced to account for the extra character.
1379
eef762fc
AS
13802002-05-11 Andreas Schwab <schwab@suse.de>
1381
1382 * coding.c (intersection): Keep the elements of the returned list
1383 in the same order as in the first list.
1384
6d8c02ae
KS
13852002-05-11 Kim F. Storm <storm@cua.dk>
1386
1387 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
1388 only update cmm_size if realloc actually succeeds.
1389 Testing with initial size of 2 elements revealed that using
1390 realloc on GNU/Linux would cause a random trap in xmalloc
1391 later on, so I rewrote the code to use malloc/bcopy/free instead
1392 of realloc.
1393
6358474d
JR
13942002-05-10 Jason Rumney <jasonr@gnu.org>
1395
1396 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
1397
22a2a460
EZ
13982002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
1399
1400 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
1401 parens, to ensure correct evaluation order.
1402
05b2c53f
KS
14032002-05-10 Kim F. Storm <storm@cua.dk>
1404
1405 * keymap.c (Vemulation_mode_map_alists): New variable.
1406 (syms_of_keymap): DEFVAR_LISP it.
1407 (current_minor_maps): Process keymap alists in that list before
1408 minor-mode-overriding-map-alist and minor-mode-map-alist.
1409
ccc8c8bb
RS
14102002-05-09 Richard M. Stallman <rms@gnu.org>
1411
1412 * search.c (Freplace_match): Doc fix.
1413
f2131323
KS
14142002-05-09 Kim F. Storm <storm@cua.dk>
1415
3751c81b 1416 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
1417 Enlarge cursor rectangle drawn around image with non-zero relief.
1418
3751c81b 1419 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
f2131323
KS
1420 Enlarge cursor rectangle drawn around image with non-zero relief.
1421
3751c81b 1422 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
f2131323
KS
1423 Enlarge cursor rectangle drawn around image with non-zero relief.
1424
7b9ae523
EZ
14252002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
1426
1427 * xselect.c (lisp_data_to_selection_data): Don't set selection
1428 type if comes from the Lisp object's car. If the selection
1429 contains a pure ASCII text, always return QSTRING as its type.
1430
f00691a3 14312002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14bda6db
PJ
1432
1433 * mac.c (mac-cut-function): Doc fix.
1434
6b529d78
RS
14352002-05-05 Richard M. Stallman <rms@gnu.org>
1436
1437 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
1438
1d5e0b52
JR
14392002-05-04 Jason Rumney <jasonr@gnu.org>
1440
5259a0d0
JR
1441 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
1442 for event-click-count.
1443
1d5e0b52
JR
1444 * process.c (init_process): Only add server subfeature if we can
1445 use non-blocking I/O.
1446
c7764932
AC
14472002-05-04 Andrew Choi <akochoi@shaw.ca>
1448
1449 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
1450 repeatedly.
1451
e151372d
JR
14522002-05-03 Jason Rumney <jasonr@gnu.org>
1453
1454 * process.c (Fmake_network_process): Only support server sockets
1455 when we can make them non-blocking.
1456
1457 * s/ms-w32.h (HAVE_SELECT): Define.
1458
1459 * w32.h (FILE_NDELAY): New flag.
1460
1461 * w32.c (sys_getpeername, fcntl): New functions.
1462 (_sys_read_ahead): Temporarily block on non-blocking sockets.
1463
1464 * w32proc.c: include sys/file.h.
1465
43936bf4
CW
14662002-05-03 Colin Walters <walters@verbum.org>
1467
1468 * callproc.c (Vgame_score_directory): Renamed to
1469 Vshared_game_score_directory.
1470
0c8c6322
RS
14712002-04-30 Richard M. Stallman <rms@gnu.org>
1472
397214d4
RS
1473 * s/gnu.h [emacs]: Include stdio.h.
1474 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
1475
0c8c6322
RS
1476 * eval.c (do_autoload): Error if called while preparing to dump.
1477
1478 * fns.c (Frequire): Error if need to load while preparing to dump.
1479
5a234d25
CW
14802002-04-28 Colin Walters <walters@verbum.org>
1481
5167cfda
CW
1482 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
1483 Default to "~/.emacs.d/games".
5a234d25 1484
96035dca
SM
14852002-04-29 Stefan Monnier <monnier@cs.yale.edu>
1486
de2413e9
SM
1487 * lread.c (openp): Change arg exec_only to predicate.
1488 (build_load_history): Use XCAR/XCDR.
1489 (Flocate_file_internal): New fun.
1490 (syms_of_lread): Defsubr it.
1491 (Fload): Update call to openp.
1492
1493 * lisp.h (openp): Update prototype.
1494
1495 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
1496 * w32proc.c (sys_spawnve):
1497 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
1498 * w32.c (check_windows_init_file):
1499 * sound.c (Fplay_sound_internal):
1500 * process.c (Fstart_process):
1501 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
1502 * mac.c (run_mac_command):
1503 * emacs.c (init_cmdargs):
1504 * callproc.c (Fcall_process): Update call to openp.
1505
962ba97c
SM
1506 * textprop.c (remove_properties): Don't use XCAR without CONSP.
1507
96035dca
SM
1508 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
1509
f00691a3 15102002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e656fc9d
PJ
1511
1512 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
1513 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
1514
43bbe516
RS
15152002-04-28 Richard M. Stallman <rms@gnu.org>
1516
1517 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
1518
1519 * eval.c (Fcommandp): New arg for_call_interactively.
1520 * lisp.h (Fcommandp): Declare new arg.
1521
6fb6f3ac
JR
15222002-04-28 Jason Rumney <jasonr@gnu.org>
1523
1524 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
1525
1526 * w32.c (stat, fstat): Use file index information to generate
1527 inodes for directories where available.
1528
e0f712ba
AC
15292002-04-26 Andrew Choi <akochoi@shaw.ca>
1530
1531 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
1532 [HAVE_CARBON]: Include Mac object files.
1533
1534 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
1535 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
1536 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
1537 MAC_OSX, and MAC_OS instead of macintosh.
1538
1539 * editfns.c [MAC_OS8]: Include stdio.h.
1540
1541 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
1542
1543 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
1544 Apple Monaco.
1545
1546 * process.c: Declare QCfamily and QCfilter as extern.
1547 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
1548 calling select.
1549
96035dca
SM
1550 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
1551
e0f712ba 1552 * tparam.c [MAC_OSX]: Don't define BC and UP.
96035dca 1553
e0f712ba
AC
1554 * config.in [HAVE_CARBON]: Add.
1555
96035dca
SM
1556 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
1557 Move here from mac/src and mac/inc.
e0f712ba
AC
1558
1559 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
96035dca 1560
56a0382c
GM
15612002-04-26 Gerd Moellmann <gerd@gnu.org>
1562
96035dca
SM
1563 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
1564 Compute phys_cursor_width from the x position returned
1565 by x_draw_glyhs, which is cheaper.
56a0382c
GM
1566 (x_display_and_set_cursor): Compute the buffer-local value
1567 of `cursor-in-non-selected-windows' only when needed.
1568
ef58a7ec
GM
15692002-04-25 Gerd Moellmann <gerd@gnu.org>
1570
1571 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
1572 cursor on a stretch glyph has a width that depends on
1573 x_stretch_cursor_p.
1574
f00691a3 15752002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6f442633 1576
ca70e62f
PJ
1577 * abbrev.c (abbrev-start-location): Doc fix.
1578
6f442633
PJ
1579 * indent.c (Fvertical_motion): Fix last change.
1580
3a46a5de
GM
15812002-04-25 Gerd Moellmann <gerd@gnu.org>
1582
1583 * indent.c (Fvertical_motion): Move to the start of the line
1584 containing PT before moving up or down.
1585
f7c5994d
GM
15862002-04-24 Gerd Moellmann <gerd@gnu.org>
1587
60f2f3f1
GM
1588 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
1589 case of writing a whole row, more or less analogous to the case of
1590 writing only parts of a row.
1591
1592 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
1593 0 for NO_CURSOR.
96035dca 1594
f7c5994d
GM
1595 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
1596
973c3c87
CW
15972002-04-23 Colin Walters <walters@verbum.org>
1598
1599 * buffer.c (syms_of_buffer): Doc fix.
1600
b3738089
GM
16012002-04-23 Gerd Moellmann <gerd@gnu.org>
1602
516074a1
GM
1603 * xterm.c (notice_overwritten_cursor): Handle the special case
1604 of the cursor being in the first blank non-text line at the
1605 end of a window.
96035dca 1606
b3738089
GM
1607 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
1608 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
1609 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
1610 bar cursors only, to make phys_cursor_width contain what its name
1611 suggests.
1612 (notice_overwritten_cursor): Consider the cursor image erased if
1613 the output area intersects the cursor image in y-direction.
1614
5d449b17
RS
16152002-04-23 Simon Marshall <simon@gnu.org>
1616
1617 * xfns.c (x_set_mouse_color): Change default for cross_cursor
1618 to XC_hand2.
1619
f00691a3 16202002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e6b6f919 1621
96035dca 1622 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
e6b6f919 1623
f25d60d6
KS
16242002-04-22 Kim F. Storm <storm@cua.dk>
1625
1626 * textprop.c (remove_properties): Fixed trap for malformed plist.
1627
6b448755
RS
16282002-04-22 Richard M. Stallman <rms@gnu.org>
1629
df218ce6
RS
1630 * cmds.c (Fend_of_line): Handle intangible text in mid line.
1631
6b448755
RS
1632 * window.c (make_window): Initialize height_fixed_p,
1633 last_cursor_off_p, and p->cursor_off_p slots.
1634
f00691a3 16352002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7769818b
PJ
1636
1637 * fns.c (use-dialog-box): Doc fix.
1638
f00691a3 16392002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ad6535b
PJ
1640
1641 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
1642 variables `row', `i' and `area'.
1643 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
1644 toolkit library.
1645
3d90c96c
SM
16462002-04-19 Stefan Monnier <monnier@cs.yale.edu>
1647
1648 * xfaces.c (clear_font_table): Don't free the default font of
1649 a frame even if it's on another display.
1650 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
1651 that could be Qt.
1652
58b1103e
JB
16532002-04-19 Juanma Barranquero <lektu@terra.es>
1654
1655 * indent.c (Fmove_to_column): Remove unused local variable
1656 `next_boundary_byte'.
1657 (current_column_1): Likewise.
1658
175e150b
EZ
16592002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1660
1661 * msdos.c (Qhbar): New variable.
3d90c96c 1662 (syms_of_msdos): Intern and staticpro it.
175e150b
EZ
1663 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
1664 cursor type.
1665
6fab1572
EZ
16662002-04-19 Dave Lambert <dlambert@acm.org>
1667
1668 Theses change implement an underscore-like (`hbar') cursor.
1669
1670 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
1671
1672 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
1673 Handle the `hbar' cursor type.
1674 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
1675
1676 * xfns.c (Qhbar): New variable.
3d90c96c 1677 (syms_of_xfns): Intern and staticpro it.
6fab1572 1678 (x_specified_cursor_type): Handle `hbar' cursor.
5e3238f4
EZ
1679
1680 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
1681 not defined.
1682
0cf5c1e7
RS
16832002-04-18 Richard M. Stallman <rms@gnu.org>
1684
1685 * textprop.c (remove_properties): New arg LIST allows scanning
1686 either a list or a plist.
1687 (interval_has_some_properties_list): New function, like
1688 interval_has_some_properties using list instead of plist.
1689 All callers changed.
1690 (Fremove_list_of_text_properties): New function.
1691 (syms_of_textprop): Defsubr it.
1692
1a4140b0
EZ
16932002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
1694
1695 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
1696
59b7fa65
JB
16972002-04-17 Juanma Barranquero <lektu@terra.es>
1698
3d90c96c 1699 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
59b7fa65 1700
ac431108
EZ
17012002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
1702
1703 * window.c (coordinates_in_window): Don't report on margin area
1704 if its width is zero.
1705
1c565847
JR
17062002-04-16 Jason Rumney <jasonr@gnu.org>
1707
1708 * w32fns.c (Fx_file_dialog): Decode file name before using.
1709
1710 * w32term.c (construct_drag_n_drop): Likewise.
3d90c96c 1711
852eef40
EZ
17122002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
1713
1714 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
1715 store load-history in pure space.
1716
1717 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
1718
c997eae5
SM
17192002-04-16 Stefan Monnier <monnier@cs.yale.edu>
1720
1721 * xterm.c (Qlatin_1, Qutf_8): New vars.
1722 (syms_of_xterm): Initialize them.
1723 (XTread_socket): Eliminate incorrect optimization that tried to avoid
1724 decoding the output of X*LookupString.
1725 Always use latin-1 to decode the output of XLookupString.
1726 Try Xutf8LookupString if XmbLookupString failed.
1727
1728 * region-cache.c (new_region_cache): Use BEG.
1729
08327b22
GM
17302002-04-16 Gerd Moellmann <gerd@gnu.org>
1731
1732 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
1733 configuration files.
1734 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
1735 returns 0.
1736
d8f6d720
AS
17372002-04-15 Andreas Schwab <schwab@suse.de>
1738
1739 * config.in: Regenerated using autoheader.
1740
1741 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
1742 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
1743 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
1744 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
1745 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
1746 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
1747 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
1748 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
1749 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
1750 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
1751 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
1752 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
1753 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
1754 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
1755 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
1756 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
1757 STACK_DIRECTION, now set by autoconf.
1758
f00691a3 17592002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0e03b0c2
PJ
1760
1761 * dispnew.c (marginal_area_string): Sort arguments.
1762
1763 * dispextern.h (marginal_area_string): Add prototype.
1764
685fc579
RS
17652002-04-13 Richard M. Stallman <rms@gnu.org>
1766
c997eae5 1767 * fileio.c (Finsert_file_contents):
685fc579
RS
1768 Don't call temp_output_buffer_setup--do just part, by hand.
1769
1770 * coding.c (run_pre_post_conversion_on_str):
1771 Don't call temp_output_buffer_setup--do just part, by hand.
1772
1773 * keyboard.c (command_loop_1): Don't call start_hourglass
1774 or cancel_hourglass when executing a macro.
1775
1776 * marker.c (count_markers): New function.
1777
1778 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
1779 grow without limit. Move recently used elements to the front.
1780
e144dfa8
EZ
17812002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
1782
1783 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
1784
e9f8a3ab
GM
17852002-04-12 Gerd Moellmann <gerd@gnu.org>
1786
7d4cc828
GM
1787 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
1788 rows marginal areas.
1789 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
1790 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1791
e9f8a3ab
GM
1792 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
1793
17942002-04-12 Dave Love <fx@gnu.org>
1795
1796 * dispnew.c (marginal_area_string): New.
1797
1798 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
1799 (Qleft_margin, Qright_margin): Declare.
c997eae5 1800 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
e9f8a3ab
GM
1801
1802 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
1803 note_mode_line_highlight and extended.
1804
1805 * keyboard.c (Qleft_margin, Qright_margin): Declare.
1806 (make_lispy_event): Deal with mouse events in margins.
1807
d7565649
SM
18082002-04-12 Stefan Monnier <monnier@cs.yale.edu>
1809
1810 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
1811
1812 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
1813 than deactivating the mark if tmm is set to `lambda'.
1814 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
1815 Use a single event for HELP_EVENT.
1816 (Fexecute_extended_command): Save last_point_position.
1817
f00691a3 18182002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
034a7130
PJ
1819
1820 * lisp.h (Fpropertize): Add prototype.
1821
1822 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
1823
e82defd1
CW
18242002-04-10 Colin Walters <walters@verbum.org>
1825
b9b966e0
CW
1826 * config.in: Add HAVE_SHARED_GAME_DIR.
1827
e82defd1
CW
1828 * callproc.c: (Vgame_score_directory): New variable.
1829 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
1830
05ea8efd
RS
18312002-04-10 Richard M. Stallman <rms@gnu.org>
1832
1833 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
1834
f9cf4c2c
SM
18352002-04-09 Stefan Monnier <monnier@cs.yale.edu>
1836
1837 * minibuf.c (read_minibuf): Use empty_string.
1838 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
1839 Short-circuit the search as soon as it "failed".
1840 (Fall_completions): Allow lambda forms and lists of strings for alist.
1841 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
1842 when require_match is nil.
1843 (Ftest_completion): Rename from `test_completion' and export to elisp.
1844 Call the predicate also when alist is a list.
1845 Obey Vcompletion_regexp_list.
1846 (do_completion, Fminibuffer_complete_and_exit): Use it.
1847 (Fassoc_string): Rename from `assoc_for_completion'.
1848 Allow list of strings as well and export to elisp.
1849
dba57d89
SM
18502002-04-08 Stefan Monnier <monnier@cs.yale.edu>
1851
1852 * puresize.h (BASE_PURESIZE): Increase to 900KB.
1853
a0ad1860
JB
18542002-04-08 Juanma Barranquero <lektu@terra.es>
1855
1856 * w32.c (sys_accept): Don't hide variable `s'.
1857
b9f0b172
GM
18582002-04-05 Gerd Moellmann <gerd@gnu.org>
1859
0d1bf3f7 1860 * callint.c (Fcall_interactively): Use INTEGERP instead of
b9f0b172
GM
1861 NUMBERP for checking Vhistory_length.
1862
f00691a3 18632002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
368ab68f
PJ
1864
1865 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
1866 Doc fix to reflect it.
1867
d3012189
RS
18682002-04-04 Richard M. Stallman <rms@gnu.org>
1869
1870 * xdisp.c (display_mode_element): New arg RISKY.
1871 Disregard text props found or specified within a variable
1872 that isn't marked risky-local-variable.
1873 (Qrisky_local_variable): New variable.
1874 (syms_of_xdisp): Init and staticpro it.
1875
0d1bf3f7
SM
18762002-04-04 Stefan Monnier <monnier@cs.yale.edu>
1877
1878 * undo.c (record_point): New fun.
1879 (record_delete, record_insert): Use it.
1880
8caa93d2
JB
18812002-04-03 Juanma Barranquero <lektu@terra.es>
1882
1883 * doc.c (Fdocumentation): Add missing parentheses.
1884 (Fdocumentation_property): Likewise.
1885
b3bbfb96
SM
18862002-04-03 Stefan Monnier <monnier@cs.yale.edu>
1887
1888 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
1889 data is 0, just return nil.
1890
db4a142a
EZ
18912002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
1892
1893 * msdos.c (syms_of_msdos): Fix last change with
1894 mouse_autoselect_window.
1895
f00691a3 18962002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dc8cd652
PJ
1897
1898 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
1899 mouse_autoselect_window.
1900
e5aa79fa
SM
19012002-04-02 Stefan Monnier <monnier@cs.yale.edu>
1902
4c8bc894
SM
1903 * keyboard.c (make_lispy_event): Handle unknown keysyms together
1904 with system-specific keysyms. Use it also for unknown function keys.
1905
e5aa79fa
SM
1906 * doc.c (reread_doc_file): Return whether reload was attempted.
1907 (Fdocumentation, Fdocumentation_property): Don't try to reload
1908 if the doc is 0 and only ask once.
1909
1910 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
1911
5d12f14d
EZ
19122002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
1913
1914 * keyboard.c (read_char): If the event was Qselect_window,
1915 restore timer_idleness_start_time to its previous value.
1916
e5aa79fa 1917 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
5d12f14d 1918
bed9664a
SM
19192002-04-01 Stefan Monnier <monnier@cs.yale.edu>
1920
c5e5e1f8
SM
1921 * region-cache.c (new_region_cache): Use BEG.
1922
1923 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
1924 Use BEG and BEG_BYTE.
1925
e5aa79fa 1926 * doc.c (get_doc_string): Return nil if the location is wrong.
c5e5e1f8
SM
1927 (reread_doc_file): New fun.
1928 (Fdocumentation, Fdocumentation_property):
1929 Call it if get_doc_string fails.
1930 (Fsnarf_documentation): Make it work for a dumped Emacs.
1931
1932 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
1933 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
1934
1935 * charset.c (Fstring): Allow 0 arguments.
1936
bed9664a
SM
1937 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
1938
1939 * process.c (DATAGRAM_CONN_P, list_processes_1)
1940 (Fprocess_datagram_address, Fset_process_datagram_address)
1941 (Fset_network_process_options, server_accept_connection):
1942 Fix some int/Lisp_Object confusions (thank you union types).
1943
f00691a3 19442002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
83512b21
PJ
1945
1946 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
1947
1948 * w32term.c: Likewise.
bed9664a 1949 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
83512b21
PJ
1950
1951 * keyboard.c (Qselect_window): New symbol.
1952 (head_table): Use it.
bed9664a
SM
1953 (keys_of_keyboard): Bound select-window event to handle-select-window.
1954 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
83512b21
PJ
1955
1956 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
1957 (last_window): New variable.
1958 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
1959 (note_mouse_movement): Remove reimplemented code in #if 0.
093484c7
PJ
1960 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
1961 Emacs windows.
83512b21 1962
bed9664a 1963 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
83512b21 1964
abfb6b46
GM
19652002-03-31 Gerd Moellmann <gerd@gnu.org>
1966
1967 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
1968 Callers changed.
1969
9b2bba76
RS
19702002-03-30 Richard M. Stallman <rms@gnu.org>
1971
1972 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
1973 loop whenever it stops making progress.
1974
1975 * widget.c (set_frame_size): Don't call change_frame_size.
1976
fd524c21
GM
19772002-03-30 Gerd Moellmann <gerd@gnu.org>
1978
bed9664a
SM
1979 * dispnew.c (direct_output_for_insert):
1980 Call mark_window_display_accurate.
fd524c21 1981
df3bd29d
JR
19822002-03-29 Jason Rumney <jasonr@gnu.org>
1983
1984 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
1985
eb191db2
EZ
19862002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1987
8bff61e5
EZ
1988 * Makefile.in (lread.o): Depend on coding.h.
1989
544bf8ad 1990 * lread.c (openp, Fload): Encode the file name before passing it
eb191db2
EZ
1991 to `stat', `access', and `emacs_open'.
1992 (openp): GCPRO the encoded file name. Don't recompute Lisp
1993 strings unnecessarily.
1994
f9b33abb
KS
19952002-03-29 Kim F. Storm <storm@cua.dk>
1996
1997 * fns.c (Flax_plist_put): Doc fix.
1998
d4648402
MB
19992002-03-28 Miles Bader <miles@gnu.org>
2000
2001 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
2002
f00691a3 20032002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
320aebc9
PJ
2004
2005 * process.c (set-network-process-options): Add usage.
2006 (make-network-process): Doc fix.
2007
4aaa3607
EZ
20082002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
2009
2010 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
2011
a5f08374
RS
20122002-03-26 Richard M. Stallman <rms@gnu.org>
2013
9356fe5a
RS
2014 * fns.c (Fsubstring_no_properties): New function.
2015 (Flax_plist_get, Flax_plist_put): New functions.
2016 (syms_of_fns): defsubr them.
2017
a5f08374
RS
2018 * xdisp.c (update_menu_bar): Test only update_mode_lines;
2019 don't test or alter w->update_mode_line.
2020
2021 * window.c (Fdisplay_buffer): Doc fix.
2022
20232002-03-24 Richard M. Stallman <rms@gnu.org>
2024
2025 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
2026
0af6533d
GM
20272002-03-24 Gerd Moellmann <gerd@gnu.org>
2028
2029 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
2030 (Fdefmacro): Handle `(declare ...)'.
2031 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
2032 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
2033
217e5be0
JR
20342002-03-24 Jason Rumney <jasonr@gnu.org>
2035
2036 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
2037 (xbm_file_p): Add prototypes.
2038 (xbm_format, xbm_image_p): Sync with xfns.c.
2039 (reflect_byte): New function.
2040 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
2041 (xbm_load_image): Create bitmaps with a depth of 1.
2042 (init_xfns): Enable XBM images.
2043
919f1e88
JR
20442002-03-23 Jason Rumney <jasonr@gnu.org>
2045
2046 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
2047 correctly. Do not pass up_modifier to keyboard buffer.
2048
2049 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
2050
44d38e8d
SM
20512002-03-22 Stefan Monnier <monnier@cs.yale.edu>
2052
2053 * Makefile.in (bootstrapclean): New target.
2054 (bootstrap-temacs, bootstrap-doc): Remove.
2055 (bootstrap-emacs): Use a bog-standard `temacs'.
2056 Don't bother to build a DOC file.
2057
2058 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
2059
2060 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
2061 in temacs even if !CANNOT_DUMP.
2062 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
2063
2064 * alloc.c (check_pure_size): Only output a warning.
2065
b8b47c19
JR
20662002-03-22 Jason Rumney <jasonr@gnu.org>
2067
d3109773
JR
2068 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
2069 supported.
2070
ef07a497 2071 * w32term.c (zv_bits): Declare as short, for word alignment.
b8b47c19
JR
2072 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
2073 (syms_of_w32term): Define x-use-underline-position-properties.
2074
2075 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
2076 (clear_image_cache): Block input, fix logic, clear matrices in
2077 all frames that share this cache.
2078
b9b1a853
EZ
20792002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
2080
483812ae
EZ
2081 * emacs.c (main): Update the Copyright year in the blurb printed
2082 by "emacs --version".
2083
78e17433
EZ
2084 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
2085
b9b1a853
EZ
2086 * xterm.c (XTread_socket): If XK_ISO_Lock and
2087 XK_ISO_Last_Group_Lock are defined, handle keysyms between
2088 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
2089
fd646341
KS
20902002-03-21 Kim F. Storm <storm@cua.dk>
2091
2092 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
2093 menu-bar bindings in keymap and local-map properties _are_ used.
2094 But try keymap property first in accordance with 2002-01-03 patch.
2095 Added comment describing why this is not always reliable.
2096 (tool_bar_items): Ditto for tool-bar.
2097
bf76fe9c
JR
20982002-03-21 Jason Rumney <jasonr@gnu.org>
2099
2100 * w32fns.c (x_clear_image_1): Disable color table code.
2101
41ad6233
KS
21022002-03-21 Kim F. Storm <storm@cua.dk>
2103
2104 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
2105 removed the wrong version of the DEFUN macro; fixed it.
2106
2107 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
2108 Fmember rather than Fmemq).
2109 (Fprovide): Check that subfeatures is a list.
2110
2111 * process.c (QCfeature, QCdatagram): Removed variables.
2112 (QCtype, Qdatagram): New variables.
2113 (network_process_featurep): Removed function.
2114 (Fmake_network_process): Removed :feature check.
2115 Use :type 'datagram instead of :datagram t to create a datagram
2116 socket. This allows us to add other connection types (e.g. raw
2117 sockets) later in a consistent manner.
3ae1b884
KS
2118 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
2119 supported subfeatures for feature make-network-process.
41ad6233
KS
2120 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
2121 Intern and staticpro QCtype and Qdatagram.
2122 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
2123
2124 * xfns.c: (QCtype): Remove duplicate declaration and
2125 initialization (is now declared in process.c).
2126
2127 * w32fns.c: (QCtype): Remove duplicate declaration and
2128 initialization (is now declared in process.c).
2129
27950b47
RS
21302002-03-21 Richard M. Stallman <rms@gnu.org>
2131
f6df485f
RS
2132 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
2133 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
2134 when jumping to `fail' to avoid undoing reg changes in the
2135 last iteration of the loop.
2136 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
2137
27950b47
RS
2138 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
2139 Depend on process.h.
2140
3be38152
JR
21412002-03-20 Jason Rumney <jasonr@gnu.org>
2142
2143 Most of the following changes are still conditional on HAVE_IMAGES
2144 which is not set by default on Windows.
2145
47bcdab2
JR
2146 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
2147
3be38152
JR
2148 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
2149 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
2150 (four_corners_best, x_clear_image_1, x_clear_image)
e2c0561e
TTN
2151 (x_alloc_image_color, postprocess_image)
2152 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
3be38152
JR
2153 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
2154 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
2155
2156 * w32gui.h (struct XImage): Define.
2157
2158 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
2159 extract mouse co-ordinates.
2160
f37577f9
JR
21612002-03-20 Jason Rumney <jasonr@gnu.org>
2162
2163 * w32.c (init_winsock): Dynamically load new server and UDP
2164 socket functions.
2165 (socket_to_fd): New function.
2166 (sys_socket): Use it.
e2c0561e 2167 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
f37577f9
JR
2168 (sys_recvfrom, sys_sendto): New wrapper functions.
2169
2170 * process.c (QCfamily, QCfilter): Remove duplicate declaration
2171 and initialization.
2172
2173 * makefile.w32-in (LIBS): Remove $(WSOCK32).
2174
ab8a75de
EZ
21752002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
2176
2177 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
2178 use "sun" as a variable, it's a predefined constant on Sun
2179 machines.
2180
f00691a3 21812002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ab7ff8b
PJ
2182
2183 * bytecode.c (Fbyte_code): Revert last change.
2184
d1ef18f2
KS
21852002-03-19 Kim F. Storm <storm@cua.dk>
2186
2187 * makefile.w32-in (LIBS): Add $(WSOCK32).
2188 From David Ponce <dponce@voila.fr>.
2189
f00691a3 21902002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
99982883 2191
44c887be
PJ
2192 * process.c (wait_reading_process_input): Move variables `pname'
2193 and `pnamelen' down where they are used.
2194
18f85cdd
PJ
2195 * bytecode.c (Fbyte_code): Discard unused computed value to
2196 prevent gcc warning.
2197
99982883
PJ
2198 * lisp.h (Fplist_member): Add prototype.
2199
10ce34dc
KS
22002002-03-18 Kim F. Storm <storm@cua.dk>
2201
2202 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
2203 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
2204 HAVE_SYS_UN_H.
2205
744d746b 2206 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
10ce34dc
KS
2207 Remove explicit GNU_LINUX settings for datagram support.
2208
f00691a3 22092002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
fa9d4315
PJ
2210
2211 * process.c (Fmake_network_process): Remove unused variable `sa'.
2212 Doc fix. Add usage:.
2213 (set_socket_options): Remove unused variables `optnum' and
2214 `opttype'.
2215
6147334f
RS
22162002-03-17 Richard M. Stallman <rms@gnu.org>
2217
2218 * xdisp.c (cursor_type_changed): New variable.
2219 (redisplay_internal): Redisplay all windows if cursor_type_changed.
2220 Clear it when clearing windows_or_buffers_changed.
2221 (try_cursor_movement, redisplay_window, try_window_id)
2222 (try_window_reusing_current_matrix): Test cursor_type_changed
2223 along with windows_or_buffers_changed.
2224
623fa9e7 2225 * window.h (cursor_type_changed): New variable.
6147334f
RS
2226
2227 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
2228 not update_mode_lines, and always set it to 1.
2229
2230 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
2231 if no frames needed redrawing.
2232
5439f987
KS
22332002-03-17 Kim F. Storm <storm@cua.dk>
2234
623fa9e7 2235 The following changes add support for network server processes,
5439f987
KS
2236 datagram connections, and local (unix) sockets.
2237
2238 * process.h (struct Lisp_Process): New member log.
2239 Doc fix: Member command used to indicate stopped network process.
2240 Doc fix: Member childp contains plist for network process.
2241 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
2242
2243 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
2244 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
2245 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
2246 New variables.
2247 (NETCONN1_P): New macro.
2248 (DATAGRAM_SOCKETS): New conditional symbol.
2249 (datagram_address): New array.
2250 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
2251 (status_message): Use concat3.
2252 (Fprocess_status): Add `listen' status to doc string. Return `stop'
2253 for a stopped network process.
2254 (Fset_process_buffer): Update contact plist for network process.
2255 (Fset_process_filter): Ditto. Don't enable input for stopped
2256 network processes. Server must listen, even if filter is t.
2257 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
2258 New functions.
2259 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
2260 (Fprocess_contact): Added KEY argument. Handle datagrams.
2261 (list_processes_1): Optionally show only processes with the query
2262 on exit flag set. Dynamically adjust column widths. Omit tty
2263 column if not needed. Report stopped network processes.
2264 Identify server and datagram network processes.
2265 (Flist_processes): New optional arg `query-only'.
2266 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
2267 (conv_lisp_to_sockaddr, set_socket_options)
2268 (network_process_featurep, unwind_request_sigio): New helper functions.
2269 (Fprocess_datagram_address, Fset_process_datagram_address):
2270 (Fset_network_process_options): New lisp functions.
2271 (Fopen_network_stream): Removed. Now defined in simple.el.
2272 (Fmake_network_process): New lisp function. Code is based on previous
2273 Fopen_network_stream, but heavily reworked with new property list based
2274 argument list, support for datagrams, server processes, and local
2275 sockets in addition to old client-only functionality.
2276 (server_accept_connection): New function.
2277 (wait_reading_process_input): Use it to handle incoming connects.
2278 Do not enable input on a new connection if process is stopped.
2279 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
2280 (send_process): Handle datagram sockets.
2281 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
2282 network process is indicated by setting command field to t .
2283 (Fprocess_send_eof): No-op if datagram connection.
2284 (Fstatus_notify): Don't read input for a stream server socket or a
2285 stopped network process.
2286 (init_process): Initialize datagram_address array.
2287 (syms_of_process): Intern and staticpro new variables, defsubr new
2288 functions.
2289
f779bd4c
JR
22902002-03-16 Jason Rumney <jasonr@gnu.org>
2291
2292 * w32fns.c (w32_to_all_x_charsets): Return correct type in
2293 startup case.
2294
a9c1a157
RS
22952002-03-16 Richard M. Stallman <rms@gnu.org>
2296
e2c0561e 2297 * xdisp.c (redisplay_internal, redisplay_windows):
a9c1a157
RS
2298 Use list_of_error to call internal_condition_case_1.
2299 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
2300 so as to catch all errors with no possibility of debugger redisplay.
2301 (list_of_error): New variable.
2302 (syms_of_xdisp): Init and staticpro it.
2303
2304 * print.c (print_object): Delete `\ ' from printed rep of frame.
2305
7264f28d
EZ
23062002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
2307
2308 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
2309 until its implementation is fixed.
2310
f00691a3 23112002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6ee8e167
PJ
2312
2313 * xfns.c (png_load): Remove unused variable `gamma_str'.
2314
7c3f9166
RS
23152002-03-14 Richard M. Stallman <rms@gnu.org>
2316
2317 * xfns.c (x_real_positions): Handle failure in XQueryTree.
2318
5b905677
MB
23192002-03-14 Miles Bader <miles@gnu.org>
2320
2321 * intervals.c (adjust_for_invis_intang): New function.
2322 (set_point_both): Use `adjust_for_invis_intang' to do most of the
2323 work for dealing with invisible+intangible regions. Do so before
2324 and after both forward and backward movements, to handle both
2325 front-sticky and rear-sticky cases.
2326 * textprop.c (text_property_stickiness): Function moved here from
2327 `editfns.c'.
2328 * intervals.h (text_property_stickiness): New declaration.
2329 * editfns.c (char_property_eq): Function removed.
2330 (text_property_stickiness): Function moved to `textprop.c'.
2331
73792b51
JR
23322002-03-13 Jason Rumney <jasonr@gnu.org>
2333
2334 * config.in: Add STRFTIME_NO_POSIX2.
2335
2336 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
2337 and %OX when underlying strftime does not.
2338
dc3b2c8b
SM
23392002-03-13 Stefan Monnier <monnier@cs.yale.edu>
2340
6f2a7a68
SM
2341 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
2342 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
2343 line) to avoid annoying flicker.
2344 (xm_scroll_callback): Get rid of the now unnecessary kludge.
2345 (XTread_socket): Mark it static.
2346
dc3b2c8b
SM
2347 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
2348
98243275
KS
23492002-03-13 Kim F. Storm <storm@cua.dk>
2350
2351 * puresize.h (BASE_PURESIZE): Increase to 775000.
2352
7dcece14
JB
23532002-03-12 Juanma Barranquero <lektu@terra.es>
2354
2355 * editfns.c (syms_of_editfns): Fix typo.
2356
656132eb
GM
23572002-03-12 Gerd Moellmann <gerd@gnu.org>
2358
2359 * xsmfns.c: Include stdio.h because termhooks.h needs it.
2360 Include termopt.h for interrupt_input.
2361
ff955d90
AS
23622002-03-11 Andreas Schwab <schwab@suse.de>
2363
2364 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
2365
714d8c39
GM
23662002-03-11 Gerd Moellmann <gerd@gnu.org>
2367
073448c5
GM
2368 * xterm.c (note_mouse_movement): Put code for
2369 x_autoselect_window_p in #if 0.
2370
4006b74e 2371 * lread.c (Fload): Don't assume that message_with_string uses the
714d8c39
GM
2372 string it is given like a C string.
2373
089fba41
JD
23742002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
2375
7c3f9166 2376 * xterm.h (x_session_check_input, x_session_initialize): Declared.
089fba41 2377
363a4df6
JD
2378 * xterm.c: (XTread_socket): Add call to x_session_check_input and
2379 x_session_have_connection.
2380 (x_initialize): Add call to x_session_initialize.
089fba41 2381
4006b74e 2382 * termhooks.h (enum event_kind): Add save_session_event.
089fba41 2383
4006b74e 2384 * keyboard.c: Add Emacs event save_session_event.
089fba41 2385
4006b74e 2386 * emacs.c (main): Add call to syms_of_xsmfns.
089fba41 2387
4006b74e 2388 * lisp.h: Declare syms_of_xsmfns as extern.
089fba41 2389
4006b74e 2390 * config.in: Add HAVE_X_SM.
089fba41 2391
7c3f9166
RS
2392 * Makefile.in (LIBXT): Add -lSM -lICE
2393 if HAVE_X_SM and not USE_X_TOOLKIT.
2394 (XOBJ): New file xsmfns.c added.
089fba41
JD
2395
2396 * xsmfns.c: New file for X session management.
2397
ad497129
JR
23982002-03-09 Jason Rumney <jasonr@gnu.org>
2399
2400 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
2401 read-only when setting modified time.
2402
f2c7b04f
GM
24032002-03-08 Gerd Moellmann <gerd@gnu.org>
2404
c7ad4937
GM
2405 * xdisp.c (move_it_vertically_backward): At the end of the
2406 function, when moving forward by lines, treat terminal frames
2407 specially.
2408
0d121f7c
GM
2409 * keyboard.c (echo_char): Make sure to add a separator between
2410 keys even if echo_dash hasn't been called.
2411
2051c264
GM
2412 * xdisp.c: Use new string macros.
2413 (update_echo_area): Pass number of bytes to message3 instead of
2414 number of chars.
2415 (set_message_1): Don't access a string's size_byte directly.
2416 (decode_mode_spec_coding): Use number of bytes of eoltype string
2417 instead number of chars.
2418
f2c7b04f
GM
2419 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
2420
007776bc
JB
24212002-03-08 Juanma Barranquero <lektu@terra.es>
2422
2423 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
2424 24-bit.
2425
893a741e
JR
24262002-03-06 Jason Rumney <jasonr@gnu.org>
2427
2428 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
2429
8b5eabe0
GM
24302002-03-06 Gerd Moellmann <gerd@gnu.org>
2431
d88c5449 2432 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
e60b0c44
GM
2433 (cancel_echoing, echo_length, echo_truncate): Changed to
2434 work with new kboard definition.
2435 (echo_now): Use message3_nolog instead of message2_nolog.
2436
2437 * alloc.c (mark_kboards): Mark echo_string.
2438
2439 * keyboard.h (ECHOBUFSIZE): Removed.
2440 (struct kboard): Member echoptr removed, member echobuf renamed
2441 to echo_string.
2442
8b5eabe0
GM
2443 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
2444 message3 instead of message2 to display the message using STRING's
2445 text properties.
2446
5d335845
AS
24472002-03-05 Andreas Schwab <schwab@suse.de>
2448
2449 * xdisp.c (hscroll_margin): Change to EMACS_INT.
2450
67334131
PA
24512002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
2452
2453 * frame.c (default-frame-alist): Explain that setting it doesn't
2454 affect existing frames.
2455
d88c5449
SM
24562002-03-05 Stefan Monnier <monnier@cs.yale.edu>
2457
2458 * indent.c (skip_invisible): Fix my brain fart.
2459
2460 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
2461
31ade731
SM
24622002-03-04 Stefan Monnier <monnier@cs.yale.edu>
2463
2464 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
2465 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
2466 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
2467 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
2468 and variables to use EMACS_INT instead of just int.
2469
d88c5449
SM
2470 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
2471
c0917202
EZ
24722002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2473
2474 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
2475 environment, pass it down with corrected value.
2476
f00691a3 24772002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6dc7fdd
PJ
2478
2479 * lread.c (read_filtered_event): Do not call start_hourglass
2480 before returning.
2481
9652402e
JB
24822002-03-04 Juanma Barranquero <lektu@terra.es>
2483
2484 * w32term.c (x_display_and_set_cursor): Fix typo.
2485
73344256
RS
24862002-03-03 Richard M. Stallman <rms@gnu.org>
2487
2488 * fileio.c (Fmake_temp_name): Doc fix.
2489
71091322
RS
24902002-03-03 Gary Wong <gtw@gnu.org>
2491
2492 * termcap.c [!emacs]: Replace ospeed for building standalone
2493 libtermcap, for binary compatibility.
2494
2495 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
2496
aa7e4660
RS
24972002-03-03 Richard M. Stallman <rms@gnu.org>
2498
2499 * xrdb.c (file_p): Rename arg `path' to `filename'.
2500
2501 * abbrev.c (Fexpand_abbrev): Increment plist as use count
2502 only if it is an integer.
2503
2504 * xfns.c (png_load): Set screen_gamma based on f->gamma.
2505 If png_get_sRGB gives an answer, call png_set_gamma
2506 using the default image gamma value.
2507
2508 * lread.c (read1): When reading from a file, default string to
2509 multibyte only if it has some multibyte characters.
2510
2511 * print.c (print_object): Output multibyte chars 128...255
2512 using \x even if ! print_escape_multibyte.
2513
2514 * xdisp.c (display_mode_element): Move the places where
2515 bytepos, charpos, this, and lisp_string are set.
2516 Use lisp_string to set bytepos.
2517
2518 * xdisp.c (redisplay_internal):
2519 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
2520
2521 * xdisp.c (display_mode_element): Merge properties specified with
2522 :propertize onto those that come with the string.
2523
63d5d1ee
EZ
25242002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
2525
2526 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
2527 automatic-hscrolling. Users changed.
31ade731
SM
2528 <hscroll-margin>: Renamed from automatic-hscroll-margin.
2529 Users changed.
2530 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
63d5d1ee 2531
31a6cb06
EZ
25322002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2533
2534 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
2535
ee57fd91
KS
25362002-03-02 Kim F. Storm <storm@cua.dk>
2537
2538 * window.c (Fminibuffer_selected_window): New function.
2539 (syms_of_window): Defsubr it.
2540
922eae56
KS
25412002-03-01 Kim F. Storm <storm@cua.dk>
2542
eacb44ad
KS
2543 * window.h (struct window): New member phys_cursor_width.
2544
2545 * window.c (make_window, replace_window): Init phys_cursor_width.
31ade731 2546
eacb44ad
KS
2547 * xterm.c (x_display_and_set_cursor): Blink box cursor using
2548 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
2549
2550 * w32term.c (x_display_and_set_cursor): Blink box cursor using
2551 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
2552
922eae56
KS
2553 * lisp.h (GCPRO6): New macro.
2554
2555 * process.c (Fopen_network_stream): Use GCPRO6.
2556
81d5af8b
KS
25572002-03-01 Kim F. Storm <storm@cua.dk>
2558
2559 * process.c (Qconnect, Qfailed): New variables.
2560 (syms_of_process): Intern and staticpro them.
e4984112 2561 (Fprocess_status): Document connect and failed return values.
81d5af8b
KS
2562 [NON_BLOCKING_CONNECT]: New conditional.
2563 (connect_wait_mask, num_pending_connects): New variables.
2564 (status_message): Convert Qfailed status.
2565 (Fopen_network_stream): Added support for non-blocking connect.
2566 New optional args: filter, sentinel, non_blocking. Doc updated.
2567 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
2568 (deactivate_process): Handle pending non-blocking connect.
2569 (wait_reading_process_input): Poll for status of non-blocking
2570 connects. Exec sentinel directly when connect succeeds.
2571 (status_notify): Don't read process output if not yet connected.
31ade731 2572
5705966b
KS
25732002-02-28 Kim F. Storm <storm@cua.dk>
2574
2575 * window.c: (minibuf_selected_window): Renamed from
2576 Vminibuf_selected_window. Users changed.
2577 (syms_of_window): Staticpro it.
2578
beb0acdf
KS
25792002-02-26 Kim F. Storm <storm@cua.dk>
2580
2581 The following changes add a new Vminibuf_selected_window variable
2582 which is similar to Vminibuf_scroll_window, but which is only set
2583 on entry to the minibuffer (from a non-minibuffer window):
31ade731 2584
beb0acdf
KS
2585 * window.c: (Vminibuf_selected_window): New variable.
2586 (struct save_window_data): New member minibuf_selected_window.
2587 (Fset_window_configuration): Restore Vminibuf_selected_window.
2588 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
2589 Set minibuf_scroll_window member to nil if minibuf_level is 0.
2590 (compare_window_configurations): Compare minibuf_selected_window.
2591
2592 * window.h: (Vminibuf_selected_window): Declare extern.
2593
2594 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
2595 entry to minibuffer or on entry from a non-minibuffer window.
2596
2597 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
2598 Vminibuf_selected_window instead of Vminibuf_scroll_window.
2599
2600 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
2601 instead of Vminibuf_scroll_window when deciding in which window
2602 the region should be highlighted. Consequently, the region remains
2603 highlighteded even when a completion buffer is also displayed.
2604
3dfdc066
EZ
26052002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
2606
b135bd4c
EZ
2607 * fileio.c (Fsubstitute_in_file_name): Fix the change from
2608 2002-02-08.
2609
3dfdc066
EZ
2610 * xselect.c (Qcompound_text_with_extensions): Renamed from
2611 Qcompound_text_no_extensions.
2612 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
2613
804d894a
JB
26142002-02-26 Juanma Barranquero <lektu@terra.es>
2615
2616 * w32proc.c (syms_of_ntproc): Doc fix.
2617
f00691a3 26182002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0277b535
PJ
2619
2620 * intervals.h: Include "dispextern.h" unconditionally.
2621
1f1bce0e
JR
26222002-02-24 Jason Rumney <jasonr@gnu.org>
2623
2624 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
2625 and disp-table.elc.
82a399d2 2626 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 2627
5f245371
KS
26282002-02-24 Kim F. Storm <storm@cua.dk>
2629
2630 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
2631 The validation of the event type was too strict as it didn't
2632 allow string events; buffer names are used in bindings for
2633 menu-bar-select-buffer (see `menu-bar-update-buffers').
2634
b66bc4a4 26352002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674 2636
31ade731 2637 The following changes rework my patch of 2002-02-06 which
a34cb674
KS
2638 added command remapping by entering the commands directly into
2639 the keymaps. Now, command remapping uses an explicit `remap'
2640 prefix in the keymaps, i.e. [remap COMMAND].
31ade731 2641
a34cb674
KS
2642 * keymap.c (Qremap, remap_command_vector): New variables.
2643 (is_command_symbol): Removed function.
31ade731
SM
2644 (Fdefine_key): No longer accept a symbol for KEY.
2645 Added validation of [remap COMMAND] argument for KEY.
2646 The DEF is no longer required to be a symbol when remapping a command.
a34cb674
KS
2647 (Fremap_command): New function to remap command through keymaps.
2648 (Flookup_key): Perform command remapping initiated by
2649 Fremap_command directly for speed.
2650 (Fkey_binding): Use Fremap_command for command remapping.
2651 (where_is_internal): Handle new command remapping representation.
2652 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
2653 staticpro them. Defsubr Fremap_command.
2654
2655 * keymap.h (Fremap_command): Declare extern.
2656 (is_command_symbol): Remove extern.
31ade731 2657
a34cb674
KS
2658 * keyboard.c (command_loop_1): Use Fremap_command for command
2659 remapping; now try command remapping for all symbols.
2660
f227fded
EZ
26612002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2662
2663 * coding.h (run_pre_post_conversion_on_str): Add prototype.
2664
54a0c8a6
JR
26652002-02-23 Jason Rumney <jasonr@gnu.org>
2666
2667 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
2668 on the string before encoding it.
2669 (Fw32_get_clipboard_data): Run post-read-conversion on the string
2670 after decoding it.
2671
2672 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
2673
f00691a3 26742002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
042c33d3
PJ
2675
2676 * w32term.c (enter_timestamp): Remove unused static variable to
2677 prevent warning.
2678
2679 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
2680
b72d9870
EZ
26812002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
2682
2683 * w16select.c (Fw16_get_clipboard_data): Fix last change.
2684
2685 * xselect.c (selection_data_to_lisp_data): Fix last change.
2686
48094ace
JR
26872002-02-22 Jason Rumney <jasonr@gnu.org>
2688
2689 * w32term.h (struct w32_output): New member menu_command_in_progress.
2690
2691 * w32menu.c (menubar_selection_callback): Free the menu and
2692 clear the menu_command_in_progress flag.
2693
2694 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
2695 (menu_free_timer): New variable.
2696 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
2697 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
2698 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
2699 menu command is in progress.
31ade731
SM
2700 <WM_COMMAND>: Set the menu_command_in_progress flag.
2701 Kill any menu_free_timer that is running.
48094ace
JR
2702
2703 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
2704 Call ExtTextOutA rather than ExtTextOut.
2705
9feba281
EZ
27062002-02-22 Eli Zaretskii <eliz@gnu.org>
2707
2708 * puresize.h (BASE_PURESIZE): Increase to 755000.
2709
3276b4fe
EZ
27102002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2711
2712 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
2713 on the string before encoding it.
2714 (Fw16_get_clipboard_data): Run post-read-conversion on the string
2715 after decoding it.
2716
fbbe0ace
EZ
27172002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2718
2719 Support for ICCCM Extended Segments in X selections:
2720
23e16093 2721 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
2722 (syms_of_xselect): Intern and staticpro it.
2723 (selection_data_to_lisp_data): Run post-read-conversion on decoded
2724 selection text.
2725 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 2726 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
2727 compound-text.
2728
2729 * xterm.h (x_encode_text): Update prototype.
2730
2731 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
2732 callers changed. If SELECTIONP is non-zero, run the
2733 pre-write-conversion function before encoding the selection text.
2734
2a28d471
KS
27352002-02-21 Kim F. Storm <storm@cua.dk>
2736
2737 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3 2738
31ade731
SM
2739 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
2740 Correct composing of language-change event.
15fdc2e3 2741
9de46181
KS
27422002-02-20 Kim F. Storm <storm@cua.dk>
2743
2744 * keyboard.c (menu_bar_items): Don't include keymap or local-map
2745 bindings at PT when building menu (the menu is not updated often
2746 enough for this to work reliable).
2747 (tool_bar_items): Likewise.
2748 (current_active_maps): Removed unused (and buggy) function.
2749
f00691a3 27502002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c7f07c4c
PJ
2751
2752 * xfns.c (gif_load): Use correct width and height for GIF images.
2753
f8565280
EZ
27542002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
2755
2756 * floatfns.c (Fatan): Accept an optional second arg and call
2757 atan2 if passed 2 args.
2758
5be86f54
JR
27592002-02-18 Jason Rumney <jasonr@gnu.org>
2760
2761 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
2762
f7b9d4d1
JR
27632002-02-17 Jason Rumney <jasonr@gnu.org>
2764
2765 * w32term.c (x_autoselect_window_p): New variable.
2766 (syms_of_w32term): DEFVAR_BOOL and initialize it.
2767 (note_mouse_movement): Use it.
2768
2769 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
2770
2771 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
2772
2773 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2774 New variables.
2775 (syms_of_w32fns): Intern and staticpro them.
2776 (x_frame_parms) <"fullscreen">: New parameter.
2777 (x_fullscreen_move, x_set_fullscreen): New functions.
2778 (x_set_frame_parameters): Support Qfullscreen.
31ade731 2779 (x_real_positions): Save x/y_pixels_diff frame params.
f7b9d4d1
JR
2780 (x_figure_window_size): Support full-screen frames.
2781 (Fx_create_frame): Default the fullscreen parameter.
2782
31ade731 2783 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
f7b9d4d1
JR
2784 (x_fullscreen_adjust): New functions.
2785 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
2786 fullscreen. Call x_check_fullscreen_move, and set the
31ade731 2787 want_fullscreen member of output_data.w32
f7b9d4d1
JR
2788 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
2789
2790 * w32term.h: New enum for FULLSCREEN_* constants.
2791 (struct w32_output): New members want_fullscreen, x_pixels_diff,
2792 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
2793 (x-fullscreen-adjust): New prototype.
2794
ce16e8d9
KS
27952002-02-17 Kim F. Storm <storm@cua.dk>
2796
2797 * frame.c: (Vmouse_highlight): New variable.
2798 (syms_of_frame): DEFVAR_LISP it.
2799
2800 * frame.h: (Vmouse_highlight): Declare extern.
2801
2802 * xterm.h (struct x_display_info): Add mouse_face_hidden.
2803
2804 * xterm.c (disable_mouse_highlight): Removed variable.
2805 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
2806 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2807 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
2808 and on after keyboard input.
2809 (x_term_init): Initialize mouse_face_hidden.
2810
2811 * msdos.h (struct display_info): Add mouse_face_hidden.
2812
2813 * msdos.c (disable_mouse_highlight): Removed variable.
2814 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2815 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
2816 (internal_terminal_init): Initialize mouse_face_hidden.
2817 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
2818 and on after keyboard input.
2819
2820 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
2821
2822 * w32term.c (disable_mouse_highlight): Removed variable.
2823 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
2824 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
2825 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
2826 and on after keyboard input.
2827 (w32_initialize_display_info): Initialize mouse_face_hidden.
2828
386c4076
EZ
28292002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
2830
9005a471
EZ
2831 * msdos.c (last_mouse_window): New variable.
2832 (dos_rawgetc): Fix last change--if the mouse is in the same window
2833 as recorded in last_mouse_window, don't select this window.
2834
31ade731 2835 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
760627fa 2836
4a137db1
EZ
2837 * msdos.c (x_autoselect_window_p): New variable.
2838 (syms_of_msdos): Defvar it.
2839 (dos_rawgetc): If x_autoselect_window_p is set, select the window
2840 in which the last mouse movement occured, unless it is already
2841 selected.
2842
31ade731
SM
2843 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
2844 New variables.
386c4076
EZ
2845 (syms_of_xdisp): DEVFAR them.
2846 (hscroll_window_tree): Use automatic_hscroll_margin and
2847 Vautomatic_hscroll_step to compute the amount of window scrolling.
2848
f00691a3 28492002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5d2200aa 2850
3996d07a
PJ
2851 * xterm.c (x-autoselect-window): New variable.
2852 (note_mouse_movement): Use it.
2853
5d2200aa
PJ
2854 * keyboard.c: Do not include "systime.h" twice.
2855
bdf67c59
AS
28562002-02-15 Andreas Schwab <schwab@suse.de>
2857
5407e8a7
AS
2858 * puresize.h (BASE_PURESIZE): Increase to 9/5.
2859
bdf67c59
AS
2860 * alloc.c (NSTATICS): Increase to 1280.
2861
98659da6
KG
28622002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
2863
f9904178
KG
2864 * alloc.c (NSTATICS): Bump to 1026.
2865
98659da6
KG
2866 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
2867 (Vx_super_keysym): New variables.
2868 (syms_of_xterm): DEFVAR_LISP them.
2869 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
31ade731 2870 variables to determine which keys to use for the various modifiers.
98659da6 2871
a48b709b 28722002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
2873
2874 * window.c: (Vmode_line_in_non_selected_windows): Removed.
2875 (mode_line_in_non_selected_windows): New variable.
2876 (syms_of_window): DEFVAR_BOOL it.
2877
31ade731
SM
2878 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
2879 Use mode_line_in_non_selected_windows.
1c9f5f23
KS
2880 (mode_line_in_non_selected_windows): Declare extern.
2881 (Vmode_line_in_non_selected_windows): Removed extern.
2882
db54c53a
RS
28832002-02-13 Richard M. Stallman <rms@gnu.org>
2884
31ade731
SM
2885 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
2886 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
db54c53a
RS
2887 (Fclear_this_command_keys): Doc fixes.
2888
31ade731 2889 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
db54c53a
RS
2890 (update_face_from_frame_parameter): Increment face_change_count
2891 and windows_or_buffers_changed to force redisplay using changed faces.
2892
2893 * xdisp.c (QCpropertize): New variable.
2894 (mode_line_proptrans_alist): New variable.
2895 (display_mode_element): New arg PROPS; all calls changed.
2896 Implement this, for strings.
2897 Handle literal output of strings by sharing the
2898 main-line code for strings, using local var `literal'.
2899 Handle :propertize feature.
31ade731 2900 (syms_of_xdisp): Initialze and staticpro QCpropertize and
db54c53a 2901 mode_line_proptrans_alist.
31ade731 2902
a48b709b 29032002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
2904
2905 * window.c: (Vmode_line_in_non_selected_windows): New variable.
2906 (syms_of_window): DEFVAR_LISP it.
2907
2908 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
2909 (CURRENT_MODE_LINE_FACE_ID): Use it.
2910 (Vmode_line_in_non_selected_windows): Declare extern.
2911
2912 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
2913 to get mode line face.
2914
573a237a
EZ
29152002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
2916
2917 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
2918 variables; cus-start.el doesn't need them anymore.
2919
73df3b72
KS
29202002-02-09 Kim F. Storm <storm@cua.dk>
2921
2922 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
2923 reduction. This fixes a display problem where stray newlines were
2924 inserted in the window (corrected by C-l). Clarified code (IMHO).
2925
18b0be7c
EZ
29262002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
2927
2928 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
2929
2930 * xdisp.c (display_mode_lines): Fix last change.
2931
442ca9ba
JR
29322002-02-09 Jason Rumney <jasonr@gnu.org>
2933
2934 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
2935 match each other.
3acfb461
JR
2936 (w32_load_system_font): Prevent Cleartype fonts from loading.
2937 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 2938
cdefda26
KS
29392002-02-09 Kim F. Storm <storm@cua.dk>
2940
2941 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
2942 (CURRENT_MODE_LINE_HEIGHT): Use it.
2943 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
2944
2945 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
2946 (pos_visible_p, handle_face_prop): Likewise.
2947 (display_mode_lines): Likewise, but for the real selected window.
2948 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
2949
2950 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
2951 in non-selected windows.
2952 (realize_basic_faces): Realize it.
2953 (syms_of_term): Intern and staticpro it.
2954
9f69e812
KS
29552002-02-08 Kim F. Storm <storm@cua.dk>
2956
31ade731 2957 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
9f69e812
KS
2958 Changed mail addresses to emacs-devel@gnu.org.
2959
6ded2c89
EZ
29602002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
2961
b5d40ceb 2962 * fileio.c (Fsubstitute_in_file_name): If the file name includes
31ade731 2963 ~user, and there's no such user, don't discard everything before ~user.
b5d40ceb 2964
6ded2c89
EZ
2965 * floatfns.c (Fround): Doc fix.
2966
f00691a3 29672002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
2968
2969 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
2970
6a229a63
SM
29712002-02-07 Stefan Monnier <monnier@cs.yale.edu>
2972
db54c53a 2973 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 2974
33b93ee5
KS
29752002-02-07 Kim F. Storm <storm@cua.dk>
2976
2977 * keymap.c (where_is_internal): Only check whether definition is
2978 remapped if it fulfills is_command_symbol.
2979
72bba9f2
AS
29802002-02-07 Andreas Schwab <schwab@suse.de>
2981
2982 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
2983
2984 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
2985
93607efd
KS
29862002-02-06 Kim F. Storm <storm@cua.dk>
2987
2988 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
2989 defining command remapping. Doc updated.
2990 (Flookup_key): Remap command through keymap if KEY is a symbol.
2991 (is_command_symbol): New function.
6a229a63
SM
2992 (Fkey_binding): Use it. New optional argument NO-REMAP.
2993 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
2994 recursive call unless that arg is non-nil.
2995 (where_is_internal): New argument no_remap. Callers changed.
2996 Call recursively to find original key bindings for a remapped
2997 comand unless that arg is non-nil.
6a229a63
SM
2998 (Fwhere_is_internal): New optional argument NO-REMAP.
2999 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
3000
3001 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3002 (is_command_symbol): Added prototype.
3003
3004 * keyboard.c (Vthis_original_command): New variable.
3005 (syms_of_keyboard): DEFVAR_LISP it.
3006 (command_loop_1): Set it, and perform command remapping.
3007
f00691a3 30082002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e 3009
31ade731 3010 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2642a29e 3011
f4ed304f
JR
30122002-02-06 Jason Rumney <jasonr@gnu.org>
3013
3014 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
3015
b5309828
EZ
30162002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
3017
3018 * charset.c (get_charset_id): Use if-else instead of ?:.
3019
108eaabb
RS
30202002-02-06 Richard M. Stallman <rms@gnu.org>
3021
3022 * filelock.c (S_ISLNK): Define if not defined.
3023
bd3567fa
RS
30242002-02-03 Richard M. Stallman <rms@gnu.org>
3025
3026 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
3027
3028 * lread.c (read1): Redesign strategy for force_multibyte and
3029 force_singlebyte. Now is_multibyte records whether read_buffer
3030 is multibyte. Encountering any multibyte character makes it so.
6a229a63 3031
95c11956
SM
30322002-02-02 Stefan Monnier <monnier@cs.yale.edu>
3033
3034 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
3035 with the same sequence, map that sequence to f10 rather than f0.
3036
ee466d0b
AS
30372002-02-03 Andreas Schwab <schwab@suse.de>
3038
3039 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
3040 latter never being defined on GNU/Linux.
3041
f77157da
EZ
30422002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
3043
3044 * xfaces.c (realize_default_face): Don't set the weight and slant
3045 of the default face to Qnormal, unless these attributes are
3046 unspecified.
3047
f00691a3 30482002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 3049
95c11956
SM
3050 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
3051 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
3052
3053 * eval.c (Fsignal): Remove duplicated declaration of
3054 the variable `display_hourglass_p'.
3055
5e101746
RS
30562002-01-31 Richard M. Stallman <rms@gnu.org>
3057
3058 * editfns.c (region_limit): Nicer error message.
3059
3060 * coding.c (decode_composition_emacs_mule):
3061 Give up if NCOMPONENT gets too large to index `component'.
3062
3063 * callint.c (check_mark): New arg to specify clearer error message.
3064 Callers changed.
3065
30662002-01-27 Richard M. Stallman <rms@gnu.org>
3067
3068 * minibuf.c (Fcompleting_read): Doc fix.
3069
f00691a3 30702002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
3071
3072 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
3073 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
3074 Fix doc-strings.
7a4b11ca 3075
f5798fbd
RS
30762002-01-26 Richard M. Stallman <rms@gnu.org>
3077
3078 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
3079
3080 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
3081 and scroll_up_aggressively.
3082
f00691a3 30832002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
3084
3085 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
3086
3a232704
SM
30872002-01-25 Stefan Monnier <monnier@cs.yale.edu>
3088
3089 * textprop.c (Fnext_property_change, Fnext_single_property_change)
3090 (Fprevious_property_change, Fprevious_single_property_change):
3091 Stay within the narrowed-buffer boundaries.
3092
dd939ea1
EZ
30932002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3094
3095 * term.c (Ftty_display_color_cells): New function.
3096 (syms_of_term): Defsubr it.
0011f346
EZ
3097 (Ftty_display_color_cells, Ftty_display_color_p): Change the
3098 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
3099
3100 * dispextern.h: Add prototype for set_tty_color_mode and
3101 tty_setup_colors.
3102
aa35b6ad
JR
31032002-01-24 Jason Rumney <jasonr@gnu.org>
3104
3105 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
3106 If region left to draw is not what was expected, mark the frame as
3107 garbaged.
3108
3109 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
3110 Combine the regions returned by BeginPaint and GetUpdateRect.
3111
ab76d376
JR
31122002-01-23 Jason Rumney <jasonr@gnu.org>
3113
3114 * w32term.c (x_update_window_begin): Only hide caret if
3115 w32_use_visible_system_caret is set.
3116 (x_update_window_end): Only show caret if
3117 w32_use_visible_system_caret is set.
3118 (syms_of_w32term): Handle SystemParametersInfo call failing.
3119
3120 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
3121
d89b617d
RS
31222002-01-22 Richard M. Stallman <rms@gnu.org>
3123
3124 * unexelf.c (unexec): Define n so as to cause compilation error
3125 for the code where people have often written n instead of nn.
3126
3127 * .gdbinit (hookpost-run): Defined.
3128
f0b9a067
JD
31292002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
3130
3131 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
3132
5f9338d5
JD
31332002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
3134
3135 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
3136 if fullscreen is being set.
3137
f00691a3 31382002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
3139
3140 * minibuf.c (Fminibuffer_contents)
3141 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
3142 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
3143
8cc0e0cf
RS
31442002-01-21 Richard M. Stallman <rms@gnu.org>
3145
3146 * window.c (check_frame_size): Fix minimum height calculation.
3147
d7b8ee68
KR
31482002-01-20 Ken Raeburn <raeburn@gnu.org>
3149
3150 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
3151 height before comparison.
3152 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
3153
c3c14723
JR
31542002-01-20 Jason Rumney <jasonr@gnu.org>
3155
3156 * w32term.c (w32_system_caret_width): Remove.
3157 (w32_use_visible_system_caret): New user flag.
3158 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
3159 Windows reports a screen reader running.
3160 (x_update_window_begin): Hide the system caret.
3161 (x_update_window_end): Show the system caret.
3162 (x_display_and_set_cursor): Don't draw a cursor when
3163 w32_use_visible_system_caret is set. Do not adjust width.
3164
3165 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
3166 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
3167 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
3168 the user requests it. Use system default width when creating.
3169 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
3170
95c11956
SM
3171 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
3172 New window messages.
c3c14723 3173
75e20bec
RS
31742002-01-20 Richard M. Stallman <rms@gnu.org>
3175
3176 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
3177
f00691a3 31782002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
3179
3180 * doprnt.c (doprnt1): Fix typos in error call.
3181
3b927d14
EZ
31822002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3183
3184 * unexelf.c (unexec) [__sgi]: Support the .got sections.
3185
aa06cb9c
JR
31862002-01-20 Jason Rumney <jasonr@gnu.org>
3187
3188 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
3189 that Windows returns. If a double check fails, try to guess how
3190 ExtTextOut is going to act.
3191
3192 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
3193 in place of stricmp.
3194 (w32_list_synthesized_fonts): Removed.
3195 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
3196 (struct enumfont_t): New element; list.
3197 (enum_font_cb2): List all style and charset variations of a font.
3198 (Fw32_select_font): New optional argument; include_proportional.
3199 Exclude vertical fonts. Exclude proportional fonts unless
3200 include_proportional is non-nil.
3201 (w32_enable_synthesized_fonts): Change to a boolean.
3202 (Fw32_send_sys_command): Doc fix.
3203
f00691a3 32042002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
3205
3206 * dispnew.c (update_frame): Move the variable `tem' to the block
3207 where it is used.
3208
815d969e
JR
32092002-01-19 Jason Rumney <jasonr@gnu.org>
3210
3211 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
3212 call to face-set-after-frame-default.
3213
a1e3dda0
RS
32142002-01-18 Richard M. Stallman <rms@gnu.org>
3215
95c11956 3216 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
3217 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
3218
daf516d3
RS
32192002-01-17 Richard M. Stallman <rms@gnu.org>
3220
3221 * window.c (enlarge_window): When exceeding size of parent,
3222 directly delete all the siblings instead of trying to resize it.
3223
f00691a3 32242002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
3225
3226 * term.c (set_tty_color_mode): Remove unused variable `tem'.
3227
3ddff138
RS
32282002-01-16 Henrik Enberg <henrik@enberg.org>
3229
7adfc0d7 3230 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 3231
465c9390
KS
32322002-01-16 Kim F. Storm <storm@cua.dk>
3233
3234 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
3235 is invisible. This can happen if cursor is on top line of a
3236 window, and we switch to a buffer with a header line.
3237
95c11956 3238 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 3239
f00691a3 32402002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
3241
3242 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
3243 `dont_resize' only when used.
3244
3245 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
3246
26f622b3
EZ
32472002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
3248
3249 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 3250 on multibyteness of elt, not the text in field.
26f622b3 3251
f00691a3 32522002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a 3253
31ade731
SM
3254 * buffer.c (Fkill_all_local_variables):
3255 Increment `update_mode_lines' only once.
1a6db83a 3256
f00691a3 32572002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 3258
aa1977d7
PJ
3259 * lisp.h (adjust_after_replace_noundo)
3260 (Fupdate_coding_systems_internal): Add prototypes.
3261
95c11956 3262 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 3263
3947677c
EZ
32642002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
3265
3266 Support for the --color command-line argument and tty-color-mode
3267 frame parameter:
3268
3269 * term.c (tty_default_color_capabilities, tty_setup_colors)
3270 (set_tty_color_mode): New functions.
3271 (term_init): Call tty_default_color_capabilities.
3272 (Qtty_color_mode_alist): New variable.
3273 (syms_of_term): Intern and staticpro it.
3274
3275 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
3276 frames.
3277 (do_switch_frame): For termcap frames, switch the tty
3278 color mode as specified by the frame's parameters.
3279 (Qtty_color_mode): New variable.
3280 (syms_of_frame): Intern and staticpro it.
3281
3282 * emacs.c (USAGE2): Add the --color option.
3283 (standard_args): Ditto.
3284
8a8e19a3
EZ
32852002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
3286
3287 * xterm.h (struct x_output): New members want_fullscreen,
3288 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
3289 y_pixels_outer_diff.
3290 New enum for FULLSCREEN_* constants.
3291 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
3292 is NULL.
3293 (x_fullscreen_adjust): Add prototype.
3294
3295 * emacs.c (USAGE2): Add the new full-screen arguments.
3296 (standard_args): Ditto.
3297
95c11956
SM
3298 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
3299 New variables.
8a8e19a3
EZ
3300 (syms_of_xfns): Intern and staticpro them.
3301 (x_frame_parms) <"fullscreen">: New parameter.
3302 (x_fullscreen_move, x_set_fullscreen): New functions.
3303 (x_set_frame_parameters): Support for Qfullscreen.
3304 (x_real_positions): More accurate computation of the frame position.
3305 (x_figure_window_size): Support full-screen frames.
3306 (Fx_create_frame): Default the fullscreen parameter.
3307
3308 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
3309 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
3310 <ConfigureNotify>: Don't resize to fullscreen.
3311 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
3312 output_data.x.
3313
4f1b1854
JR
33142002-01-13 Jason Rumney <jasonr@gnu.org>
3315
3316 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
3317 for mice with more than 3 buttons.
3318
3319 * w32term.c (parse_button): New parameter xbutton. Callers changed.
3320 (w32_read_socket): Handle new "XBUTTON" messages.
3321
3322 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
3323 (syms_of_w32fns): DEFVAR_BOOL it.
3324 (w32_wnd_proc): Handle new "XBUTTON" messages.
3325
f00691a3 33262002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 3327
95c11956 3328 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 3329
437dfb9f
AS
33302002-01-13 Andreas Schwab <schwab@suse.de>
3331
3332 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
3333
9f696a00
AS
33342002-01-12 Andreas Schwab <schwab@suse.de>
3335
3336 * .gdbinit (xbuffer): Remove address operator since data is now a
3337 pointer.
3338
d57966d7
RS
33392002-01-11 Richard M. Stallman <rms@gnu.org>
3340
3341 * insdel.c (adjust_after_replace_noundo): New function.
3342
3343 * coding.c (code_convert_region): Don't copy old text if undo disabled.
3344
74779f52
JR
33452002-01-09 Jason Rumney <jasonr@gnu.org>
3346
3347 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
3348 when checking for multiple frames.
3349
a474d59c
RS
33502002-01-08 Richard M. Stallman <rms@gnu.org>
3351
3352 * window.c (delete_window): Rewrite the code for changing the
3353 selected window to handle the case where WINDOW is not a leaf.
3354
fbb70ad9
EZ
33552002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
3356
3357 * process.c (send_process): Set src_multibyte to 1 after the call
3358 top setup_coding_system, not before the call.
3359
2d10309f
JR
33602002-01-07 Jason Rumney <jasonr@gnu.org>
3361
3362 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 3363 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
3364
3365 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
3366 (w32_dialog_show): Initialize wv->help to Qnil.
3367
7f2cddf3
JR
33682002-01-06 Jason Rumney <jasonr@gnu.org>
3369
0b1e6b54
JR
3370 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
3371
7f2cddf3
JR
3372 * w32menu.c (w32_menu_display_help): Revert last change.
3373
3374 * xmenu.c (menu_highlight_callback): Revert last change.
3375
e17144de
AS
33762002-01-06 Andreas Schwab <schwab@suse.de>
3377
3378 * insdel.c (make_gap_larger): Make sure buffer size does not
3379 overflow range of int.
3380
6637c996
JR
33812002-01-05 Jason Rumney <jasonr@gnu.org>
3382
44368f8f
JR
3383 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
3384 OVERLAPS_P.
3385
f884b6f4
JR
3386 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
3387
6637c996
JR
3388 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
3389 to the left or to the right of the pointer, put it against
3390 the left screen edge.
3391 (x_frame_parms): Add missing braces around initializer.
3392
3393 * w32term.c (x_setup_relief_colors): Don't compute an image's
3394 background color if it doesn't have a Pixmap.
3395 (notice_overwritten_cursor): Don't depend on
3396 output_cursor and updated_area. Compare pixel coordinates with
3397 window's cursor pixel coordinates.
3a232704
SM
3398 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
3399 Call notice_overwritten_cursor with new arg list.
6637c996
JR
3400 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
3401 unconditionally.
3402 (x_draw_image_relief): Use predefined macro instead of
3403 constant when the value of `tool_bar_button_relief' is negative.
3404
3405 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
3406
453c5510
RS
34072002-01-04 Richard M. Stallman <rms@gnu.org>
3408
3409 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
3410
d1d070e3
RS
34112002-01-03 Richard M. Stallman <rms@gnu.org>
3412
3413 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
3414 (Fkey_binding): Try the `keymap' property map first.
3415 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
3416 minor mode bindings.
3417
9ec1bdb6
KS
34182002-01-03 Kim F. Storm <storm@cua.dk>
3419
3420 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
3421
308dd672
RS
34222002-01-02 Richard M. Stallman <rms@gnu.org>
3423
edde72f6
RS
3424 * keyboard.c (read_key_sequence): Handle the keymap property
3425 before minor mode maps.
3426
308dd672
RS
3427 * editfns.c (Fformat): Update thissize from field_width
3428 based on the actual width, in the string case.
3429
f00691a3 34302002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 3431
03950b5b
PJ
3432 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
3433 when used as truth value to prevent gcc warnings.
3434
3c1e6b46
PJ
3435 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
3436 * w32proc.c: Include <config.h>.
3437
c1e11810
AS
34382002-01-01 Andreas Schwab <schwab@suse.de>
3439
3440 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
3441 not EMACS_INT, to make them compatible with DEFVAR_INT.
3442 * lisp.h (max_specpdl_size): Adjust declaration.
3443
1996baee
RS
34442002-01-01 Richard M. Stallman <rms@gnu.org>
3445
3446 * print.c (print_object): Test print_escape_nonascii only for
3447 unibyte strings.
3448 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
3449 when outputting to a multibyte buffer.
3450
0065bb74
RS
34512001-12-29 Richard M. Stallman <rms@gnu.org>
3452
3453 * print.c (print_object): In multibyte string, use hex escapes.
3454 Use octal only for unibyte strings.
3455 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
3456
3457 * lread.c (read_escape): New arg BYTEREP for reporting whether
3458 escape forces unibyte or multibyte.
3459 (read1): When reading a string, take note of that info.
3460
b5cb6072
KR
34612001-12-29 Ken Raeburn <raeburn@gnu.org>
3462
3463 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
3464 comparison to test lisp value returned by Fget.
3465
15fff01d
RS
34662001-12-29 Richard M. Stallman <rms@gnu.org>
3467
0065bb74
RS
3468 * lisp.h (max_specpdl_size): Add declaration.
3469
0d8466cc
RS
3470 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
3471
15fff01d
RS
3472 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
3473 Handle modifier bits. Correct typo in error message.
3474
2fae9111
RS
34752001-12-28 Richard M. Stallman <rms@gnu.org>
3476
2d6c1fc0
RS
3477 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
3478 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
3479 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
3480 Update calls to Fdefine_abbrev.
3481 (write_abbrev): Update for changed data format.
3482 Don't list "system" abbrevs.
3483 (Fexpand_abbrev): Update use count with new data format.
3484 (describe_abbrev): Update for changed data format.
3485 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
3486
07025a55
RS
3487 * config.in (HAVE_MBSINIT): Add #undef.
3488
3489 * strftime.c (mbsinit): Define as no-op if not available.
3490
3491 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
3492 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
3493
ce6eef6e
RS
3494 * keymap.c (Flookup_key): Error message if key has wrong data type.
3495 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 3496 (exclude_key): New variable.
3a232704 3497
539e92ad
GM
34982001-12-28 Gerd Moellmann <gerd@gnu.org>
3499
0cb8bb48
GM
3500 * xterm.c (x_setup_relief_colors): Don't compute an image's
3501 background color if it doesn't have a Pixmap.
3a232704 3502
60626bab
GM
3503 * xterm.c (notice_overwritten_cursor): Don't depend on
3504 output_cursor and updated_area. Compare pixel coordinates with
3505 window's cursor pixel coordinates.
3a232704
SM
3506 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
3507 Call notice_overwritten_cursor with new arg list.
60626bab
GM
3508 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
3509 unconditionally.
0cb8bb48 3510
539e92ad
GM
3511 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
3512 height of the cursor line to the amount to scroll.
3513
4e02881b
RS
35142001-12-27 Richard M. Stallman <rms@gnu.org>
3515
3516 * intervals.c (set_point_both): The position after an invisible,
3517 intangible character is not an acceptable stopping point.
3518
1ab964d7
KR
35192001-12-27 Ken Raeburn <raeburn@gnu.org>
3520
3521 * window.c (enlarge_window): In new preserve_before code, convert
3522 CURBEG from lisp object to integer before doing arithmetic.
3523
749f499f
RS
35242001-12-27 Richard M. Stallman <rms@gnu.org>
3525
3526 * bytecode.c (Fbyte_code): Undo previous change.
3527
b5d9aaba
KS
35282001-12-26 Kim F. Storm <storm@cua.dk>
3529
3530 * keyboard.c (record_char): Ignore duplicate help-echo events only
3531 separated by mouse-movement. When tracking mouse, only record
3532 first and last mouse-movement event in same window.
3533 Don't record mouse-movement events in keyboard macros.
3a232704 3534
d0fd26dd
RS
35352001-12-25 Richard M. Stallman <rms@gnu.org>
3536
b4c45162
RS
3537 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
3538 (Fenlarge_window): New arg PRESERVE_BEFORE.
3539
d0fd26dd
RS
3540 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
3541 instead of Fstring_as_unibyte.
3542
f00691a3 35432001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 3544
3a232704 3545 The following changes remove mocklisp support:
c95eaa61
PJ
3546
3547 * mocklisp.h, mocklisp.c: Files removed.
3548
3549 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
3550 `Qmocklisp' and `Qmocklisp_arguments'.
3551 Remove prototype of syms_of_mocklisp.
3552
3a232704 3553 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
3554
3555 * callint.c: Do not include mocklisp.h.
3556 (Fcall_interactively): Do not test for mocklisp case.
3557
3558 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
3559 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
3560 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
3561 Do not test for mocklisp case.
c95eaa61
PJ
3562 (Fwhile): Remove unused variable `tem'.
3563 (syms_of_eval): Remove variable `moclisp-arguments'.
3564
3565 * data.c (wrong_type_argument): Remove mocklisp case.
3566
3567 * doc.c (Fdocumentation): Remove mocklisp case.
3568
3569 * emacs.c (main): Do not call syms_of_mocklisp.
3570
31877e0a
RS
35712001-12-21 Richard M. Stallman <rms@gnu.org>
3572
3573 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
3574 to the left or to the right of the pointer, put it against
3575 the left screen edge.
3576
e2c3786a
EZ
35772001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
3578
3579 * Makefile.in (distclean): Remove .gdbinit if we are building
3580 outside the source tree.
3581
c513fc03
EZ
35822001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3583
bf794306
EZ
3584 * w32.c (emacs_root_dir): New function.
3585
3586 * msdos.c (emacs_root_dir): New function.
3587
3588 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
3589 of the current drive as the fallback for default_directory.
3590
62582985
EZ
3591 * dired.c (file_name_completion): Run the elements of
3592 completion-ignored-extensions through ENCODE_FILE.
3593
c513fc03
EZ
3594 * lisp.h (scmp): Remove prototype, since it's now a static
3595 function private to dired.c.
3596
3509a04c
RS
35972001-12-18 Richard M. Stallman <rms@gnu.org>
3598
3599 * dired.c (scmp): Function moved from minibuf.c.
3600 Delete multibyte handling--used only on encoded strings.
3601
3602 * minibuf.c (scmp): Function moved to dired.c.
3603
3604 * fns.c (merge): Add QUIT call.
3605
1e9a6186
DL
36062001-12-18 Dave Love <fx@gnu.org>
3607
3608 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
3609 language/georgian.el.
3610
e4e34e31
EZ
36112001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3612
3613 * Makefile.in (lisp, shortlisp): Synchronize with changes to
3614 lisp/Makefile.in:DONTCOMPILE.
3615
f00691a3 36162001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 3617
7c75be36
PJ
3618 * xdisp.c (window_box_height): Do not return negative values.
3619 From Gerd Moellmann <gerd@gnu.org>.
3620
4521d1fc
PJ
3621 * keyboard.c (head_table): Add missing braces around initializer.
3622
3623 * term.c (keys): Likewise.
3624
3625 * xfns.c (x_frame_parms, visual_classes): Likewise.
3626
93dec019
SS
36272001-12-17 Sam Steingold <sds@gnu.org>
3628
3629 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
3630 patch (COMPOSING_P, not COMPOSING).
3631
905cc05a
RS
36322001-12-17 Richard M. Stallman <rms@gnu.org>
3633
2ed06289
RS
3634 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
3635
0e79d667
RS
3636 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
3637 before calling decode_coding.
3638
3639 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
3640
3641 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
3642 instead of only for COMPOSITION_DISABLED.
3643
82a7ab23
RS
36442001-12-16 Richard M. Stallman <rms@gnu.org>
3645
d75bec6a
RS
3646 * alloc.c (pure_alloc): After overflow, allocate just a small block.
3647
52dcb476
RS
3648 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
3649
82a7ab23
RS
3650 * buffer.h (struct buffer): New field `display_error_modiff'.
3651 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
3652
3653 * window.c (Frecenter): Clear display_error_modiff field.
3654
3655 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
3656 Call redisplay_window, but not if display_error_modiff field says no.
3657 (redisplay_window_error): New function.
3658 (displayed_buffer): New variable.
3659 (redisplay_internal, redisplay_windows): Call the new functions
3660 instead of redisplay_window directly.
3661
4d0fa4f3
RS
36622001-12-15 Richard M. Stallman <rms@gnu.org>
3663
3664 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3665
493faf20
AI
36662001-12-14 Andrew Innes <andrewi@gnu.org>
3667
325111e9
AI
3668 * makefile.w32-in (EMACSLOADPATH): Define.
3669 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
3670 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 3671
4971e491
EZ
36722001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
3673
397b3b50 3674 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
3675 parameter have a numeric value all the time.
3676
3677 * w32fns.c (x_report_frame_params): Likewise.
3678
d911a0fa
RS
36792001-12-12 Richard M. Stallman <rms@gnu.org>
3680
3681 * fileio.c (Fwrite_region): Doc fix.
3682
3683 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
3684 (redisplay_internal): Call clear_image_cache only for window terminals.
3685
201c831a
GM
36862001-12-12 Gerd Moellmann <gerd@gnu.org>
3687
3688 * xdisp.c (move_it_vertically_backward): Change heuristic
3689 for the case that we didn't move far enough initially.
3690
3691 * window.c (Frecenter): Simplify computation in the case of window
3692 system frames and ARG < 0; use window_box_height.
3693
34e39c95
RS
36942001-12-11 Richard M. Stallman <rms@gnu.org>
3695
3696 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
3697 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
3698
d77fbc16
AI
36992001-12-11 Andrew Innes <andrewi@gnu.org>
3700
3701 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
3702 arg is negative.
3703
61e3b944
RS
37042001-12-11 Richard M. Stallman <rms@gnu.org>
3705
3706 * m/hp800.h: Split the __hpux conditional into the parts
3707 that are right for GNU/Linux too and the parts that are not.
3708 Use the former if GNU_LINUX.
3709 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
3710
3711 * s/gnu-linux.h (GNU_LINUX): Defined.
3712
f00691a3 37132001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
3714
3715 * macros.c, msdos.c, w16select.c: Change doc-string comments to
3716 `new style' [w/`doc:' keyword].
3717
8af01033
JR
37182001-12-10 Jason Rumney <jasonr@gnu.org>
3719
3720 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
3721 before using.
3722
f00691a3 37232001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
3724
3725 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
3726 keyword].
3727
d9e6c4b1
EZ
37282001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
3729
d20fc48a
EZ
3730 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
3731
d9e6c4b1
EZ
3732 * s/hpux10.h (srand48): Don't undefine.
3733
f1a85b89
JR
37342001-12-09 Jason Rumney <jasonr@gnu.org>
3735
3a232704
SM
3736 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
3737 Add comment to explain where the struct came from.
f1a85b89
JR
3738 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
3739 (add_menu_item): Process pop-up menus first to avoid memory leak.
3740 (add_menu_item, w32_menu_display_help): Use `help' field as
3741 Lisp_Object.
3742 (w32_free_submenu_strings): Only free owner-drawn strings.
3743
f00691a3 37442001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 3745
72244db2
PJ
3746 * COPYING: Moved back.
3747
3a62677f
PJ
3748 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
3749 Add parentheses around && within ||.
3750
3751 * indent.c (compute_motion): Likewise.
3752
3753 * intervals.c (merge_properties_sticky): Likewise.
3754
3755 * coding.c (setup_coding_system, shrink_encoding_region)
3756 (Fdecode_sjis_char): Likewise.
3757
9d113d9d
AS
37582001-12-07 Andreas Schwab <schwab@suse.de>
3759
b8523839
AS
3760 * xdisp.c (display_mode_element): Don't read past end of string if
3761 it ends with '%'.
3762
9464dea4
AS
3763 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
3764 can hold.
3765
3a232704 3766 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
9d113d9d
AS
3767 from most_positive_fixnum and most_negative_fixnum, resp., and
3768 type changed to Lisp_Object.
3769 (syms_of_data): DEFVAR_LISP them.
3770
70ec1377
RS
37712001-12-07 Richard M. Stallman <rms@gnu.org>
3772
3773 * callproc.c (init_callproc): Set Vdata_directory based on the source
3774 location whenever Emacs was run uninstalled.
3775
92f7dd37
PE
37762001-12-06 Paul Eggert <eggert@twinsun.com>
3777
3778 * config.in (HAVE_WORKING_VFORK): New #undefs.
3779 * process.c (create_process):
3780 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
3781 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
3782 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
3783 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
3784 * m/intel386.h (HAVE_VFORK): Likewise.
3785 * m/mips-siemens.h (HAVE_VFORK): Likewise.
3786 * m/mips.h (HAVE_VFORK): Likewise.
3787 * s/freebsd.h (vfork): Remove #define.
3788 * s/lynxos.h (HAVE_VFORK): Remove #undef.
3789 * s/usg5-4-2.h: Fix comment about vfork.
3790
c93674bb
RS
37912001-12-06 Richard M. Stallman <rms@gnu.org>
3792
3793 * s/hpux10.h (random): Add undef.
3794 (HAVE_RANDOM): Define it just once.
3795
59b59892
SM
37962001-12-06 Stefan Monnier <monnier@cs.yale.edu>
3797
3798 * eval.c: Undo last change: the standard syntax is not wanted.
3799
c6ea2775
EZ
38002001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
3801
3802 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
3803 scroll bars of the frame before deleting the frame itself. If the
3804 frame has a widget, delete the frame with XtDestroyWidget, and do
3805 not call XDestroyWindow before that.
3806
91175673
KS
38072001-12-06 Kim F. Storm <storm@cua.dk>
3808
3809 * xfns.c (x_report_frame_params): Return actual fringe widths.
3810
3811 * w32fns.c (x_report_frame_params): Return actual fringe widths.
3812
e0fead5d
AI
38132001-12-05 Andrew Innes <andrewi@gnu.org>
3814
3815 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
3816 excessively large.
3817
3818 * insdel.c (make_gap_larger): New function.
3819 (make_gap_smaller): New function.
3820 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
3821 make_gap_smaller if arg is negative.
3822
c186cdb3
SM
38232001-12-04 Stefan Monnier <monnier@cs.yale.edu>
3824
3825 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
3826 Pass a dummy argument when calling interrupt_signal.
3827 (parse_menu_item): Mark disabled items before checking for empty def.
3828 (read_char_minibuf_menu_prompt): Make safety more visible.
3829 (read_key_sequence): Add a `first_unbound' variable.
3830 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
3831 unbound prefix as soon as we can detect it.
3832
3833 * doc.c (Fsnarf_documentation): Add prototype.
3834 (get_doc_string): Handle negative arguments.
3835 (Fdocumentation): Use AREF and ASIZE.
3836 Move the calls to get_doc_string to a single place.
3837 Don't confuse an interactive-spec for a docstring reference.
3838 (Fdocumentation_property): Take advantage of the fact that
3839 get_doc_string now ignores the sign of the docstring position.
3840
3841 * eval.c: Use standard syntax for usage in docstrings.
3842
f00691a3 38432001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 3844
c186cdb3 3845 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 3846
f00691a3 38472001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
3848
3849 * xterm.c (x_draw_image_relief): Use predefined macro instead of
3850 constant when the value of `tool_bar_button_relief' is negative.
3851
656f46bb
RS
38522001-12-02 Richard M. Stallman <rms@gnu.org>
3853
3854 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
3855 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
3856
3857 * fileio.c (read_non_regular): Delete Fsignal call.
3858
036e218d
SM
38592001-12-01 Stefan Monnier <monnier@cs.yale.edu>
3860
3861 * lisp.h (run_hook_list_with_args): Undo last change.
3862
7ddb2c16
GM
38632001-12-01 Gerd Moellmann <gerd@gnu.org>
3864
3865 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
3866
ace9b298
JR
38672001-12-01 Jason Rumney <jasonr@gnu.org>
3868
90647b07
JR
3869 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
3870
3871 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
3872 [!WM_MOUSELEAVE]: Define.
3873
ace9b298
JR
3874 * w32menu.c (current_popup_menu, get_menu_item_info):
3875 (set_menu_item_info): New vars.
3876 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
3877 (w32_menu_show): Set current_popup_menu.
3878 (add_menu_item): Allocate new strings for owner-drawn menu items
3879 and help strings.
3880 Use owner-draw for disabled menu items again.
3881 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
3882 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
3883
3884 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
3885 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
3886 <WM_EXITMENULOOP>: Free menu strings.
3887 <WM_MOUSELEAVE>: Stop tracking mouse.
3888 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
3889
3890 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
3891 and mouse face.
3892
a9549909 38932001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
3894
3895 The following changes add left-fringe and right-fringe
3896 frame parameters to adjust fringe widths, or remove one or
3897 both fringes.
036e218d 3898
9fbc32aa
KS
3899 * frame.h (struct frame): Remove trunc_area_pixel_width and
3900 trunc_area_cols fields.
3901 (Qleft_fringe, Qright_fringe): Declare.
3902 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
3903
3904 * frame.c (Qleft_fringe, Qright_fringe): New vars.
3905 (syms_of_frame): Initialize them.
3906
3907 * window.c (coordinates_in_window): Handle separate left and right
3908 fringe widths.
3909
3910 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
3911 and fringe_cols fields.
3912 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
3913 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
3914 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
3915 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
3916 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
3917 (x_compute_fringe_widths): Add prototype.
3918
3919 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
3920 fill fringe evenly with small dashes.
3921 (x_draw_fringe_bitmap): Clear background if necessary. Align and
3922 clip the new ZV bitmap to avoid jitter between rows.
3923 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
3924 background. Don't draw fringe bitmaps if fringe width is zero.
3925 (x_compute_fringe_widths): New function.
3926 (x_new_font, x_set_window_size_1): Use it.
3927
3928 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 3929 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
3930 parameters as fringe widths depend on it.
3931 (x_set_fringe_width): New function.
3932 (x_figure_window_size): Use x_compute_fringe_widths.
3933 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
3934 parameters.
3935
3936 * widget.c (set_frame_size): Use x_compute_fringe_widths.
3937 (EmacsFrameSetCharSize): Ditto.
3938
3939 * w32term.h: Merged changes from xterm.h.
3940 * w32term.c: Merged changes from xterm.c.
3941 * w32fns.c: Merged changes from xfns.c.
3942
f00691a3 39432001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
3944
3945 * COPYING: Removed.
3946
d4824a5d
DL
39472001-11-29 Dave Love <fx@gnu.org>
3948
3949 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
3950 extra extra slot.
3951 (detect_coding_mask): Fix call of detect_coding_iso2022.
3952
f00691a3 39532001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
3954
3955 * fileio.c (file-name-coding-system)
3956 (default-file-name-coding-system): Doc fix (links to referenced
3957 variables added).
3958
3ce081f5
SM
39592001-11-28 Stefan Monnier <monnier@cs.yale.edu>
3960
99e380ee
SM
3961 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3962 Add dummy uses of gcproN variables.
3963
3ce081f5 3964 * category.c (describe_category, describe_category_1)
2ad56c09 3965 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
3966 (syms_of_category): Don't defsubr Sdescribe_categories.
3967
66458f32
RS
39682001-11-28 Richard M. Stallman <rms@gnu.org>
3969
3970 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
3971
3972 * Makefile.in (lispdir): New variable, referring to build dir.
3973 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
3974
59a86c99
AI
39752001-11-28 Andrew Innes <andrewi@gnu.org>
3976
3977 * w32menu.c (w32_menu_display_help): Actually add the new argument
3978 OWNER.
3979
eb77a5f4
JR
39802001-11-28 Jason Rumney <jasonr@gnu.org>
3981
3982 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
3983 menu items. From David Ponce <dponce@wanadoo.fr>.
3984 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
3985 conditionally.
3986 (w32_menu_display_help): New argument OWNER. Rewritten to store a
3987 help event in the owner frame's keyboard buffer.
3988
3989 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
3990 (Fx_show_tip): Don't subtract last width from row width.
3991
3992 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
3993 (w32_read_socket): Use EQ to compare frames.
3994
bb313871
GM
39952001-11-28 Gerd Moellmann <gerd@gnu.org>
3996
3997 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
3998 OVERLAPS_P.
3999
f00691a3 40002001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 4001
6052529b
PJ
4002 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
4003 `gcpro3' and `gcpro4'.
4004
3ce081f5
SM
4005 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
4006
40072001-11-28 Stefan Monnier <monnier@cs.yale.edu>
4008
4009 * ccl.c: Use AREF and ASIZE.
4010
40112001-11-27 Stefan Monnier <monnier@cs.yale.edu>
4012
4013 * lisp.h (run_hook_list_with_args): Remove.
4014 (LIST_END_P): Fix call to wrong_type_argument.
4015 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 4016
111ed14e
SM
40172001-11-26 Stefan Monnier <monnier@cs.yale.edu>
4018
9fabb2f5
SM
4019 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
4020 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
4021
4022 * eval.c: Use AREF and ASIZE.
4023 (Ffetch_bytecode): Add the file name to the error message.
4024
4025 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
4026 which match the end of the file-name.
4027 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
4028 is not a valid env var, but leave it as is instead.
4029
111ed14e
SM
4030 * keymap.c (access_keymap): Handle t bindings like nil bindings.
4031 Make nil bindings in char-tables transparent.
4032 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
4033
2fa0eedf
RS
40342001-11-26 Richard M. Stallman <rms@gnu.org>
4035
d1420435
RS
4036 * textprop.c (set_text_properties_1): Allow START, END in either order.
4037 Do nothing if range is empty.
4038
2fa0eedf
RS
4039 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
4040
ebcbef4e
RS
4041 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
4042 (clean): Not here.
4043
5c131048
SM
40442001-11-25 Stefan Monnier <monnier@cs.yale.edu>
4045
4046 * textprop.c (set_text_properties_1): Clearly mark that the
4047 interval should not be empty.
4048
4049 * intervals.c (graft_intervals_into_buffer):
4050 Don't call set_text_properties_1 on an empty interval.
4051
96d276c3
RS
40522001-11-25 Richard M. Stallman <rms@gnu.org>
4053
6108b49c
RS
4054 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
4055
96d276c3
RS
4056 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
4057 don't lose the data in it.
4058
5eea19a4
RS
40592001-11-25 Juanma Barranquero <lektu@terra.es>
4060
4061 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
4062
4063 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
4064
4065 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
4066
438e57dd
SM
40672001-11-25 Stefan Monnier <monnier@cs.yale.edu>
4068
4069 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
4070
c88e5347
EZ
40712001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
4072
4073 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
4074 Niemitalo <kon@iki.fi>.
4075
59ce1461
JR
40762001-11-25 Jason Rumney <jasonr@gnu.org>
4077
4078 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
4079
4080 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
4081 (Fx_show_tip): Block input during frame creation.
4082 (Fx_show_tip, Fx_hide_tip): Enable.
4083
8727d588
RS
40842001-11-24 Richard M. Stallman <rms@gnu.org>
4085
4086 * lread.c (Fload): Detect recursive load error for more than 3
4087 nestings of the same file.
4088 (Vrecursive_load_depth_limit): Variable deleted.
4089 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
4090
cc63037e
JR
40912001-11-24 Jason Rumney <jasonr@gnu.org>
4092
4093 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
4094 mouse position if either left or top is not specified.
4095
4096 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
4097 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
4098 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
4099 (my_create_tip_window): Assign tip_window.
4100 (x_create_tip_frame): Use same defaults as X.
4101 (compute_tip_xy): Remove unused variable. Use full screen width.
4102 (Fx_show_tip): Do not double height. Call ShowWindow directly.
4103
4104 * w32term.c (x_after_update_window_line): Doc fix.
4105 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
4106 frames.
4107 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
4108
4109 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
4110 for all Windowed systems.
4111
deece6f5
EZ
41122001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4113
4114 * msdos.c (IT_clear_screen): If the frame's faces are not yet
4115 realized, use the initial screen colors to clear the screen.
4116
f00691a3 41172001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 4118
28ff4293
PJ
4119 * textprop.c (Fset_text_properties): Remove unused variables
4120 `unchanged', `prev_changed', `s' and `len'.
4121
56167cc5
PJ
4122 * search.c (Freplace_match): Remove unused variable `inslen'.
4123
1b944d9c
PJ
4124 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
4125
ca56d953
JR
41262001-11-22 Jason Rumney <jasonr@gnu.org>
4127
4128 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
4129 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
4130 (my_create_tip_window): New function.
4131 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 4132 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 4133
33399dce
JR
41342001-11-20 Jason Rumney <jasonr@gnu.org>
4135
4136 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
4137 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
4138
4139 * w32fns.c (Vw32_system_coding_system): Remove.
4140 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
4141
9b46de40
SM
41422001-11-19 Stefan Monnier <monnier@cs.yale.edu>
4143
6710ea06
SM
4144 * fileio.c (Fwrite_region): Move choose_write_coding_system to
4145 after build_annotations.
4146
a395ef6a
SM
4147 * syntax.c (describe_syntax): Add dummy arg.
4148 (describe_syntax_1): Update call to describe_vector.
4149
4150 * category.c (describe_category): Add dummy arg.
4151 (describe_category_1): Update call to describe_vector.
4152
4153 * keymap.c (Fdescribe_vector): Add `describer' parameter.
4154 (describe_command, describe_translation): Add dummy second param.
4155 (describe_map): Call elt_describer with two arguments.
4156 (describe_vector_princ): Add `fun' parameter.
4157 Call it instead of the hardcoded `princ'.
4158 (describe_vector): Add arg `args'.
4159 Pass it as a new second argument to elt_describer.
4160
4161 * keymap.h (describe_vector): Update prototype.
4162
9b46de40
SM
4163 * frame.c: Don't include keymap.h any more.
4164 (keys_of_frame): Remove.
4165
4166 * lisp.h (keys_of_frame): Remove declaration.
4167
4168 * emacs.c (main): Don't call `keys_of_frame' any more.
4169
aff37336
SS
41702001-11-14 Andreas Schwab <schwab@suse.de>
4171
4172 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
4173 if defined, 0 otherwise.
9b46de40 4174 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
4175 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
4176
b9937f07
RS
41772001-11-19 Richard M. Stallman <rms@gnu.org>
4178
4179 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
4180
2cd23960
JR
41812001-11-18 Jason Rumney <jasonr@gnu.org>
4182
4183 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
4184 (x_draw_bar_cursor): If the background color of the glyph under
4185 the cursor equals the frame's cursor color, use the glyph's
4186 foreground color for drawing the bar cursor.
4187 (x_after_update_window_line): Clear internal border in different
4188 circumstances.
4189 (w32_set_vertical_scroll_bar): Check for width and height > 0.
4190 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
4191 (x_set_glyph_string_background_width):
4192 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
4193 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
4194 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
4195 if cursor_in_non_selected_windows is false.
9b46de40 4196 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
4197 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
4198 Notice if cursor gets overwritten.
4199 (notice_overwritten_cursor): Renamed from
4200 note_overwritten_text_cursor. Rewritten to take glyph widths
4201 into account, and to take X positions as parameters.
4202 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
4203 around call to x_draw_glyphs.
4204 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
4205 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
4206 color to use for image glyph reliefs.
4207 (x_draw_image_relief): Accept zero tool_bar_button_relief.
4208 (glyph_rect): Remove unused variable `area'.
4209
4210 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
4211 some items.
4212 (x_set_internal_border_width): Set frame garbaged when window
4213 doesn't exist yet.
4214 (Fx_create_frame): Accept zero tool_bar_button_relief.
4215 (x_clear_image_1, four_corners_best, image_background)
4216 (image_background_transparent): New functions.
4217 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
4218 (gs_format): Add `:background' entry.
4219 (lookup_image): Set IMG's background color if specified.
4220 (pbm_load, xbm_load_image, png_load): Set IMG's background field
4221 when appropriate.
4222 (x_clear_image_1): Reset `background_valid' and
4223 `background_transparent_valid' fields.
4224 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
4225 calculating it here. Set IMG's background_transparent field.
4226 (enum xpm_keyword_index): Add XPM_BACKGROUND.
4227 (enum png_keyword_index): Add PNG_BACKGROUND.
4228 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
4229 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
4230 (enum gif_keyword_index): Add GIF_BACKGROUND.
4231 (enum gs_keyword_index): Add GS_BACKGROUND.
4232 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
4233 Pre-calculate image background color where necessary.
9b46de40
SM
4234 (x_create_x_image_and_pixmap, xbm_load, gs_load):
4235 Use display info's n_cbits entry for screen depth.
2cd23960
JR
4236 (Fx_show_tip): Remove unused variables `buffer', `top',
4237 `left', `max_width' and `max_height'.
4238
4239 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
4240
a4184c1c
GM
42412001-11-18 Gerd Moellmann <gerd@gnu.org>
4242
4243 * puresize.h (BASE_PURESIZE): Increase to 750000.
4244
f00691a3 42452001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
4246
4247 * frame.c (Fframe_live_p): Doc fix.
4248
f4ca4b00
RS
42492001-11-18 Richard M. Stallman <rms@gnu.org>
4250
4251 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
4252 (message_dolog_marker3): New static variables hold three markers.
4253 (syms_of_xdisp): Initialize and staticpro them.
4254 (message_dolog): Use message_dolog_marker1..3 instead of
4255 allocating markers each time. Unchain them when done.
4256
f4e25f94
RS
42572001-11-17 Richard M. Stallman <rms@gnu.org>
4258
4259 * doc.c (Fsnarf_documentation): Doc fix.
4260
91c153e2
AS
42612001-11-17 Andreas Schwab <schwab@suse.de>
4262
4263 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
4264
65b7d3e7
RS
42652001-11-17 Richard M. Stallman <rms@gnu.org>
4266
4267 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
4268
6b5f6311
JR
42692001-11-17 Jason Rumney <jasonr@gnu.org>
4270
4271 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
4272
be676094
GM
42732001-11-17 Gerd Moellmann <gerd@gnu.org>
4274
4275 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
4276 with invalid position.
4277
032a857d
RS
42782001-11-16 Richard M. Stallman <rms@gnu.org>
4279
4280 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
4281
4282 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
4283 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
4284 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
4285
4286 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
4287
b6270150
SM
42882001-11-16 Stefan Monnier <monnier@cs.yale.edu>
4289
4290 * fileio.c (build_annotations): Split off the tail.
4291 (build_annotations_2): New fun. Extracted from build_annotations.
4292 (Fwrite_region): Split the call to build_annotations into two
4293 calls to build_annotations and build_annotations_2.
4294
f00691a3 42952001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 4296
98cbb9fa
PJ
4297 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
4298 clear_waiting_for_input with argument.
4299
4300 * xterm.h (x_update_cursor): Remove duplicated prototype.
4301
b6270150 4302 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 4303
ea904403 4304 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 4305
ea904403 4306 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 4307
fa336b91
SM
43082001-11-16 Stefan Monnier <monnier@cs.yale.edu>
4309
4310 * fileio.c (choose_write_coding_system): New fun, extracted
4311 from Fwrite_region.
4312 (Fwrite_region): Use it.
4313
4314 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
4315 (funcall_lambda, run_hook_with_args): Make static and add prototype.
4316 (ml_apply, find_handler_clause): Add prototype.
4317
077907d4
EZ
43182001-11-16 Eli Zaretskii <eliz@gnu.org>
4319
aa2af83a
EZ
4320 * config.in: Add #undef HAVE_COFF_H.
4321
077907d4
EZ
4322 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
4323 Required for ISC 4.1.
4324
1756e2fb
EZ
43252001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
4326
4327 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
4328 Andrew Wiseman <a.wiseman@btclick.com>.
4329
06e8f738
KS
43302001-11-16 Kim F. Storm <storm@cua.dk>
4331
4332 The following changes are made to clean up the various internal
4333 references to the fringes to actually use the term `fringe' for
4334 them. Previously, they were called `flags areas', `bitmap areas',
4335 `left/right side of windows', or implicitly as `flags' or
4336 `bitmaps':
4337
4338 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
4339 Comments fixed. Use renamed symbols.
fa336b91 4340
06e8f738 4341 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 4342
06e8f738
KS
4343 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
4344 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
4345 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 4346
06e8f738 4347 * msdos.c: Comment fix.
fa336b91 4348
06e8f738 4349 * w32fns.c: Use renamed symbols.
fa336b91 4350
06e8f738
KS
4351 * w32term.c: Comment fixes. Use renamed symbols.
4352 (fringe_bitmap_type): Renamed from bitmap_type.
4353 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
4354 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
4355 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 4356
06e8f738
KS
4357 * w32term.h: Comment fixes. Use renamed symbols.
4358 (fringes_extra): Renamed from flags_areas_extra.
4359 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
4360 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
4361 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
4362 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
4363 (FRAME_X_LEFT_FRINGE_WIDTH):
4364 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
4365 (FRAME_X_RIGHT_FRINGE_WIDTH):
4366 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
4367
06e8f738 4368 * widget.c: Use renamed symbols.
fa336b91 4369
06e8f738
KS
4370 * window.c: Comment fixes. Use renamed symbols.
4371 (coordinates-in-window-p): Doc fix.
fa336b91 4372
06e8f738 4373 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 4374
06e8f738 4375 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 4376
06e8f738 4377 * xfns.c: Use renamed symbols.
fa336b91 4378
06e8f738
KS
4379 * xterm.c: Comment fixes. Use renamed symbols.
4380 (fringe_bitmap_type): Renamed from bitmap_type.
4381 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
4382 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
4383 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
4384
4385 * xterm.h: Comment fixes. Use renamed symbols.
4386 (fringes_extra): Renamed from flags_areas_extra.
4387 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
4388 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
4389 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
4390 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
4391 (FRAME_X_LEFT_FRINGE_WIDTH):
4392 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
4393 (FRAME_X_RIGHT_FRINGE_WIDTH):
4394 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 4395
9ce647f4
JR
43962001-11-15 Jason Rumney <jasonr@gnu.org>
4397
4398 * w32menu.c (add-menu-item): Make help_echo and radio buttons
4399 work for most menu items. From David Ponce
4400 <david.ponce@wanadoo.fr>.
4401
9b784ab8
GM
44022001-11-15 Gerd Moellmann <gerd@gnu.org>
4403
9f7e52b4
GM
4404 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
4405 Some x_set_* function expect to be called even if old and new
4406 value are equal.
4407
4408 * xdisp.c (build_desired_tool_bar_string): Accept zero
4409 tool_bar_button_relief.
4410
4411 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
4412
4413 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 4414
34e5d0af
GM
4415 * xterm.c (x_draw_bar_cursor): If the background color of the
4416 glyph under the cursor equals the frame's cursor color, use
4417 the glyph's foreground color for drawing the bar cursor.
4418
9b784ab8
GM
4419 * dispnew.c (direct_output_forward_char): Fix character/byte
4420 position comparison.
4421
89512fcd
MB
44222001-11-15 Miles Bader <miles@gnu.org>
4423
4424 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
4425 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
4426 Update arguments to find_field.
4427 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
4428 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
4429 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
4430 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
4431
7d18891d
RS
44322001-11-14 Richard M. Stallman <rms@gnu.org>
4433
d2936d21
RS
4434 * editfns.c (Fpropertize): Allow call with 1 arg.
4435
7d18891d
RS
4436 * dispextern.h (image_background, image_background_transparent):
4437 Conditionalize on HAVE_X_WINDOWS.
4438
44392001-11-13 Richard M. Stallman <rms@gnu.org>
4440
4441 * print.c (Fprin1_to_string): Doc fix.
4442
4443 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
4444
4445 * floatfns.c (Fceiling, Ffloor): Doc fixes.
4446
4447 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
4448
4449 * fileio.c (Ffile_accessible_directory_p): Doc fix.
4450
4451 * eval.c (syms_of_eval): Doc fix.
4452
4453 * coding.c (syms_of_coding): Doc fix.
4454
4455 * doc.c (Fsnarf_documentation): Doc fix.
4456
4457 * dispnew.c (syms_of_display): Doc fix.
4458
4459 * category.c (Fget_unused_category): Doc fix.
4460
4461 * buffer.c (syms_of_buffer): Doc fixes.
4462
9474c847
EZ
44632001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
4464
4465 * print.c (prin1, print): Doc fix.
4466
f00691a3 44672001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 4468
2b6f3c2b 4469 * fontset.h: Remove declarations of variables
e3059a5d
PJ
4470 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
4471
4472 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
4473 `Vclip_large_size_font'.
4474
b3700ae7
JR
44752001-11-13 Jason Rumney <jasonr@gnu.org>
4476
4477 * w32fns.c: Doc fix.
4478
f00691a3 44792001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 4480
4bb962be
PJ
4481 * xfaces.c (Fface_attributes_as_vector): Doc fix.
4482
ddb67bdc
PJ
4483 * fns.c: Doc fix.
4484
3467c402
PJ
4485 * emacs.c: Doc fix.
4486
4487 * coding.c: Doc fix.
4488
6e1b91d7
PJ
4489 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
4490 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
4491 `new style' [w/`doc:' keyword].
4492
1c1d3d69
RS
44932001-11-12 Richard M. Stallman <rms@gnu.org>
4494
4495 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
4496 LeaveNotify events. Only FocusIn and FocusOut do that now.
4497 (x_display_and_set_cursor): Do display hollow cursors in active
4498 minibuffer windows when they are not selected.
4499
b6f4c7ba
JR
45002001-11-12 Jason Rumney <jasonr@gnu.org>
4501
4502 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
4503 * w32term.c: Change doc-string comments to `new style'.
4504 [w/`doc:' keyword]. Doc fixes.
4505
4506 * w32fns.c: Don't define max.
4507 (Fx_open_connection): Only execute once.
4508
f00691a3 45092001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
4510
4511 * ccl.c: Change macros to use do-while block instead of if-else.
4512 Use braces to follow GNU Coding Standards.
4513
a4cd0cd7
RS
45142001-11-11 Richard M. Stallman <rms@gnu.org>
4515
eafb659a
RS
4516 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
4517
4518 * lread.c (read_escape): Use end_of_file_error for reporting eof.
4519
a4cd0cd7
RS
4520 * insdel.c (replace_range): Use adjust_markers_for_replace
4521 instead of adjust_markers_for_delete and adjust_markers_for_insert.
4522
4523 * intervals.h: Declare set_text_properties and set_text_properties_1.
4524
4525 * textprop.c (set_text_properties_1): New subroutine
4526 broken out of set_text_properties.
4527 (set_text_properties): Use set_text_properties_1.
4528
4529 * intervals.c (graft_intervals_into_buffer):
4530 Use set_text_properties_1 to clear out properties.
4531
4532 * search.c (Freplace_match): Use replace_range to insert
4533 and delete. Don't request property inheritance from
4534 surrounding text.
4535
91823618
JR
45362001-11-10 Jason Rumney <jasonr@gnu.org>
4537
4538 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
4539 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 4540 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 4541
86928dfb
GM
45422001-11-10 Gerd Moellmann <gerd@gnu.org>
4543
fa336b91 4544 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
4545 instead of malloc/free.
4546
f00691a3 45472001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 4548
ab8469eb
PJ
4549 * xfaces.c (merge_face_vectors): Use braces to follow GNU
4550 Coding Standards.
4551 (Finternal_set_lisp_face_attribute): Likewise.
4552
a78e0303
PJ
4553 * buffer.c (Fbury_buffer): Likewise.
4554
40ef1eda
PJ
4555 * indent.c (current_column_1): Remove unused variable `prev_col'.
4556
fabf4a91
PJ
4557 * coding.c (encode_coding): Use precomputed value of `src'.
4558 (encode_coding): Remove unused variable `src_end'.
4559 (code_convert_region): Remove unused variables `count'.
4560
0c99b139
JR
45612001-11-07 Jason Rumney <jasonr@gnu.org>
4562
4563 * w32term.c (x_display_and_set_cursor): Do not move system caret
4564 if cursor_glyph is NULL.
4565
f00691a3 45662001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
4567
4568 * keymap.c (access_keymap): Fix compilation error.
4569
55c6d645
MB
45702001-11-07 Miles Bader <miles@gnu.org>
4571
4572 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
4573
f00691a3 45742001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 4575
7a4564a4
PJ
4576 * intervals.c (graft_intervals_into_buffer):
4577 Remove #ifdef'd-out code.
4578 (graft_intervals_into_buffer): Remove unused variable `middle'.
4579
5de38842
PJ
4580 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
4581 code (eval-current-buffer).
4582 Change doc-string comments to `new style' [w/`doc:' keyword].
4583
4fa23df5
RS
45842001-11-06 Richard M. Stallman <rms@gnu.org>
4585
4586 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
4587
7a6a97d7
SM
45882001-11-06 Stefan Monnier <monnier@cs.yale.edu>
4589
c191d13c
SM
4590 * lread.c (read1): Fix behavior with nested backquoting.
4591
7a6a97d7
SM
4592 * keyboard.c (make_lispy_event): Check integerness and fix
4593 Lisp_Object/int mixup.
4594
f00691a3 45952001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
4596
4597 * fns.c (copy_hash_table): Remove unused variable `v'.
4598
17893c65
PJ
4599 * fontset.c (fontset_font_pattern): Remove unused variable
4600 `family_registry'.
4601
4d994a79
PJ
4602 * indent.c (current_column_1): Remove unused variable `prev_col'.
4603
d5360cc7
RS
46042001-11-05 Richard M. Stallman <rms@gnu.org>
4605
4606 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
4607
4608 * buffer.c (Fkill_buffer): Don't delete auto save file
4609 if buffer is modified.
4610
96238a5a
AI
46112001-11-05 Andrew Innes <andrewi@gnu.org>
4612
4613 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
4614 CHECK_NUMBER_CDR.
4615
d9d54213
RS
46162001-11-05 Richard M. Stallman <rms@gnu.org>
4617
4618 * unexelf.c (unexec): Minor changes; clean up comments.
4619
b116830b
SS
46202001-11-05 Sam Steingold <sds@gnu.org>
4621
4622 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
4623
3297e2a1
AS
46242001-11-05 Andreas Schwab <schwab@suse.de>
4625
4626 * sound.c (sound_perror): Save errno from being clobbered.
4627
9212319f 46282001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
4629
4630 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
4631 the program image directly.
4632
f00691a3 46332001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
4634
4635 * buffer.h (Fbuffer_local_value): Add prototype.
4636
982f6c7e
RS
46372001-11-04 Richard M. Stallman <rms@gnu.org>
4638
d31053f9
RS
4639 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
4640 and CHECK_BUFFER.
4641
4642 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
4643 (record_char): Likewise.
4644
4645 * keyboard.c (make_lispy_event): Don't insist a drag event must
4646 move to a different buffer position. Instead, check for moving at
4647 least double_click_fuzz.
4648
4649 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
4650
4651 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
4652
982f6c7e
RS
4653 * indent.c (current_column_1, Fmove_to_column): Separate the code
4654 for display-table glyphs from the code buffer text, to fix
4655 bugs in the former.
4656
830047fd
RS
46572001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
4658
4659 * buffer.c (Fbuffer_local_value): New function.
c191d13c 4660 (syms_of_buffer): Defsubr it.
b116830b 4661
830047fd
RS
4662 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
4663 value of `cursor-in-non-selected-windows'.
4664
4665 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
4666 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
4667 (syms_of_xdisp): Initialize it.
b116830b 4668
f00691a3 46692001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 4670
4e397688
PJ
4671 * xfns.c (Fx_create_frame): Doc fix.
4672
48b0f3ae
PJ
4673 * coding.c: Change doc-string comments to `new style' [w/`doc:'
4674 keyword].
4675
2df5238c
PJ
4676 * eval.c (top_level_value, top_level_set): Remove commented and
4677 #ifdef'd-out code.
4678 (Fdefvar): Fix usage in doc-string.
4679
3ecaf7e5
RS
46802001-11-03 Richard M. Stallman <rms@gnu.org>
4681
4682 * xfns.c: Include unistd.h, if it exists.
4683
4684 * editfns.c: Move the include of ctype.h after unistd.h.
4685
4686 * gmalloc.c: Test BROKEN_PROTOTYPES.
4687
8db2e33b
KR
46882001-11-03 Ken Raeburn <raeburn@gnu.org>
4689
4690 * lisp.h (CHECK_STRING_CAR): New macro.
4691 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
4692 treating XCAR and XCDR as lvalues.
4693 (openp): Use CHECK_STRING_CAR.
4694 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
4695
aed29b97
EZ
46962001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
4697
4698 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 4699 (SIGMASKTYPE): Define.
aed29b97
EZ
4700
4701 * syssignal.h (sigunblock): Don't define if already defined.
4702
f00691a3 47032001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 4704
16b45be4
EZ
4705 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
4706 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
4707 Fix typos in comments.
4708
020f9b38
PJ
4709 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
4710 and #ifdef'd-out code.
4711 Fix and reindent comments.
4712
c191d13c 4713 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 4714
6cb16f95
PJ
4715 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
4716 argument `i' in macros.
4717
4718 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
4719 `i' in macros.
4720
16b45be4
EZ
4721 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
4722 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
4723 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
4724 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
4725 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
4726 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
4727 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
4728 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
4729 in macros.
4730
4731 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
4732 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
4733 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
4734 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
4735 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
4736 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
4737 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
4738 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
4739 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
4740 (remove unused second argument).
4741
7e9d3c2f
SM
47422001-11-02 Stefan Monnier <monnier@cs.yale.edu>
4743
4744 * syntax.c (describe_syntax): New wrapper.
4745 (Finternal_describe_syntax_value): Rename from describe_syntax.
4746 Don't insert space at front and \n at the end.
4747 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
4748
4749 * regex.c (re_wctype): Try to fix some warnings.
4750 (regcomp, regexec): Don't forget the __restrict.
4751
e6bff182
RS
47522001-11-02 Richard M. Stallman <rms@gnu.org>
4753
4754 * textprop.c (Fget_char_property): Doc fix.
4755
f00691a3 47562001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
4757
4758 * process.c (Fstart_process): Add usage to doc-string.
4759
4760 * data.c (Fsetq_default): Ditto.
4761
4762 * callint.c (Finteractive): Ditto.
4763
c22e59e1
SM
47642001-11-01 Stefan Monnier <monnier@cs.yale.edu>
4765
4766 * macros.c: Don't include keymap.h any more.
4767
9271ed2c
RS
47682001-11-01 Richard M. Stallman <rms@gnu.org>
4769
e6bff182
RS
4770 * data.c (Fmake_local_variable): Doc fix.
4771
4772 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
4773 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
4774
9271ed2c
RS
4775 * keymap.c (Fdescribe_buffer_bindings): Print character property
4776 bindings along with or instead of the buffer local map.
4777 Make the overriding maps override what they should.
4778
f00691a3 47792001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
4780
4781 * window.c (grow_mini_window): Fix typo in comment.
4782
27188d11
GM
47832001-11-01 Gerd Moellmann <gerd@gnu.org>
4784
7b49b9d2
GM
4785 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
4786 (XTset_vertical_scroll_bar): Likewise.
4787
43f7c3ea
GM
4788 * xfns.c (x_build_heuristic_mask): Use four_corners_best
4789 instead of IMAGE_BACKGROUND.
c22e59e1 4790
b350c2e5
GM
4791 * xfns.c (four_corners_best): Reindent.
4792
c22e59e1 4793 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
4794 Handle :box so that it is possible to specify sexprs.
4795
bf00d461
EZ
47962001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
4797
4798 * s/hpux11.h: New file.
4799
f00691a3 48002001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 4801
2b209b97
PJ
4802 * emacs.c (USAGE1): Show command line option --no-window-system
4803 instead of --no-windows in usage.
4804 (standard_args): Rename --no-windows to --no-window-system.
4805 (bug_reporting_address): Follow Emacs coding conventions.
4806
9dbc9081
PJ
4807 * eval.c (Fcommandp): Doc fix.
4808 Change doc-string comments to `new style' [w/`doc:' keyword].
4809
4e10df59
PJ
4810 * frame.c (Fframe_live_p): Doc fix.
4811
4812 * buffer.c (selective-display-ellipses): Doc fix.
4813
dd387b25
GM
48142001-10-31 Gerd Moellmann <gerd@gnu.org>
4815
fe957e65
GM
4816 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
4817
dd387b25
GM
4818 * xfaces.c (realize_x_face): If C is not a single-byte character,
4819 set the face's colors_copied_bitwise_p instead of the defaulted_p
4820 members which have a different meaning.
4821 (free_face_colors): Do nothing for a face whose colors have been
4822 copied bitwise.
4823
c22e59e1 4824 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 4825
f00691a3 48262001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 4827
687784e8
PJ
4828 * marker.c, mocklisp.c: Change doc-string comments to `new style'
4829 [w/`doc:' keyword].
2e1280f8 4830
b9d9a9b9
GM
48312001-10-31 Gerd Moellmann <gerd@gnu.org>
4832
4833 * fns.c (require_unwind): Return Lisp_Object.
4834
f00691a3 48352001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 4836
fa1361cb
PJ
4837 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
4838 (last-input-char): Revert doc-string to be the same as the
4839 doc-string of `last-input-event'.
4840
48400103
PJ
4841 * xdisp.c: Fix typos in comments.
4842
eafa3196
GM
48432001-10-31 Gerd Moellmann <gerd@gnu.org>
4844
4845 * window.c (grow_mini_window): Handle case that the root
4846 window is already smaller than the nominal mininum height.
4847
747d3f2a
SM
48482001-10-30 Stefan Monnier <monnier@cs.yale.edu>
4849
bf9bb76f
SM
4850 * emacs.c (main): Don't call keys_of_macros any more.
4851
4852 * lisp.h (keys_of_macros): Remove.
4853
4854 * macros.c (keys_of_macros): Remove.
4855
747d3f2a
SM
4856 * xfaces.c (Fface_attribute_relative_p): Declare args.
4857
5e905a57
JR
48582001-10-30 Jason Rumney <jasonr@gnu.org>
4859
4860 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
4861 (enum_font_cb2): Ignore fonts with vertical orientation.
4862
3a426197
RS
48632001-10-30 Richard M. Stallman <rms@gnu.org>
4864
4865 * keyboard.c (Finput_pending_p): Doc fix.
4866
a742d646
GM
48672001-10-30 Gerd Moellmann <gerd@gnu.org>
4868
259cf6bc
GM
4869 * xterm.c (x_after_update_window_line): Don't run the code
4870 clearing in borders for rows whose visible height is 0.
4871
3f99f948
GM
4872 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
4873 resized_p flag is set. If not set, use the much less flickering
4874 method previously used.
4875
4876 * dispnew.c (change_frame_size_1): Set frame's resized_p.
4877
4878 * frame.h (struct frame) <resized_p>: New member.
4879
b4a3be43
GM
4880 * lread.c (to_multibyte): Ensure read_buffer is at least twice
4881 as large as the number of bytes to convert.
747d3f2a 4882
a742d646
GM
4883 * lread.c (to_multibyte): New function.
4884 (read1): Use it.
4885
cacbb9e9
EZ
48862001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
4887
4888 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
4889
99cb6b2f
GM
48902001-10-30 Gerd Moellmann <gerd@gnu.org>
4891
327f42ee 4892 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
4893 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
4894 if the row's fill_line_p is set and drawing the last glyph with
4895 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 4896
99cb6b2f
GM
4897 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
4898
8e8223e2
SM
48992001-10-29 Stefan Monnier <monnier@cs.yale.edu>
4900
4901 * xmenu.c: Include coding.h and charset.h.
4902 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
4903 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
4904 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
4905 Explicitly set wv->help. Use `TRUE' rather than `True'.
4906 (menu_help_callback): Use empty_string.
4907
4908 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
4909 (Fx_popup_dialog): Explicitly init f.
4910 (w32_menu_display_help): Use empty_string.
4911
4d083a8f
RS
49122001-10-29 Richard M. Stallman <rms@gnu.org>
4913
b2304472
RS
4914 * fns.c (Frequire): Detect recursive try to require the same
4915 feature 3 or more levels deep, and get error.
4916 (require_unwind): New subroutine.
4917 (require_nesting_list): New variable.
4918 (syms_of_fns): Init and staticpro it.
4919
4d083a8f
RS
4920 * print.c (print_object): Clarify indication of insertion type.
4921
2fe41216
EZ
49222001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
4923
90480000
EZ
4924 * coding.c (syms_of_coding): Document that locale-coding-system is
4925 used for decoding input on X.
4926
2fe41216
EZ
4927 * window.c (Fscroll_left, Fscroll_right): Doc fix.
4928
f00691a3 49292001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
4930
4931 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
4932 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
4933
60ebcfe8
GM
49342001-10-29 Gerd Moellmann <gerd@gnu.org>
4935
9a7bdceb
GM
4936 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
4937 use NO_CURSOR if cursor_in_non_selected_windows is false.
4938
3f08fcd2
GM
4939 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
4940 the slant attribute if FRAME is t.
4941
0ccfdad2
GM
4942 * xfns.c (x_set_internal_border_width): Set frame garbaged
4943 when X window doesn't exist yet.
4944
ef253080
GM
4945 * xterm.c (x_after_update_window_line): Clear internal border
4946 in different circumstances.
b116830b 4947
60ebcfe8
GM
4948 * xterm.c (XTread_socket) <KeyPress>: Don't use
4949 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
4950 <handa@etl.go.jp>.
4951
73d25f9c
EZ
49522001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4953
4954 * m/ibms390.h: New file. From Adam Thornton
4955 <athornton@sinenomine.net>.
4956
cac1daf0
GM
49572001-10-28 Gerd Moellmann <gerd@gnu.org>
4958
053b3256 4959 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 4960
cac1daf0
GM
4961 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
4962 a loop counter.
4963
f00691a3 49642001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 4965
186486eb
PJ
4966 * emacs.c: Use argv[0] instead of emacs when -t was specified.
4967
4707d2d0
PJ
4968 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
4969 keyword].
4970 Fix typos in comments.
b116830b 4971
d883731c
PJ
4972 * emacs.c (bug_reporting_address): New function.
4973 Use it when displaying usage message.
4974
04012254
PJ
4975 * minibuf.c (read_minibuf): Remove unused external declaration of
4976 variable `Qread_only'.
4977
13b1a09c
PJ
4978 * keymap.c (access_keymap): Remove unused variable `charset'.
4979
5bbf4378
MB
49802001-10-28 Miles Bader <miles@gnu.org>
4981
4982 * xfaces.c (merge_face_heights): Handle TO being relative as well.
4983 Remove #ifdef'd-out code.
4984 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
4985 (syms_of_xfaces): Initialize them.
4986
1ce1e4ee
JR
49872001-10-27 Jason Rumney <jasonr@gnu.org>
4988
4989 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
4990 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
4991 position using the system caret.
4992
4993 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
4994 (w32_system_caret_height, w32_system_caret_x)
4995 (w32_system_caret_y): New variables for tracking system caret.
4996 (w32_initialize): Initialize them.
c2d53558 4997 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 4998
c2d53558
SM
4999 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
5000 New messages types.
1ce1e4ee
JR
5001
5002 * w32term.c (note_mouse_highlight): Clear old help_echo.
5003
f00691a3 50042001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 5005
bb4600a4
PJ
5006 * xterm.c: Fix typo in a comment.
5007
7db35a48
PJ
5008 * emacs.c: Fix typos in comments.
5009 Remove unnecessary spaces.
5010 Change doc-string comments to `new style' [w/`doc:' keyword].
5011 (USAGE2): Fix typos in usage string.
5012
a7248e4f
PJ
5013 * xterm.c: Fix typo in a comment.
5014
4e30ce42
PJ
5015 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
5016 emacs.c.
5017
62725a92
GM
50182001-10-27 Gerd Moellmann <gerd@gnu.org>
5019
798dbe1f 5020 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 5021 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
5022 farther backward when target_y was not reached.
5023
62725a92
GM
5024 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
5025 Display errno only if non-zero.
5026 (sound_warning): New function.
5027 (vox_configure): Don't treat failing to set sample rate as error.
5028 (various places): Improve error messages.
5029
d4e34d24
EZ
50302001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
5031
944e6f60
EZ
5032 * fileio.c (Faccess_file): Run the argument filename through
5033 Fexpand_file_name, before using it.
5034
d4e34d24
EZ
5035 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
5036 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
5037
38d2af0c
GM
50382001-10-26 Gerd Moellmann <gerd@gnu.org>
5039
da80a8d5
GM
5040 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
5041
38d2af0c
GM
5042 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5043 Fix clearing in the case of scroll bars on the right.
c2d53558 5044
45de4a6f 50452001-10-26 Juanma Barranquero <lektu@terra.es>
56f508dd
EZ
5046
5047 * w32gui.h (XImage): Add a dummy typedef.
5048
fbd5ceb2
GM
50492001-10-26 Gerd Moellmann <gerd@gnu.org>
5050
c2d53558 5051 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 5052
b23236fb
EZ
50532001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
5054
5055 * frame.c (Fframe_parameter): Fix last change.
5056
5d991fc4
EZ
5057 * fileio.c: Revert last change (which removed old commented-out
5058 version of expand-file-name). Add a comment that explains why
5059 this old version should not be removed.
5060
879eadc3
GM
50612001-10-25 Gerd Moellmann <gerd@gnu.org>
5062
75700ff2
GM
5063 * frame.c (Fframe_parameter): Fix a bug whereby some
5064 ``artificial'' frame parameters, like `minibuffer' were not
5065 obtained by calling Fframe_parameters.
5066
dfe92a6a
GM
5067 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
5068 cursor differently.
5069
879eadc3
GM
5070 * xdisp.c (move_it_vertically_backward): Compute line height
5071 differently. Add heuristic to try to be more compatible to 20.x.
5072
e1010ebe
SM
50732001-10-25 Stefan Monnier <monnier@cs.yale.edu>
5074
d73a471b
SM
5075 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
5076
d6da5a06
GM
5077 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
5078 boolean.
e1010ebe 5079
f66bd220
MB
50802001-10-25 Miles Bader <miles@gnu.org>
5081
5082 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
5083 BG is a pointer to a structure, not a structure.
5084 (gif_format, png_format): Add missing commas.
5085
d436d538
RS
50862001-10-24 Richard M. Stallman <rms@gnu.org>
5087
5088 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 5089 (syms_of_xfaces): Defsubr it.
d436d538 5090
f00691a3 50912001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
5092
5093 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
5094 variable `area'.
5095
f00691a3 50962001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 5097
c2d53558 5098 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 5099
e2a57b34
MB
51002001-10-25 Miles Bader <miles@gnu.org>
5101
5102 * dispextern.h (struct image): Add `background',
5103 `background_valid', and `background_transparent' fields.
5104 (image_background, image_background_transparent): New declarations.
5105 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
5106 * xfns.c (image_background, image_background_transparent)
5107 (four_corners_best): New functions.
c2d53558 5108 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
5109 (gs_format): Add `:background' entry.
5110 (lookup_image): Set IMG's background color if specified.
5111 (pbm_load, xbm_load_image, png_load): Set IMG's background field
5112 when appropriate.
5113 (x_clear_image_1): Reset `background_valid' and
5114 `background_transparent_valid' fields.
5115 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
5116 calculating it here. Set IMG's background_transparent field.
5117 (enum xpm_keyword_index): Add XPM_BACKGROUND.
5118 (enum png_keyword_index): Add PNG_BACKGROUND.
5119 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
5120 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
5121 (enum gif_keyword_index): Add GIF_BACKGROUND.
5122 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 5123 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
5124 Pre-calculate image background color where necessary.
5125 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
5126 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
5127 color to use for image glyph reliefs.
5128
b547b6e8
GM
51292001-10-24 Gerd Moellmann <gerd@gnu.org>
5130
d9e3b8c6
GM
5131 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
5132 in full-width rows.
c2d53558 5133
b547b6e8
GM
5134 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5135 Fix clearing of area not covered by scroll bar.
5136
f00691a3 51372001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
5138
5139 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
5140 and `real_start'.
c2d53558 5141 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
5142 (glyph_rect): Remove unused variable `area'.
5143
76cb5e06
GM
51442001-10-24 Gerd Moellmann <gerd@gnu.org>
5145
bdbdebff 5146 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
5147
5148 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
5149 (row_containing_pos): Take additional argument DY.
5150 Treat rows ending in middle of char differently.
62e33982
GM
5151 (display_line): Handle tabs on window systems differently.
5152
5153 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
5154 with additional argument.
5155
5156 * dispextern.h (row_containing_pos): Adjust prototype.
5157
76cb5e06
GM
5158 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
5159 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
5160 (try_window_id, try_window_reusing_current_matrix)
5161 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
5162 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
5163
f00691a3 51642001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 5165
c9e60620
PJ
5166 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
5167 gnuemacs).
5168 (HAVE_BOXES): Fix typo in comment.
5169 (push_menu_pane): Fix typo in comment.
5170
3b552d56
PJ
5171 * xdisp.c: (display_prop_string_p): Remove unused local declaration
5172 of `Qwhen'.
5173 (single_display_prop_string_p): Remove unused local declarations
5174 of `Qwhen' and `Qmargin'.
5175 (string_buffer_position): Remove unused variable `around'.
5176 (store_frame_title): Remove unused variable `width'.
5177
15c565ac
PJ
5178 * window.c: Don't define max.
5179 (coordinates_in_window): Remove unused variable `uy'.
5180
a8818eb9
PJ
5181 * widget.c: Don't define max.
5182
996fee11
PJ
5183 * process.c: Don't define max.
5184 (create_process): Remove unused variable `buffer'.
5185
496e1a5b
GM
51862001-10-23 Gerd Moellmann <gerd@gnu.org>
5187
c2d53558 5188 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 5189
5905ae8b
EZ
51902001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
5191
5192 * xfaces.c (Finternal_set_lisp_face_attribute)
5193 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
5194 frame is on a windowed display.
5195
24db49fb
GM
51962001-10-23 Gerd Moellmann <gerd@gnu.org>
5197
c2d53558
SM
5198 * dispnew.c (sync_window_with_frame_matrix_rows):
5199 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
5200 of marginal areas.
5201
c2d53558 5202 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 5203
f0487f05
EZ
52042001-10-23 Andreas Schwab <schwab@suse.de>
5205
5206 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
5207 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
5208
f0a48a01
GM
52092001-10-23 Gerd Moellmann <gerd@gnu.org>
5210
c2d53558 5211 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
5212 REAL_END. Notice if cursor gets overwritten.
5213 (notice_overwritten_cursor): Take X positions as parameters.
5214 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
5215 around call to x_draw_glyphs.
5216
f00691a3 52172001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 5218
fc11dff0
PJ
5219 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
5220 instead of C) and usage.
a50a10a0 5221
fc11dff0
PJ
5222 * editfns.c (char-to-string): Fix argument names (use CHAR instead
5223 of C) and usage.
a50a10a0
PJ
5224
5225 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
5226 `left', `max_width' and `max_height'.
5227
8738febd
GM
52282001-10-23 Gerd Moellmann <gerd@gnu.org>
5229
5230 * xdisp.c (display_line): For a tab continued to the next line,
5231 set row's ends_in_middle_of_char_p.
5232
653c329b
GM
52332001-10-22 Gerd Moellmann <gerd@gnu.org>
5234
5235 * xdisp.c (display_line): Fix computation of continuation lines
5236 width for TABs.
5237
f00691a3 52382001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 5239
7ba51063
PJ
5240 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
5241 `Qlaplace'.
5242
f958c5ac
PJ
5243 * fileio.c: Remove unused code.
5244
eb360291
MB
52452001-10-22 Miles Bader <miles@gnu.org>
5246
5247 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
5248 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
5249 Remove `DOC_STRINGS_IN_COMMENTS' cases.
5250
98515cf0
JR
52512001-10-21 Jason Rumney <jasonr@gnu.org>
5252
5253 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
5254
93026d88
EZ
52552001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5256
5257 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
5258 (Finsert_string): Avoid the multi-line string literals warning.
5259
c9a95b79
MB
52602001-10-22 Miles Bader <miles@gnu.org>
5261
5262 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
5263 (Fdocumentation): Don't use it.
5264 (syms_of_doc): Don't initialize it.
5265
5266 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
5267 * print.c (Fwith_output_to_temp_buffer): Likewise.
5268 * window.c (Fsave_window_excursion): Likewise.
c2d53558 5269 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 5270 (Fsave_restriction): Likewise.
c2d53558
SM
5271 * eval.c (Frun_hooks, Frun_hook_with_args)
5272 (Frun_hook_with_args_until_failure)
5273 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
5274 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
5275 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
5276 (Funwind_protect, Fcondition_case): Likewise.
5277 * coding.c (Ffind_operation_coding_system): Likewise.
5278 * keyboard.c (Ftrack_mouse): Likewise.
5279
a3b10252
MB
52802001-10-21 Miles Bader <miles@gnu.org>
5281
c2d53558 5282 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
5283 (Fmake_hash_table): Add usage: string to doc string.
5284 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 5285 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
5286 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
5287 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
5288 (Fml_prefix_argument_loop): Likewise.
5289
f00691a3 52902001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 5291
c2d53558 5292 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 5293
c6f73eec
PJ
5294 * sysdep.c (init_sys_modes): Change doc-string comments to `new
5295 style' [w/`doc:' keyword].
5296
5297 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
5298 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
5299 comments to `new style' [w/`doc:' keyword].
5300
3cf3436e
JR
53012001-10-21 Jason Rumney <jasonr@gnu.org>
5302
5303 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
5304
c169b8f1
JR
5305 * w32term.c (remember_mouse_glyph): New function.
5306 (w32_mouse_position): Use it.
5307 (note_mouse_movement): If the mouse moved off the glyph, remember
5308 its new position.
c2d53558 5309
4fdd691b
JR
5310 * w32term.h (struct w32_output): Correct spelling of x_compatible.
5311 (w32_display_info): Add mouse_face_overlay.
5312
c169b8f1
JR
5313 * w32term.c (notice_overwritten_cursor): Renamed from
5314 note_overwritten_text_cursor. Rewritten to take glyph widths into
5315 account.
5316 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5317 (fast_find_string_pos): New function.
5318 (fast_find_position): Return the correct vpos. Add parameter
5319 STOP. In the final row, stop before glyphs having STOP as object.
5320 Don't consider glyphs that are not from a buffer.
5321 (fast_find_position) [0]: Add a presumably more correct version
5322 for after 21.1.
5323 (expose_window_tree, expose_frame): Don't compute intersections here.
5324 (expose_window): Do it here instead.
5325 (expose_window_tree, expose_window, expose_line): Return 1 when
5326 overwriting mouse-face.
5327 (expose_window): If W is the window currently being updated, mark
5328 the frame garbaged.
5329 (expose_frame): If mouse-face was overwritten, redo it.
5330 (x_use_underline_position_properties): New variable.
5331 (syms_of_xterm): DEFVAR_BOOL it.
5332 (x_draw_glyph_string): Add comment to use it in future.
5333 (x_draw_glyph_string): Restore clipping after drawing box.
5334 Fix a computation of the underline position.
5335 (w32_get_glyph_string_clip_rect): Minor cleanup.
5336 (x_fill_stretch_glyph_string): Remove an assertion.
5337 (x_produce_glyphs): Don't convert multibyte characters
5338 to unibyte characters in unibyte buffers.
5339 (cursor_in_mouse_face_p): New function.
5340 (x_draw_stretch_glyph_string): Use it to choose a different GC
5341 when drawing a cursor within highlighted text. Don't draw
5342 background again if it has already been drawn.
5343 (x_draw_glyph_string_box): Don't draw a full-width
5344 box just because the glyph row's full_width_p flag is set.
5345 (x_draw_glyphs): Fix computation of rightmost x for
5346 full-width rows.
5347 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
5348 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
5349 change bottom shadow accordingly. Some cleanup.
5350 (x_update_window_end): Handle overwritten mouse face
5351 also for tool bar windows.
5352 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5353 DRAW is DRAW_IMAGE_RAISED.
5354 (clear_mouse_face): Return 1 if text with mouse face was
5355 actually redrawn. Make the function static. Reset
5356 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
5357 optimize away highlighting if we pass over that same overlay again.
5358 (note_mouse_highlight): Call mouse_face_overlay_overlaps
5359 to detect a case where we have to highlight a different region
5360 despite not having left the currently highlighted region.
5361 Set mouse_face_overlay in the x_display_info. Avoid changing the
5362 mouse pointer shape when show_mouse_face has already done it, or
5363 there is no need. Handle mouse-face and help-echo in strings.
5364 (glyph_rect): New function.
5365 (w32_mouse_position): Use it to raise the threshold for mouse
5366 movement event generation.
5367 (w32_initialize_display_info): Initialize the x_display_info's
5368 mouse_face_overlay.
5369 (w32_set_vertical_scroll_bar): Don't clear a zero height
5370 or width area.
5371 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5372 a widget to zero height.
5373
3cf3436e 5374 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 5375 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
5376 equivalents in menu_items.
5377 (w32_menu_show): Don't overwrite an item's name with its key
5378 description in case the description is a multibyte string.
5379 (single_submenu): Some cleanup.
5380
5381 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
5382 (postprocess_image): New function.
5383 (lookup_image): Call it for all image types except PostScript.
5384 (x_kill_gs_process): Call postprocess_image.
5385 (tiff_error_handler, tiff_warning_handler): New functions.
5386 (tiff_load): Install them as handlers.
5387 (x_kill_gs_process): Recognize if someone has cleared the image
5388 cache under us.
5389 (valid_image_p): Protect better against invalid image
5390 specifications. Previous code could signal an error.
5391 (Fx_hide_tip, Fshow_tip): Doc fix.
5392 (Fv_max_tooltip_size): New variable.
5393 (syns_of_xfns): DEFVAR_LISP it.
5394 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
5395 window buffer to *tip* right after creating the frame. Set frame's
5396 window_width. Use a maximum tooltip size specified by
5397 Vx_max_tooltip_size, if that has valid contents.
5398 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5399 Make sure the tooltip is completely visible.
5400 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
5401 (Fx_create_frame): Adjust the frame's height for presence
5402 of the tool bar before calling x_figure_window_size.
5403 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
5404 when the window gets smaller.
5405 (x_set_foreground_color): Set frame's cursor_pixel.
5406 (x_set_foreground_color, x_set_background_color): Cleaned up.
5407 (x_set_font): Handle case of x_new_fontset returning the same name
5408 as before, although there was a change in fontsets.
5409
386ca361
MB
54102001-10-21 Miles Bader <miles@gnu.org>
5411
c2d53558 5412 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
5413 (Flogxor): Add usage: string to doc string.
5414 * charset.c (Fstring): Likewise.
5415 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
5416 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
5417
f00691a3 54182001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 5419
03be2694
PJ
5420 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
5421
5422 * alloc.c: Reindent DEFUNs with doc: keywords.
5423
5424 * abbrev.c (Finsert_abbrev_table_description): Reindent.
5425
14ff1ee0
PJ
5426 * frame.c: Change doc-string comments to `new style' [w/`doc:'
5427 keyword].
5428
2f147815 5429See ChangeLog.9 for earlier changes.
6922b018
KH
5430
5431;; Local Variables:
49b3bd82 5432;; coding: iso-2022-7bit
6922b018 5433;; End:
2a34a036 5434
2f147815 5435 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
5436 Copying and distribution of this file, with or without modification,
5437 are permitted provided the copyright notice and this notice are preserved.