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