*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
1 2002-03-17 Richard M. Stallman <rms@gnu.org>
2
3 * xdisp.c (cursor_type_changed): New variable.
4 (redisplay_internal): Redisplay all windows if cursor_type_changed.
5 Clear it when clearing windows_or_buffers_changed.
6 (try_cursor_movement, redisplay_window, try_window_id)
7 (try_window_reusing_current_matrix): Test cursor_type_changed
8 along with windows_or_buffers_changed.
9
10 * window.h (cursor_type_changed): Hew variable.
11
12 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
13 not update_mode_lines, and always set it to 1.
14
15 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
16 if no frames needed redrawing.
17
18 2002-03-17 Kim F. Storm <storm@cua.dk>
19
20 The following changes adds support for network server processes,
21 datagram connections, and local (unix) sockets.
22
23 * process.h (struct Lisp_Process): New member log.
24 Doc fix: Member command used to indicate stopped network process.
25 Doc fix: Member childp contains plist for network process.
26 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
27
28 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
29 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
30 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
31 New variables.
32 (NETCONN1_P): New macro.
33 (DATAGRAM_SOCKETS): New conditional symbol.
34 (datagram_address): New array.
35 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
36 (status_message): Use concat3.
37 (Fprocess_status): Add `listen' status to doc string. Return `stop'
38 for a stopped network process.
39 (Fset_process_buffer): Update contact plist for network process.
40 (Fset_process_filter): Ditto. Don't enable input for stopped
41 network processes. Server must listen, even if filter is t.
42 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
43 New functions.
44 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
45 (Fprocess_contact): Added KEY argument. Handle datagrams.
46 (list_processes_1): Optionally show only processes with the query
47 on exit flag set. Dynamically adjust column widths. Omit tty
48 column if not needed. Report stopped network processes.
49 Identify server and datagram network processes.
50 (Flist_processes): New optional arg `query-only'.
51 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
52 (conv_lisp_to_sockaddr, set_socket_options)
53 (network_process_featurep, unwind_request_sigio): New helper functions.
54 (Fprocess_datagram_address, Fset_process_datagram_address):
55 (Fset_network_process_options): New lisp functions.
56 (Fopen_network_stream): Removed. Now defined in simple.el.
57 (Fmake_network_process): New lisp function. Code is based on previous
58 Fopen_network_stream, but heavily reworked with new property list based
59 argument list, support for datagrams, server processes, and local
60 sockets in addition to old client-only functionality.
61 (server_accept_connection): New function.
62 (wait_reading_process_input): Use it to handle incoming connects.
63 Do not enable input on a new connection if process is stopped.
64 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
65 (send_process): Handle datagram sockets.
66 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
67 network process is indicated by setting command field to t .
68 (Fprocess_send_eof): No-op if datagram connection.
69 (Fstatus_notify): Don't read input for a stream server socket or a
70 stopped network process.
71 (init_process): Initialize datagram_address array.
72 (syms_of_process): Intern and staticpro new variables, defsubr new
73 functions.
74
75 2002-03-16 Jason Rumney <jasonr@gnu.org>
76
77 * w32fns.c (w32_to_all_x_charsets): Return correct type in
78 startup case.
79
80 2002-03-16 Richard M. Stallman <rms@gnu.org>
81
82 * xdisp.c (redisplay_internal, redisplay_windows):
83 Use list_of_error to call internal_condition_case_1.
84 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
85 so as to catch all errors with no possibility of debugger redisplay.
86 (list_of_error): New variable.
87 (syms_of_xdisp): Init and staticpro it.
88
89 * print.c (print_object): Delete `\ ' from printed rep of frame.
90
91 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
92
93 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
94 until its implementation is fixed.
95
96 2002-03-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
97
98 * xfns.c (png_load): Remove unused variable `gamma_str'.
99
100 2002-03-14 Richard M. Stallman <rms@gnu.org>
101
102 * xfns.c (x_real_positions): Handle failure in XQueryTree.
103
104 2002-03-14 Miles Bader <miles@gnu.org>
105
106 * intervals.c (adjust_for_invis_intang): New function.
107 (set_point_both): Use `adjust_for_invis_intang' to do most of the
108 work for dealing with invisible+intangible regions. Do so before
109 and after both forward and backward movements, to handle both
110 front-sticky and rear-sticky cases.
111 * textprop.c (text_property_stickiness): Function moved here from
112 `editfns.c'.
113 * intervals.h (text_property_stickiness): New declaration.
114 * editfns.c (char_property_eq): Function removed.
115 (text_property_stickiness): Function moved to `textprop.c'.
116
117 2002-03-13 Jason Rumney <jasonr@gnu.org>
118
119 * config.in: Add STRFTIME_NO_POSIX2.
120
121 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
122 and %OX when underlying strftime does not.
123
124 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
125
126 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
127 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
128 line) to avoid annoying flicker.
129 (xm_scroll_callback): Get rid of the now unnecessary kludge.
130 (XTread_socket): Mark it static.
131
132 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
133
134 2002-03-13 Kim F. Storm <storm@cua.dk>
135
136 * puresize.h (BASE_PURESIZE): Increase to 775000.
137
138 2002-03-12 Juanma Barranquero <lektu@terra.es>
139
140 * editfns.c (syms_of_editfns): Fix typo.
141
142 2002-03-12 Gerd Moellmann <gerd@gnu.org>
143
144 * xsmfns.c: Include stdio.h because termhooks.h needs it.
145 Include termopt.h for interrupt_input.
146
147 2002-03-11 Andreas Schwab <schwab@suse.de>
148
149 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
150
151 2002-03-11 Gerd Moellmann <gerd@gnu.org>
152
153 * xterm.c (note_mouse_movement): Put code for
154 x_autoselect_window_p in #if 0.
155
156 * lread.c (Fload): Don't assume that message_with_string uses the
157 string it is given like a C string.
158
159 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se>
160
161 * xterm.h (x_session_check_input, x_session_initialize): Declared.
162
163 * xterm.c: (XTread_socket): Add call to x_session_check_input and
164 x_session_have_connection.
165 (x_initialize): Add call to x_session_initialize.
166
167 * termhooks.h (enum event_kind): Add save_session_event.
168
169 * keyboard.c: Add Emacs event save_session_event.
170
171 * emacs.c (main): Add call to syms_of_xsmfns.
172
173 * lisp.h: Declare syms_of_xsmfns as extern.
174
175 * config.in: Add HAVE_X_SM.
176
177 * Makefile.in (LIBXT): Add -lSM -lICE
178 if HAVE_X_SM and not USE_X_TOOLKIT.
179 (XOBJ): New file xsmfns.c added.
180
181 * xsmfns.c: New file for X session management.
182
183 2002-03-09 Jason Rumney <jasonr@gnu.org>
184
185 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
186 read-only when setting modified time.
187
188 2002-03-08 Gerd Moellmann <gerd@gnu.org>
189
190 * xdisp.c (move_it_vertically_backward): At the end of the
191 function, when moving forward by lines, treat terminal frames
192 specially.
193
194 * keyboard.c (echo_char): Make sure to add a separator between
195 keys even if echo_dash hasn't been called.
196
197 * xdisp.c: Use new string macros.
198 (update_echo_area): Pass number of bytes to message3 instead of
199 number of chars.
200 (set_message_1): Don't access a string's size_byte directly.
201 (decode_mode_spec_coding): Use number of bytes of eoltype string
202 instead number of chars.
203
204 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
205
206 2002-03-08 Juanma Barranquero <lektu@terra.es>
207
208 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
209 24-bit.
210
211 2002-03-06 Jason Rumney <jasonr@gnu.org>
212
213 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
214
215 2002-03-06 Gerd Moellmann <gerd@gnu.org>
216
217 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
218 (cancel_echoing, echo_length, echo_truncate): Changed to
219 work with new kboard definition.
220 (echo_now): Use message3_nolog instead of message2_nolog.
221
222 * alloc.c (mark_kboards): Mark echo_string.
223
224 * keyboard.h (ECHOBUFSIZE): Removed.
225 (struct kboard): Member echoptr removed, member echobuf renamed
226 to echo_string.
227
228 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
229 message3 instead of message2 to display the message using STRING's
230 text properties.
231
232 2002-03-05 Andreas Schwab <schwab@suse.de>
233
234 * xdisp.c (hscroll_margin): Change to EMACS_INT.
235
236 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
237
238 * frame.c (default-frame-alist): Explain that setting it doesn't
239 affect existing frames.
240
241 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
242
243 * indent.c (skip_invisible): Fix my brain fart.
244
245 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
246
247 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
248
249 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
250 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
251 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
252 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
253 and variables to use EMACS_INT instead of just int.
254
255 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
256
257 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
258
259 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
260 environment, pass it down with corrected value.
261
262 2002-03-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
263
264 * lread.c (read_filtered_event): Do not call start_hourglass
265 before returning.
266
267 2002-03-04 Juanma Barranquero <lektu@terra.es>
268
269 * w32term.c (x_display_and_set_cursor): Fix typo.
270
271 2002-03-03 Richard M. Stallman <rms@gnu.org>
272
273 * fileio.c (Fmake_temp_name): Doc fix.
274
275 2002-03-03 Gary Wong <gtw@gnu.org>
276
277 * termcap.c [!emacs]: Replace ospeed for building standalone
278 libtermcap, for binary compatibility.
279
280 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
281
282 2002-03-03 Richard M. Stallman <rms@gnu.org>
283
284 * xrdb.c (file_p): Rename arg `path' to `filename'.
285
286 * abbrev.c (Fexpand_abbrev): Increment plist as use count
287 only if it is an integer.
288
289 * xfns.c (png_load): Set screen_gamma based on f->gamma.
290 If png_get_sRGB gives an answer, call png_set_gamma
291 using the default image gamma value.
292
293 * lread.c (read1): When reading from a file, default string to
294 multibyte only if it has some multibyte characters.
295
296 * print.c (print_object): Output multibyte chars 128...255
297 using \x even if ! print_escape_multibyte.
298
299 * xdisp.c (display_mode_element): Move the places where
300 bytepos, charpos, this, and lisp_string are set.
301 Use lisp_string to set bytepos.
302
303 * xdisp.c (redisplay_internal):
304 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
305
306 * xdisp.c (display_mode_element): Merge properties specified with
307 :propertize onto those that come with the string.
308
309 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
310
311 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
312 automatic-hscrolling. Users changed.
313 <hscroll-margin>: Renamed from automatic-hscroll-margin.
314 Users changed.
315 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
316
317 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
318
319 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
320
321 2002-03-02 Kim F. Storm <storm@cua.dk>
322
323 * window.c (Fminibuffer_selected_window): New function.
324 (syms_of_window): Defsubr it.
325
326 2002-03-01 Kim F. Storm <storm@cua.dk>
327
328 * window.h (struct window): New member phys_cursor_width.
329
330 * window.c (make_window, replace_window): Init phys_cursor_width.
331
332 * xterm.c (x_display_and_set_cursor): Blink box cursor using
333 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
334
335 * w32term.c (x_display_and_set_cursor): Blink box cursor using
336 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
337
338 * lisp.h (GCPRO6): New macro.
339
340 * process.c (Fopen_network_stream): Use GCPRO6.
341
342 2002-03-01 Kim F. Storm <storm@cua.dk>
343
344 * process.c (Qconnect, Qfailed): New variables.
345 (syms_of_process): Intern and staticpro them.
346 (Fprocess_status): Document connect and failed return values.
347 [NON_BLOCKING_CONNECT]: New conditional.
348 (connect_wait_mask, num_pending_connects): New variables.
349 (status_message): Convert Qfailed status.
350 (Fopen_network_stream): Added support for non-blocking connect.
351 New optional args: filter, sentinel, non_blocking. Doc updated.
352 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
353 (deactivate_process): Handle pending non-blocking connect.
354 (wait_reading_process_input): Poll for status of non-blocking
355 connects. Exec sentinel directly when connect succeeds.
356 (status_notify): Don't read process output if not yet connected.
357
358 2002-02-28 Kim F. Storm <storm@cua.dk>
359
360 * window.c: (minibuf_selected_window): Renamed from
361 Vminibuf_selected_window. Users changed.
362 (syms_of_window): Staticpro it.
363
364 2002-02-26 Kim F. Storm <storm@cua.dk>
365
366 The following changes add a new Vminibuf_selected_window variable
367 which is similar to Vminibuf_scroll_window, but which is only set
368 on entry to the minibuffer (from a non-minibuffer window):
369
370 * window.c: (Vminibuf_selected_window): New variable.
371 (struct save_window_data): New member minibuf_selected_window.
372 (Fset_window_configuration): Restore Vminibuf_selected_window.
373 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
374 Set minibuf_scroll_window member to nil if minibuf_level is 0.
375 (compare_window_configurations): Compare minibuf_selected_window.
376
377 * window.h: (Vminibuf_selected_window): Declare extern.
378
379 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
380 entry to minibuffer or on entry from a non-minibuffer window.
381
382 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
383 Vminibuf_selected_window instead of Vminibuf_scroll_window.
384
385 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
386 instead of Vminibuf_scroll_window when deciding in which window
387 the region should be highlighted. Consequently, the region remains
388 highlighteded even when a completion buffer is also displayed.
389
390 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
391
392 * fileio.c (Fsubstitute_in_file_name): Fix the change from
393 2002-02-08.
394
395 * xselect.c (Qcompound_text_with_extensions): Renamed from
396 Qcompound_text_no_extensions.
397 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
398
399 2002-02-26 Juanma Barranquero <lektu@terra.es>
400
401 * w32proc.c (syms_of_ntproc): Doc fix.
402
403 2002-02-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
404
405 * intervals.h: Include "dispextern.h" unconditionally.
406
407 2002-02-24 Jason Rumney <jasonr@gnu.org>
408
409 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
410 and disp-table.elc.
411 (lisp): Add emacs-lisp/backquote.elc.
412
413 2002-02-24 Kim F. Storm <storm@cua.dk>
414
415 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
416 The validation of the event type was too strict as it didn't
417 allow string events; buffer names are used in bindings for
418 menu-bar-select-buffer (see `menu-bar-update-buffers').
419
420 2002-02-23 Kim F. Storm <storm@cua.dk>
421
422 The following changes rework my patch of 2002-02-06 which
423 added command remapping by entering the commands directly into
424 the keymaps. Now, command remapping uses an explicit `remap'
425 prefix in the keymaps, i.e. [remap COMMAND].
426
427 * keymap.c (Qremap, remap_command_vector): New variables.
428 (is_command_symbol): Removed function.
429 (Fdefine_key): No longer accept a symbol for KEY.
430 Added validation of [remap COMMAND] argument for KEY.
431 The DEF is no longer required to be a symbol when remapping a command.
432 (Fremap_command): New function to remap command through keymaps.
433 (Flookup_key): Perform command remapping initiated by
434 Fremap_command directly for speed.
435 (Fkey_binding): Use Fremap_command for command remapping.
436 (where_is_internal): Handle new command remapping representation.
437 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
438 staticpro them. Defsubr Fremap_command.
439
440 * keymap.h (Fremap_command): Declare extern.
441 (is_command_symbol): Remove extern.
442
443 * keyboard.c (command_loop_1): Use Fremap_command for command
444 remapping; now try command remapping for all symbols.
445
446 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
447
448 * coding.h (run_pre_post_conversion_on_str): Add prototype.
449
450 2002-02-23 Jason Rumney <jasonr@gnu.org>
451
452 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
453 on the string before encoding it.
454 (Fw32_get_clipboard_data): Run post-read-conversion on the string
455 after decoding it.
456
457 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
458
459 2002-02-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
460
461 * w32term.c (enter_timestamp): Remove unused static variable to
462 prevent warning.
463
464 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
465
466 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
467
468 * w16select.c (Fw16_get_clipboard_data): Fix last change.
469
470 * xselect.c (selection_data_to_lisp_data): Fix last change.
471
472 2002-02-22 Jason Rumney <jasonr@gnu.org>
473
474 * w32term.h (struct w32_output): New member menu_command_in_progress.
475
476 * w32menu.c (menubar_selection_callback): Free the menu and
477 clear the menu_command_in_progress flag.
478
479 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
480 (menu_free_timer): New variable.
481 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
482 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
483 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
484 menu command is in progress.
485 <WM_COMMAND>: Set the menu_command_in_progress flag.
486 Kill any menu_free_timer that is running.
487
488 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
489 Call ExtTextOutA rather than ExtTextOut.
490
491 2002-02-22 Eli Zaretskii <eliz@gnu.org>
492
493 * puresize.h (BASE_PURESIZE): Increase to 755000.
494
495 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
496
497 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
498 on the string before encoding it.
499 (Fw16_get_clipboard_data): Run post-read-conversion on the string
500 after decoding it.
501
502 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
503
504 Support for ICCCM Extended Segments in X selections:
505
506 * xselect.c <Qcompound_text_no_extensions>: New variable.
507 (syms_of_xselect): Intern and staticpro it.
508 (selection_data_to_lisp_data): Run post-read-conversion on decoded
509 selection text.
510 (lisp_data_to_selection_data): If next-selection-coding-system is
511 compound-text-no-extensions, set the type of selection to be
512 compound-text.
513
514 * xterm.h (x_encode_text): Update prototype.
515
516 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
517 callers changed. If SELECTIONP is non-zero, run the
518 pre-write-conversion function before encoding the selection text.
519
520 2002-02-21 Kim F. Storm <storm@cua.dk>
521
522 * frame.c (syms_of_frame): Change mouse-highlight default to t.
523
524 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
525 Correct composing of language-change event.
526
527 2002-02-20 Kim F. Storm <storm@cua.dk>
528
529 * keyboard.c (menu_bar_items): Don't include keymap or local-map
530 bindings at PT when building menu (the menu is not updated often
531 enough for this to work reliable).
532 (tool_bar_items): Likewise.
533 (current_active_maps): Removed unused (and buggy) function.
534
535 2002-02-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
536
537 * xfns.c (gif_load): Use correct width and height for GIF images.
538
539 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
540
541 * floatfns.c (Fatan): Accept an optional second arg and call
542 atan2 if passed 2 args.
543
544 2002-02-18 Jason Rumney <jasonr@gnu.org>
545
546 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
547
548 2002-02-17 Jason Rumney <jasonr@gnu.org>
549
550 * w32term.c (x_autoselect_window_p): New variable.
551 (syms_of_w32term): DEFVAR_BOOL and initialize it.
552 (note_mouse_movement): Use it.
553
554 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
555
556 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
557
558 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
559 New variables.
560 (syms_of_w32fns): Intern and staticpro them.
561 (x_frame_parms) <"fullscreen">: New parameter.
562 (x_fullscreen_move, x_set_fullscreen): New functions.
563 (x_set_frame_parameters): Support Qfullscreen.
564 (x_real_positions): Save x/y_pixels_diff frame params.
565 (x_figure_window_size): Support full-screen frames.
566 (Fx_create_frame): Default the fullscreen parameter.
567
568 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
569 (x_fullscreen_adjust): New functions.
570 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
571 fullscreen. Call x_check_fullscreen_move, and set the
572 want_fullscreen member of output_data.w32
573 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
574
575 * w32term.h: New enum for FULLSCREEN_* constants.
576 (struct w32_output): New members want_fullscreen, x_pixels_diff,
577 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
578 (x-fullscreen-adjust): New prototype.
579
580 2002-02-17 Kim F. Storm <storm@cua.dk>
581
582 * frame.c: (Vmouse_highlight): New variable.
583 (syms_of_frame): DEFVAR_LISP it.
584
585 * frame.h: (Vmouse_highlight): Declare extern.
586
587 * xterm.h (struct x_display_info): Add mouse_face_hidden.
588
589 * xterm.c (disable_mouse_highlight): Removed variable.
590 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
591 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
592 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
593 and on after keyboard input.
594 (x_term_init): Initialize mouse_face_hidden.
595
596 * msdos.h (struct display_info): Add mouse_face_hidden.
597
598 * msdos.c (disable_mouse_highlight): Removed variable.
599 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
600 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
601 (internal_terminal_init): Initialize mouse_face_hidden.
602 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
603 and on after keyboard input.
604
605 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
606
607 * w32term.c (disable_mouse_highlight): Removed variable.
608 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
609 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
610 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
611 and on after keyboard input.
612 (w32_initialize_display_info): Initialize mouse_face_hidden.
613
614 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
615
616 * msdos.c (last_mouse_window): New variable.
617 (dos_rawgetc): Fix last change--if the mouse is in the same window
618 as recorded in last_mouse_window, don't select this window.
619
620 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
621
622 * msdos.c (x_autoselect_window_p): New variable.
623 (syms_of_msdos): Defvar it.
624 (dos_rawgetc): If x_autoselect_window_p is set, select the window
625 in which the last mouse movement occured, unless it is already
626 selected.
627
628 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
629 New variables.
630 (syms_of_xdisp): DEVFAR them.
631 (hscroll_window_tree): Use automatic_hscroll_margin and
632 Vautomatic_hscroll_step to compute the amount of window scrolling.
633
634 2002-02-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
635
636 * xterm.c (x-autoselect-window): New variable.
637 (note_mouse_movement): Use it.
638
639 * keyboard.c: Do not include "systime.h" twice.
640
641 2002-02-15 Andreas Schwab <schwab@suse.de>
642
643 * puresize.h (BASE_PURESIZE): Increase to 9/5.
644
645 * alloc.c (NSTATICS): Increase to 1280.
646
647 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
648
649 * alloc.c (NSTATICS): Bump to 1026.
650
651 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
652 (Vx_super_keysym): New variables.
653 (syms_of_xterm): DEFVAR_LISP them.
654 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
655 variables to determine which keys to use for the various modifiers.
656
657 2002-02-13 Kim F. Storm <storm@cua.dk>
658
659 * window.c: (Vmode_line_in_non_selected_windows): Removed.
660 (mode_line_in_non_selected_windows): New variable.
661 (syms_of_window): DEFVAR_BOOL it.
662
663 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
664 Use mode_line_in_non_selected_windows.
665 (mode_line_in_non_selected_windows): Declare extern.
666 (Vmode_line_in_non_selected_windows): Removed extern.
667
668 2002-02-13 Richard M. Stallman <rms@gnu.org>
669
670 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
671 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
672 (Fclear_this_command_keys): Doc fixes.
673
674 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
675 (update_face_from_frame_parameter): Increment face_change_count
676 and windows_or_buffers_changed to force redisplay using changed faces.
677
678 * xdisp.c (QCpropertize): New variable.
679 (mode_line_proptrans_alist): New variable.
680 (display_mode_element): New arg PROPS; all calls changed.
681 Implement this, for strings.
682 Handle literal output of strings by sharing the
683 main-line code for strings, using local var `literal'.
684 Handle :propertize feature.
685 (syms_of_xdisp): Initialze and staticpro QCpropertize and
686 mode_line_proptrans_alist.
687
688 2002-02-11 Kim F. Storm <storm@cua.dk>
689
690 * window.c: (Vmode_line_in_non_selected_windows): New variable.
691 (syms_of_window): DEFVAR_LISP it.
692
693 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
694 (CURRENT_MODE_LINE_FACE_ID): Use it.
695 (Vmode_line_in_non_selected_windows): Declare extern.
696
697 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
698 to get mode line face.
699
700 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
701
702 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
703 variables; cus-start.el doesn't need them anymore.
704
705 2002-02-09 Kim F. Storm <storm@cua.dk>
706
707 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
708 reduction. This fixes a display problem where stray newlines were
709 inserted in the window (corrected by C-l). Clarified code (IMHO).
710
711 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
712
713 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
714
715 * xdisp.c (display_mode_lines): Fix last change.
716
717 2002-02-09 Jason Rumney <jasonr@gnu.org>
718
719 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
720 match each other.
721 (w32_load_system_font): Prevent Cleartype fonts from loading.
722 (Fx_show_tip): Ensure tip frames are above other topmost windows.
723
724 2002-02-09 Kim F. Storm <storm@cua.dk>
725
726 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
727 (CURRENT_MODE_LINE_HEIGHT): Use it.
728 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
729
730 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
731 (pos_visible_p, handle_face_prop): Likewise.
732 (display_mode_lines): Likewise, but for the real selected window.
733 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
734
735 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
736 in non-selected windows.
737 (realize_basic_faces): Realize it.
738 (syms_of_term): Intern and staticpro it.
739
740 2002-02-08 Kim F. Storm <storm@cua.dk>
741
742 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
743 Changed mail addresses to emacs-devel@gnu.org.
744
745 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
746
747 * fileio.c (Fsubstitute_in_file_name): If the file name includes
748 ~user, and there's no such user, don't discard everything before ~user.
749
750 * floatfns.c (Fround): Doc fix.
751
752 2002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
753
754 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
755
756 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
757
758 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
759
760 2002-02-07 Kim F. Storm <storm@cua.dk>
761
762 * keymap.c (where_is_internal): Only check whether definition is
763 remapped if it fulfills is_command_symbol.
764
765 2002-02-07 Andreas Schwab <schwab@suse.de>
766
767 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
768
769 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
770
771 2002-02-06 Kim F. Storm <storm@cua.dk>
772
773 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
774 defining command remapping. Doc updated.
775 (Flookup_key): Remap command through keymap if KEY is a symbol.
776 (is_command_symbol): New function.
777 (Fkey_binding): Use it. New optional argument NO-REMAP.
778 Doc updated. Callers changed. Perform command remapping via
779 recursive call unless that arg is non-nil.
780 (where_is_internal): New argument no_remap. Callers changed.
781 Call recursively to find original key bindings for a remapped
782 comand unless that arg is non-nil.
783 (Fwhere_is_internal): New optional argument NO-REMAP.
784 Doc updated. Callers changed. Pass arg to where_is_internal.
785
786 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
787 (is_command_symbol): Added prototype.
788
789 * keyboard.c (Vthis_original_command): New variable.
790 (syms_of_keyboard): DEFVAR_LISP it.
791 (command_loop_1): Set it, and perform command remapping.
792
793 2002-02-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
794
795 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
796
797 2002-02-06 Jason Rumney <jasonr@gnu.org>
798
799 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
800
801 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
802
803 * charset.c (get_charset_id): Use if-else instead of ?:.
804
805 2002-02-06 Richard M. Stallman <rms@gnu.org>
806
807 * filelock.c (S_ISLNK): Define if not defined.
808
809 2002-02-03 Richard M. Stallman <rms@gnu.org>
810
811 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
812
813 * lread.c (read1): Redesign strategy for force_multibyte and
814 force_singlebyte. Now is_multibyte records whether read_buffer
815 is multibyte. Encountering any multibyte character makes it so.
816
817 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
818
819 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
820 with the same sequence, map that sequence to f10 rather than f0.
821
822 2002-02-03 Andreas Schwab <schwab@suse.de>
823
824 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
825 latter never being defined on GNU/Linux.
826
827 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
828
829 * xfaces.c (realize_default_face): Don't set the weight and slant
830 of the default face to Qnormal, unless these attributes are
831 unspecified.
832
833 2002-02-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
834
835 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
836 Call cancel_hourglass unconditionally.
837
838 * eval.c (Fsignal): Remove duplicated declaration of
839 the variable `display_hourglass_p'.
840
841 2002-01-31 Richard M. Stallman <rms@gnu.org>
842
843 * editfns.c (region_limit): Nicer error message.
844
845 * coding.c (decode_composition_emacs_mule):
846 Give up if NCOMPONENT gets too large to index `component'.
847
848 * callint.c (check_mark): New arg to specify clearer error message.
849 Callers changed.
850
851 2002-01-27 Richard M. Stallman <rms@gnu.org>
852
853 * minibuf.c (Fcompleting_read): Doc fix.
854
855 2002-01-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
856
857 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
858 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
859 Fix doc-strings.
860
861 2002-01-26 Richard M. Stallman <rms@gnu.org>
862
863 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
864
865 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
866 and scroll_up_aggressively.
867
868 2002-01-26 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
869
870 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
871
872 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
873
874 * textprop.c (Fnext_property_change, Fnext_single_property_change)
875 (Fprevious_property_change, Fprevious_single_property_change):
876 Stay within the narrowed-buffer boundaries.
877
878 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
879
880 * term.c (Ftty_display_color_cells): New function.
881 (syms_of_term): Defsubr it.
882 (Ftty_display_color_cells, Ftty_display_color_p): Change the
883 argument name to DISPLAY. Doc fix.
884
885 * dispextern.h: Add prototype for set_tty_color_mode and
886 tty_setup_colors.
887
888 2002-01-24 Jason Rumney <jasonr@gnu.org>
889
890 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
891 If region left to draw is not what was expected, mark the frame as
892 garbaged.
893
894 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
895 Combine the regions returned by BeginPaint and GetUpdateRect.
896
897 2002-01-23 Jason Rumney <jasonr@gnu.org>
898
899 * w32term.c (x_update_window_begin): Only hide caret if
900 w32_use_visible_system_caret is set.
901 (x_update_window_end): Only show caret if
902 w32_use_visible_system_caret is set.
903 (syms_of_w32term): Handle SystemParametersInfo call failing.
904
905 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
906
907 2002-01-22 Richard M. Stallman <rms@gnu.org>
908
909 * unexelf.c (unexec): Define n so as to cause compilation error
910 for the code where people have often written n instead of nn.
911
912 * .gdbinit (hookpost-run): Defined.
913
914 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
915
916 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
917
918 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
919
920 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
921 if fullscreen is being set.
922
923 2002-01-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
924
925 * minibuf.c (Fminibuffer_contents)
926 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
927 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
928
929 2002-01-21 Richard M. Stallman <rms@gnu.org>
930
931 * window.c (check_frame_size): Fix minimum height calculation.
932
933 2002-01-20 Ken Raeburn <raeburn@gnu.org>
934
935 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
936 height before comparison.
937 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
938
939 2002-01-20 Jason Rumney <jasonr@gnu.org>
940
941 * w32term.c (w32_system_caret_width): Remove.
942 (w32_use_visible_system_caret): New user flag.
943 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
944 Windows reports a screen reader running.
945 (x_update_window_begin): Hide the system caret.
946 (x_update_window_end): Show the system caret.
947 (x_display_and_set_cursor): Don't draw a cursor when
948 w32_use_visible_system_caret is set. Do not adjust width.
949
950 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
951 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
952 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
953 the user requests it. Use system default width when creating.
954 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
955
956 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
957 New window messages.
958
959 2002-01-20 Richard M. Stallman <rms@gnu.org>
960
961 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
962
963 2002-01-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
964
965 * doprnt.c (doprnt1): Fix typos in error call.
966
967 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
968
969 * unexelf.c (unexec) [__sgi]: Support the .got sections.
970
971 2002-01-20 Jason Rumney <jasonr@gnu.org>
972
973 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
974 that Windows returns. If a double check fails, try to guess how
975 ExtTextOut is going to act.
976
977 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
978 in place of stricmp.
979 (w32_list_synthesized_fonts): Removed.
980 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
981 (struct enumfont_t): New element; list.
982 (enum_font_cb2): List all style and charset variations of a font.
983 (Fw32_select_font): New optional argument; include_proportional.
984 Exclude vertical fonts. Exclude proportional fonts unless
985 include_proportional is non-nil.
986 (w32_enable_synthesized_fonts): Change to a boolean.
987 (Fw32_send_sys_command): Doc fix.
988
989 2002-01-19 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
990
991 * dispnew.c (update_frame): Move the variable `tem' to the block
992 where it is used.
993
994 2002-01-19 Jason Rumney <jasonr@gnu.org>
995
996 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
997 call to face-set-after-frame-default.
998
999 2002-01-18 Richard M. Stallman <rms@gnu.org>
1000
1001 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
1002 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
1003
1004 2002-01-17 Richard M. Stallman <rms@gnu.org>
1005
1006 * window.c (enlarge_window): When exceeding size of parent,
1007 directly delete all the siblings instead of trying to resize it.
1008
1009 2002-01-17 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1010
1011 * term.c (set_tty_color_mode): Remove unused variable `tem'.
1012
1013 2002-01-16 Henrik Enberg <henrik@enberg.org>
1014
1015 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
1016
1017 2002-01-16 Kim F. Storm <storm@cua.dk>
1018
1019 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
1020 is invisible. This can happen if cursor is on top line of a
1021 window, and we switch to a buffer with a header line.
1022
1023 * w32term.c (x_erase_phys_cursor): Ditto.
1024
1025 2002-01-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1026
1027 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
1028 `dont_resize' only when used.
1029
1030 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
1031
1032 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
1033
1034 * xdisp.c (display_mode_element): When computing charpos, depend
1035 on multibyteness of elt, not the text in field.
1036
1037 2002-01-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1038
1039 * buffer.c (Fkill_all_local_variables):
1040 Increment `update_mode_lines' only once.
1041
1042 2002-01-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1043
1044 * lisp.h (adjust_after_replace_noundo)
1045 (Fupdate_coding_systems_internal): Add prototypes.
1046
1047 * sound.c (Fplay_sound): Initialize header_size also for :data case.
1048
1049 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
1050
1051 Support for the --color command-line argument and tty-color-mode
1052 frame parameter:
1053
1054 * term.c (tty_default_color_capabilities, tty_setup_colors)
1055 (set_tty_color_mode): New functions.
1056 (term_init): Call tty_default_color_capabilities.
1057 (Qtty_color_mode_alist): New variable.
1058 (syms_of_term): Intern and staticpro it.
1059
1060 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
1061 frames.
1062 (do_switch_frame): For termcap frames, switch the tty
1063 color mode as specified by the frame's parameters.
1064 (Qtty_color_mode): New variable.
1065 (syms_of_frame): Intern and staticpro it.
1066
1067 * emacs.c (USAGE2): Add the --color option.
1068 (standard_args): Ditto.
1069
1070 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
1071
1072 * xterm.h (struct x_output): New members want_fullscreen,
1073 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
1074 y_pixels_outer_diff.
1075 New enum for FULLSCREEN_* constants.
1076 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
1077 is NULL.
1078 (x_fullscreen_adjust): Add prototype.
1079
1080 * emacs.c (USAGE2): Add the new full-screen arguments.
1081 (standard_args): Ditto.
1082
1083 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1084 New variables.
1085 (syms_of_xfns): Intern and staticpro them.
1086 (x_frame_parms) <"fullscreen">: New parameter.
1087 (x_fullscreen_move, x_set_fullscreen): New functions.
1088 (x_set_frame_parameters): Support for Qfullscreen.
1089 (x_real_positions): More accurate computation of the frame position.
1090 (x_figure_window_size): Support full-screen frames.
1091 (Fx_create_frame): Default the fullscreen parameter.
1092
1093 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
1094 (XTread_socket) <Expose>: Call x_check_fullscreen.
1095 <ConfigureNotify>: Don't resize to fullscreen.
1096 Call x_check_fullscreen_move, and set the want_fullscreen member of
1097 output_data.x.
1098
1099 2002-01-13 Jason Rumney <jasonr@gnu.org>
1100
1101 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
1102 for mice with more than 3 buttons.
1103
1104 * w32term.c (parse_button): New parameter xbutton. Callers changed.
1105 (w32_read_socket): Handle new "XBUTTON" messages.
1106
1107 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
1108 (syms_of_w32fns): DEFVAR_BOOL it.
1109 (w32_wnd_proc): Handle new "XBUTTON" messages.
1110
1111 2002-01-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1112
1113 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
1114
1115 2002-01-13 Andreas Schwab <schwab@suse.de>
1116
1117 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
1118
1119 2002-01-12 Andreas Schwab <schwab@suse.de>
1120
1121 * .gdbinit (xbuffer): Remove address operator since data is now a
1122 pointer.
1123
1124 2002-01-11 Richard M. Stallman <rms@gnu.org>
1125
1126 * insdel.c (adjust_after_replace_noundo): New function.
1127
1128 * coding.c (code_convert_region): Don't copy old text if undo disabled.
1129
1130 2002-01-09 Jason Rumney <jasonr@gnu.org>
1131
1132 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
1133 when checking for multiple frames.
1134
1135 2002-01-08 Richard M. Stallman <rms@gnu.org>
1136
1137 * window.c (delete_window): Rewrite the code for changing the
1138 selected window to handle the case where WINDOW is not a leaf.
1139
1140 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
1141
1142 * process.c (send_process): Set src_multibyte to 1 after the call
1143 top setup_coding_system, not before the call.
1144
1145 2002-01-07 Jason Rumney <jasonr@gnu.org>
1146
1147 * xmenu.c (set_frame_menubar, xmenu_show):
1148 (xdialog_show): Initialize wv->help to Qnil.
1149
1150 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
1151 (w32_dialog_show): Initialize wv->help to Qnil.
1152
1153 2002-01-06 Jason Rumney <jasonr@gnu.org>
1154
1155 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
1156
1157 * w32menu.c (w32_menu_display_help): Revert last change.
1158
1159 * xmenu.c (menu_highlight_callback): Revert last change.
1160
1161 2002-01-06 Andreas Schwab <schwab@suse.de>
1162
1163 * insdel.c (make_gap_larger): Make sure buffer size does not
1164 overflow range of int.
1165
1166 2002-01-05 Jason Rumney <jasonr@gnu.org>
1167
1168 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1169 OVERLAPS_P.
1170
1171 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
1172
1173 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
1174 to the left or to the right of the pointer, put it against
1175 the left screen edge.
1176 (x_frame_parms): Add missing braces around initializer.
1177
1178 * w32term.c (x_setup_relief_colors): Don't compute an image's
1179 background color if it doesn't have a Pixmap.
1180 (notice_overwritten_cursor): Don't depend on
1181 output_cursor and updated_area. Compare pixel coordinates with
1182 window's cursor pixel coordinates.
1183 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1184 Call notice_overwritten_cursor with new arg list.
1185 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1186 unconditionally.
1187 (x_draw_image_relief): Use predefined macro instead of
1188 constant when the value of `tool_bar_button_relief' is negative.
1189
1190 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
1191
1192 2002-01-04 Richard M. Stallman <rms@gnu.org>
1193
1194 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
1195
1196 2002-01-03 Richard M. Stallman <rms@gnu.org>
1197
1198 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
1199 (Fkey_binding): Try the `keymap' property map first.
1200 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
1201 minor mode bindings.
1202
1203 2002-01-03 Kim F. Storm <storm@cua.dk>
1204
1205 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
1206
1207 2002-01-02 Richard M. Stallman <rms@gnu.org>
1208
1209 * keyboard.c (read_key_sequence): Handle the keymap property
1210 before minor mode maps.
1211
1212 * editfns.c (Fformat): Update thissize from field_width
1213 based on the actual width, in the string case.
1214
1215 2002-01-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1216
1217 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
1218 when used as truth value to prevent gcc warnings.
1219
1220 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
1221 * w32proc.c: Include <config.h>.
1222
1223 2002-01-01 Andreas Schwab <schwab@suse.de>
1224
1225 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
1226 not EMACS_INT, to make them compatible with DEFVAR_INT.
1227 * lisp.h (max_specpdl_size): Adjust declaration.
1228
1229 2002-01-01 Richard M. Stallman <rms@gnu.org>
1230
1231 * print.c (print_object): Test print_escape_nonascii only for
1232 unibyte strings.
1233 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
1234 when outputting to a multibyte buffer.
1235
1236 2001-12-29 Richard M. Stallman <rms@gnu.org>
1237
1238 * print.c (print_object): In multibyte string, use hex escapes.
1239 Use octal only for unibyte strings.
1240 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
1241
1242 * lread.c (read_escape): New arg BYTEREP for reporting whether
1243 escape forces unibyte or multibyte.
1244 (read1): When reading a string, take note of that info.
1245
1246 2001-12-29 Ken Raeburn <raeburn@gnu.org>
1247
1248 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
1249 comparison to test lisp value returned by Fget.
1250
1251 2001-12-29 Richard M. Stallman <rms@gnu.org>
1252
1253 * lisp.h (max_specpdl_size): Add declaration.
1254
1255 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
1256
1257 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
1258 Handle modifier bits. Correct typo in error message.
1259
1260 2001-12-28 Richard M. Stallman <rms@gnu.org>
1261
1262 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
1263 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
1264 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1265 Update calls to Fdefine_abbrev.
1266 (write_abbrev): Update for changed data format.
1267 Don't list "system" abbrevs.
1268 (Fexpand_abbrev): Update use count with new data format.
1269 (describe_abbrev): Update for changed data format.
1270 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
1271
1272 * config.in (HAVE_MBSINIT): Add #undef.
1273
1274 * strftime.c (mbsinit): Define as no-op if not available.
1275
1276 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
1277 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
1278
1279 * keymap.c (Flookup_key): Error message if key has wrong data type.
1280 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
1281 (exclude_key): New variable.
1282
1283 2001-12-28 Gerd Moellmann <gerd@gnu.org>
1284
1285 * xterm.c (x_setup_relief_colors): Don't compute an image's
1286 background color if it doesn't have a Pixmap.
1287
1288 * xterm.c (notice_overwritten_cursor): Don't depend on
1289 output_cursor and updated_area. Compare pixel coordinates with
1290 window's cursor pixel coordinates.
1291 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1292 Call notice_overwritten_cursor with new arg list.
1293 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1294 unconditionally.
1295
1296 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
1297 height of the cursor line to the amount to scroll.
1298
1299 2001-12-27 Richard M. Stallman <rms@gnu.org>
1300
1301 * intervals.c (set_point_both): The position after an invisible,
1302 intangible character is not an acceptable stopping point.
1303
1304 2001-12-27 Ken Raeburn <raeburn@gnu.org>
1305
1306 * window.c (enlarge_window): In new preserve_before code, convert
1307 CURBEG from lisp object to integer before doing arithmetic.
1308
1309 2001-12-27 Richard M. Stallman <rms@gnu.org>
1310
1311 * bytecode.c (Fbyte_code): Undo previous change.
1312
1313 2001-12-26 Kim F. Storm <storm@cua.dk>
1314
1315 * keyboard.c (record_char): Ignore duplicate help-echo events only
1316 separated by mouse-movement. When tracking mouse, only record
1317 first and last mouse-movement event in same window.
1318 Don't record mouse-movement events in keyboard macros.
1319
1320 2001-12-25 Richard M. Stallman <rms@gnu.org>
1321
1322 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
1323 (Fenlarge_window): New arg PRESERVE_BEFORE.
1324
1325 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
1326 instead of Fstring_as_unibyte.
1327
1328 2001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1329
1330 The following changes remove mocklisp support:
1331
1332 * mocklisp.h, mocklisp.c: Files removed.
1333
1334 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
1335 `Qmocklisp' and `Qmocklisp_arguments'.
1336 Remove prototype of syms_of_mocklisp.
1337
1338 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
1339
1340 * callint.c: Do not include mocklisp.h.
1341 (Fcall_interactively): Do not test for mocklisp case.
1342
1343 * eval.c: Remove variables `Qmocklisp_arguments',
1344 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
1345 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
1346 Do not test for mocklisp case.
1347 (Fwhile): Remove unused variable `tem'.
1348 (syms_of_eval): Remove variable `moclisp-arguments'.
1349
1350 * data.c (wrong_type_argument): Remove mocklisp case.
1351
1352 * doc.c (Fdocumentation): Remove mocklisp case.
1353
1354 * emacs.c (main): Do not call syms_of_mocklisp.
1355
1356 2001-12-21 Richard M. Stallman <rms@gnu.org>
1357
1358 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
1359 to the left or to the right of the pointer, put it against
1360 the left screen edge.
1361
1362 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
1363
1364 * Makefile.in (distclean): Remove .gdbinit if we are building
1365 outside the source tree.
1366
1367 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1368
1369 * w32.c (emacs_root_dir): New function.
1370
1371 * msdos.c (emacs_root_dir): New function.
1372
1373 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
1374 of the current drive as the fallback for default_directory.
1375
1376 * dired.c (file_name_completion): Run the elements of
1377 completion-ignored-extensions through ENCODE_FILE.
1378
1379 * lisp.h (scmp): Remove prototype, since it's now a static
1380 function private to dired.c.
1381
1382 2001-12-18 Richard M. Stallman <rms@gnu.org>
1383
1384 * dired.c (scmp): Function moved from minibuf.c.
1385 Delete multibyte handling--used only on encoded strings.
1386
1387 * minibuf.c (scmp): Function moved to dired.c.
1388
1389 * fns.c (merge): Add QUIT call.
1390
1391 2001-12-18 Dave Love <fx@gnu.org>
1392
1393 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
1394 language/georgian.el.
1395
1396 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1397
1398 * Makefile.in (lisp, shortlisp): Synchronize with changes to
1399 lisp/Makefile.in:DONTCOMPILE.
1400
1401 2001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1402
1403 * xdisp.c (window_box_height): Do not return negative values.
1404 From Gerd Moellmann <gerd@gnu.org>.
1405
1406 * keyboard.c (head_table): Add missing braces around initializer.
1407
1408 * term.c (keys): Likewise.
1409
1410 * xfns.c (x_frame_parms, visual_classes): Likewise.
1411
1412 2001-12-17 Sam Steingold <sds@gnu.org>
1413
1414 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
1415 patch (COMPOSING_P, not COMPOSING).
1416
1417 2001-12-17 Richard M. Stallman <rms@gnu.org>
1418
1419 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
1420
1421 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
1422 before calling decode_coding.
1423
1424 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
1425
1426 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
1427 instead of only for COMPOSITION_DISABLED.
1428
1429 2001-12-16 Richard M. Stallman <rms@gnu.org>
1430
1431 * alloc.c (pure_alloc): After overflow, allocate just a small block.
1432
1433 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
1434
1435 * buffer.h (struct buffer): New field `display_error_modiff'.
1436 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
1437
1438 * window.c (Frecenter): Clear display_error_modiff field.
1439
1440 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
1441 Call redisplay_window, but not if display_error_modiff field says no.
1442 (redisplay_window_error): New function.
1443 (displayed_buffer): New variable.
1444 (redisplay_internal, redisplay_windows): Call the new functions
1445 instead of redisplay_window directly.
1446
1447 2001-12-15 Richard M. Stallman <rms@gnu.org>
1448
1449 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1450
1451 2001-12-14 Andrew Innes <andrewi@gnu.org>
1452
1453 * makefile.w32-in (EMACSLOADPATH): Define.
1454 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
1455 (bootstrap-temacs): Remove dependency on bootstrap-clean.
1456
1457 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
1458
1459 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
1460 parameter have a numeric value all the time.
1461
1462 * w32fns.c (x_report_frame_params): Likewise.
1463
1464 2001-12-12 Richard M. Stallman <rms@gnu.org>
1465
1466 * fileio.c (Fwrite_region): Doc fix.
1467
1468 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
1469 (redisplay_internal): Call clear_image_cache only for window terminals.
1470
1471 2001-12-12 Gerd Moellmann <gerd@gnu.org>
1472
1473 * xdisp.c (move_it_vertically_backward): Change heuristic
1474 for the case that we didn't move far enough initially.
1475
1476 * window.c (Frecenter): Simplify computation in the case of window
1477 system frames and ARG < 0; use window_box_height.
1478
1479 2001-12-11 Richard M. Stallman <rms@gnu.org>
1480
1481 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
1482 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
1483
1484 2001-12-11 Andrew Innes <andrewi@gnu.org>
1485
1486 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
1487 arg is negative.
1488
1489 2001-12-11 Richard M. Stallman <rms@gnu.org>
1490
1491 * m/hp800.h: Split the __hpux conditional into the parts
1492 that are right for GNU/Linux too and the parts that are not.
1493 Use the former if GNU_LINUX.
1494 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
1495
1496 * s/gnu-linux.h (GNU_LINUX): Defined.
1497
1498 2001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1499
1500 * macros.c, msdos.c, w16select.c: Change doc-string comments to
1501 `new style' [w/`doc:' keyword].
1502
1503 2001-12-10 Jason Rumney <jasonr@gnu.org>
1504
1505 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1506 before using.
1507
1508 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1509
1510 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1511 keyword].
1512
1513 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
1514
1515 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1516
1517 * s/hpux10.h (srand48): Don't undefine.
1518
1519 2001-12-09 Jason Rumney <jasonr@gnu.org>
1520
1521 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1522 Add comment to explain where the struct came from.
1523 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1524 (add_menu_item): Process pop-up menus first to avoid memory leak.
1525 (add_menu_item, w32_menu_display_help): Use `help' field as
1526 Lisp_Object.
1527 (w32_free_submenu_strings): Only free owner-drawn strings.
1528
1529 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1530
1531 * COPYING: Moved back.
1532
1533 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1534 Add parentheses around && within ||.
1535
1536 * indent.c (compute_motion): Likewise.
1537
1538 * intervals.c (merge_properties_sticky): Likewise.
1539
1540 * coding.c (setup_coding_system, shrink_encoding_region)
1541 (Fdecode_sjis_char): Likewise.
1542
1543 2001-12-07 Andreas Schwab <schwab@suse.de>
1544
1545 * xdisp.c (display_mode_element): Don't read past end of string if
1546 it ends with '%'.
1547
1548 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1549 can hold.
1550
1551 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
1552 from most_positive_fixnum and most_negative_fixnum, resp., and
1553 type changed to Lisp_Object.
1554 (syms_of_data): DEFVAR_LISP them.
1555
1556 2001-12-07 Richard M. Stallman <rms@gnu.org>
1557
1558 * callproc.c (init_callproc): Set Vdata_directory based on the source
1559 location whenever Emacs was run uninstalled.
1560
1561 2001-12-06 Paul Eggert <eggert@twinsun.com>
1562
1563 * config.in (HAVE_WORKING_VFORK): New #undefs.
1564 * process.c (create_process):
1565 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1566 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1567 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1568 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1569 * m/intel386.h (HAVE_VFORK): Likewise.
1570 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1571 * m/mips.h (HAVE_VFORK): Likewise.
1572 * s/freebsd.h (vfork): Remove #define.
1573 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1574 * s/usg5-4-2.h: Fix comment about vfork.
1575
1576 2001-12-06 Richard M. Stallman <rms@gnu.org>
1577
1578 * s/hpux10.h (random): Add undef.
1579 (HAVE_RANDOM): Define it just once.
1580
1581 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1582
1583 * eval.c: Undo last change: the standard syntax is not wanted.
1584
1585 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1586
1587 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1588 scroll bars of the frame before deleting the frame itself. If the
1589 frame has a widget, delete the frame with XtDestroyWidget, and do
1590 not call XDestroyWindow before that.
1591
1592 2001-12-06 Kim F. Storm <storm@cua.dk>
1593
1594 * xfns.c (x_report_frame_params): Return actual fringe widths.
1595
1596 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1597
1598 2001-12-05 Andrew Innes <andrewi@gnu.org>
1599
1600 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1601 excessively large.
1602
1603 * insdel.c (make_gap_larger): New function.
1604 (make_gap_smaller): New function.
1605 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1606 make_gap_smaller if arg is negative.
1607
1608 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1609
1610 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1611 Pass a dummy argument when calling interrupt_signal.
1612 (parse_menu_item): Mark disabled items before checking for empty def.
1613 (read_char_minibuf_menu_prompt): Make safety more visible.
1614 (read_key_sequence): Add a `first_unbound' variable.
1615 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1616 unbound prefix as soon as we can detect it.
1617
1618 * doc.c (Fsnarf_documentation): Add prototype.
1619 (get_doc_string): Handle negative arguments.
1620 (Fdocumentation): Use AREF and ASIZE.
1621 Move the calls to get_doc_string to a single place.
1622 Don't confuse an interactive-spec for a docstring reference.
1623 (Fdocumentation_property): Take advantage of the fact that
1624 get_doc_string now ignores the sign of the docstring position.
1625
1626 * eval.c: Use standard syntax for usage in docstrings.
1627
1628 2001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1629
1630 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
1631
1632 2001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1633
1634 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1635 constant when the value of `tool_bar_button_relief' is negative.
1636
1637 2001-12-02 Richard M. Stallman <rms@gnu.org>
1638
1639 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1640 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1641
1642 * fileio.c (read_non_regular): Delete Fsignal call.
1643
1644 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1645
1646 * lisp.h (run_hook_list_with_args): Undo last change.
1647
1648 2001-12-01 Gerd Moellmann <gerd@gnu.org>
1649
1650 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1651
1652 2001-12-01 Jason Rumney <jasonr@gnu.org>
1653
1654 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1655
1656 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1657 [!WM_MOUSELEAVE]: Define.
1658
1659 * w32menu.c (current_popup_menu, get_menu_item_info):
1660 (set_menu_item_info): New vars.
1661 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1662 (w32_menu_show): Set current_popup_menu.
1663 (add_menu_item): Allocate new strings for owner-drawn menu items
1664 and help strings.
1665 Use owner-draw for disabled menu items again.
1666 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1667 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1668
1669 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1670 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1671 <WM_EXITMENULOOP>: Free menu strings.
1672 <WM_MOUSELEAVE>: Stop tracking mouse.
1673 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1674
1675 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1676 and mouse face.
1677
1678 2001-12-01 Kim F. Storm <storm@cua.dk>
1679
1680 The following changes add left-fringe and right-fringe
1681 frame parameters to adjust fringe widths, or remove one or
1682 both fringes.
1683
1684 * frame.h (struct frame): Remove trunc_area_pixel_width and
1685 trunc_area_cols fields.
1686 (Qleft_fringe, Qright_fringe): Declare.
1687 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1688
1689 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1690 (syms_of_frame): Initialize them.
1691
1692 * window.c (coordinates_in_window): Handle separate left and right
1693 fringe widths.
1694
1695 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1696 and fringe_cols fields.
1697 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1698 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1699 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1700 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1701 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1702 (x_compute_fringe_widths): Add prototype.
1703
1704 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1705 fill fringe evenly with small dashes.
1706 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1707 clip the new ZV bitmap to avoid jitter between rows.
1708 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1709 background. Don't draw fringe bitmaps if fringe width is zero.
1710 (x_compute_fringe_widths): New function.
1711 (x_new_font, x_set_window_size_1): Use it.
1712
1713 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1714 (x_set_frame_parameters): Process `font' parameter before other
1715 parameters as fringe widths depend on it.
1716 (x_set_fringe_width): New function.
1717 (x_figure_window_size): Use x_compute_fringe_widths.
1718 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1719 parameters.
1720
1721 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1722 (EmacsFrameSetCharSize): Ditto.
1723
1724 * w32term.h: Merged changes from xterm.h.
1725 * w32term.c: Merged changes from xterm.c.
1726 * w32fns.c: Merged changes from xfns.c.
1727
1728 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1729
1730 * COPYING: Removed.
1731
1732 2001-11-29 Dave Love <fx@gnu.org>
1733
1734 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1735 extra extra slot.
1736 (detect_coding_mask): Fix call of detect_coding_iso2022.
1737
1738 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1739
1740 * fileio.c (file-name-coding-system)
1741 (default-file-name-coding-system): Doc fix (links to referenced
1742 variables added).
1743
1744 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1745
1746 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1747 Add dummy uses of gcproN variables.
1748
1749 * category.c (describe_category, describe_category_1)
1750 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1751 (syms_of_category): Don't defsubr Sdescribe_categories.
1752
1753 2001-11-28 Richard M. Stallman <rms@gnu.org>
1754
1755 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1756
1757 * Makefile.in (lispdir): New variable, referring to build dir.
1758 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1759
1760 2001-11-28 Andrew Innes <andrewi@gnu.org>
1761
1762 * w32menu.c (w32_menu_display_help): Actually add the new argument
1763 OWNER.
1764
1765 2001-11-28 Jason Rumney <jasonr@gnu.org>
1766
1767 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1768 menu items. From David Ponce <dponce@wanadoo.fr>.
1769 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1770 conditionally.
1771 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1772 help event in the owner frame's keyboard buffer.
1773
1774 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1775 (Fx_show_tip): Don't subtract last width from row width.
1776
1777 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1778 (w32_read_socket): Use EQ to compare frames.
1779
1780 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1781
1782 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1783 OVERLAPS_P.
1784
1785 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1786
1787 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1788 `gcpro3' and `gcpro4'.
1789
1790 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1791
1792 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1793
1794 * ccl.c: Use AREF and ASIZE.
1795
1796 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1797
1798 * lisp.h (run_hook_list_with_args): Remove.
1799 (LIST_END_P): Fix call to wrong_type_argument.
1800 (make_fixnum_or_float): Use EMACS_INT rather than int.
1801
1802 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1803
1804 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1805 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1806
1807 * eval.c: Use AREF and ASIZE.
1808 (Ffetch_bytecode): Add the file name to the error message.
1809
1810 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1811 which match the end of the file-name.
1812 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1813 is not a valid env var, but leave it as is instead.
1814
1815 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1816 Make nil bindings in char-tables transparent.
1817 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1818
1819 2001-11-26 Richard M. Stallman <rms@gnu.org>
1820
1821 * textprop.c (set_text_properties_1): Allow START, END in either order.
1822 Do nothing if range is empty.
1823
1824 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1825
1826 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1827 (clean): Not here.
1828
1829 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1830
1831 * textprop.c (set_text_properties_1): Clearly mark that the
1832 interval should not be empty.
1833
1834 * intervals.c (graft_intervals_into_buffer):
1835 Don't call set_text_properties_1 on an empty interval.
1836
1837 2001-11-25 Richard M. Stallman <rms@gnu.org>
1838
1839 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1840
1841 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1842 don't lose the data in it.
1843
1844 2001-11-25 Juanma Barranquero <lektu@terra.es>
1845
1846 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1847
1848 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1849
1850 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1851
1852 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1853
1854 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1855
1856 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1857
1858 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1859 Niemitalo <kon@iki.fi>.
1860
1861 2001-11-25 Jason Rumney <jasonr@gnu.org>
1862
1863 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1864
1865 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1866 (Fx_show_tip): Block input during frame creation.
1867 (Fx_show_tip, Fx_hide_tip): Enable.
1868
1869 2001-11-24 Richard M. Stallman <rms@gnu.org>
1870
1871 * lread.c (Fload): Detect recursive load error for more than 3
1872 nestings of the same file.
1873 (Vrecursive_load_depth_limit): Variable deleted.
1874 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1875
1876 2001-11-24 Jason Rumney <jasonr@gnu.org>
1877
1878 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1879 mouse position if either left or top is not specified.
1880
1881 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1882 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1883 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1884 (my_create_tip_window): Assign tip_window.
1885 (x_create_tip_frame): Use same defaults as X.
1886 (compute_tip_xy): Remove unused variable. Use full screen width.
1887 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1888
1889 * w32term.c (x_after_update_window_line): Doc fix.
1890 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1891 frames.
1892 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1893
1894 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1895 for all Windowed systems.
1896
1897 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1898
1899 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1900 realized, use the initial screen colors to clear the screen.
1901
1902 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1903
1904 * textprop.c (Fset_text_properties): Remove unused variables
1905 `unchanged', `prev_changed', `s' and `len'.
1906
1907 * search.c (Freplace_match): Remove unused variable `inslen'.
1908
1909 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1910
1911 2001-11-22 Jason Rumney <jasonr@gnu.org>
1912
1913 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1914 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1915 (my_create_tip_window): New function.
1916 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1917 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1918
1919 2001-11-20 Jason Rumney <jasonr@gnu.org>
1920
1921 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1922 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1923
1924 * w32fns.c (Vw32_system_coding_system): Remove.
1925 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1926
1927 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1928
1929 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1930 after build_annotations.
1931
1932 * syntax.c (describe_syntax): Add dummy arg.
1933 (describe_syntax_1): Update call to describe_vector.
1934
1935 * category.c (describe_category): Add dummy arg.
1936 (describe_category_1): Update call to describe_vector.
1937
1938 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1939 (describe_command, describe_translation): Add dummy second param.
1940 (describe_map): Call elt_describer with two arguments.
1941 (describe_vector_princ): Add `fun' parameter.
1942 Call it instead of the hardcoded `princ'.
1943 (describe_vector): Add arg `args'.
1944 Pass it as a new second argument to elt_describer.
1945
1946 * keymap.h (describe_vector): Update prototype.
1947
1948 * frame.c: Don't include keymap.h any more.
1949 (keys_of_frame): Remove.
1950
1951 * lisp.h (keys_of_frame): Remove declaration.
1952
1953 * emacs.c (main): Don't call `keys_of_frame' any more.
1954
1955 2001-11-14 Andreas Schwab <schwab@suse.de>
1956
1957 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1958 if defined, 0 otherwise.
1959 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1960 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1961
1962 2001-11-19 Richard M. Stallman <rms@gnu.org>
1963
1964 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1965
1966 2001-11-18 Jason Rumney <jasonr@gnu.org>
1967
1968 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1969 (x_draw_bar_cursor): If the background color of the glyph under
1970 the cursor equals the frame's cursor color, use the glyph's
1971 foreground color for drawing the bar cursor.
1972 (x_after_update_window_line): Clear internal border in different
1973 circumstances.
1974 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1975 (w32_draw_relief_rect): Correct relief by 1 pixel.
1976 (x_set_glyph_string_background_width):
1977 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1978 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1979 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1980 if cursor_in_non_selected_windows is false.
1981 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1982 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1983 Notice if cursor gets overwritten.
1984 (notice_overwritten_cursor): Renamed from
1985 note_overwritten_text_cursor. Rewritten to take glyph widths
1986 into account, and to take X positions as parameters.
1987 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1988 around call to x_draw_glyphs.
1989 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1990 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1991 color to use for image glyph reliefs.
1992 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1993 (glyph_rect): Remove unused variable `area'.
1994
1995 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1996 some items.
1997 (x_set_internal_border_width): Set frame garbaged when window
1998 doesn't exist yet.
1999 (Fx_create_frame): Accept zero tool_bar_button_relief.
2000 (x_clear_image_1, four_corners_best, image_background)
2001 (image_background_transparent): New functions.
2002 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2003 (gs_format): Add `:background' entry.
2004 (lookup_image): Set IMG's background color if specified.
2005 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2006 when appropriate.
2007 (x_clear_image_1): Reset `background_valid' and
2008 `background_transparent_valid' fields.
2009 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2010 calculating it here. Set IMG's background_transparent field.
2011 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2012 (enum png_keyword_index): Add PNG_BACKGROUND.
2013 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2014 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2015 (enum gif_keyword_index): Add GIF_BACKGROUND.
2016 (enum gs_keyword_index): Add GS_BACKGROUND.
2017 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2018 Pre-calculate image background color where necessary.
2019 (x_create_x_image_and_pixmap, xbm_load, gs_load):
2020 Use display info's n_cbits entry for screen depth.
2021 (Fx_show_tip): Remove unused variables `buffer', `top',
2022 `left', `max_width' and `max_height'.
2023
2024 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
2025
2026 2001-11-18 Gerd Moellmann <gerd@gnu.org>
2027
2028 * puresize.h (BASE_PURESIZE): Increase to 750000.
2029
2030 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2031
2032 * frame.c (Fframe_live_p): Doc fix.
2033
2034 2001-11-18 Richard M. Stallman <rms@gnu.org>
2035
2036 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
2037 (message_dolog_marker3): New static variables hold three markers.
2038 (syms_of_xdisp): Initialize and staticpro them.
2039 (message_dolog): Use message_dolog_marker1..3 instead of
2040 allocating markers each time. Unchain them when done.
2041
2042 2001-11-17 Richard M. Stallman <rms@gnu.org>
2043
2044 * doc.c (Fsnarf_documentation): Doc fix.
2045
2046 2001-11-17 Andreas Schwab <schwab@suse.de>
2047
2048 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
2049
2050 2001-11-17 Richard M. Stallman <rms@gnu.org>
2051
2052 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
2053
2054 2001-11-17 Jason Rumney <jasonr@gnu.org>
2055
2056 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
2057
2058 2001-11-17 Gerd Moellmann <gerd@gnu.org>
2059
2060 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
2061 with invalid position.
2062
2063 2001-11-16 Richard M. Stallman <rms@gnu.org>
2064
2065 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
2066
2067 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
2068 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
2069 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
2070
2071 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
2072
2073 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2074
2075 * fileio.c (build_annotations): Split off the tail.
2076 (build_annotations_2): New fun. Extracted from build_annotations.
2077 (Fwrite_region): Split the call to build_annotations into two
2078 calls to build_annotations and build_annotations_2.
2079
2080 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2081
2082 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
2083 clear_waiting_for_input with argument.
2084
2085 * xterm.h (x_update_cursor): Remove duplicated prototype.
2086
2087 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
2088
2089 * xterm.c (waiting_for_input): Remove unnecessary declaration.
2090
2091 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
2092
2093 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2094
2095 * fileio.c (choose_write_coding_system): New fun, extracted
2096 from Fwrite_region.
2097 (Fwrite_region): Use it.
2098
2099 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
2100 (funcall_lambda, run_hook_with_args): Make static and add prototype.
2101 (ml_apply, find_handler_clause): Add prototype.
2102
2103 2001-11-16 Eli Zaretskii <eliz@gnu.org>
2104
2105 * config.in: Add #undef HAVE_COFF_H.
2106
2107 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
2108 Required for ISC 4.1.
2109
2110 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
2111
2112 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
2113 Andrew Wiseman <a.wiseman@btclick.com>.
2114
2115 2001-11-16 Kim F. Storm <storm@cua.dk>
2116
2117 The following changes are made to clean up the various internal
2118 references to the fringes to actually use the term `fringe' for
2119 them. Previously, they were called `flags areas', `bitmap areas',
2120 `left/right side of windows', or implicitly as `flags' or
2121 `bitmaps':
2122
2123 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
2124 Comments fixed. Use renamed symbols.
2125
2126 * dispnew.c: Comment fix. Use renamed symbols.
2127
2128 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
2129 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
2130 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
2131
2132 * msdos.c: Comment fix.
2133
2134 * w32fns.c: Use renamed symbols.
2135
2136 * w32term.c: Comment fixes. Use renamed symbols.
2137 (fringe_bitmap_type): Renamed from bitmap_type.
2138 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2139 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
2140 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2141
2142 * w32term.h: Comment fixes. Use renamed symbols.
2143 (fringes_extra): Renamed from flags_areas_extra.
2144 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2145 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2146 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2147 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2148 (FRAME_X_LEFT_FRINGE_WIDTH):
2149 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2150 (FRAME_X_RIGHT_FRINGE_WIDTH):
2151 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2152
2153 * widget.c: Use renamed symbols.
2154
2155 * window.c: Comment fixes. Use renamed symbols.
2156 (coordinates-in-window-p): Doc fix.
2157
2158 * xdisp.c: Comment fixes. Use renamed symbols.
2159
2160 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
2161
2162 * xfns.c: Use renamed symbols.
2163
2164 * xterm.c: Comment fixes. Use renamed symbols.
2165 (fringe_bitmap_type): Renamed from bitmap_type.
2166 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2167 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
2168 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2169
2170 * xterm.h: Comment fixes. Use renamed symbols.
2171 (fringes_extra): Renamed from flags_areas_extra.
2172 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2173 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2174 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2175 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2176 (FRAME_X_LEFT_FRINGE_WIDTH):
2177 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2178 (FRAME_X_RIGHT_FRINGE_WIDTH):
2179 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2180
2181 2001-11-15 Jason Rumney <jasonr@gnu.org>
2182
2183 * w32menu.c (add-menu-item): Make help_echo and radio buttons
2184 work for most menu items. From David Ponce
2185 <david.ponce@wanadoo.fr>.
2186
2187 2001-11-15 Gerd Moellmann <gerd@gnu.org>
2188
2189 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
2190 Some x_set_* function expect to be called even if old and new
2191 value are equal.
2192
2193 * xdisp.c (build_desired_tool_bar_string): Accept zero
2194 tool_bar_button_relief.
2195
2196 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
2197
2198 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
2199
2200 * xterm.c (x_draw_bar_cursor): If the background color of the
2201 glyph under the cursor equals the frame's cursor color, use
2202 the glyph's foreground color for drawing the bar cursor.
2203
2204 * dispnew.c (direct_output_forward_char): Fix character/byte
2205 position comparison.
2206
2207 2001-11-15 Miles Bader <miles@gnu.org>
2208
2209 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
2210 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
2211 Update arguments to find_field.
2212 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
2213 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
2214 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
2215 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
2216
2217 2001-11-14 Richard M. Stallman <rms@gnu.org>
2218
2219 * editfns.c (Fpropertize): Allow call with 1 arg.
2220
2221 * dispextern.h (image_background, image_background_transparent):
2222 Conditionalize on HAVE_X_WINDOWS.
2223
2224 2001-11-13 Richard M. Stallman <rms@gnu.org>
2225
2226 * print.c (Fprin1_to_string): Doc fix.
2227
2228 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
2229
2230 * floatfns.c (Fceiling, Ffloor): Doc fixes.
2231
2232 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
2233
2234 * fileio.c (Ffile_accessible_directory_p): Doc fix.
2235
2236 * eval.c (syms_of_eval): Doc fix.
2237
2238 * coding.c (syms_of_coding): Doc fix.
2239
2240 * doc.c (Fsnarf_documentation): Doc fix.
2241
2242 * dispnew.c (syms_of_display): Doc fix.
2243
2244 * category.c (Fget_unused_category): Doc fix.
2245
2246 * buffer.c (syms_of_buffer): Doc fixes.
2247
2248 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
2249
2250 * print.c (prin1, print): Doc fix.
2251
2252 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2253
2254 * fontset.h: Remove declarations of variables
2255 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
2256
2257 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
2258 `Vclip_large_size_font'.
2259
2260 2001-11-13 Jason Rumney <jasonr@gnu.org>
2261
2262 * w32fns.c: Doc fix.
2263
2264 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2265
2266 * xfaces.c (Fface_attributes_as_vector): Doc fix.
2267
2268 * w32fns.c (Fx_synchronize): Reindent.
2269
2270 * fns.c: Doc fix.
2271
2272 * emacs.c: Doc fix.
2273
2274 * coding.c: Doc fix.
2275
2276 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
2277 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
2278 `new style' [w/`doc:' keyword].
2279
2280 * xmenu.c (x-popup-menu): Reindent.
2281 (x-popup-dialog): Likewise.
2282
2283 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
2284
2285 * xdisp.c (Fdump_tool_bar_row): Reindent.
2286
2287 * minibuf.c (Fminibuffer_complete_word): Reindent.
2288 (Fminibuffer_complete_and_exit): Likewise.
2289 (Fminibuffer_completion_help): Likewise.
2290 (Fminibuffer_message): Likewise.
2291
2292 * fns.c (Freverse): Reindent.
2293
2294 * eval.c (Fif): Reindent.
2295 (Fand): Likewise.
2296
2297 * editfns.c (Fuser_real_login_name): Reindent.
2298 (Finsert_buffer_substring): Likewise.
2299 (Fcompare_buffer_substrings): Likewise.
2300 (Fsubst_char_in_region): Likewise.
2301
2302 * dispnew.c (Fsit_for): Reindent.
2303 (Fframe_or_buffer_changed_p): Likewise.
2304 (Finternal_show_cursor_p): Likewise.
2305 (syms_of_display): Likewise.
2306
2307 * alloc.c (Flist): Reindent.
2308 (Fvector): Likewise.
2309
2310 2001-11-12 Richard M. Stallman <rms@gnu.org>
2311
2312 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
2313 LeaveNotify events. Only FocusIn and FocusOut do that now.
2314 (x_display_and_set_cursor): Do display hollow cursors in active
2315 minibuffer windows when they are not selected.
2316
2317 2001-11-12 Jason Rumney <jasonr@gnu.org>
2318
2319 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2320 * w32term.c: Change doc-string comments to `new style'.
2321 [w/`doc:' keyword]. Doc fixes.
2322
2323 * w32fns.c: Don't define max.
2324 (Fx_open_connection): Only execute once.
2325
2326 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2327
2328 * ccl.c: Change macros to use do-while block instead of if-else.
2329 Use braces to follow GNU Coding Standards.
2330
2331 2001-11-11 Richard M. Stallman <rms@gnu.org>
2332
2333 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
2334
2335 * lread.c (read_escape): Use end_of_file_error for reporting eof.
2336
2337 * insdel.c (replace_range): Use adjust_markers_for_replace
2338 instead of adjust_markers_for_delete and adjust_markers_for_insert.
2339
2340 * intervals.h: Declare set_text_properties and set_text_properties_1.
2341
2342 * textprop.c (set_text_properties_1): New subroutine
2343 broken out of set_text_properties.
2344 (set_text_properties): Use set_text_properties_1.
2345
2346 * intervals.c (graft_intervals_into_buffer):
2347 Use set_text_properties_1 to clear out properties.
2348
2349 * search.c (Freplace_match): Use replace_range to insert
2350 and delete. Don't request property inheritance from
2351 surrounding text.
2352
2353 2001-11-10 Jason Rumney <jasonr@gnu.org>
2354
2355 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
2356 vertical fonts. Allow them if face name is explicitly specified.
2357 Do not give up if we find a font that cannot be converted to an xlfd.
2358
2359 2001-11-10 Gerd Moellmann <gerd@gnu.org>
2360
2361 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
2362 instead of malloc/free.
2363
2364 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2365
2366 * xfaces.c (merge_face_vectors): Use braces to follow GNU
2367 Coding Standards.
2368 (Finternal_set_lisp_face_attribute): Likewise.
2369
2370 * buffer.c (Fbury_buffer): Likewise.
2371
2372 * indent.c (current_column_1): Remove unused variable `prev_col'.
2373
2374 * coding.c (encode_coding): Use precomputed value of `src'.
2375 (encode_coding): Remove unused variable `src_end'.
2376 (code_convert_region): Remove unused variables `count'.
2377
2378 2001-11-07 Jason Rumney <jasonr@gnu.org>
2379
2380 * w32term.c (x_display_and_set_cursor): Do not move system caret
2381 if cursor_glyph is NULL.
2382
2383 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2384
2385 * keymap.c (access_keymap): Fix compilation error.
2386
2387 2001-11-07 Miles Bader <miles@gnu.org>
2388
2389 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
2390
2391 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2392
2393 * intervals.c (graft_intervals_into_buffer):
2394 Remove #ifdef'd-out code.
2395 (graft_intervals_into_buffer): Remove unused variable `middle'.
2396
2397 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
2398 code (eval-current-buffer).
2399 Change doc-string comments to `new style' [w/`doc:' keyword].
2400
2401 2001-11-06 Richard M. Stallman <rms@gnu.org>
2402
2403 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
2404
2405 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
2406
2407 * lread.c (read1): Fix behavior with nested backquoting.
2408
2409 * keyboard.c (make_lispy_event): Check integerness and fix
2410 Lisp_Object/int mixup.
2411
2412 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2413
2414 * fns.c (copy_hash_table): Remove unused variable `v'.
2415
2416 * fontset.c (fontset_font_pattern): Remove unused variable
2417 `family_registry'.
2418
2419 * indent.c (current_column_1): Remove unused variable `prev_col'.
2420
2421 2001-11-05 Richard M. Stallman <rms@gnu.org>
2422
2423 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
2424
2425 * buffer.c (Fkill_buffer): Don't delete auto save file
2426 if buffer is modified.
2427
2428 2001-11-05 Andrew Innes <andrewi@gnu.org>
2429
2430 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
2431 CHECK_NUMBER_CDR.
2432
2433 2001-11-05 Richard M. Stallman <rms@gnu.org>
2434
2435 * unexelf.c (unexec): Minor changes; clean up comments.
2436
2437 2001-11-05 Sam Steingold <sds@gnu.org>
2438
2439 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
2440
2441 2001-11-05 Andreas Schwab <schwab@suse.de>
2442
2443 * sound.c (sound_perror): Save errno from being clobbered.
2444
2445 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
2446
2447 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
2448 the program image directly.
2449
2450 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2451
2452 * buffer.h (Fbuffer_local_value): Add prototype.
2453
2454 2001-11-04 Richard M. Stallman <rms@gnu.org>
2455
2456 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
2457 and CHECK_BUFFER.
2458
2459 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
2460 (record_char): Likewise.
2461
2462 * keyboard.c (make_lispy_event): Don't insist a drag event must
2463 move to a different buffer position. Instead, check for moving at
2464 least double_click_fuzz.
2465
2466 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
2467
2468 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
2469
2470 * indent.c (current_column_1, Fmove_to_column): Separate the code
2471 for display-table glyphs from the code buffer text, to fix
2472 bugs in the former.
2473
2474 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
2475
2476 * buffer.c (Fbuffer_local_value): New function.
2477 (syms_of_buffer): Defsubr it.
2478
2479 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
2480 value of `cursor-in-non-selected-windows'.
2481
2482 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
2483 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
2484 (syms_of_xdisp): Initialize it.
2485
2486 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2487
2488 * xfns.c (Fx_create_frame): Doc fix.
2489
2490 * coding.c: Change doc-string comments to `new style' [w/`doc:'
2491 keyword].
2492
2493 * eval.c (top_level_value, top_level_set): Remove commented and
2494 #ifdef'd-out code.
2495 (Fdefvar): Fix usage in doc-string.
2496
2497 2001-11-03 Richard M. Stallman <rms@gnu.org>
2498
2499 * xfns.c: Include unistd.h, if it exists.
2500
2501 * editfns.c: Move the include of ctype.h after unistd.h.
2502
2503 * gmalloc.c: Test BROKEN_PROTOTYPES.
2504
2505 2001-11-03 Ken Raeburn <raeburn@gnu.org>
2506
2507 * lisp.h (CHECK_STRING_CAR): New macro.
2508 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2509 treating XCAR and XCDR as lvalues.
2510 (openp): Use CHECK_STRING_CAR.
2511 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2512
2513 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2514
2515 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
2516 (SIGMASKTYPE): Define.
2517
2518 * syssignal.h (sigunblock): Don't define if already defined.
2519
2520 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2521
2522 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2523 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
2524 Fix typos in comments.
2525
2526 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2527 and #ifdef'd-out code.
2528 Fix and reindent comments.
2529
2530 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
2531
2532 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2533 argument `i' in macros.
2534
2535 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2536 `i' in macros.
2537
2538 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2539 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2540 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2541 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2542 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2543 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2544 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2545 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
2546 in macros.
2547
2548 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2549 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2550 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2551 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2552 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2553 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2554 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2555 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2556 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
2557 (remove unused second argument).
2558
2559 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2560
2561 * syntax.c (describe_syntax): New wrapper.
2562 (Finternal_describe_syntax_value): Rename from describe_syntax.
2563 Don't insert space at front and \n at the end.
2564 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2565
2566 * regex.c (re_wctype): Try to fix some warnings.
2567 (regcomp, regexec): Don't forget the __restrict.
2568
2569 2001-11-02 Richard M. Stallman <rms@gnu.org>
2570
2571 * textprop.c (Fget_char_property): Doc fix.
2572
2573 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2574
2575 * process.c (Fstart_process): Add usage to doc-string.
2576
2577 * data.c (Fsetq_default): Ditto.
2578
2579 * callint.c (Finteractive): Ditto.
2580
2581 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2582
2583 * macros.c: Don't include keymap.h any more.
2584
2585 2001-11-01 Richard M. Stallman <rms@gnu.org>
2586
2587 * data.c (Fmake_local_variable): Doc fix.
2588
2589 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2590 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2591
2592 * keymap.c (Fdescribe_buffer_bindings): Print character property
2593 bindings along with or instead of the buffer local map.
2594 Make the overriding maps override what they should.
2595
2596 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2597
2598 * window.c (grow_mini_window): Fix typo in comment.
2599
2600 2001-11-01 Gerd Moellmann <gerd@gnu.org>
2601
2602 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2603 (XTset_vertical_scroll_bar): Likewise.
2604
2605 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2606 instead of IMAGE_BACKGROUND.
2607
2608 * xfns.c (four_corners_best): Reindent.
2609
2610 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2611 Handle :box so that it is possible to specify sexprs.
2612
2613 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2614
2615 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2616 (Fface_font): Ditto.
2617 (Finternal_set_alternative_font_registry_alist): Ditto.
2618 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2619
2620 * xfns.c (x-get-resource): Reindent.
2621
2622 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2623
2624 * s/hpux11.h: New file.
2625
2626 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2627
2628 * emacs.c (USAGE1): Show command line option --no-window-system
2629 instead of --no-windows in usage.
2630 (standard_args): Rename --no-windows to --no-window-system.
2631 (bug_reporting_address): Follow Emacs coding conventions.
2632
2633 * eval.c (Fcommandp): Doc fix.
2634 Change doc-string comments to `new style' [w/`doc:' keyword].
2635
2636 * frame.c (Fframe_live_p): Doc fix.
2637
2638 * buffer.c (selective-display-ellipses): Doc fix.
2639
2640 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2641
2642 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2643
2644 * xfaces.c (realize_x_face): If C is not a single-byte character,
2645 set the face's colors_copied_bitwise_p instead of the defaulted_p
2646 members which have a different meaning.
2647 (free_face_colors): Do nothing for a face whose colors have been
2648 copied bitwise.
2649
2650 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2651
2652 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2653
2654 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2655 [w/`doc:' keyword].
2656
2657 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2658
2659 * fns.c (require_unwind): Return Lisp_Object.
2660
2661 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2662
2663 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2664 (last-input-char): Revert doc-string to be the same as the
2665 doc-string of `last-input-event'.
2666
2667 * xdisp.c: Fix typos in comments.
2668
2669 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2670
2671 * window.c (grow_mini_window): Handle case that the root
2672 window is already smaller than the nominal mininum height.
2673
2674 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2675
2676 * emacs.c (main): Don't call keys_of_macros any more.
2677
2678 * lisp.h (keys_of_macros): Remove.
2679
2680 * macros.c (keys_of_macros): Remove.
2681
2682 * xfaces.c (Fface_attribute_relative_p): Declare args.
2683
2684 2001-10-30 Jason Rumney <jasonr@gnu.org>
2685
2686 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2687 (enum_font_cb2): Ignore fonts with vertical orientation.
2688
2689 2001-10-30 Richard M. Stallman <rms@gnu.org>
2690
2691 * keyboard.c (Finput_pending_p): Doc fix.
2692
2693 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2694
2695 * xterm.c (x_after_update_window_line): Don't run the code
2696 clearing in borders for rows whose visible height is 0.
2697
2698 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2699 resized_p flag is set. If not set, use the much less flickering
2700 method previously used.
2701
2702 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2703
2704 * frame.h (struct frame) <resized_p>: New member.
2705
2706 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2707 as large as the number of bytes to convert.
2708
2709 * lread.c (to_multibyte): New function.
2710 (read1): Use it.
2711
2712 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2713
2714 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2715
2716 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2717
2718 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2719 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2720 if the row's fill_line_p is set and drawing the last glyph with
2721 DRAW_IMAGE_{RAISED,SUNKEN}.
2722
2723 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2724
2725 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2726
2727 * xmenu.c: Include coding.h and charset.h.
2728 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2729 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2730 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2731 Explicitly set wv->help. Use `TRUE' rather than `True'.
2732 (menu_help_callback): Use empty_string.
2733
2734 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2735 (Fx_popup_dialog): Explicitly init f.
2736 (w32_menu_display_help): Use empty_string.
2737
2738 2001-10-29 Richard M. Stallman <rms@gnu.org>
2739
2740 * fns.c (Frequire): Detect recursive try to require the same
2741 feature 3 or more levels deep, and get error.
2742 (require_unwind): New subroutine.
2743 (require_nesting_list): New variable.
2744 (syms_of_fns): Init and staticpro it.
2745
2746 * print.c (print_object): Clarify indication of insertion type.
2747
2748 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2749
2750 * coding.c (syms_of_coding): Document that locale-coding-system is
2751 used for decoding input on X.
2752
2753 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2754
2755 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2756
2757 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2758 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2759
2760 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2761
2762 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2763 use NO_CURSOR if cursor_in_non_selected_windows is false.
2764
2765 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2766 the slant attribute if FRAME is t.
2767
2768 * xfns.c (x_set_internal_border_width): Set frame garbaged
2769 when X window doesn't exist yet.
2770
2771 * xterm.c (x_after_update_window_line): Clear internal border
2772 in different circumstances.
2773
2774 * xterm.c (XTread_socket) <KeyPress>: Don't use
2775 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2776 <handa@etl.go.jp>.
2777
2778 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2779
2780 * m/ibms390.h: New file. From Adam Thornton
2781 <athornton@sinenomine.net>.
2782
2783 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2784
2785 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2786
2787 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2788 a loop counter.
2789
2790 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2791
2792 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2793
2794 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2795 keyword].
2796 Fix typos in comments.
2797
2798 * emacs.c (bug_reporting_address): New function.
2799 Use it when displaying usage message.
2800
2801 * minibuf.c (read_minibuf): Remove unused external declaration of
2802 variable `Qread_only'.
2803
2804 * keymap.c (access_keymap): Remove unused variable `charset'.
2805
2806 2001-10-28 Miles Bader <miles@gnu.org>
2807
2808 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2809 Remove #ifdef'd-out code.
2810 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2811 (syms_of_xfaces): Initialize them.
2812
2813 2001-10-27 Jason Rumney <jasonr@gnu.org>
2814
2815 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2816 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2817 position using the system caret.
2818
2819 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2820 (w32_system_caret_height, w32_system_caret_x)
2821 (w32_system_caret_y): New variables for tracking system caret.
2822 (w32_initialize): Initialize them.
2823 (x_display_and_set_cursor): Make system caret follow the active cursor.
2824
2825 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2826 New messages types.
2827
2828 * w32term.c (note_mouse_highlight): Clear old help_echo.
2829
2830 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2831
2832 * xterm.c: Fix typo in a comment.
2833
2834 * emacs.c: Fix typos in comments.
2835 Remove unnecessary spaces.
2836 Change doc-string comments to `new style' [w/`doc:' keyword].
2837 (USAGE2): Fix typos in usage string.
2838
2839 * xterm.c: Fix typo in a comment.
2840
2841 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2842 emacs.c.
2843
2844 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2845
2846 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2847 instead of 1/2 line_height in the heuristic for skipping
2848 farther backward when target_y was not reached.
2849
2850 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2851 Display errno only if non-zero.
2852 (sound_warning): New function.
2853 (vox_configure): Don't treat failing to set sample rate as error.
2854 (various places): Improve error messages.
2855
2856 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2857
2858 * fileio.c (Faccess_file): Run the argument filename through
2859 Fexpand_file_name, before using it.
2860
2861 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2862 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2863
2864 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2865
2866 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2867
2868 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2869 Fix clearing in the case of scroll bars on the right.
2870
2871 2001-10-26 Juanma Barranquero <lektu@terra.es>
2872
2873 * w32gui.h (XImage): Add a dummy typedef.
2874
2875 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2876
2877 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2878
2879 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2880
2881 * frame.c (Fframe_parameter): Fix last change.
2882
2883 * fileio.c: Revert last change (which removed old commented-out
2884 version of expand-file-name). Add a comment that explains why
2885 this old version should not be removed.
2886
2887 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2888
2889 * frame.c (Fframe_parameter): Fix a bug whereby some
2890 ``artificial'' frame parameters, like `minibuffer' were not
2891 obtained by calling Fframe_parameters.
2892
2893 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2894 cursor differently.
2895
2896 * xdisp.c (move_it_vertically_backward): Compute line height
2897 differently. Add heuristic to try to be more compatible to 20.x.
2898
2899 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2900
2901 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2902
2903 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2904 boolean.
2905
2906 2001-10-25 Miles Bader <miles@gnu.org>
2907
2908 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2909 BG is a pointer to a structure, not a structure.
2910 (gif_format, png_format): Add missing commas.
2911
2912 2001-10-24 Richard M. Stallman <rms@gnu.org>
2913
2914 * xfaces.c (Fface_attributes_as_vector): New function.
2915 (syms_of_xfaces): Defsubr it.
2916
2917 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2918
2919 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2920 variable `area'.
2921
2922 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2923
2924 * search.c (scan_newline): Remove unused variable `selective_display'.
2925
2926 2001-10-25 Miles Bader <miles@gnu.org>
2927
2928 * dispextern.h (struct image): Add `background',
2929 `background_valid', and `background_transparent' fields.
2930 (image_background, image_background_transparent): New declarations.
2931 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2932 * xfns.c (image_background, image_background_transparent)
2933 (four_corners_best): New functions.
2934 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2935 (gs_format): Add `:background' entry.
2936 (lookup_image): Set IMG's background color if specified.
2937 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2938 when appropriate.
2939 (x_clear_image_1): Reset `background_valid' and
2940 `background_transparent_valid' fields.
2941 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2942 calculating it here. Set IMG's background_transparent field.
2943 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2944 (enum png_keyword_index): Add PNG_BACKGROUND.
2945 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2946 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2947 (enum gif_keyword_index): Add GIF_BACKGROUND.
2948 (enum gs_keyword_index): Add GS_BACKGROUND.
2949 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2950 Pre-calculate image background color where necessary.
2951 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2952 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2953 color to use for image glyph reliefs.
2954
2955 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2956
2957 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2958 in full-width rows.
2959
2960 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2961 Fix clearing of area not covered by scroll bar.
2962
2963 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2964
2965 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2966 and `real_start'.
2967 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2968 (glyph_rect): Remove unused variable `area'.
2969
2970 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2971
2972 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2973
2974 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2975 (row_containing_pos): Take additional argument DY.
2976 Treat rows ending in middle of char differently.
2977 (display_line): Handle tabs on window systems differently.
2978
2979 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2980 with additional argument.
2981
2982 * dispextern.h (row_containing_pos): Adjust prototype.
2983
2984 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2985 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2986 (try_window_id, try_window_reusing_current_matrix)
2987 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2988 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2989
2990 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2991
2992 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2993 gnuemacs).
2994 (HAVE_BOXES): Fix typo in comment.
2995 (push_menu_pane): Fix typo in comment.
2996
2997 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2998 of `Qwhen'.
2999 (single_display_prop_string_p): Remove unused local declarations
3000 of `Qwhen' and `Qmargin'.
3001 (string_buffer_position): Remove unused variable `around'.
3002 (store_frame_title): Remove unused variable `width'.
3003
3004 * window.c: Don't define max.
3005 (coordinates_in_window): Remove unused variable `uy'.
3006
3007 * widget.c: Don't define max.
3008
3009 * process.c: Don't define max.
3010 (create_process): Remove unused variable `buffer'.
3011
3012 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3013
3014 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
3015
3016 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3017
3018 * xfaces.c (Finternal_set_lisp_face_attribute)
3019 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3020 frame is on a windowed display.
3021
3022 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3023
3024 * dispnew.c (sync_window_with_frame_matrix_rows):
3025 Fix handling of windows which aren't full-width, fix handling
3026 of marginal areas.
3027
3028 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
3029
3030 2001-10-23 Andreas Schwab <schwab@suse.de>
3031
3032 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3033 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3034
3035 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3036
3037 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
3038 REAL_END. Notice if cursor gets overwritten.
3039 (notice_overwritten_cursor): Take X positions as parameters.
3040 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3041 around call to x_draw_glyphs.
3042
3043 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3044
3045 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3046 instead of C) and usage.
3047
3048 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3049 of C) and usage.
3050
3051 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3052 `left', `max_width' and `max_height'.
3053
3054 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3055
3056 * xdisp.c (display_line): For a tab continued to the next line,
3057 set row's ends_in_middle_of_char_p.
3058
3059 2001-10-22 Gerd Moellmann <gerd@gnu.org>
3060
3061 * xdisp.c (display_line): Fix computation of continuation lines
3062 width for TABs.
3063
3064 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3065
3066 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3067 `Qlaplace'.
3068
3069 * fileio.c: Remove unused code.
3070
3071 2001-10-22 Miles Bader <miles@gnu.org>
3072
3073 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3074 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3075 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3076
3077 2001-10-21 Jason Rumney <jasonr@gnu.org>
3078
3079 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3080
3081 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3082
3083 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3084 (Finsert_string): Avoid the multi-line string literals warning.
3085
3086 2001-10-22 Miles Bader <miles@gnu.org>
3087
3088 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3089 (Fdocumentation): Don't use it.
3090 (syms_of_doc): Don't initialize it.
3091
3092 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3093 * print.c (Fwith_output_to_temp_buffer): Likewise.
3094 * window.c (Fsave_window_excursion): Likewise.
3095 * editfns.c (Fsave_excursion, Fsave_current_buffer)
3096 (Fsave_restriction): Likewise.
3097 * eval.c (Frun_hooks, Frun_hook_with_args)
3098 (Frun_hook_with_args_until_failure)
3099 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3100 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3101 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
3102 (Funwind_protect, Fcondition_case): Likewise.
3103 * coding.c (Ffind_operation_coding_system): Likewise.
3104 * keyboard.c (Ftrack_mouse): Likewise.
3105
3106 2001-10-21 Miles Bader <miles@gnu.org>
3107
3108 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
3109 (Fmake_hash_table): Add usage: string to doc string.
3110 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
3111 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
3112 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3113 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3114 (Fml_prefix_argument_loop): Likewise.
3115
3116 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3117
3118 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
3119
3120 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3121 style' [w/`doc:' keyword].
3122
3123 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3124 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3125 comments to `new style' [w/`doc:' keyword].
3126
3127 2001-10-21 Jason Rumney <jasonr@gnu.org>
3128
3129 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3130
3131 * w32term.c (remember_mouse_glyph): New function.
3132 (w32_mouse_position): Use it.
3133 (note_mouse_movement): If the mouse moved off the glyph, remember
3134 its new position.
3135
3136 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3137 (w32_display_info): Add mouse_face_overlay.
3138
3139 * w32term.c (notice_overwritten_cursor): Renamed from
3140 note_overwritten_text_cursor. Rewritten to take glyph widths into
3141 account.
3142 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3143 (fast_find_string_pos): New function.
3144 (fast_find_position): Return the correct vpos. Add parameter
3145 STOP. In the final row, stop before glyphs having STOP as object.
3146 Don't consider glyphs that are not from a buffer.
3147 (fast_find_position) [0]: Add a presumably more correct version
3148 for after 21.1.
3149 (expose_window_tree, expose_frame): Don't compute intersections here.
3150 (expose_window): Do it here instead.
3151 (expose_window_tree, expose_window, expose_line): Return 1 when
3152 overwriting mouse-face.
3153 (expose_window): If W is the window currently being updated, mark
3154 the frame garbaged.
3155 (expose_frame): If mouse-face was overwritten, redo it.
3156 (x_use_underline_position_properties): New variable.
3157 (syms_of_xterm): DEFVAR_BOOL it.
3158 (x_draw_glyph_string): Add comment to use it in future.
3159 (x_draw_glyph_string): Restore clipping after drawing box.
3160 Fix a computation of the underline position.
3161 (w32_get_glyph_string_clip_rect): Minor cleanup.
3162 (x_fill_stretch_glyph_string): Remove an assertion.
3163 (x_produce_glyphs): Don't convert multibyte characters
3164 to unibyte characters in unibyte buffers.
3165 (cursor_in_mouse_face_p): New function.
3166 (x_draw_stretch_glyph_string): Use it to choose a different GC
3167 when drawing a cursor within highlighted text. Don't draw
3168 background again if it has already been drawn.
3169 (x_draw_glyph_string_box): Don't draw a full-width
3170 box just because the glyph row's full_width_p flag is set.
3171 (x_draw_glyphs): Fix computation of rightmost x for
3172 full-width rows.
3173 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3174 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3175 change bottom shadow accordingly. Some cleanup.
3176 (x_update_window_end): Handle overwritten mouse face
3177 also for tool bar windows.
3178 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3179 DRAW is DRAW_IMAGE_RAISED.
3180 (clear_mouse_face): Return 1 if text with mouse face was
3181 actually redrawn. Make the function static. Reset
3182 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3183 optimize away highlighting if we pass over that same overlay again.
3184 (note_mouse_highlight): Call mouse_face_overlay_overlaps
3185 to detect a case where we have to highlight a different region
3186 despite not having left the currently highlighted region.
3187 Set mouse_face_overlay in the x_display_info. Avoid changing the
3188 mouse pointer shape when show_mouse_face has already done it, or
3189 there is no need. Handle mouse-face and help-echo in strings.
3190 (glyph_rect): New function.
3191 (w32_mouse_position): Use it to raise the threshold for mouse
3192 movement event generation.
3193 (w32_initialize_display_info): Initialize the x_display_info's
3194 mouse_face_overlay.
3195 (w32_set_vertical_scroll_bar): Don't clear a zero height
3196 or width area.
3197 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3198 a widget to zero height.
3199
3200 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
3201 Protect unibyte strings created by replacing their multibyte
3202 equivalents in menu_items.
3203 (w32_menu_show): Don't overwrite an item's name with its key
3204 description in case the description is a multibyte string.
3205 (single_submenu): Some cleanup.
3206
3207 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3208 (postprocess_image): New function.
3209 (lookup_image): Call it for all image types except PostScript.
3210 (x_kill_gs_process): Call postprocess_image.
3211 (tiff_error_handler, tiff_warning_handler): New functions.
3212 (tiff_load): Install them as handlers.
3213 (x_kill_gs_process): Recognize if someone has cleared the image
3214 cache under us.
3215 (valid_image_p): Protect better against invalid image
3216 specifications. Previous code could signal an error.
3217 (Fx_hide_tip, Fshow_tip): Doc fix.
3218 (Fv_max_tooltip_size): New variable.
3219 (syns_of_xfns): DEFVAR_LISP it.
3220 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
3221 window buffer to *tip* right after creating the frame. Set frame's
3222 window_width. Use a maximum tooltip size specified by
3223 Vx_max_tooltip_size, if that has valid contents.
3224 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3225 Make sure the tooltip is completely visible.
3226 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3227 (Fx_create_frame): Adjust the frame's height for presence
3228 of the tool bar before calling x_figure_window_size.
3229 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3230 when the window gets smaller.
3231 (x_set_foreground_color): Set frame's cursor_pixel.
3232 (x_set_foreground_color, x_set_background_color): Cleaned up.
3233 (x_set_font): Handle case of x_new_fontset returning the same name
3234 as before, although there was a change in fontsets.
3235
3236 2001-10-21 Miles Bader <miles@gnu.org>
3237
3238 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
3239 (Flogxor): Add usage: string to doc string.
3240 * charset.c (Fstring): Likewise.
3241 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3242 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3243
3244 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3245
3246 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3247
3248 * alloc.c: Reindent DEFUNs with doc: keywords.
3249
3250 * abbrev.c (Finsert_abbrev_table_description): Reindent.
3251
3252 * frame.c: Change doc-string comments to `new style' [w/`doc:'
3253 keyword].
3254
3255 See ChangeLog.9 for earlier changes.
3256
3257 ;; Local Variables:
3258 ;; coding: iso-2022-7bit
3259 ;; End:
3260
3261 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
3262 Copying and distribution of this file, with or without modification,
3263 are permitted provided the copyright notice and this notice are preserved.