(Fbyte_code): Undo previous change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
749f499f
RS
12001-12-27 Richard M. Stallman <rms@gnu.org>
2
3 * bytecode.c (Fbyte_code): Undo previous change.
4
b5d9aaba
KS
52001-12-26 Kim F. Storm <storm@cua.dk>
6
7 * keyboard.c (record_char): Ignore duplicate help-echo events only
8 separated by mouse-movement. When tracking mouse, only record
9 first and last mouse-movement event in same window.
10 Don't record mouse-movement events in keyboard macros.
11
d0fd26dd
RS
122001-12-25 Richard M. Stallman <rms@gnu.org>
13
b4c45162
RS
14 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
15 (Fenlarge_window): New arg PRESERVE_BEFORE.
16
d0fd26dd
RS
17 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
18 instead of Fstring_as_unibyte.
19
c95eaa61
PJ
202001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
21
22 The following changes remove mocklisp support:
23
24 * mocklisp.h, mocklisp.c: Files removed.
25
26 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
27 `Qmocklisp' and `Qmocklisp_arguments'.
28 Remove prototype of syms_of_mocklisp.
29
30 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp
31 files.
32
33 * callint.c: Do not include mocklisp.h.
34 (Fcall_interactively): Do not test for mocklisp case.
35
36 * eval.c: Remove variables `Qmocklisp_arguments',
37 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of
38 ml_apply.
39 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda): Do
40 not test for mocklisp case.
41 (Fwhile): Remove unused variable `tem'.
42 (syms_of_eval): Remove variable `moclisp-arguments'.
43
44 * data.c (wrong_type_argument): Remove mocklisp case.
45
46 * doc.c (Fdocumentation): Remove mocklisp case.
47
48 * emacs.c (main): Do not call syms_of_mocklisp.
49
31877e0a
RS
502001-12-21 Richard M. Stallman <rms@gnu.org>
51
52 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
53 to the left or to the right of the pointer, put it against
54 the left screen edge.
55
e2c3786a
EZ
562001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
57
58 * Makefile.in (distclean): Remove .gdbinit if we are building
59 outside the source tree.
60
c513fc03
EZ
612001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
62
bf794306
EZ
63 * w32.c (emacs_root_dir): New function.
64
65 * msdos.c (emacs_root_dir): New function.
66
67 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
68 of the current drive as the fallback for default_directory.
69
62582985
EZ
70 * dired.c (file_name_completion): Run the elements of
71 completion-ignored-extensions through ENCODE_FILE.
72
c513fc03
EZ
73 * lisp.h (scmp): Remove prototype, since it's now a static
74 function private to dired.c.
75
3509a04c
RS
762001-12-18 Richard M. Stallman <rms@gnu.org>
77
78 * dired.c (scmp): Function moved from minibuf.c.
79 Delete multibyte handling--used only on encoded strings.
80
81 * minibuf.c (scmp): Function moved to dired.c.
82
83 * fns.c (merge): Add QUIT call.
84
1e9a6186
DL
852001-12-18 Dave Love <fx@gnu.org>
86
87 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
88 language/georgian.el.
89
e4e34e31
EZ
902001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
91
92 * Makefile.in (lisp, shortlisp): Synchronize with changes to
93 lisp/Makefile.in:DONTCOMPILE.
94
4521d1fc
PJ
952001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
96
7c75be36
PJ
97 * xdisp.c (window_box_height): Do not return negative values.
98 From Gerd Moellmann <gerd@gnu.org>.
99
4521d1fc
PJ
100 * keyboard.c (head_table): Add missing braces around initializer.
101
102 * term.c (keys): Likewise.
103
104 * xfns.c (x_frame_parms, visual_classes): Likewise.
105
93dec019
SS
1062001-12-17 Sam Steingold <sds@gnu.org>
107
108 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
109 patch (COMPOSING_P, not COMPOSING).
110
905cc05a
RS
1112001-12-17 Richard M. Stallman <rms@gnu.org>
112
2ed06289
RS
113 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
114
0e79d667
RS
115 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
116 before calling decode_coding.
117
118 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
119
120 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
121 instead of only for COMPOSITION_DISABLED.
122
82a7ab23
RS
1232001-12-16 Richard M. Stallman <rms@gnu.org>
124
d75bec6a
RS
125 * alloc.c (pure_alloc): After overflow, allocate just a small block.
126
52dcb476
RS
127 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
128
82a7ab23
RS
129 * buffer.h (struct buffer): New field `display_error_modiff'.
130 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
131
132 * window.c (Frecenter): Clear display_error_modiff field.
133
134 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
135 Call redisplay_window, but not if display_error_modiff field says no.
136 (redisplay_window_error): New function.
137 (displayed_buffer): New variable.
138 (redisplay_internal, redisplay_windows): Call the new functions
139 instead of redisplay_window directly.
140
4d0fa4f3
RS
1412001-12-15 Richard M. Stallman <rms@gnu.org>
142
143 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
144
493faf20
AI
1452001-12-14 Andrew Innes <andrewi@gnu.org>
146
325111e9
AI
147 * makefile.w32-in (EMACSLOADPATH): Define.
148 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
149 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 150
4971e491
EZ
1512001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
152
397b3b50 153 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
154 parameter have a numeric value all the time.
155
156 * w32fns.c (x_report_frame_params): Likewise.
157
d911a0fa
RS
1582001-12-12 Richard M. Stallman <rms@gnu.org>
159
160 * fileio.c (Fwrite_region): Doc fix.
161
162 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
163 (redisplay_internal): Call clear_image_cache only for window terminals.
164
201c831a
GM
1652001-12-12 Gerd Moellmann <gerd@gnu.org>
166
167 * xdisp.c (move_it_vertically_backward): Change heuristic
168 for the case that we didn't move far enough initially.
169
170 * window.c (Frecenter): Simplify computation in the case of window
171 system frames and ARG < 0; use window_box_height.
172
34e39c95
RS
1732001-12-11 Richard M. Stallman <rms@gnu.org>
174
175 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
176 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
177
d77fbc16
AI
1782001-12-11 Andrew Innes <andrewi@gnu.org>
179
180 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
181 arg is negative.
182
61e3b944
RS
1832001-12-11 Richard M. Stallman <rms@gnu.org>
184
185 * m/hp800.h: Split the __hpux conditional into the parts
186 that are right for GNU/Linux too and the parts that are not.
187 Use the former if GNU_LINUX.
188 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
189
190 * s/gnu-linux.h (GNU_LINUX): Defined.
191
70da46c3
PJ
1922001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
193
194 * macros.c, msdos.c, w16select.c: Change doc-string comments to
195 `new style' [w/`doc:' keyword].
196
8af01033
JR
1972001-12-10 Jason Rumney <jasonr@gnu.org>
198
199 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
200 before using.
201
7363986a
PJ
2022001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
203
204 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
205 keyword].
206
d9e6c4b1
EZ
2072001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
208
d20fc48a
EZ
209 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
210
d9e6c4b1
EZ
211 * s/hpux10.h (srand48): Don't undefine.
212
f1a85b89
JR
2132001-12-09 Jason Rumney <jasonr@gnu.org>
214
215 * w32menu.c (_widget_value): Make `help' field a Lisp_Object. Add
216 comment to explain where the struct came from.
217 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
218 (add_menu_item): Process pop-up menus first to avoid memory leak.
219 (add_menu_item, w32_menu_display_help): Use `help' field as
220 Lisp_Object.
221 (w32_free_submenu_strings): Only free owner-drawn strings.
222
3a62677f
PJ
2232001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
224
72244db2
PJ
225 * COPYING: Moved back.
226
3a62677f
PJ
227 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
228 Add parentheses around && within ||.
229
230 * indent.c (compute_motion): Likewise.
231
232 * intervals.c (merge_properties_sticky): Likewise.
233
234 * coding.c (setup_coding_system, shrink_encoding_region)
235 (Fdecode_sjis_char): Likewise.
236
9d113d9d
AS
2372001-12-07 Andreas Schwab <schwab@suse.de>
238
b8523839
AS
239 * xdisp.c (display_mode_element): Don't read past end of string if
240 it ends with '%'.
241
9464dea4
AS
242 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
243 can hold.
244
9d113d9d
AS
245 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Renamed
246 from most_positive_fixnum and most_negative_fixnum, resp., and
247 type changed to Lisp_Object.
248 (syms_of_data): DEFVAR_LISP them.
249
70ec1377
RS
2502001-12-07 Richard M. Stallman <rms@gnu.org>
251
252 * callproc.c (init_callproc): Set Vdata_directory based on the source
253 location whenever Emacs was run uninstalled.
254
92f7dd37
PE
2552001-12-06 Paul Eggert <eggert@twinsun.com>
256
257 * config.in (HAVE_WORKING_VFORK): New #undefs.
258 * process.c (create_process):
259 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
260 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
261 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
262 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
263 * m/intel386.h (HAVE_VFORK): Likewise.
264 * m/mips-siemens.h (HAVE_VFORK): Likewise.
265 * m/mips.h (HAVE_VFORK): Likewise.
266 * s/freebsd.h (vfork): Remove #define.
267 * s/lynxos.h (HAVE_VFORK): Remove #undef.
268 * s/usg5-4-2.h: Fix comment about vfork.
269
c93674bb
RS
2702001-12-06 Richard M. Stallman <rms@gnu.org>
271
272 * s/hpux10.h (random): Add undef.
273 (HAVE_RANDOM): Define it just once.
274
59b59892
SM
2752001-12-06 Stefan Monnier <monnier@cs.yale.edu>
276
277 * eval.c: Undo last change: the standard syntax is not wanted.
278
c6ea2775
EZ
2792001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
280
281 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
282 scroll bars of the frame before deleting the frame itself. If the
283 frame has a widget, delete the frame with XtDestroyWidget, and do
284 not call XDestroyWindow before that.
285
91175673
KS
2862001-12-06 Kim F. Storm <storm@cua.dk>
287
288 * xfns.c (x_report_frame_params): Return actual fringe widths.
289
290 * w32fns.c (x_report_frame_params): Return actual fringe widths.
291
e0fead5d
AI
2922001-12-05 Andrew Innes <andrewi@gnu.org>
293
294 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
295 excessively large.
296
297 * insdel.c (make_gap_larger): New function.
298 (make_gap_smaller): New function.
299 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
300 make_gap_smaller if arg is negative.
301
c186cdb3
SM
3022001-12-04 Stefan Monnier <monnier@cs.yale.edu>
303
304 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
305 Pass a dummy argument when calling interrupt_signal.
306 (parse_menu_item): Mark disabled items before checking for empty def.
307 (read_char_minibuf_menu_prompt): Make safety more visible.
308 (read_key_sequence): Add a `first_unbound' variable.
309 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
310 unbound prefix as soon as we can detect it.
311
312 * doc.c (Fsnarf_documentation): Add prototype.
313 (get_doc_string): Handle negative arguments.
314 (Fdocumentation): Use AREF and ASIZE.
315 Move the calls to get_doc_string to a single place.
316 Don't confuse an interactive-spec for a docstring reference.
317 (Fdocumentation_property): Take advantage of the fact that
318 get_doc_string now ignores the sign of the docstring position.
319
320 * eval.c: Use standard syntax for usage in docstrings.
321
58cfce98
PJ
3222001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
323
c186cdb3 324 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 325
62854fe2
PJ
3262001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
327
328 * xterm.c (x_draw_image_relief): Use predefined macro instead of
329 constant when the value of `tool_bar_button_relief' is negative.
330
656f46bb
RS
3312001-12-02 Richard M. Stallman <rms@gnu.org>
332
333 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
334 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
335
336 * fileio.c (read_non_regular): Delete Fsignal call.
337
036e218d
SM
3382001-12-01 Stefan Monnier <monnier@cs.yale.edu>
339
340 * lisp.h (run_hook_list_with_args): Undo last change.
341
7ddb2c16
GM
3422001-12-01 Gerd Moellmann <gerd@gnu.org>
343
344 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
345
ace9b298
JR
3462001-12-01 Jason Rumney <jasonr@gnu.org>
347
90647b07
JR
348 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
349
350 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
351 [!WM_MOUSELEAVE]: Define.
352
ace9b298
JR
353 * w32menu.c (current_popup_menu, get_menu_item_info):
354 (set_menu_item_info): New vars.
355 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
356 (w32_menu_show): Set current_popup_menu.
357 (add_menu_item): Allocate new strings for owner-drawn menu items
358 and help strings.
359 Use owner-draw for disabled menu items again.
360 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
361 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
362
363 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
364 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
365 <WM_EXITMENULOOP>: Free menu strings.
366 <WM_MOUSELEAVE>: Stop tracking mouse.
367 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
368
369 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
370 and mouse face.
371
a9549909 3722001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
373
374 The following changes add left-fringe and right-fringe
375 frame parameters to adjust fringe widths, or remove one or
376 both fringes.
036e218d 377
9fbc32aa
KS
378 * frame.h (struct frame): Remove trunc_area_pixel_width and
379 trunc_area_cols fields.
380 (Qleft_fringe, Qright_fringe): Declare.
381 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
382
383 * frame.c (Qleft_fringe, Qright_fringe): New vars.
384 (syms_of_frame): Initialize them.
385
386 * window.c (coordinates_in_window): Handle separate left and right
387 fringe widths.
388
389 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
390 and fringe_cols fields.
391 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
392 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
393 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
394 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
395 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
396 (x_compute_fringe_widths): Add prototype.
397
398 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
399 fill fringe evenly with small dashes.
400 (x_draw_fringe_bitmap): Clear background if necessary. Align and
401 clip the new ZV bitmap to avoid jitter between rows.
402 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
403 background. Don't draw fringe bitmaps if fringe width is zero.
404 (x_compute_fringe_widths): New function.
405 (x_new_font, x_set_window_size_1): Use it.
406
407 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
408 (x_set_frame_parameters): Process Process `font' parameter before other
409 parameters as fringe widths depend on it.
410 (x_set_fringe_width): New function.
411 (x_figure_window_size): Use x_compute_fringe_widths.
412 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
413 parameters.
414
415 * widget.c (set_frame_size): Use x_compute_fringe_widths.
416 (EmacsFrameSetCharSize): Ditto.
417
418 * w32term.h: Merged changes from xterm.h.
419 * w32term.c: Merged changes from xterm.c.
420 * w32fns.c: Merged changes from xfns.c.
421
0142178a
PJ
4222001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
423
424 * COPYING: Removed.
425
d4824a5d
DL
4262001-11-29 Dave Love <fx@gnu.org>
427
428 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
429 extra extra slot.
430 (detect_coding_mask): Fix call of detect_coding_iso2022.
431
b1356234
PJ
4322001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
433
434 * fileio.c (file-name-coding-system)
435 (default-file-name-coding-system): Doc fix (links to referenced
436 variables added).
437
3ce081f5
SM
4382001-11-28 Stefan Monnier <monnier@cs.yale.edu>
439
99e380ee
SM
440 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
441 Add dummy uses of gcproN variables.
442
3ce081f5 443 * category.c (describe_category, describe_category_1)
2ad56c09 444 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
445 (syms_of_category): Don't defsubr Sdescribe_categories.
446
66458f32
RS
4472001-11-28 Richard M. Stallman <rms@gnu.org>
448
449 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
450
451 * Makefile.in (lispdir): New variable, referring to build dir.
452 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
453
59a86c99
AI
4542001-11-28 Andrew Innes <andrewi@gnu.org>
455
456 * w32menu.c (w32_menu_display_help): Actually add the new argument
457 OWNER.
458
eb77a5f4
JR
4592001-11-28 Jason Rumney <jasonr@gnu.org>
460
461 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
462 menu items. From David Ponce <dponce@wanadoo.fr>.
463 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
464 conditionally.
465 (w32_menu_display_help): New argument OWNER. Rewritten to store a
466 help event in the owner frame's keyboard buffer.
467
468 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
469 (Fx_show_tip): Don't subtract last width from row width.
470
471 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
472 (w32_read_socket): Use EQ to compare frames.
473
bb313871
GM
4742001-11-28 Gerd Moellmann <gerd@gnu.org>
475
476 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
477 OVERLAPS_P.
478
55b43a63
PJ
4792001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
480
6052529b
PJ
481 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
482 `gcpro3' and `gcpro4'.
483
3ce081f5
SM
484 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
485
4862001-11-28 Stefan Monnier <monnier@cs.yale.edu>
487
488 * ccl.c: Use AREF and ASIZE.
489
4902001-11-27 Stefan Monnier <monnier@cs.yale.edu>
491
492 * lisp.h (run_hook_list_with_args): Remove.
493 (LIST_END_P): Fix call to wrong_type_argument.
494 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 495
111ed14e
SM
4962001-11-26 Stefan Monnier <monnier@cs.yale.edu>
497
9fabb2f5
SM
498 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
499 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
500
501 * eval.c: Use AREF and ASIZE.
502 (Ffetch_bytecode): Add the file name to the error message.
503
504 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
505 which match the end of the file-name.
506 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
507 is not a valid env var, but leave it as is instead.
508
111ed14e
SM
509 * keymap.c (access_keymap): Handle t bindings like nil bindings.
510 Make nil bindings in char-tables transparent.
511 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
512
2fa0eedf
RS
5132001-11-26 Richard M. Stallman <rms@gnu.org>
514
d1420435
RS
515 * textprop.c (set_text_properties_1): Allow START, END in either order.
516 Do nothing if range is empty.
517
2fa0eedf
RS
518 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
519
ebcbef4e
RS
520 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
521 (clean): Not here.
522
5c131048
SM
5232001-11-25 Stefan Monnier <monnier@cs.yale.edu>
524
525 * textprop.c (set_text_properties_1): Clearly mark that the
526 interval should not be empty.
527
528 * intervals.c (graft_intervals_into_buffer):
529 Don't call set_text_properties_1 on an empty interval.
530
96d276c3
RS
5312001-11-25 Richard M. Stallman <rms@gnu.org>
532
6108b49c
RS
533 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
534
96d276c3
RS
535 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
536 don't lose the data in it.
537
5eea19a4
RS
5382001-11-25 Juanma Barranquero <lektu@terra.es>
539
540 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
541
542 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
543
544 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
545
438e57dd
SM
5462001-11-25 Stefan Monnier <monnier@cs.yale.edu>
547
548 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
549
c88e5347
EZ
5502001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
551
552 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
553 Niemitalo <kon@iki.fi>.
554
59ce1461
JR
5552001-11-25 Jason Rumney <jasonr@gnu.org>
556
557 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
558
559 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
560 (Fx_show_tip): Block input during frame creation.
561 (Fx_show_tip, Fx_hide_tip): Enable.
562
8727d588
RS
5632001-11-24 Richard M. Stallman <rms@gnu.org>
564
565 * lread.c (Fload): Detect recursive load error for more than 3
566 nestings of the same file.
567 (Vrecursive_load_depth_limit): Variable deleted.
568 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
569
cc63037e
JR
5702001-11-24 Jason Rumney <jasonr@gnu.org>
571
572 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
573 mouse position if either left or top is not specified.
574
575 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
576 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
577 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
578 (my_create_tip_window): Assign tip_window.
579 (x_create_tip_frame): Use same defaults as X.
580 (compute_tip_xy): Remove unused variable. Use full screen width.
581 (Fx_show_tip): Do not double height. Call ShowWindow directly.
582
583 * w32term.c (x_after_update_window_line): Doc fix.
584 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
585 frames.
586 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
587
588 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
589 for all Windowed systems.
590
deece6f5
EZ
5912001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
592
593 * msdos.c (IT_clear_screen): If the frame's faces are not yet
594 realized, use the initial screen colors to clear the screen.
595
1b944d9c
PJ
5962001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
597
28ff4293
PJ
598 * textprop.c (Fset_text_properties): Remove unused variables
599 `unchanged', `prev_changed', `s' and `len'.
600
56167cc5
PJ
601 * search.c (Freplace_match): Remove unused variable `inslen'.
602
1b944d9c
PJ
603 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
604
ca56d953
JR
6052001-11-22 Jason Rumney <jasonr@gnu.org>
606
607 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
608 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
609 (my_create_tip_window): New function.
610 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 611 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 612
33399dce
JR
6132001-11-20 Jason Rumney <jasonr@gnu.org>
614
615 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
616 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
617
618 * w32fns.c (Vw32_system_coding_system): Remove.
619 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
620
9b46de40
SM
6212001-11-19 Stefan Monnier <monnier@cs.yale.edu>
622
6710ea06
SM
623 * fileio.c (Fwrite_region): Move choose_write_coding_system to
624 after build_annotations.
625
a395ef6a
SM
626 * syntax.c (describe_syntax): Add dummy arg.
627 (describe_syntax_1): Update call to describe_vector.
628
629 * category.c (describe_category): Add dummy arg.
630 (describe_category_1): Update call to describe_vector.
631
632 * keymap.c (Fdescribe_vector): Add `describer' parameter.
633 (describe_command, describe_translation): Add dummy second param.
634 (describe_map): Call elt_describer with two arguments.
635 (describe_vector_princ): Add `fun' parameter.
636 Call it instead of the hardcoded `princ'.
637 (describe_vector): Add arg `args'.
638 Pass it as a new second argument to elt_describer.
639
640 * keymap.h (describe_vector): Update prototype.
641
9b46de40
SM
642 * frame.c: Don't include keymap.h any more.
643 (keys_of_frame): Remove.
644
645 * lisp.h (keys_of_frame): Remove declaration.
646
647 * emacs.c (main): Don't call `keys_of_frame' any more.
648
aff37336
SS
6492001-11-14 Andreas Schwab <schwab@suse.de>
650
651 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
652 if defined, 0 otherwise.
9b46de40 653 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
654 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
655
b9937f07
RS
6562001-11-19 Richard M. Stallman <rms@gnu.org>
657
658 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
659
2cd23960
JR
6602001-11-18 Jason Rumney <jasonr@gnu.org>
661
662 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
663 (x_draw_bar_cursor): If the background color of the glyph under
664 the cursor equals the frame's cursor color, use the glyph's
665 foreground color for drawing the bar cursor.
666 (x_after_update_window_line): Clear internal border in different
667 circumstances.
668 (w32_set_vertical_scroll_bar): Check for width and height > 0.
669 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
670 (x_set_glyph_string_background_width):
671 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
672 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
673 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
674 if cursor_in_non_selected_windows is false.
9b46de40 675 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
676 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
677 Notice if cursor gets overwritten.
678 (notice_overwritten_cursor): Renamed from
679 note_overwritten_text_cursor. Rewritten to take glyph widths
680 into account, and to take X positions as parameters.
681 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
682 around call to x_draw_glyphs.
683 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
684 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
685 color to use for image glyph reliefs.
686 (x_draw_image_relief): Accept zero tool_bar_button_relief.
687 (glyph_rect): Remove unused variable `area'.
688
689 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
690 some items.
691 (x_set_internal_border_width): Set frame garbaged when window
692 doesn't exist yet.
693 (Fx_create_frame): Accept zero tool_bar_button_relief.
694 (x_clear_image_1, four_corners_best, image_background)
695 (image_background_transparent): New functions.
696 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
697 (gs_format): Add `:background' entry.
698 (lookup_image): Set IMG's background color if specified.
699 (pbm_load, xbm_load_image, png_load): Set IMG's background field
700 when appropriate.
701 (x_clear_image_1): Reset `background_valid' and
702 `background_transparent_valid' fields.
703 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
704 calculating it here. Set IMG's background_transparent field.
705 (enum xpm_keyword_index): Add XPM_BACKGROUND.
706 (enum png_keyword_index): Add PNG_BACKGROUND.
707 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
708 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
709 (enum gif_keyword_index): Add GIF_BACKGROUND.
710 (enum gs_keyword_index): Add GS_BACKGROUND.
711 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
712 Pre-calculate image background color where necessary.
9b46de40
SM
713 (x_create_x_image_and_pixmap, xbm_load, gs_load):
714 Use display info's n_cbits entry for screen depth.
2cd23960
JR
715 (Fx_show_tip): Remove unused variables `buffer', `top',
716 `left', `max_width' and `max_height'.
717
718 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
719
a4184c1c
GM
7202001-11-18 Gerd Moellmann <gerd@gnu.org>
721
722 * puresize.h (BASE_PURESIZE): Increase to 750000.
723
f6fa0866
PJ
7242001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
725
726 * frame.c (Fframe_live_p): Doc fix.
727
f4ca4b00
RS
7282001-11-18 Richard M. Stallman <rms@gnu.org>
729
730 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
731 (message_dolog_marker3): New static variables hold three markers.
732 (syms_of_xdisp): Initialize and staticpro them.
733 (message_dolog): Use message_dolog_marker1..3 instead of
734 allocating markers each time. Unchain them when done.
735
f4e25f94
RS
7362001-11-17 Richard M. Stallman <rms@gnu.org>
737
738 * doc.c (Fsnarf_documentation): Doc fix.
739
91c153e2
AS
7402001-11-17 Andreas Schwab <schwab@suse.de>
741
742 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
743
65b7d3e7
RS
7442001-11-17 Richard M. Stallman <rms@gnu.org>
745
746 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
747
6b5f6311
JR
7482001-11-17 Jason Rumney <jasonr@gnu.org>
749
750 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
751
be676094
GM
7522001-11-17 Gerd Moellmann <gerd@gnu.org>
753
754 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
755 with invalid position.
756
032a857d
RS
7572001-11-16 Richard M. Stallman <rms@gnu.org>
758
759 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
760
761 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
762 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
763 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
764
765 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
766
b6270150
SM
7672001-11-16 Stefan Monnier <monnier@cs.yale.edu>
768
769 * fileio.c (build_annotations): Split off the tail.
770 (build_annotations_2): New fun. Extracted from build_annotations.
771 (Fwrite_region): Split the call to build_annotations into two
772 calls to build_annotations and build_annotations_2.
773
792e5cbd
PJ
7742001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
775
98cbb9fa
PJ
776 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
777 clear_waiting_for_input with argument.
778
779 * xterm.h (x_update_cursor): Remove duplicated prototype.
780
b6270150 781 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 782
ea904403 783 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 784
ea904403 785 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 786
fa336b91
SM
7872001-11-16 Stefan Monnier <monnier@cs.yale.edu>
788
789 * fileio.c (choose_write_coding_system): New fun, extracted
790 from Fwrite_region.
791 (Fwrite_region): Use it.
792
793 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
794 (funcall_lambda, run_hook_with_args): Make static and add prototype.
795 (ml_apply, find_handler_clause): Add prototype.
796
077907d4
EZ
7972001-11-16 Eli Zaretskii <eliz@gnu.org>
798
aa2af83a
EZ
799 * config.in: Add #undef HAVE_COFF_H.
800
077907d4
EZ
801 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
802 Required for ISC 4.1.
803
1756e2fb
EZ
8042001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
805
806 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
807 Andrew Wiseman <a.wiseman@btclick.com>.
808
06e8f738
KS
8092001-11-16 Kim F. Storm <storm@cua.dk>
810
811 The following changes are made to clean up the various internal
812 references to the fringes to actually use the term `fringe' for
813 them. Previously, they were called `flags areas', `bitmap areas',
814 `left/right side of windows', or implicitly as `flags' or
815 `bitmaps':
816
817 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
818 Comments fixed. Use renamed symbols.
fa336b91 819
06e8f738 820 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 821
06e8f738
KS
822 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
823 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
824 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 825
06e8f738 826 * msdos.c: Comment fix.
fa336b91 827
06e8f738 828 * w32fns.c: Use renamed symbols.
fa336b91 829
06e8f738
KS
830 * w32term.c: Comment fixes. Use renamed symbols.
831 (fringe_bitmap_type): Renamed from bitmap_type.
832 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
833 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
834 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 835
06e8f738
KS
836 * w32term.h: Comment fixes. Use renamed symbols.
837 (fringes_extra): Renamed from flags_areas_extra.
838 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
839 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
840 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
841 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
842 (FRAME_X_LEFT_FRINGE_WIDTH):
843 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
844 (FRAME_X_RIGHT_FRINGE_WIDTH):
845 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
846
06e8f738 847 * widget.c: Use renamed symbols.
fa336b91 848
06e8f738
KS
849 * window.c: Comment fixes. Use renamed symbols.
850 (coordinates-in-window-p): Doc fix.
fa336b91 851
06e8f738 852 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 853
06e8f738 854 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 855
06e8f738 856 * xfns.c: Use renamed symbols.
fa336b91 857
06e8f738
KS
858 * xterm.c: Comment fixes. Use renamed symbols.
859 (fringe_bitmap_type): Renamed from bitmap_type.
860 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
861 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
862 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
863
864 * xterm.h: Comment fixes. Use renamed symbols.
865 (fringes_extra): Renamed from flags_areas_extra.
866 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
867 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
868 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
869 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
870 (FRAME_X_LEFT_FRINGE_WIDTH):
871 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
872 (FRAME_X_RIGHT_FRINGE_WIDTH):
873 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 874
9ce647f4
JR
8752001-11-15 Jason Rumney <jasonr@gnu.org>
876
877 * w32menu.c (add-menu-item): Make help_echo and radio buttons
878 work for most menu items. From David Ponce
879 <david.ponce@wanadoo.fr>.
880
9b784ab8
GM
8812001-11-15 Gerd Moellmann <gerd@gnu.org>
882
9f7e52b4
GM
883 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
884 Some x_set_* function expect to be called even if old and new
885 value are equal.
886
887 * xdisp.c (build_desired_tool_bar_string): Accept zero
888 tool_bar_button_relief.
889
890 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
891
892 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 893
34e5d0af
GM
894 * xterm.c (x_draw_bar_cursor): If the background color of the
895 glyph under the cursor equals the frame's cursor color, use
896 the glyph's foreground color for drawing the bar cursor.
897
9b784ab8
GM
898 * dispnew.c (direct_output_forward_char): Fix character/byte
899 position comparison.
900
89512fcd
MB
9012001-11-15 Miles Bader <miles@gnu.org>
902
903 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
904 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
905 Update arguments to find_field.
906 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
907 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
908 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
909 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
910
7d18891d
RS
9112001-11-14 Richard M. Stallman <rms@gnu.org>
912
d2936d21
RS
913 * editfns.c (Fpropertize): Allow call with 1 arg.
914
7d18891d
RS
915 * dispextern.h (image_background, image_background_transparent):
916 Conditionalize on HAVE_X_WINDOWS.
917
9182001-11-13 Richard M. Stallman <rms@gnu.org>
919
920 * print.c (Fprin1_to_string): Doc fix.
921
922 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
923
924 * floatfns.c (Fceiling, Ffloor): Doc fixes.
925
926 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
927
928 * fileio.c (Ffile_accessible_directory_p): Doc fix.
929
930 * eval.c (syms_of_eval): Doc fix.
931
932 * coding.c (syms_of_coding): Doc fix.
933
934 * doc.c (Fsnarf_documentation): Doc fix.
935
936 * dispnew.c (syms_of_display): Doc fix.
937
938 * category.c (Fget_unused_category): Doc fix.
939
940 * buffer.c (syms_of_buffer): Doc fixes.
941
9474c847
EZ
9422001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
943
944 * print.c (prin1, print): Doc fix.
945
e3059a5d
PJ
9462001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
947
2b6f3c2b 948 * fontset.h: Remove declarations of variables
e3059a5d
PJ
949 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
950
951 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
952 `Vclip_large_size_font'.
953
b3700ae7
JR
9542001-11-13 Jason Rumney <jasonr@gnu.org>
955
956 * w32fns.c: Doc fix.
957
eae936e2
PJ
9582001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
959
4bb962be
PJ
960 * xfaces.c (Fface_attributes_as_vector): Doc fix.
961
0a332240
PJ
962 * w32fns.c (Fx_synchronize): Reindent.
963
ddb67bdc
PJ
964 * fns.c: Doc fix.
965
3467c402
PJ
966 * emacs.c: Doc fix.
967
968 * coding.c: Doc fix.
969
6e1b91d7
PJ
970 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
971 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
972 `new style' [w/`doc:' keyword].
973
f6e34773
PJ
974 * xmenu.c (x-popup-menu): Reindent.
975 (x-popup-dialog): Likewise.
976
fa336b91 977 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 978
c2552f79
PJ
979 * xdisp.c (Fdump_tool_bar_row): Reindent.
980
94c7167b
PJ
981 * minibuf.c (Fminibuffer_complete_word): Reindent.
982 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 983 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
984 (Fminibuffer_message): Likewise.
985
462a5e3a
PJ
986 * fns.c (Freverse): Reindent.
987
b8de5714
PJ
988 * eval.c (Fif): Reindent.
989 (Fand): Likewise.
990
deb8e082
PJ
991 * editfns.c (Fuser_real_login_name): Reindent.
992 (Finsert_buffer_substring): Likewise.
993 (Fcompare_buffer_substrings): Likewise.
994 (Fsubst_char_in_region): Likewise.
995
bacf09b4
PJ
996 * dispnew.c (Fsit_for): Reindent.
997 (Fframe_or_buffer_changed_p): Likewise.
998 (Finternal_show_cursor_p): Likewise.
999 (syms_of_display): Likewise.
1000
eae936e2
PJ
1001 * alloc.c (Flist): Reindent.
1002 (Fvector): Likewise.
1003
1c1d3d69
RS
10042001-11-12 Richard M. Stallman <rms@gnu.org>
1005
1006 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1007 LeaveNotify events. Only FocusIn and FocusOut do that now.
1008 (x_display_and_set_cursor): Do display hollow cursors in active
1009 minibuffer windows when they are not selected.
1010
b6f4c7ba
JR
10112001-11-12 Jason Rumney <jasonr@gnu.org>
1012
1013 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1014 * w32term.c: Change doc-string comments to `new style'.
1015 [w/`doc:' keyword]. Doc fixes.
1016
1017 * w32fns.c: Don't define max.
1018 (Fx_open_connection): Only execute once.
1019
a89f435d
PJ
10202001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1021
1022 * ccl.c: Change macros to use do-while block instead of if-else.
1023 Use braces to follow GNU Coding Standards.
1024
a4cd0cd7
RS
10252001-11-11 Richard M. Stallman <rms@gnu.org>
1026
eafb659a
RS
1027 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1028
1029 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1030
a4cd0cd7
RS
1031 * insdel.c (replace_range): Use adjust_markers_for_replace
1032 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1033
1034 * intervals.h: Declare set_text_properties and set_text_properties_1.
1035
1036 * textprop.c (set_text_properties_1): New subroutine
1037 broken out of set_text_properties.
1038 (set_text_properties): Use set_text_properties_1.
1039
1040 * intervals.c (graft_intervals_into_buffer):
1041 Use set_text_properties_1 to clear out properties.
1042
1043 * search.c (Freplace_match): Use replace_range to insert
1044 and delete. Don't request property inheritance from
1045 surrounding text.
1046
91823618
JR
10472001-11-10 Jason Rumney <jasonr@gnu.org>
1048
1049 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1050 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 1051 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 1052
86928dfb
GM
10532001-11-10 Gerd Moellmann <gerd@gnu.org>
1054
fa336b91 1055 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
1056 instead of malloc/free.
1057
40ef1eda
PJ
10582001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1059
ab8469eb
PJ
1060 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1061 Coding Standards.
1062 (Finternal_set_lisp_face_attribute): Likewise.
1063
a78e0303
PJ
1064 * buffer.c (Fbury_buffer): Likewise.
1065
40ef1eda
PJ
1066 * indent.c (current_column_1): Remove unused variable `prev_col'.
1067
fabf4a91
PJ
1068 * coding.c (encode_coding): Use precomputed value of `src'.
1069 (encode_coding): Remove unused variable `src_end'.
1070 (code_convert_region): Remove unused variables `count'.
1071
0c99b139
JR
10722001-11-07 Jason Rumney <jasonr@gnu.org>
1073
1074 * w32term.c (x_display_and_set_cursor): Do not move system caret
1075 if cursor_glyph is NULL.
1076
830ddd77
PJ
10772001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1078
1079 * keymap.c (access_keymap): Fix compilation error.
1080
55c6d645
MB
10812001-11-07 Miles Bader <miles@gnu.org>
1082
1083 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1084
5de38842
PJ
10852001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1086
7a4564a4
PJ
1087 * intervals.c (graft_intervals_into_buffer):
1088 Remove #ifdef'd-out code.
1089 (graft_intervals_into_buffer): Remove unused variable `middle'.
1090
5de38842
PJ
1091 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1092 code (eval-current-buffer).
1093 Change doc-string comments to `new style' [w/`doc:' keyword].
1094
4fa23df5
RS
10952001-11-06 Richard M. Stallman <rms@gnu.org>
1096
1097 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1098
7a6a97d7
SM
10992001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1100
c191d13c
SM
1101 * lread.c (read1): Fix behavior with nested backquoting.
1102
7a6a97d7
SM
1103 * keyboard.c (make_lispy_event): Check integerness and fix
1104 Lisp_Object/int mixup.
1105
44dc78e0
PJ
11062001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1107
1108 * fns.c (copy_hash_table): Remove unused variable `v'.
1109
17893c65
PJ
1110 * fontset.c (fontset_font_pattern): Remove unused variable
1111 `family_registry'.
1112
4d994a79
PJ
1113 * indent.c (current_column_1): Remove unused variable `prev_col'.
1114
d5360cc7
RS
11152001-11-05 Richard M. Stallman <rms@gnu.org>
1116
1117 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1118
1119 * buffer.c (Fkill_buffer): Don't delete auto save file
1120 if buffer is modified.
1121
96238a5a
AI
11222001-11-05 Andrew Innes <andrewi@gnu.org>
1123
1124 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1125 CHECK_NUMBER_CDR.
1126
d9d54213
RS
11272001-11-05 Richard M. Stallman <rms@gnu.org>
1128
1129 * unexelf.c (unexec): Minor changes; clean up comments.
1130
b116830b
SS
11312001-11-05 Sam Steingold <sds@gnu.org>
1132
1133 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1134
3297e2a1
AS
11352001-11-05 Andreas Schwab <schwab@suse.de>
1136
1137 * sound.c (sound_perror): Save errno from being clobbered.
1138
9212319f 11392001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
1140
1141 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1142 the program image directly.
1143
7dd73b78
PJ
11442001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1145
1146 * buffer.h (Fbuffer_local_value): Add prototype.
1147
982f6c7e
RS
11482001-11-04 Richard M. Stallman <rms@gnu.org>
1149
d31053f9
RS
1150 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1151 and CHECK_BUFFER.
1152
1153 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1154 (record_char): Likewise.
1155
1156 * keyboard.c (make_lispy_event): Don't insist a drag event must
1157 move to a different buffer position. Instead, check for moving at
1158 least double_click_fuzz.
1159
1160 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1161
1162 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1163
982f6c7e
RS
1164 * indent.c (current_column_1, Fmove_to_column): Separate the code
1165 for display-table glyphs from the code buffer text, to fix
1166 bugs in the former.
1167
830047fd
RS
11682001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1169
1170 * buffer.c (Fbuffer_local_value): New function.
c191d13c 1171 (syms_of_buffer): Defsubr it.
b116830b 1172
830047fd
RS
1173 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1174 value of `cursor-in-non-selected-windows'.
1175
1176 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1177 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1178 (syms_of_xdisp): Initialize it.
b116830b 1179
2df5238c
PJ
11802001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1181
4e397688
PJ
1182 * xfns.c (Fx_create_frame): Doc fix.
1183
48b0f3ae
PJ
1184 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1185 keyword].
1186
2df5238c
PJ
1187 * eval.c (top_level_value, top_level_set): Remove commented and
1188 #ifdef'd-out code.
1189 (Fdefvar): Fix usage in doc-string.
1190
3ecaf7e5
RS
11912001-11-03 Richard M. Stallman <rms@gnu.org>
1192
1193 * xfns.c: Include unistd.h, if it exists.
1194
1195 * editfns.c: Move the include of ctype.h after unistd.h.
1196
1197 * gmalloc.c: Test BROKEN_PROTOTYPES.
1198
8db2e33b
KR
11992001-11-03 Ken Raeburn <raeburn@gnu.org>
1200
1201 * lisp.h (CHECK_STRING_CAR): New macro.
1202 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1203 treating XCAR and XCDR as lvalues.
1204 (openp): Use CHECK_STRING_CAR.
1205 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1206
aed29b97
EZ
12072001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1208
1209 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 1210 (SIGMASKTYPE): Define.
aed29b97
EZ
1211
1212 * syssignal.h (sigunblock): Don't define if already defined.
1213
6cb16f95
PJ
12142001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1215
16b45be4
EZ
1216 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1217 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
1218 Fix typos in comments.
1219
020f9b38
PJ
1220 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1221 and #ifdef'd-out code.
1222 Fix and reindent comments.
1223
c191d13c 1224 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 1225
6cb16f95
PJ
1226 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1227 argument `i' in macros.
1228
1229 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1230 `i' in macros.
1231
16b45be4
EZ
1232 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1233 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1234 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1235 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1236 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1237 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1238 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1239 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
1240 in macros.
1241
1242 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
1243 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1244 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1245 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1246 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1247 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1248 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1249 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1250 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
1251 (remove unused second argument).
1252
7e9d3c2f
SM
12532001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1254
1255 * syntax.c (describe_syntax): New wrapper.
1256 (Finternal_describe_syntax_value): Rename from describe_syntax.
1257 Don't insert space at front and \n at the end.
1258 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1259
1260 * regex.c (re_wctype): Try to fix some warnings.
1261 (regcomp, regexec): Don't forget the __restrict.
1262
e6bff182
RS
12632001-11-02 Richard M. Stallman <rms@gnu.org>
1264
1265 * textprop.c (Fget_char_property): Doc fix.
1266
9ba48103
PJ
12672001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1268
1269 * process.c (Fstart_process): Add usage to doc-string.
1270
1271 * data.c (Fsetq_default): Ditto.
1272
1273 * callint.c (Finteractive): Ditto.
1274
c22e59e1
SM
12752001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1276
1277 * macros.c: Don't include keymap.h any more.
1278
9271ed2c
RS
12792001-11-01 Richard M. Stallman <rms@gnu.org>
1280
e6bff182
RS
1281 * data.c (Fmake_local_variable): Doc fix.
1282
1283 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1284 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1285
9271ed2c
RS
1286 * keymap.c (Fdescribe_buffer_bindings): Print character property
1287 bindings along with or instead of the buffer local map.
1288 Make the overriding maps override what they should.
1289
8b8bd9c6
PJ
12902001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1291
1292 * window.c (grow_mini_window): Fix typo in comment.
1293
27188d11
GM
12942001-11-01 Gerd Moellmann <gerd@gnu.org>
1295
7b49b9d2
GM
1296 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1297 (XTset_vertical_scroll_bar): Likewise.
1298
43f7c3ea
GM
1299 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1300 instead of IMAGE_BACKGROUND.
c22e59e1 1301
b350c2e5
GM
1302 * xfns.c (four_corners_best): Reindent.
1303
c22e59e1 1304 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
1305 Handle :box so that it is possible to specify sexprs.
1306
d576358b
PJ
13072001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1308
1309 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1310 (Fface_font): Ditto.
1311 (Finternal_set_alternative_font_registry_alist): Ditto.
1312 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1313
1314 * xfns.c (x-get-resource): Reindent.
1315
bf00d461
EZ
13162001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1317
1318 * s/hpux11.h: New file.
1319
4e10df59
PJ
13202001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1321
2b209b97
PJ
1322 * emacs.c (USAGE1): Show command line option --no-window-system
1323 instead of --no-windows in usage.
1324 (standard_args): Rename --no-windows to --no-window-system.
1325 (bug_reporting_address): Follow Emacs coding conventions.
1326
9dbc9081
PJ
1327 * eval.c (Fcommandp): Doc fix.
1328 Change doc-string comments to `new style' [w/`doc:' keyword].
1329
4e10df59
PJ
1330 * frame.c (Fframe_live_p): Doc fix.
1331
1332 * buffer.c (selective-display-ellipses): Doc fix.
1333
dd387b25
GM
13342001-10-31 Gerd Moellmann <gerd@gnu.org>
1335
fe957e65
GM
1336 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1337
dd387b25
GM
1338 * xfaces.c (realize_x_face): If C is not a single-byte character,
1339 set the face's colors_copied_bitwise_p instead of the defaulted_p
1340 members which have a different meaning.
1341 (free_face_colors): Do nothing for a face whose colors have been
1342 copied bitwise.
1343
c22e59e1 1344 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 1345
2e1280f8
PJ
13462001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1347
687784e8
PJ
1348 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1349 [w/`doc:' keyword].
2e1280f8 1350
b9d9a9b9
GM
13512001-10-31 Gerd Moellmann <gerd@gnu.org>
1352
1353 * fns.c (require_unwind): Return Lisp_Object.
1354
48400103
PJ
13552001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1356
fa1361cb
PJ
1357 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1358 (last-input-char): Revert doc-string to be the same as the
1359 doc-string of `last-input-event'.
1360
48400103
PJ
1361 * xdisp.c: Fix typos in comments.
1362
eafa3196
GM
13632001-10-31 Gerd Moellmann <gerd@gnu.org>
1364
1365 * window.c (grow_mini_window): Handle case that the root
1366 window is already smaller than the nominal mininum height.
1367
747d3f2a
SM
13682001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1369
bf9bb76f
SM
1370 * emacs.c (main): Don't call keys_of_macros any more.
1371
1372 * lisp.h (keys_of_macros): Remove.
1373
1374 * macros.c (keys_of_macros): Remove.
1375
747d3f2a
SM
1376 * xfaces.c (Fface_attribute_relative_p): Declare args.
1377
5e905a57
JR
13782001-10-30 Jason Rumney <jasonr@gnu.org>
1379
1380 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1381 (enum_font_cb2): Ignore fonts with vertical orientation.
1382
3a426197
RS
13832001-10-30 Richard M. Stallman <rms@gnu.org>
1384
1385 * keyboard.c (Finput_pending_p): Doc fix.
1386
a742d646
GM
13872001-10-30 Gerd Moellmann <gerd@gnu.org>
1388
259cf6bc
GM
1389 * xterm.c (x_after_update_window_line): Don't run the code
1390 clearing in borders for rows whose visible height is 0.
1391
3f99f948
GM
1392 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1393 resized_p flag is set. If not set, use the much less flickering
1394 method previously used.
1395
1396 * dispnew.c (change_frame_size_1): Set frame's resized_p.
1397
1398 * frame.h (struct frame) <resized_p>: New member.
1399
b4a3be43
GM
1400 * lread.c (to_multibyte): Ensure read_buffer is at least twice
1401 as large as the number of bytes to convert.
747d3f2a 1402
a742d646
GM
1403 * lread.c (to_multibyte): New function.
1404 (read1): Use it.
1405
cacbb9e9
EZ
14062001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
1407
1408 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
1409
99cb6b2f
GM
14102001-10-30 Gerd Moellmann <gerd@gnu.org>
1411
327f42ee 1412 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
1413 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
1414 if the row's fill_line_p is set and drawing the last glyph with
1415 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 1416
99cb6b2f
GM
1417 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
1418
8e8223e2
SM
14192001-10-29 Stefan Monnier <monnier@cs.yale.edu>
1420
1421 * xmenu.c: Include coding.h and charset.h.
1422 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
1423 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
1424 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
1425 Explicitly set wv->help. Use `TRUE' rather than `True'.
1426 (menu_help_callback): Use empty_string.
1427
1428 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
1429 (Fx_popup_dialog): Explicitly init f.
1430 (w32_menu_display_help): Use empty_string.
1431
4d083a8f
RS
14322001-10-29 Richard M. Stallman <rms@gnu.org>
1433
b2304472
RS
1434 * fns.c (Frequire): Detect recursive try to require the same
1435 feature 3 or more levels deep, and get error.
1436 (require_unwind): New subroutine.
1437 (require_nesting_list): New variable.
1438 (syms_of_fns): Init and staticpro it.
1439
4d083a8f
RS
1440 * print.c (print_object): Clarify indication of insertion type.
1441
2fe41216
EZ
14422001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
1443
90480000
EZ
1444 * coding.c (syms_of_coding): Document that locale-coding-system is
1445 used for decoding input on X.
1446
2fe41216
EZ
1447 * window.c (Fscroll_left, Fscroll_right): Doc fix.
1448
74e79967
PJ
14492001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1450
1451 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
1452 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
1453
60ebcfe8
GM
14542001-10-29 Gerd Moellmann <gerd@gnu.org>
1455
9a7bdceb
GM
1456 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
1457 use NO_CURSOR if cursor_in_non_selected_windows is false.
1458
3f08fcd2
GM
1459 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
1460 the slant attribute if FRAME is t.
1461
0ccfdad2
GM
1462 * xfns.c (x_set_internal_border_width): Set frame garbaged
1463 when X window doesn't exist yet.
1464
ef253080
GM
1465 * xterm.c (x_after_update_window_line): Clear internal border
1466 in different circumstances.
b116830b 1467
60ebcfe8
GM
1468 * xterm.c (XTread_socket) <KeyPress>: Don't use
1469 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
1470 <handa@etl.go.jp>.
1471
73d25f9c
EZ
14722001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
1473
1474 * m/ibms390.h: New file. From Adam Thornton
1475 <athornton@sinenomine.net>.
1476
cac1daf0
GM
14772001-10-28 Gerd Moellmann <gerd@gnu.org>
1478
053b3256 1479 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 1480
cac1daf0
GM
1481 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1482 a loop counter.
1483
13b1a09c
PJ
14842001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1485
186486eb
PJ
1486 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1487
4707d2d0
PJ
1488 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1489 keyword].
1490 Fix typos in comments.
b116830b 1491
d883731c
PJ
1492 * emacs.c (bug_reporting_address): New function.
1493 Use it when displaying usage message.
1494
04012254
PJ
1495 * minibuf.c (read_minibuf): Remove unused external declaration of
1496 variable `Qread_only'.
1497
13b1a09c
PJ
1498 * keymap.c (access_keymap): Remove unused variable `charset'.
1499
5bbf4378
MB
15002001-10-28 Miles Bader <miles@gnu.org>
1501
1502 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1503 Remove #ifdef'd-out code.
1504 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1505 (syms_of_xfaces): Initialize them.
1506
1ce1e4ee
JR
15072001-10-27 Jason Rumney <jasonr@gnu.org>
1508
1509 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1510 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1511 position using the system caret.
1512
1513 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1514 (w32_system_caret_height, w32_system_caret_x)
1515 (w32_system_caret_y): New variables for tracking system caret.
1516 (w32_initialize): Initialize them.
c2d53558 1517 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 1518
c2d53558
SM
1519 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1520 New messages types.
1ce1e4ee
JR
1521
1522 * w32term.c (note_mouse_highlight): Clear old help_echo.
1523
4e30ce42
PJ
15242001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1525
bb4600a4
PJ
1526 * xterm.c: Fix typo in a comment.
1527
7db35a48
PJ
1528 * emacs.c: Fix typos in comments.
1529 Remove unnecessary spaces.
1530 Change doc-string comments to `new style' [w/`doc:' keyword].
1531 (USAGE2): Fix typos in usage string.
1532
a7248e4f
PJ
1533 * xterm.c: Fix typo in a comment.
1534
4e30ce42
PJ
1535 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1536 emacs.c.
1537
62725a92
GM
15382001-10-27 Gerd Moellmann <gerd@gnu.org>
1539
798dbe1f 1540 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 1541 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
1542 farther backward when target_y was not reached.
1543
62725a92
GM
1544 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1545 Display errno only if non-zero.
1546 (sound_warning): New function.
1547 (vox_configure): Don't treat failing to set sample rate as error.
1548 (various places): Improve error messages.
1549
d4e34d24
EZ
15502001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1551
944e6f60
EZ
1552 * fileio.c (Faccess_file): Run the argument filename through
1553 Fexpand_file_name, before using it.
1554
d4e34d24
EZ
1555 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1556 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1557
38d2af0c
GM
15582001-10-26 Gerd Moellmann <gerd@gnu.org>
1559
da80a8d5
GM
1560 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1561
38d2af0c
GM
1562 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1563 Fix clearing in the case of scroll bars on the right.
c2d53558 1564
56f508dd
EZ
15652001-10-26 Juanma Barranquero <lektu@terra.es>
1566
1567 * w32gui.h (XImage): Add a dummy typedef.
1568
fbd5ceb2
GM
15692001-10-26 Gerd Moellmann <gerd@gnu.org>
1570
c2d53558 1571 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 1572
b23236fb
EZ
15732001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1574
1575 * frame.c (Fframe_parameter): Fix last change.
1576
5d991fc4
EZ
1577 * fileio.c: Revert last change (which removed old commented-out
1578 version of expand-file-name). Add a comment that explains why
1579 this old version should not be removed.
1580
879eadc3
GM
15812001-10-25 Gerd Moellmann <gerd@gnu.org>
1582
75700ff2
GM
1583 * frame.c (Fframe_parameter): Fix a bug whereby some
1584 ``artificial'' frame parameters, like `minibuffer' were not
1585 obtained by calling Fframe_parameters.
1586
dfe92a6a
GM
1587 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1588 cursor differently.
1589
879eadc3
GM
1590 * xdisp.c (move_it_vertically_backward): Compute line height
1591 differently. Add heuristic to try to be more compatible to 20.x.
1592
e1010ebe
SM
15932001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1594
d73a471b
SM
1595 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1596
d6da5a06
GM
1597 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1598 boolean.
e1010ebe 1599
f66bd220
MB
16002001-10-25 Miles Bader <miles@gnu.org>
1601
1602 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1603 BG is a pointer to a structure, not a structure.
1604 (gif_format, png_format): Add missing commas.
1605
d436d538
RS
16062001-10-24 Richard M. Stallman <rms@gnu.org>
1607
1608 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 1609 (syms_of_xfaces): Defsubr it.
d436d538 1610
075c507b
PJ
16112001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1612
1613 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1614 variable `area'.
1615
d492b584
PJ
16162001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1617
c2d53558 1618 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 1619
e2a57b34
MB
16202001-10-25 Miles Bader <miles@gnu.org>
1621
1622 * dispextern.h (struct image): Add `background',
1623 `background_valid', and `background_transparent' fields.
1624 (image_background, image_background_transparent): New declarations.
1625 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1626 * xfns.c (image_background, image_background_transparent)
1627 (four_corners_best): New functions.
c2d53558 1628 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
1629 (gs_format): Add `:background' entry.
1630 (lookup_image): Set IMG's background color if specified.
1631 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1632 when appropriate.
1633 (x_clear_image_1): Reset `background_valid' and
1634 `background_transparent_valid' fields.
1635 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1636 calculating it here. Set IMG's background_transparent field.
1637 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1638 (enum png_keyword_index): Add PNG_BACKGROUND.
1639 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1640 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1641 (enum gif_keyword_index): Add GIF_BACKGROUND.
1642 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 1643 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
1644 Pre-calculate image background color where necessary.
1645 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1646 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1647 color to use for image glyph reliefs.
1648
b547b6e8
GM
16492001-10-24 Gerd Moellmann <gerd@gnu.org>
1650
d9e3b8c6
GM
1651 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1652 in full-width rows.
c2d53558 1653
b547b6e8
GM
1654 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1655 Fix clearing of area not covered by scroll bar.
1656
2beb36f9
PJ
16572001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1658
1659 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1660 and `real_start'.
c2d53558 1661 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
1662 (glyph_rect): Remove unused variable `area'.
1663
76cb5e06
GM
16642001-10-24 Gerd Moellmann <gerd@gnu.org>
1665
bdbdebff 1666 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
1667
1668 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1669 (row_containing_pos): Take additional argument DY.
1670 Treat rows ending in middle of char differently.
62e33982
GM
1671 (display_line): Handle tabs on window systems differently.
1672
1673 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1674 with additional argument.
1675
1676 * dispextern.h (row_containing_pos): Adjust prototype.
1677
76cb5e06
GM
1678 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1679 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1680 (try_window_id, try_window_reusing_current_matrix)
1681 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1682 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1683
996fee11
PJ
16842001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1685
c9e60620
PJ
1686 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1687 gnuemacs).
1688 (HAVE_BOXES): Fix typo in comment.
1689 (push_menu_pane): Fix typo in comment.
1690
3b552d56
PJ
1691 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1692 of `Qwhen'.
1693 (single_display_prop_string_p): Remove unused local declarations
1694 of `Qwhen' and `Qmargin'.
1695 (string_buffer_position): Remove unused variable `around'.
1696 (store_frame_title): Remove unused variable `width'.
1697
15c565ac
PJ
1698 * window.c: Don't define max.
1699 (coordinates_in_window): Remove unused variable `uy'.
1700
a8818eb9
PJ
1701 * widget.c: Don't define max.
1702
996fee11
PJ
1703 * process.c: Don't define max.
1704 (create_process): Remove unused variable `buffer'.
1705
496e1a5b
GM
17062001-10-23 Gerd Moellmann <gerd@gnu.org>
1707
c2d53558 1708 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 1709
5905ae8b
EZ
17102001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1711
1712 * xfaces.c (Finternal_set_lisp_face_attribute)
1713 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1714 frame is on a windowed display.
1715
24db49fb
GM
17162001-10-23 Gerd Moellmann <gerd@gnu.org>
1717
c2d53558
SM
1718 * dispnew.c (sync_window_with_frame_matrix_rows):
1719 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
1720 of marginal areas.
1721
c2d53558 1722 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 1723
f0487f05
EZ
17242001-10-23 Andreas Schwab <schwab@suse.de>
1725
1726 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1727 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1728
f0a48a01
GM
17292001-10-23 Gerd Moellmann <gerd@gnu.org>
1730
c2d53558 1731 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
1732 REAL_END. Notice if cursor gets overwritten.
1733 (notice_overwritten_cursor): Take X positions as parameters.
1734 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1735 around call to x_draw_glyphs.
1736
a50a10a0
PJ
17372001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1738
fc11dff0
PJ
1739 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1740 instead of C) and usage.
a50a10a0 1741
fc11dff0
PJ
1742 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1743 of C) and usage.
a50a10a0
PJ
1744
1745 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1746 `left', `max_width' and `max_height'.
1747
8738febd
GM
17482001-10-23 Gerd Moellmann <gerd@gnu.org>
1749
1750 * xdisp.c (display_line): For a tab continued to the next line,
1751 set row's ends_in_middle_of_char_p.
1752
653c329b
GM
17532001-10-22 Gerd Moellmann <gerd@gnu.org>
1754
1755 * xdisp.c (display_line): Fix computation of continuation lines
1756 width for TABs.
1757
f958c5ac
PJ
17582001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1759
7ba51063
PJ
1760 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1761 `Qlaplace'.
1762
f958c5ac
PJ
1763 * fileio.c: Remove unused code.
1764
eb360291
MB
17652001-10-22 Miles Bader <miles@gnu.org>
1766
1767 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1768 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1769 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1770
98515cf0
JR
17712001-10-21 Jason Rumney <jasonr@gnu.org>
1772
1773 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1774
93026d88
EZ
17752001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1776
1777 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1778 (Finsert_string): Avoid the multi-line string literals warning.
1779
c9a95b79
MB
17802001-10-22 Miles Bader <miles@gnu.org>
1781
1782 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1783 (Fdocumentation): Don't use it.
1784 (syms_of_doc): Don't initialize it.
1785
1786 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1787 * print.c (Fwith_output_to_temp_buffer): Likewise.
1788 * window.c (Fsave_window_excursion): Likewise.
c2d53558 1789 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 1790 (Fsave_restriction): Likewise.
c2d53558
SM
1791 * eval.c (Frun_hooks, Frun_hook_with_args)
1792 (Frun_hook_with_args_until_failure)
1793 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1794 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1795 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
1796 (Funwind_protect, Fcondition_case): Likewise.
1797 * coding.c (Ffind_operation_coding_system): Likewise.
1798 * keyboard.c (Ftrack_mouse): Likewise.
1799
a3b10252
MB
18002001-10-21 Miles Bader <miles@gnu.org>
1801
c2d53558 1802 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
1803 (Fmake_hash_table): Add usage: string to doc string.
1804 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 1805 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
1806 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1807 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1808 (Fml_prefix_argument_loop): Likewise.
1809
c6f73eec
PJ
18102001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1811
c2d53558 1812 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 1813
c6f73eec
PJ
1814 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1815 style' [w/`doc:' keyword].
1816
1817 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1818 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1819 comments to `new style' [w/`doc:' keyword].
1820
3cf3436e
JR
18212001-10-21 Jason Rumney <jasonr@gnu.org>
1822
1823 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1824
c169b8f1
JR
1825 * w32term.c (remember_mouse_glyph): New function.
1826 (w32_mouse_position): Use it.
1827 (note_mouse_movement): If the mouse moved off the glyph, remember
1828 its new position.
c2d53558 1829
4fdd691b
JR
1830 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1831 (w32_display_info): Add mouse_face_overlay.
1832
c169b8f1
JR
1833 * w32term.c (notice_overwritten_cursor): Renamed from
1834 note_overwritten_text_cursor. Rewritten to take glyph widths into
1835 account.
1836 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1837 (fast_find_string_pos): New function.
1838 (fast_find_position): Return the correct vpos. Add parameter
1839 STOP. In the final row, stop before glyphs having STOP as object.
1840 Don't consider glyphs that are not from a buffer.
1841 (fast_find_position) [0]: Add a presumably more correct version
1842 for after 21.1.
1843 (expose_window_tree, expose_frame): Don't compute intersections here.
1844 (expose_window): Do it here instead.
1845 (expose_window_tree, expose_window, expose_line): Return 1 when
1846 overwriting mouse-face.
1847 (expose_window): If W is the window currently being updated, mark
1848 the frame garbaged.
1849 (expose_frame): If mouse-face was overwritten, redo it.
1850 (x_use_underline_position_properties): New variable.
1851 (syms_of_xterm): DEFVAR_BOOL it.
1852 (x_draw_glyph_string): Add comment to use it in future.
1853 (x_draw_glyph_string): Restore clipping after drawing box.
1854 Fix a computation of the underline position.
1855 (w32_get_glyph_string_clip_rect): Minor cleanup.
1856 (x_fill_stretch_glyph_string): Remove an assertion.
1857 (x_produce_glyphs): Don't convert multibyte characters
1858 to unibyte characters in unibyte buffers.
1859 (cursor_in_mouse_face_p): New function.
1860 (x_draw_stretch_glyph_string): Use it to choose a different GC
1861 when drawing a cursor within highlighted text. Don't draw
1862 background again if it has already been drawn.
1863 (x_draw_glyph_string_box): Don't draw a full-width
1864 box just because the glyph row's full_width_p flag is set.
1865 (x_draw_glyphs): Fix computation of rightmost x for
1866 full-width rows.
1867 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1868 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
1869 change bottom shadow accordingly. Some cleanup.
1870 (x_update_window_end): Handle overwritten mouse face
1871 also for tool bar windows.
1872 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1873 DRAW is DRAW_IMAGE_RAISED.
1874 (clear_mouse_face): Return 1 if text with mouse face was
1875 actually redrawn. Make the function static. Reset
1876 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
1877 optimize away highlighting if we pass over that same overlay again.
1878 (note_mouse_highlight): Call mouse_face_overlay_overlaps
1879 to detect a case where we have to highlight a different region
1880 despite not having left the currently highlighted region.
1881 Set mouse_face_overlay in the x_display_info. Avoid changing the
1882 mouse pointer shape when show_mouse_face has already done it, or
1883 there is no need. Handle mouse-face and help-echo in strings.
1884 (glyph_rect): New function.
1885 (w32_mouse_position): Use it to raise the threshold for mouse
1886 movement event generation.
1887 (w32_initialize_display_info): Initialize the x_display_info's
1888 mouse_face_overlay.
1889 (w32_set_vertical_scroll_bar): Don't clear a zero height
1890 or width area.
1891 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1892 a widget to zero height.
1893
3cf3436e 1894 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 1895 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
1896 equivalents in menu_items.
1897 (w32_menu_show): Don't overwrite an item's name with its key
1898 description in case the description is a multibyte string.
1899 (single_submenu): Some cleanup.
1900
1901 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
1902 (postprocess_image): New function.
1903 (lookup_image): Call it for all image types except PostScript.
1904 (x_kill_gs_process): Call postprocess_image.
1905 (tiff_error_handler, tiff_warning_handler): New functions.
1906 (tiff_load): Install them as handlers.
1907 (x_kill_gs_process): Recognize if someone has cleared the image
1908 cache under us.
1909 (valid_image_p): Protect better against invalid image
1910 specifications. Previous code could signal an error.
1911 (Fx_hide_tip, Fshow_tip): Doc fix.
1912 (Fv_max_tooltip_size): New variable.
1913 (syns_of_xfns): DEFVAR_LISP it.
1914 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
1915 window buffer to *tip* right after creating the frame. Set frame's
1916 window_width. Use a maximum tooltip size specified by
1917 Vx_max_tooltip_size, if that has valid contents.
1918 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1919 Make sure the tooltip is completely visible.
1920 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1921 (Fx_create_frame): Adjust the frame's height for presence
1922 of the tool bar before calling x_figure_window_size.
1923 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
1924 when the window gets smaller.
1925 (x_set_foreground_color): Set frame's cursor_pixel.
1926 (x_set_foreground_color, x_set_background_color): Cleaned up.
1927 (x_set_font): Handle case of x_new_fontset returning the same name
1928 as before, although there was a change in fontsets.
1929
386ca361
MB
19302001-10-21 Miles Bader <miles@gnu.org>
1931
c2d53558 1932 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
1933 (Flogxor): Add usage: string to doc string.
1934 * charset.c (Fstring): Likewise.
1935 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
1936 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
1937
14ff1ee0
PJ
19382001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1939
03be2694
PJ
1940 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
1941
1942 * alloc.c: Reindent DEFUNs with doc: keywords.
1943
1944 * abbrev.c (Finsert_abbrev_table_description): Reindent.
1945
14ff1ee0
PJ
1946 * frame.c: Change doc-string comments to `new style' [w/`doc:'
1947 keyword].
1948
71431a0e
GM
19492001-10-20 Gerd Moellmann <gerd@gnu.org>
1950
6aa97356 1951 * (Version 21.1 released.)
71431a0e 1952
39f624fa
PJ
19532001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1954
c2d53558 1955 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
1956
1957 * xdisp.c (invisible_text_between_p): Put prototype inside #if
1958 0 because unused.
1959
1960 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
1961 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
1962 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 1963
abcce93a
MB
19642001-10-20 Miles Bader <miles@gnu.org>
1965
1966 The following changes remove the glyph_row `inverse_p' field,
1967 which is never set anymore, due to other changes:
1968
1969 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
1970 (reassert_line_highlight, change_line_highlight): Declarations removed.
1971 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
1972 (line_hash_code, row_equal_p, fake_current_matrices)
1973 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
1974 (update_frame_line, update_frame_line, update_frame_line):
1975 Don't use `inverse_p' field.
1976 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
1977 change_line_highlight_hook.
1978 (XTreassert_line_highlight, x_change_line_highlight):
1979 Functions removed.
c2d53558 1980 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1981 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1982 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
1983 `inverse_p' field.
c2d53558 1984 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
1985 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
1986 (w32_reassert_line_highlight, x_change_line_highlight):
1987 Functions removed.
1988 * w32console.c (reassert_line_highlight, change_line_highlight):
1989 Functions removed.
1990 (initialize_w32_display): Don't set reassert_line_highlight_hook
1991 or change_line_highlight_hook.
1992 (hl_mode): Function removed.
c2d53558
SM
1993 (reset_terminal_modes, set_terminal_modes, update_begin)
1994 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
1995 (clear_frame, ins_del_lines): Don't call it.
1996 * termhooks.h (reassert_line_highlight_hook)
1997 (change_line_highlight_hook): Declarations removed.
1998 * term.c (reassert_line_highlight_hook)
1999 (change_line_highlight_hook): Variables removed.
2000 (reassert_line_highlight, change_line_highlight): Functions removed.
2001 * msdos.c (IT_reassert_line_highlight)
2002 (IT_change_line_highlight): Functions removed.
2003 (internal_terminal_init): Don't set reassert_line_highlight_hook
2004 or change_line_highlight_hook.
2005 (highlight): Variable removed.
c2d53558 2006 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
2007 (IT_set_terminal_modes): Don't set or use it.
2008
2009 The following changes remove inverse-video support for terminals
2010 that use a `magic cookie' standout mode. Due to changes in the
2011 way mode-lines are displayed, such support no longer works
2012 anyway, and it's probable that almost no one uses such terminals
2013 anymore:
2014
2015 * term.c (standout_requested): Variable removed.
2016 (update_end, highlight_if_desired): Don't use it.
2017 (chars_wasted, copybuf): Variables removed.
2018 (write_standout_marker): Function removed.
c2d53558 2019 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
2020 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2021 Don't use `chars_wasted' or `copybuf'.
2022 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2023 Set `costs_set' to true.
2024 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2025 `chars_wasted'.
2026 (clear_end_of_line): Function removed.
2027 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2028 (clear_to_end): Call `clear_end_of_line' instead of
2029 `clear_end_of_line_raw'.
54800acb
MB
2030 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2031 (term_init): Don't set them.
2032 Turn off any standout/underline modes that require magic cookies.
c2d53558 2033 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
2034 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2035 Remove special processing for magic-cookie standout modes.
2036 (turn_off_face, turn_on_face): Remove special processing for
2037 underline magic-cookie glitch.
abcce93a 2038
0b5f679f
RS
20392001-10-19 Richard M. Stallman <rms@gnu.org>
2040
2041 * eval.c (syms_of_eval): Doc fixes.
2042
5a4a5bd4
GM
20432001-10-19 Gerd Moellmann <gerd@gnu.org>
2044
2045 * xdisp.c (redisplay_internal): Don't clear echo area if the
2046 mini-window is selected.
2047
79f1f96c
MB
20482001-10-19 Miles Bader <miles@gnu.org>
2049
b57c2708
MB
2050 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2051 doesn't take precedence if the affected property's value is nil.
2052
2053 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2054
79f1f96c
MB
2055 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2056 with fields and suggest using `forward-line' to avoid them.
2057 * editfns.c (Fline_beginning_position, Fline_end_position):
2058 Clarify documentation.
2059
ef879104
SM
20602001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2061
2062 * keymap.c (current_minor_maps): `override' only shadows its
2063 correspondent in minor-mode-map-alist, not the whole tail.
2064
97f4db8c
AI
20652001-10-18 Andrew Innes <andrewi@gnu.org>
2066
2067 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2068 optimization. The fontp->encoding array was not being initialized
2069 correctly when compiled with optimizations by MSVC.
2070
e6b70fd8
GM
20712001-10-18 Gerd Moellmann <gerd@gnu.org>
2072
30903479 2073 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 2074
0e804d38
AI
20752001-10-17 Andrew Innes <andrewi@gnu.org>
2076
2077 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2078
2079 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2080 font_info.charset field.
2081
2082 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2083 rather than working it out by calling w32_codepage_for_font for
2084 every glyph.
2085
66e5868a
AI
20862001-10-17 Andrew Innes <andrewi@gnu.org>
2087
2088 * w32term.c (w32_read_socket): Determine clipping rectangle for
2089 the entire frame, including areas covered by scrollbars and the
2090 menubar. This avoids internal arguments about whether a frame is
2091 fully obscured or not.
2092
15b00083
GM
20932001-10-17 Gerd Moellmann <gerd@gnu.org>
2094
23e8bd86
GM
2095 * xdisp.c (try_window_id): Undo last change. Give up if
2096 window ends in strings.
30903479 2097
9c6ba6d1 2098 * xdisp.c (try_window_id): Don't display lines after the window
30903479 2099 end if the rest of the window after the window end was already blank.
23e8bd86 2100
30903479 2101 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
2102 for the release of 21.1.
2103
30903479 2104 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 2105
945220bd
MB
21062001-10-17 Miles Bader <miles@gnu.org>
2107
2108 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2109 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2110 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2111 Change doc-string comments to `new style' [w/`doc:' keyword].
2112 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2113 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2114 out make-docfile.
2115
14242528
MB
21162001-10-16 Miles Bader <miles@gnu.org>
2117
2118 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2119
3ddf952f
GM
21202001-10-16 Gerd Moellmann <gerd@gnu.org>
2121
2122 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2123 *scratch*.
2124
f3fbd155
KR
21252001-10-16 Ken Raeburn <raeburn@gnu.org>
2126
2127 Avoid the assumption that car and cdr slots of cons cells are
2128 addressable lvalues; this allows for easier experimentation with
2129 other lisp implementations that may not permit such accesses for
2130 various reasons. Not quite complete -- buffer.c still needs some
2131 work, and w32/mac files need rechecking -- so compile-time
2132 enforcement is left disabled for now.
2133
2134 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 2135 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
2136 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2137 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2138 (XSETCAR, XSETCDR): New macros.
2139 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2140 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2141 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2142 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2143 XSETCDR.
2144 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
2145 * buffer.c (record_buffer, Fbury_buffer)
2146 (swap_out_buffer_local_variables, recenter_overlay_lists)
2147 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
2148 fields of a cons cell respectively.
2149 * callint.c (quotify_args, Fcall_interactively): Likewise.
2150 * ccl.c (Fregister_code_conversion_map): Likewise.
2151 * coding.c (detect_coding_system): Likewise.
2152 * composite.c (get_composition_id, make_composition_value_copy):
2153 Likewise.
30903479
SM
2154 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2155 (swap_in_symval_forwarding, set_internal, Fset_default)
2156 (Fmake_variable_buffer_local, Fmake_local_variable)
2157 (Fmake_variable_frame_local): Likewise.
f3fbd155 2158 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 2159 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 2160 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
2161 * minibuf.c (get_minibuffer): Likewise.
2162 * search.c (Fmatch_data): Likewise.
2163 * textprop.c (extend_property_ranges): Likewise.
c2d53558 2164 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
2165 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2166 Likewise.
2167 * w32term.c (x_delete_display): Likewise.
2168 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2169 Likewise.
c2d53558 2170 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 2171 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 2172 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
2173 (Fread_file_name): Use XSETCAR.
2174 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2175 CHECK_NUMBER_CDR.
2176 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2177 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2178 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2179 CHECK_NUMBER_CDR.
2180 * keyboard.c (read_char): Alter list traversal to avoid taking the
2181 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2182 (parse_menu_item): Use XSETCAR and XSETCDR.
2183 (reach_char_x_menu_prompt): Use XSETCAR.
2184 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2185 (Fcommand_execute): Use XSETCDR.
2186 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2187 (openp): Change list traversal to avoid using XCAR as lvalue.
2188 (read_list): Use XSETCDR.
2189 * process.c (wait_reading_process_input): Change wait_for_cell
2190 handling to avoid taking addresses of cons cell slots.
30903479
SM
2191 * xselect.c (x_own_selection, x_handle_selection_clear)
2192 (x_clear_frame_selections): Use XSETCDR.
2193 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2194 (x_handle_property_notify, x_get_foreign_selection)
2195 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 2196
502150e5
PJ
21972001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2198
018ba359
PJ
2199 * buffer.c: Put doc strings in comments.
2200
30903479 2201 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 2202
b56ba8de
SS
22032001-10-15 Sam Steingold <sds@gnu.org>
2204
2205 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2206
6a0b793a
PJ
22072001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2208
30903479
SM
2209 * process.c (process-inherit-coding-system-flag)
2210 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
2211 in comment.
2212
a1f17501 2213 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 2214 arguments. Put doc strings in comments.
a65da641
PJ
2215
2216 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 2217
aa601ad0
GM
22182001-10-15 Gerd Moellmann <gerd@gnu.org>
2219
30903479 2220 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 2221
aa601ad0
GM
2222 * window.c (select_window_1): Unfreeze window start. Remove a
2223 doubled test for WINDOW being live.
2224
288148a1
PJ
22252001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2226
dd8d1e71
PJ
2227 * fns.c (Fmapconcat): Fix typo in a doc string.
2228
288148a1
PJ
2229 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2230
9f5eb4a3
GM
22312001-10-15 Gerd Moellmann <gerd@gnu.org>
2232
2233 * xterm.c (x_draw_glyph_string): Restore clipping after
2234 drawing box.
2235
dbae44c8
PJ
22362001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2237
30903479 2238 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 2239
0c88c937
SM
22402001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2241
56378db4
GM
2242 * indent.c (skip_invisible): Use new retval of
2243 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 2244
845e4cf4
SM
2245 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2246 If a parent is reached and noinherit is set, exit immediately.
2247 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2248
0c88c937
SM
2249 * s/ms-w32.h (EXEC_SUFFIXES):
2250 * s/msdos.h (EXEC_SUFFIXES):
2251 * process.h (EXEC_SUFFIXES): Remove.
2252
2253 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2254 (decode_suffixes): Remove.
2255
2256 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
2257 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2258 (invisible_ellipsis_p): Remove.
0c88c937
SM
2259
2260 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2261 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2262 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
2263 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2264 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 2265
d19be8a9
PJ
22662001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2267
04d7d066
PJ
2268 * lisp.h (Ftop_level): Add prototype.
2269
d624284c
PJ
2270 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2271 (XTread_socket): Improve style of comments to follow other
2272 comments.
2273
a87414f9
PJ
2274 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2275 is already prototyped in included lisp.h).
2276
d19be8a9
PJ
2277 * frame.c (Fset_mouse_position): Improve style of comment to
2278 follow other comments.
2279 (Fset_mouse_pixel_position): Improve style of comment to follow
2280 other comments.
2281 (Fmake_frame_visible): Doc fix and typo in comment.
2282 (Fmake_frame_invisible): Doc fix and typo in comment.
2283 (Ficonify_frame): Fix typo in comment.
2284
c061c855
GM
22852001-10-14 Gerd Moellmann <gerd@gnu.org>
2286
37f6b5b6 2287 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 2288 * term.c, alloc.c: Put doc strings in comments.
c061c855 2289
e641b454
GM
22902001-10-13 Gerd Moellmann <gerd@gnu.org>
2291
2292 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2293 Provide definitions for doc strings in comments.
2294
2295 * fns.c: Put doc strings in comments.
2296
51724e26
EZ
22972001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2298
2299 * dired.c (file_name_completion): Ignore a candidate directory if
2300 it matches an element in completion-ignored-extensions that ends
2301 in a slash.
2302 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2303 feature in the doc string.
2304 (Ffile_name_completion): Ditto.
2305
be5fc59b
SM
23062001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2307
5a1373f3
SM
2308 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2309
2310 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2311
2312 * lisp.h (Fprovide): Update prototype.
2313 (Ffeaturep, invisible_p): Remove.
2314
bbc4a3d3 2315 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
2316 (DOLIST, LOOP_PROPVAL): New macros.
2317 (invisible_p, invisible_ellipsis_p): Use them.
2318 (invisible_noellipsis_p): New function.
2319 (syms_of_xdisp): Use empty_string.
2320
2321 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2322
2323 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2324 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2325
2326 * print.c (Fwith_output_to_temp_buffer): Align with
2327 internal_with_output_to_temp_buffer.
2328 (print_preprocess): Use traverse_intervals_noorder.
2329 (print_object): Update call to traverse_intervals.
2330
2331 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2332 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2333
2334 * intervals.c (traverse_intervals_noorder): New function.
2335 (search_for_interval, count_intervals): Use it.
2336 (traverse_intervals): Use less stack space and drop `depth' arg.
2337
2338 * fns.c (Ffeaturep): Add new `subfeature' arg.
2339 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2340 (Qsubfeatures): New var.
2341 (syms_of_fns): Initialize it.
2342
026f408d
SM
2343 * keymap.c (Fkey_description): Use empty_string.
2344 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2345 (syms_of_keymap): Setup inheritance between maps.
2346 Don't export Sdescribe_bindings_internal any more.
2347
be5fc59b
SM
2348 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2349
3365175e
GM
23502001-10-12 Gerd Moellmann <gerd@gnu.org>
2351
2352 * xterm.c (notice_overwritten_cursor): Renamed from
2353 note_overwritten_text_cursor. Rewritten to take glyph widths into
2354 account.
2355
2ab7765c
EZ
23562001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2357
2358 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2359 multi-line strings without a trailing "\n\".
2360
311346bb
PJ
23612001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2362
2363 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2364 defined.
2365
2168e04d
SM
23662001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2367
026f408d
SM
2368 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2369
c0ec53ad
SM
2370 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2371 * w32proc.c (sys_spawnve):
2372 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2373 * w32.c (check_windows_init_file):
2374 * sound.c (Fplay_sound):
026f408d 2375 * emacs.c (init_cmdargs):
c0ec53ad
SM
2376 * process.c (Fstart_process): Update calls to openp.
2377
2378 * callproc.c (Vexec_suffixes): New var.
2379 (Fcall_process): Update call to openp.
2380 (decode_suffixes): New function.
2381 (syms_of_callproc): Init exec-suffixes.
2382
2383 * lread.c (Vload_suffixes, default_suffixes): New vars.
2384 (openp): Take a lisp list of suffixes.
2385 Check for file-name-handlers even if the file was absolute already.
2386 (syms_of_lread): Declare load-suffixes.
2387 (Fload): Fix up call to openp.
2388 Don't bother checking for file-name-handler at the very beginning.
2389
f6333468
SM
2390 * keymap.h (Fcopy_keymap): Don't export.
2391
2392 * lisp.h (empty_string): Declare.
c0ec53ad
SM
2393 (Vload_suffixes, Vexec_suffixes): Declare.
2394 (openp): Update prototype.
f6333468
SM
2395
2396 * emacs.c (empty_string): New var.
2397 (syms_of_emacs): Initialize it.
2398
2399 * search.c (wordify): Use it.
2400
2401 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
2402 selected window if it's not displayed there. Handle the case
2403 when the window is dedicated.
2404 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
2405
2406 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
2407
2168e04d
SM
2408 * syntax.h (struct gl_state_s): Change the meaning of b_property.
2409 Remove left_ok and right_ok.
2410 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
2411 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
2412 new meaning of b_property.
2413
2414 * syntax.c (update_syntax_table): Simplify.
2415 (Fforward_comment): Don't skip quoted chars when going backward.
2416
13d95cc0
GM
24172001-10-11 Gerd Moellmann <gerd@gnu.org>
2418
beb0990f
GM
2419 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
2420 in case I is of some unsigned type, in which case
2421 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
2422 comparison becomes bogus.
2423
cb938d46
GM
2424 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
2425 (Fuser_full_name): Fix bug treating a float as a fixnum.
2426
2427 * data.c (Fstring_to_number): Use make_fixnum_or_float.
2428
2429 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 2430
13d95cc0
GM
2431 * lisp.h (circular_list_error): Add prototype.
2432
2433 * data.c (Qcircular_list): New variable.
2434 (circular_list_error): New function.
2435 (syms_of_data): Initialize it Qcircular_list.
2436
e35f6ff7
SM
24372001-10-10 Stefan Monnier <monnier@cs.yale.edu>
2438
2439 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
2440 casefiddle.c, buffer.c: Include keymap.h.
2441
619632ac
GM
24422001-10-10 Gerd Moellmann <gerd@gnu.org>
2443
2444 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
2445 options. From Dave Love <d.love@dl.ac.uk>.
2446
5e5388f6
GM
24472001-10-09 Gerd Moellmann <gerd@gnu.org>
2448
2449 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
2450 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2451
14a3dff7
GM
2452 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
2453 unsigned char.
2454 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 2455
76ba8daf
AI
24562001-10-08 Andrew Innes <andrewi@gnu.org>
2457
2458 * lisp.h [max]: Undef min and max before redefining them.
2459
2460 * w32gui.h: Do not undef min and max.
2461
2462 * w32heap.h: Do not undef min and max.
2463
2464 * s/ms-w32.h: Do not undef min and max.
2465
166253cb
SM
24662001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2467
2468 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
2469
0c4d9527
SS
24702001-10-08 Sam Steingold <sds@gnu.org>
2471
2472 * keymap.c (current-active-maps): Quote newlines (compilation error).
2473
14bfa771
EZ
24742001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2475
2476 * Makefile.in (lisp, shortlisp): Replace bindings.el with
2477 bindings.elc, since otherwise doc strings in bindings.el get wrong
2478 offsets in etc/DOC.
2479
bdb7aa47
SM
24802001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2481
9985827f
SM
2482 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2483
2484 * keyboard.h (map_prompt): Remove.
2485
2486 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 2487 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 2488
bdb7aa47
SM
2489 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2490
2491 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2492
2493 * keyboard.c (map_prompt): Remove.
2494 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2495 Use Fkeymap_prompt.
2496
2497 * keymap.h: New file. Extracted from lisp.h.
2498
9985827f
SM
2499 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2500 (accessible_keymaps_1): New function.
2501 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2502 (Fwhere_is_internal): Use Fcurrent_active_maps.
2503 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2504 Insert in current buffer rather than standard-output.
2505 Don't call `help-mode'. Export to elisp.
2506 (describe_buffer_bindings): New wrapper.
2507 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2508 and Sdescribe_buffer_bindings.
2509
402c9a51
GM
25102001-10-08 Gerd Moellmann <gerd@gnu.org>
2511
9985827f 2512 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
2513 Remove code setting signal handler.
2514
9985827f 2515 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
2516 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2517
3fe81fdf
PJ
25182001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2519
2520 * keyboard.c: Don't define min/max.
2521
55fa7820
GM
25222001-10-08 Gerd Moellmann <gerd@gnu.org>
2523
9985827f 2524 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 2525 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 2526 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 2527 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 2528 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
2529 Don't define min/max.
2530
2531 * lisp.h (min, max): New macros.
2532
55fa7820
GM
2533 * puresize.h (BASE_PURESIZE): Increase to 725000.
2534
1aad31e4
PJ
25352001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2536
9180dc8c
PJ
2537 * xfaces.c (free_frame_menubar): Add prototype.
2538
01f67d2c
PJ
2539 * lisp.h (init_window): Add prototype.
2540
2541 * editfns.c: Include ctype.h.
2542
2543 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 2544 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
2545 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2546 variable `sb'.
2547
5f351ff1
PJ
2548 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2549 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2550 `popup_activated_flag' and `title'.
2551
479dfe87
PJ
2552 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2553
dff49fc8
PJ
2554 * emacs.c (main): Remove extra `;'.
2555
248ac615
PJ
2556 * atimer.h (struct atimer): Fix typos in a comment.
2557
2558 * atimer.c: Fix typo.
2559
af232c7d
PJ
2560 * Makefile.in: Fix typo.
2561
2562 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 2563
d876f455
MB
25642001-10-07 Miles Bader <miles@gnu.org>
2565
2566 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2567
0037e2f2
KR
25682001-10-07 Ken Raeburn <raeburn@gnu.org>
2569
b056f36d
KR
2570 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2571 Lisp_Object.
2572
0037e2f2
KR
2573 * lisp.h (Ffield_end): Declare.
2574
1a4372ef
GM
25752001-10-07 Gerd Moellmann <gerd@gnu.org>
2576
a4a74e8c
GM
2577 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2578
2579 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2580
2581 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2582
2583 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2584
1a4372ef
GM
2585 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2586 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2587
2588 * alloc.c (inhibit_garbage_collection): Simplify.
2589 (Fmemory_use_counts): Ditto.
2590
9985827f 2591 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
2592 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2593 most-negative-fixnum.
2594
9985827f 2595 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
2596 (FIXNUM_OVERFLOW_P): New macros.
2597
4650e362
MB
25982001-10-06 Miles Bader <miles@gnu.org>
2599
2600 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2601 scroll_bar_bottom_shadow_pixel fields.
2602 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2603 for the shadows, and tell the toolkit about them if we succeed.
2604 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2605 Free scroll-bar shadow colors.
2606 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2607 Free scroll-bar shadow colors when the background color changes.
2608 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2609 Initialize scroll-bar shadow-color fields.
2610
ace64e0a
GM
26112001-10-05 Gerd Moellmann <gerd@gnu.org>
2612
2613 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2614
ec66bdc7
MB
26152001-10-05 Miles Bader <miles@gnu.org>
2616
9985827f
SM
2617 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2618 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 2619 New functions (were in simple.el).
9985827f 2620 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
2621 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2622 (syms_of_minibuf): Initialize them.
2623
a0fb4492
GM
26242001-10-05 Gerd Moellmann <gerd@gnu.org>
2625
2626 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2627 (tiff_load): Install them as error and warning handler.
2628
0bcf87c1
AI
26292001-10-04 Andrew Innes <andrewi@gnu.org>
2630
2631 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2632 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 2633 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
2634 (x_to_w32_charset): Handle private format for unknown charsets.
2635 Handle wildcards in charset spec, by ignoring them.
2636 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2637 "*-" prefix from charset.
2638 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2639 handle the truncated font spec form constructed by font_list_1, so
2640 that we correctly identify the charset fields. Don't remove "*-"
2641 prefix from charset.
2642 (w32_list_synthesized_fonts): Fix argument to alloca.
2643
c89e4bc5
GM
26442001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2645
2646 * window.h (MINI_WINDOW_P): Use NILP.
2647
2648 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2649
2650 * termhooks.h (struct input_event): Use proper type for `kind'.
2651
26522001-10-04 Gerd Moellmann <gerd@gnu.org>
2653
2654 This handles unknown keysyms better than before. For example,
2655 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2656 Emacs formerly completely ignored F5. With the change, it derives
2657 a key symbol from the name of the X keysym, `ccaron' in this case.
2658 Reported by Martin Buchholz.
2659
2660 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2661 unknown keysyms.
2662
2663 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2664 that EVENT->code isn't a function key, use the keysym's name.
2665
26662001-10-04 Gerd Moellmann <gerd@gnu.org>
2667
2668 FOREACH is a macro that should make it easier to loop over Lisp
2669 lists with checks for cycles and proper lists.
2670
2671 * lisp.h (LIST_END_P, FOREACH): New macros.
2672
26732001-10-04 Gerd Moellmann <gerd@gnu.org>
2674
2675 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2676 called for a lost connection. Prevent dumping core in this case.
2677 Instead print the X error, and exit. On user request.
2678
2679 * xterm.c (error_msg): New variable.
2680 (x_fatal_error_signal): New function.
2681 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2682 as fatal_error_signal_hook around the call to XtCloseDisplay.
2683
2684 * emacs.c (fatal_error_signal_hook): New variable.
2685 (fatal_error_signal): Call that function.
2686
26872001-10-04 Gerd Moellmann <gerd@gnu.org>
2688
2689 With this, Emacs prints how much pure storage it will
2690 approximately need in case pure storage overflows while dumping.
2691
2692 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2693 New variables.
2694 (init_alloc_once): Initialize new variables.
2695 (PURE_POINTER_P): Use new variables.
2696 (pure_alloc): If pure storage overflows, allocate from the heap.
2697 (check_pure_size): New function.
2698 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2699
2700 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2701 (check_pure_size): Add prototype.
2702
2703 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2704
27052001-10-04 Gerd Moellmann <gerd@gnu.org>
2706
2707 This adds a post-gc-hook that's run with GC inhibited.
2708 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2709
2710 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2711 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2712 (Fgarbage_collect): Run post-gc-hook.
2713
27142001-10-04 Gerd Moellmann <gerd@gnu.org>
2715
2716 This adds `defvaralias' and `indirect-variable'. Changes not
2717 directly related to this feature are there to gain the same
2718 performance again as before variable aliases.
2719
2720 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2721 code to get and set symbol values, to take defvaralias into account.
2722
2723 (Note: the new `constant' bit-flag in symbols would make it
2724 possible to define arbitrary read-only variables, e.g. with
2725 `defconst'.)
2726
2727 Documentation is in lispref/variables.texi. Added to NEWS.
2728
2729 * lisp.h (enum symbol_interned): New enumeration.
2730 (struct Lisp_Symbol): Remove member `obarray', add
2731 `indirect_variable', `constant', and `interned'.
2732 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2733 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2734 (indirect_variable): Add prototype.
2735
2736 * print.c (print_preprocess, print_object): Test internedness of
2737 symbols differently.
2738
2739 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2740 bit-fields.
2741 (init_obarray): Likewise for t and nil.
2742
2743 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2744 (Fdefvaralias): New function.
2745 (specbind): Simplify the test if symbol is a constant.
2746 (syms_of_eval): Defsubr Fdefvaralias.
2747
2748 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2749 (Qcyclic_variable_indirection): New variable.
2750 (Fkeywordp): Check for internedness differently.
2751 (Fmakunbound): Simplify the test if symbol is a constant.
2752 (indirect_variable, Findirect_variable): New functions.
2753 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2754 aliased symbol.
2755 (let_shadows_buffer_binding_p): Check for variable aliases.
2756 (set_internal): Simplify the test if SYMBOL is a constant.
2757 If SYMBOL has a buffer-local value and is an alias, use the aliased
2758 symbol instead.
2759 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2760 Sindirect_variable.
2761
2762 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2763 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2764 set directly.
2765
2766 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2767
2768 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2769 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2770 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2771
ab952a4f
GM
27722001-10-04 Gerd Moellmann <gerd@gnu.org>
2773
2774 * Branch for 21.1.
b56ba8de 2775
ba88ff28
MB
27762001-10-03 Miles Bader <miles@gnu.org>
2777
2778 * callproc.c (syms_of_callproc): Explicitly state in the
2779 documentation for `process-environment' that earlier entries take
2780 precedence over later ones.
2781
ae1a9581
MB
27822001-10-02 Miles Bader <miles@gnu.org>
2783
2784 * textprop.c (Fnext_char_property_change)
2785 (Fprevious_char_property_change): Remove reference to non-existant
2786 argument OBJECT from doc-string.
2787
257e3f57
GM
27882001-10-01 Gerd Moellmann <gerd@gnu.org>
2789
2790 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2791 (try_window_id): Skip back over lines ending in a newline from a
2792 string.
2793
2794 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2795 New bit flag
2796
c1f29759
RS
27972001-10-01 Richard M. Stallman <rms@gnu.org>
2798
2799 * search.c (Freplace_match): Doc fix.
2800
c30dce3d
AI
28012001-09-28 Andrew Innes <andrewi@gnu.org>
2802
2803 * w32menu.c (set_frame_menubar): Take into account that
2804 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2805 <raeburn@gnu.org>.
2806
03be5931
EZ
28072001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2808
2809 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2810
75bec752
PJ
28112001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2812
2813 * s/gnu-linux.h: Fix a typo in comment.
2814
83100e0a
AS
28152001-09-28 Andreas Schwab <schwab@suse.de>
2816
2817 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2818 nocombreloc, in case -z combreloc is the default.
2819
a74b48cf
GM
28202001-09-28 Gerd Moellmann <gerd@gnu.org>
2821
2822 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2823 really going on here.
2824
09c4719e
SM
28252001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2826
2827 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2828
f7d5d963
EZ
28292001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2830
2831 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2832 utf-8, menu-bar, and latin-N.
2833 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2834 unconditionally now.
2835 (lisp): Add latin-N, since they are preloaded.
2836
9240e746
GM
28372001-09-27 Gerd Moellmann <gerd@gnu.org>
2838
14531065
GM
2839 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2840 to the left. Some cleanup.
2841
9240e746
GM
2842 * xdisp.c (display_mode_element): One more case where a string's
2843 multibyteness should be used for display.
2844
edd1e654
GM
28452001-09-26 Gerd Moellmann <gerd@gnu.org>
2846
b02439c8
GM
2847 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
2848 reading at EOF.
2849
032906b1 2850 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 2851 of the only temporarily set echoing flag for deciding when
032906b1
GM
2852 the cancel echoing.
2853
2854 * keyboard.c (echo_kboard): Make externally visible.
2855
2856 * lisp.h (echo_kboard): Declare extern.
2857
cb617e7c 2858 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 2859 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
2860 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
2861 this round of redisplay if make_cursor_line_fully_visible fails.
2862 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 2863 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
2864
2865 * dispextern.h (required_matrix_width, required_matrix_height):
2866 Add prototypes.
2867
09c4719e
SM
2868 * dispnew.c (required_matrix_width, required_matrix_height):
2869 New functions.
cb617e7c 2870 (allocate_matrices_for_window_redisplay)
09c4719e
SM
2871 (allocate_matrices_for_frame_redisplay: Use them.
2872 Remove parameters CH_DIM.
cb617e7c 2873
edd1e654
GM
2874 * xdisp.c (display_mode_lines): Temporarily set selected_frame
2875 and selected_window to the frame of the window whose mode-lines
2876 are displayed, and to the window itself.
2877 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 2878 here.
edd1e654 2879
924b604c
GM
28802001-09-25 Gerd Moellmann <gerd@gnu.org>
2881
daba7643
GM
2882 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
2883 the image cache under us.
2884
b7a22712 2885 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 2886 with a string value, use that string's multibyteness for displaying.
b7a22712 2887
ad648212
GM
2888 * keyboard.c (read_char): Don't clear a message for a switch-frame
2889 event. From Stefan Monnier <monnier@cs.yale.edu>.
2890
9f8531e5
GM
2891 * xterm.c (fast_find_position) [0]: Add a presumably more correct
2892 version for after 21.1.
2893
2894 * xdisp.c (row_containing_pos): Make externally visible.
2895
2896 * dispextern.h (row_containing_pos): Add prototype.
2897
924b604c
GM
2898 * process.c (send_process): Disable composition if from_byte < 0.
2899 From Kenichi Handa <handa@etl.go.jp>.
2900
6f3f0db4
GM
29012001-09-24 Gerd Moellmann <gerd@gnu.org>
2902
c69c0ebc
GM
2903 * xterm.c (refreshicon): Function removed.
2904
d1182bc4
GM
2905 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
2906
2907 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
2908
2909 * xterm.c (toplevel): Remove includes in #if 0.
2910
6f3f0db4
GM
2911 * process.c (sigchld_handler) [LINUX]: Don't return from
2912 the signal handler at the end of the loop.
2913
59957f85
GM
29142001-09-21 Gerd Moellmann <gerd@gnu.org>
2915
09c4719e
SM
2916 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
2917 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 2918
a0528984
EZ
29192001-09-21 Markus Rost <rost@math.ohio-state.edu>
2920
2921 * Makefile.in (shortlisp): Add ../lisp/env.elc.
2922
db92b288
GM
29232001-09-20 Gerd Moellmann <gerd@gnu.org>
2924
3fed8ad5
GM
2925 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
2926 since this function can be called during GC.
2927
db92b288
GM
2928 * callproc.c (Fcall_process): Handle errors from pipe(2).
2929 (child_setup): Delete code in #ifdef vipc.
2930
7121b85a
GM
29312001-09-19 Gerd Moellmann <gerd@gnu.org>
2932
72f62cb5
GM
2933 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
2934 (display_mode_element): Display the string from decode_mode_spec
2935 depending on its multibyteness.
2936
a2697022
GM
2937 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
2938
7121b85a
GM
2939 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
2940
bfc97351
GM
29412001-09-18 Gerd Moellmann <gerd@gnu.org>
2942
c9063433
GM
2943 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
2944 recursive_edit_unwind.
2945 (recursive_edit_unwind): Set kboard state according to
2946 SINGLE-KBOARD.
2947
3fbdba3e
GM
2948 * buffer.c (modify_overlay): Don't do nothing if START == END;
2949 This can still be a modification, for example when an overlay has
2950 a before-string or after-string.
2951 (Fdelete_overlay): Prevent redisplay optimizations when deleting
2952 an overlay with before-string or after-string.
2953
1270031d
GM
2954 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
2955 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
2956
bfc97351
GM
2957 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
2958 first_unchanged_at_end_row is in front of
2959 last_unchanged_at_beg_row. This code should be removed after the
2960 release of 21.1.
2961
d8a973aa
GM
29622001-09-17 Gerd Moellmann <gerd@gnu.org>
2963
e18c8b8d
GM
2964 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
2965 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
2966
d8a973aa
GM
2967 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
2968 versions >= 2.95.
2969
ed7d6ba4
EZ
29702001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
2971
2972 * dired.c (Ffile_attributes): Doc fix.
2973
551629f9
GM
29742001-09-14 Gerd Moellmann <gerd@gnu.org>
2975
2976 * fileio.c (Ffile_symlink_p): Fix last change.
2977
2978 * filelock.c (current_lock_owner): Fix last change.
2979
4c8c7926
GM
29802001-09-13 Gerd Moellmann <gerd@gnu.org>
2981
620c4704
GM
2982 * filelock.c (current_lock_owner): If readlink returns ERANGE,
2983 take that to mean that the buffer is too small.
2984
81c3310d
GM
2985 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
2986 that to mean that the buffer is too small.
2987
06fd3792
GM
2988 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
2989 current buffer's multibyteness when discarding the iterator's
2990 stack.
2991
4c8c7926
GM
2992 * xfns.c (Fx_window_property): Handle case that property gets
2993 deleted between the two calls to XGetWindowProperty.
2994
9a72e4c1
GM
29952001-09-11 Gerd Moellmann <gerd@gnu.org>
2996
bd819d14 2997 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 2998
a41edd99
GM
2999 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3000 in addition to read-only.
3001
3002 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3003 to t in addition to read-only.
3004
3005 * lisp.h (Qinhibit_modification_hooks): Declare.
3006
3007 * insdel.c (Qinhibit_modification_hooks): New variable.
3008 (syms_of_insdel): Initialize and staticpro it.
3009
d4881c6a
GM
3010 * textprop.c (verify_interval_modification): Don't run
3011 modification-hooks if inhibit_modification_hooks.
3012
3013 * dispnew.c (set_window_cursor_after_update): Fix code
3014 finding glyph row containing cursor when cursor_in_echo_area
3015 is >= 0.
3016
9a72e4c1
GM
3017 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3018 (add_to_log): Use bcopy instead of strcpy.
3019 (init_from_display_pos): Use an explicit loop over bytes in
3020 overlay strings instead of calling index.
3021
f4a374a1
GM
30222001-09-10 Gerd Moellmann <gerd@gnu.org>
3023
300e57bd
GM
3024 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3025
3026 * dispnew.c (direct_output_for_insert): Don't change IT's
3027 stop_charpos to something in front of its current position.
3028
f4a374a1
GM
3029 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3030 `format'.
3031
7e4cbc91
RS
30322001-09-10 Richard M. Stallman <rms@gnu.org>
3033
3034 * frame.c (Fmouse_position): Doc fix.
3035
6afad91e
GM
30362001-09-07 Gerd Moellmann <gerd@gnu.org>
3037
3038 * xdisp.c (init_from_display_pos): Don't compare the result
3039 of calling index with NULL.
3040
f76e0368
GM
30412001-09-06 Gerd Moellmann <gerd@gnu.org>
3042
3043 * xfns.c (x_set_background_color): Don't change the colors
3044 of the X window of scroll bar widgets.
3045
9ead1b60
AI
30462001-09-05 Andrew Innes <andrewi@gnu.org>
3047
3048 * w32fns.c (w32_createwindow): Undo last change.
3049
c3b497b3
GM
30502001-09-05 Gerd Moellmann <gerd@gnu.org>
3051
08e1d6df
GM
3052 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3053
c3b497b3
GM
3054 * xdisp.c (string_buffer_position): Use *single_char_property*
3055 functions instead of the *single_property* functions.
b56ba8de 3056
8f860180
AI
30572001-09-04 Andrew Innes <andrewi@gnu.org>
3058
9a72e4c1
GM
3059 * w32term.c (w32_read_socket): Add more information to debugging
3060 output.
8f860180
AI
3061
3062 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3063 from Emacs frames, so that calls to GetClipBox in w32term.c
3064 correctly report when part of a frame is visible (including
3065 scrollbars, etc). This prevents repeated redrawing of frames when
3066 only a scrollbar is visible.
3067 (w32_wnd_proc): Add more frame information to debugging output.
3068
2ee1aa00
SM
30692001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3070
3071 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3072
e3b22517
GM
30732001-09-03 Gerd Moellmann <gerd@gnu.org>
3074
7e376260
GM
3075 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3076 help-echo for a string which doesn't have help-echo itself, use
3077 get-char-property to obtain the help-echo from the string's buffer
3078 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3079 have mouse-face, look ``under'' the string for mouse-face from an
3080 overlay.
3081 (fast_find_position): Add parameter STOP. In the final row, stop
3082 before glyphs having STOP as object. Don't consider glyphs that
3083 are not from a buffer.
3084
e3b22517
GM
3085 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3086
9a249bba
EZ
30872001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3088
3089 * fns.c (Fmd5): Doc fix.
3090
c9979669
GM
30912001-08-31 Gerd Moellmann <gerd@gnu.org>
3092
3093 * composite.c (update_compositions): Do nothing if
3094 inhibit-modification-hooks is set.
3095
9584e63a
GM
30962001-08-30 Gerd Moellmann <gerd@gnu.org>
3097
986ec8f2 3098 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 3099 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
3100 glyph matrices etc. in a core dump.
3101
92a25631
GM
3102 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3103 (syms_of_xdisp): Initialize them.
3104 (handle_single_display_prop): Don't change point, bind `object',
3105 `position', and `buffer-position' instead to the object having the
2ee1aa00 3106 `display' property, position in the object and position in the buffer.
92a25631 3107
9584e63a
GM
3108 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3109 of the buffer if REPLACE is non-nil.
3110
d38633a3
GM
31112001-08-29 Gerd Moellmann <gerd@gnu.org>
3112
3113 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3114
f4fccc1e
EZ
31152001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3116
3117 * w32term.c (x_set_glyph_string_background_width)
3118 (show_mouse_face): Track the last changes in xterm.c.
3119
eaaa65b0
GM
31202001-08-28 Gerd Moellmann <gerd@gnu.org>
3121
7b0870b2
GM
3122 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3123 string's background width so that multi-line mouse-face is drawn
3124 to the right edge of the window.
3125 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3126 glyphs.
3127
6b6e2422 3128 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 3129 before inserting/writing glyphs.
6b6e2422 3130
eaaa65b0
GM
3131 * xdisp.c (display_mode_element): Use string_byte_to_char to
3132 determine character positions in strings, use chars_in_text
3133 instead of strwidth.
3134 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3135 a matrix as parameter; this is easier to use from GDB.
3136
9ad62cf8
MB
31372001-08-28 Miles Bader <miles@gnu.org>
3138
2ee1aa00
SM
3139 * textprop.c (Fprevious_single_char_property_change)
3140 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 3141
32171635
GM
31422001-08-27 Gerd Moellmann <gerd@gnu.org>
3143
47d57b22
GM
3144 * fileio.c (Finsert_file_contents): Allocate, restore, and
3145 free composition data in the case of REPLACE not being nil.
3146
3147 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3148 there exist overlay strings with newlines at POS.
3149 (text_outside_line_unchanged_p): Return 0 if changes start at
3150 START and overlays exist at START. Likewise for END.
3151 (try_window_id): Give up if init_to_row_end returns 0.
3152
32171635
GM
3153 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3154 unconditionally.
3155
e1249666
GM
31562001-08-24 Gerd Moellmann <gerd@gnu.org>
3157
33954c45
GM
3158 * keymap.c (access_keymap): Return the cdr of the binding of
3159 a generic character instead of its definition (KEY . BINDING).
3160
e1249666
GM
3161 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3162 to 0 also in the REPLACE case.
3163
fb4c6c96
AC
31642001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3165
3166 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3167 open to determine whether file is readable (as for DOS_NT).
3168
59ecf80b
GM
31692001-08-23 Gerd Moellmann <gerd@gnu.org>
3170
3171 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3172 coding.type is coding_type_no_conversion or coding_type_raw_text,
3173 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3174 non-nil instead of just setting enable_multibyte_characters in the
3175 buffer to nil.
3176
40e33037
GM
31772001-08-22 Gerd Moellmann <gerd@gnu.org>
3178
374388c3
GM
3179 * dispextern.h (struct face_cache): Add member
3180 menu_face_changed_p.
3181
3182 * xfaces.c (menu_face_changed_default): New variable.
3183 (menu_face_changed_count): Variable removed.
3184 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3185 the menu_face_changed_default flag, otherwise set the FRAME's
3186 menu_face_changed_p flag if the `menu' face has been changed.
3187 Prevent calling set_font_frame_param if FRAME is t.
3188 (make_face_cache): Initialize cache's menu_face_changed_p
3189 from menu_face_changed_default.
3190 (realize_basic_faces): Look into the frame's face cache to
3191 determine if the menu appearance needs updating.
3192
40e33037
GM
3193 * keymap.c (access_keymap): Fix last change to not consider
3194 IDX when it has modifiers.
3195
859ea4b8
GM
31962001-08-21 Gerd Moellmann <gerd@gnu.org>
3197
3198 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3199 . BINDING) exists, where GENERIC-CHAR is the generic character of
3200 the charset of IDX, return BINDING unless there exists a binding
3201 for IDX itself.
3202
e8660d73
GM
32032001-08-16 Gerd Moellmann <gerd@gnu.org>
3204
cca1b1d7
GM
3205 * xrdb.c (SYSV): Don't define on Solaris 2.
3206 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3207
e8660d73 3208 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 3209 of the screen line, not text line, containing IT's current position.
e8660d73 3210
93aba6fc
GM
32112001-08-15 Gerd Moellmann <gerd@gnu.org>
3212
288d4e06
GM
3213 * window.c (window_scroll_pixel_based): Don't recenter if
3214 PT is partially visible in the window.
3215
3452efc2
SM
3216 * xterm.c (expose_window_tree, expose_window, expose_line):
3217 Return 1 when overwriting mouse-face.
82f053ab
GM
3218 (expose_frame): If mouse-face was overwritten, redo it.
3219
93aba6fc
GM
3220 * xfaces.c (x_update_menu_appearance): Don't call
3221 set_frame_menubar, let the next redisplay do it.
3222
858a55c1
AI
32232001-08-14 Andrew Innes <andrewi@gnu.org>
3224
3225 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3226 drawing glyph string.
3227
3a990b67
EZ
32282001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3229
3230 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3231 running HI-UX/MPP.
3232
04386463
GM
32332001-08-14 Gerd Moellmann <gerd@gnu.org>
3234
3235 * xfaces.c (x_update_menu_appearance): Save and restore value of
3236 interrupt_input_blocked.
3237
3e6385a4
GM
32382001-08-13 Gerd Moellmann <gerd@gnu.org>
3239
b0e619b4
GM
3240 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3241 a line start, move back to the line start.
3452efc2 3242
0de73d5a
GM
3243 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3244 exactly when a mini-buffer is active.
3245
3e6385a4
GM
3246 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3247 in units of 1/8 character on non window-system frames.
3248 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3249
d1b5f629
EZ
32502001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3251
3252 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3253 a doc string.
3254
eaa2319f
GM
32552001-08-09 Gerd Moellmann <gerd@gnu.org>
3256
8e3189f0
GM
3257 * keyboard.c (Vpre_help_message): New variable.
3258 (syms_of_keyboard): Initialize and staticpro it.
3259 (show_help_echo): Record current message before displaying a
3260 help-echo, and restore that message when clearing the help.
3261
eaa2319f
GM
3262 * xfns.c (x_create_im): Remove prototype.
3263
3264 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3265
3266 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 3267
eaa2319f
GM
32682001-08-08 Gerd Moellmann <gerd@gnu.org>
3269
3270 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 3271 windows whose height has changed, disable partially visible lines.
eaa2319f 3272
17fdcfc8
GM
32732001-08-07 Gerd Moellmann <gerd@gnu.org>
3274
22d01aed 3275 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 3276 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 3277
17fdcfc8
GM
3278 * xdisp.c (start_display): Don't try to determine the continuation
3279 lines width if lines are truncated. It's superfluous and leads to
3280 incorrect results if POS is not visible in the window after
3281 reseating the iterator at the previous line start.
3282
8e3fe78e
GM
32832001-08-06 Gerd Moellmann <gerd@gnu.org>
3284
3285 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3286
98a8938c
GM
32872001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3288
3289 * alloc.c (init_stack): Remove declaration.
3290
18f9986a
GM
32912001-08-03 Gerd Moellmann <gerd@gnu.org>
3292
5e1f85e0
GM
3293 * keyboard.c (read_key_sequence): Check that key is an integer
3294 before comparing it with quit_char.
3295 (add_command_key): Use larger_vector.
3296 (read_char_x_menu_prompt): Instead of converting symbol and
3297 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 3298 which cannot be confused with valid events.
5e1f85e0
GM
3299 (read_char): When reading from Vunread_command_events, check for
3300 events of the form (EVENT . disabled) instead of
3301 (EVENT . nil).
3302
18f9986a
GM
3303 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3304 a float, determine the max height from the frame's height.
3305
fbc7f2a6
GM
33062001-08-02 Gerd Moellmann <gerd@gnu.org>
3307
3308 * xdisp.c (redisplay_internal): Take message_cleared_p into
3309 account only if minibuf_level == 0.
3310
81b1a79d
GM
33112001-08-01 Gerd Moellmann <gerd@gnu.org>
3312
e5c60873
GM
3313 * xdisp.c (redisplay_internal): Add a check for the last
3314 displayed message.
3452efc2 3315
6e019995
GM
3316 * xdisp.c (message_cleared_p): New variable.
3317 (clear_message): Set message_cleared_p when clearing the current
3318 message.
3319 (redisplay_internal): Look at message_cleared_p to capture
3320 the case that the echo area should be cleared.
3321
308a74d8
GM
3322 * keyboard.c (command_loop_1): Fix spelling of
3323 resize_echo_area_exactly.
3324
3452efc2 3325 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
3326
3327 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3328
81b1a79d
GM
3329 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3330 current matrix when the window gets smaller.
3331
ada329e6
EZ
33322001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3333
3334 * print.c (strout): Cast the character passed to insert_char to
3335 unsigned char, to avoid sign extension when it is promoted to int.
3336
ed86208c
GM
33372001-07-31 Gerd Moellmann <gerd@gnu.org>
3338
3339 * fileio.c (Finsert_file_contents): Don't treat a return value
3340 of 0 from emacs_read as an IO error.
3341
6594ac22
GM
33422001-07-30 Gerd Moellmann <gerd@gnu.org>
3343
cef68af5
GM
3344 * keyboard.c (abs): New macro.
3345 (double_click_fuzz): New variable.
3346 (make_lispy_event): Use it to determine what makes a double-click.
3347 (syms_of_keyboard): DEFVAR_INT it.
3348
6594ac22
GM
3349 * xmenu.c (set_frame_menubar): Take into account that
3350 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3351 <raeburn@gnu.org>.
3352
75c5350a
GM
33532001-07-27 Gerd Moellmann <gerd@gnu.org>
3354
3355 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3356
3357 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3358 of row's visible height.
3359
3360 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
3361 deal with the first overlay string having an image `display' property.
3362 (try_window_reusing_current_matrix, compute_line_metrics):
3363 Fix computation of row's visible height for the case that part of the
75c5350a
GM
3364 row is invisible above and part of the row is at the same time
3365 invisible below the window.
3366
ac49effe
GM
33672001-07-26 Gerd Moellmann <gerd@gnu.org>
3368
3369 * xfns.c (x-show-tip): Doc fix.
3452efc2 3370
ac49effe
GM
3371 * xfns.c (Vx_max_tooltip_size): New variable.
3372 (syms_of_xfns): DEFVAR_LISP it.
3373 (Fx_show_tip): Set frame's window_width to the width of the
3374 window. Use a maximum tooltip size specified by
3375 Vx_max_tooltip_size, if that has valid contents.
3376 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 3377
8c3b00cb
AI
33782001-07-26 Andrew Innes <andrewi@gnu.org>
3379
3380 * w32term.c (x_display_list): New variable.
3381 (w32_term_init): Set it.
3382
3383 * w32term.h (x_display_list): New extern.
3384
16098288
GM
33852001-07-26 Gerd Moellmann <gerd@gnu.org>
3386
3387 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
3388 is non-nil, instead of when redisplaying_p is non-zero.
3389 See comment there.
16098288
GM
3390 (mark_window_display_accurate_1): Add an assertion.
3391
64c5be50
GM
33922001-07-25 Gerd Moellmann <gerd@gnu.org>
3393
e743f599
GM
3394 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3395
563b384d
GM
3396 * xfns.c (Fx_file_dialog): Block/unblock input while processing
3397 events so that we get a chance of processing expose events.
3398
64c5be50
GM
3399 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
3400
296808a5
GM
34012001-07-24 Gerd Moellmann <gerd@gnu.org>
3402
3403 * xfns.c (valid_image_p): Protect better against invalid image
3404 specifications. Previous code could signal an error.
3405
5247262a
GM
34062001-07-23 Gerd Moellmann <gerd@gnu.org>
3407
3452efc2 3408 * indent.c (current_column): Fix column computation in the
f1004faf
GM
3409 presence of display table entries.
3410 (current_column_1, Fmove_to_column, compute_motion): Likewise.
3411
dd42b31a
GM
3412 * dispnew.c (adjust_glyph_matrix): In the optimization for
3413 windows whose height has changed, use the new window height
3414 to compute which rows to invalidate.
3415
9e5a7f2a
GM
3416 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
3417 (MAX_10_EXP): New macro.
3418 (Fformat): Use it.
3419
5247262a
GM
3420 * coding.c (code_convert_region): Handle the multibyte case if
3421 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
3422
177ab8ce
GM
34232001-07-20 Gerd Moellmann <gerd@gnu.org>
3424
6e07c0a5
GM
3425 * dispextern.h (struct face): Change type of `stipple' to
3426 int; it's an ID.
3427
177ab8ce
GM
3428 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
3429
b5b80599
GM
34302001-07-19 Gerd Moellmann <gerd@gnu.org>
3431
4e2a256b
GM
3432 * dispnew.c (update_window): Don't set the cursor at the end
3433 of the update if display update has been paused.
3434
3452efc2 3435 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 3436
c1fd9232
KR
34372001-07-18 Ken Raeburn <raeburn@gnu.org>
3438
3439 * fns.c (Fset_char_table_default): Check that a charset is defined
3440 before checking its dimension.
3441
928a85c1
KR
34422001-07-17 Ken Raeburn <raeburn@gnu.org>
3443
3444 * coding.c (setup_coding_system): Don't do any designation based
3445 on reg_bits if charset is not yet defined.
3446
fb4c6c96 3447 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
3448 pointer, using eassert.
3449
de11c1ea
GM
34502001-07-17 Gerd Moellmann <gerd@gnu.org>
3451
3452efc2
SM
3452 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
3453 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 3454
467f1209
GM
34552001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
3456
3457 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
3458
c3d6be34
GM
34592001-07-16 Gerd Moellmann <gerd@gnu.org>
3460
c1d61a7d
GM
3461 * fileio.c (unwind_read): Function removed.
3462 (read_non_regular, read_non_regular_quit): New functions.
3463 (Finsert_file_contents): When reading from non-regular files,
3464 arrange to catch a `quit' and terminate the loop. Rearrange
3465 code so that a `quit' when reading from a regular file doesn't
3466 insert text in the buffer.
3467
c3d6be34
GM
3468 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
3469 Clear faces afterwards.
3470 (clear_font_table): Take a x_display_info parameter. Don't free
3471 fonts being the default font of any frame on the given display.
3472
e06aa1f9
GM
34732001-07-13 Gerd Moellmann <gerd@gnu.org>
3474
3475 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
3476 instead of CHAR_STRING which can signal an error.
3477
3478 * charset.c (char_to_string_1): Extracted from char_to_string.
3479 Return -1 instead of signaling an error.
3480 (char_to_string): Use it.
3481
3482 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3483
176c92e6
SM
34842001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3485
3486 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3487 is t, don't try to append anything to it.
3488
1c56232f
EZ
34892001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3490
3491 * dired.c (file_name_completion): Pass dp->d_name to
3492 Fstring_match, not elt, which is always nil here.
3493
1d2b2268
GM
34942001-07-12 Gerd Moellmann <gerd@gnu.org>
3495
3496 * xselect.c (x_decline_selection_request): Handle errors
3497 caused by receivers that have vanished.
3498
3499 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3500 ignoring events on foreign windows in #if 0. Always dispatch
3501 the event after checking it with x_handle_property_notify.
3502
3503 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
3504 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3505 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
3506 (toplevel): Add prototypes for file-local functions.
3507 (x_atom_to_symbol): Remove DPYINFO parameter.
3508
fe5a0162
SM
35092001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3510
3511 * w32menu.c (menubar_selection_callback, w32_menu_show):
3512 Initialize `entry' to nil.
3513 (w32_dialog_show): Remove unused `save_wv' variable.
3514 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3515
a777242c
GM
35162001-07-11 Gerd Moellmann <gerd@gnu.org>
3517
8ee5b6a3
GM
3518 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3519
d0e2444e
GM
3520 * fileio.c (unwind_read): Print a message when discarding inserted
3521 text or switching the buffer to unibyte. Change parameter.
3522 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 3523
a777242c
GM
3524 * fileio.c (unwind_read): New function.
3525 (Finsert_file_contents): Record it as unwind-function for
3526 the case that reading is interrupted by C-g.
3527
ae794295
GM
35282001-07-10 Gerd Moellmann <gerd@gnu.org>
3529
fe5a0162 3530 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
3531 update when scrolling_window returns 0.
3532
6b05fae3
GM
3533 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3534
3535 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 3536 for the case that x_decode_color signals an error.
6b05fae3 3537
ae794295
GM
3538 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3539
bb6e8cee
GM
35402001-07-09 Gerd Moellmann <gerd@gnu.org>
3541
3542 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3543 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3544 around ioctls.
3545
36b40a8a
EZ
35462001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3547
24b97d4b
EZ
3548 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3549 doc string line for dos-timezone-offset.
3550
36b40a8a
EZ
3551 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3552 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
3553 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3554 line for dos-unsupported-char-glyph.
36b40a8a
EZ
3555
3556 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3557
0967b4b0
GM
35582001-07-05 Gerd Moellmann <gerd@gnu.org>
3559
f25cfe53
GM
3560 * sound.c: Include Emacs' header files with #include "...".
3561
0967b4b0
GM
3562 * eval.c (specbind): Additionally record the buffer that was
3563 current when a buffer-local or frame-local variable was bound.
3564
c347a1c3
GM
35652001-07-04 Gerd Moellmann <gerd@gnu.org>
3566
3567 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3568 to unibyte characters in unibyte buffers.
3569
6332ca8a
GM
35702001-07-03 Gerd Moellmann <gerd@gnu.org>
3571
38472d44
GM
3572 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3573 the frame on the binding stack. Change format of entries for
3574 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3575 (unbind_to): Handle unbinding a frame-local variable.
3576
6332ca8a 3577 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 3578 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
3579 (dump_glyph_row): Print row's continuation_lines_width.
3580 (try_window_id): Take the shortcut if ZV is visible in the
3581 window, but there are actually no changes at ZV.
3582
63d1b174
GM
35832001-07-02 Gerd Moellmann <gerd@gnu.org>
3584
4c175203
GM
3585 * xterm.h (x_free_dpy_colors): Add prototype.
3586
3587 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3588 right number of arguments.
3589
0b54ce28
GM
3590 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3591 ($(lwlibdir)TAGS): New target.
4c175203 3592 (TAGS): Fix dependency list.
0b54ce28 3593
63d1b174
GM
3594 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3595 with input blocked.
3596
d827466c
GM
35972001-06-30 Gerd Moellmann <gerd@gnu.org>
3598
3599 * emacs.c (main): Remove extern declaration for sys_nerr, which
3600 isn't used and causes a compilation error with GCC 3.0 on
3601 FreeBSD 4.3.
3602
b5cb1ada
GM
36032001-06-27 Gerd Moellmann <gerd@gnu.org>
3604
a5d3ec3f 3605 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 3606 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
3607 (toplevel): Include <signal.h> and syssignal.h.
3608
b5cb1ada
GM
3609 * sound.c (vox_configure, vox_close): Turn off atimers
3610 around ioctls.
3611
d9bad487
GM
36122001-06-26 Gerd Moellmann <gerd@gnu.org>
3613
fdbb67fe
GM
3614 * keyboard.c (read_char) <non_reread>: Record the previous idle
3615 start time before calling timer_stop_idle.
3616 (read_char) <reread_first>: After processing a help-echo event,
3617 restore the previous idle start time.
3618
d9bad487
GM
3619 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3620 the start of invisible text.
3621 (setup_for_ellipsis): New function.
3622 (next_overlay_string): After all overlay strings have been
3623 processed, display an ellipsis if necessary.
3624 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3625 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3626
3627 * dispextern.h (struct iterator_stack_entry): Add member
3628 display_ellipsis_p.
3629
2b9c25e0
GM
36302001-06-25 Gerd Moellmann <gerd@gnu.org>
3631
80de57df
GM
3632 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3633 on the value of the wait-for-wm frame parameter.
3634
3635 * xterm.h (struct x_output): Add member wait_for_wm.
3636
3637 * xfns.c (Qwait_for_wm): New variable.
3638 (x_frame_parms): Add entry for `wait-for-wm".
3639 (x_set_wait_for_wm): New function.
3640 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3641 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3642
2b9c25e0
GM
3643 * xdisp.c (try_window_id) <all changes below window end>: Don't
3644 take this shortcut if ZV is visible in the window.
3645 (try_window_id): When checking for window start being in changed
3646 text, don't check that the buffer's size has changed.
3647
f772775c
RS
36482001-06-23 Richard M. Stallman <rms@gnu.org>
3649
3650 * minibuf.c (Fcompleting_read): Doc fix.
3651
fa9090b8
GM
36522001-06-19 Gerd Moellmann <gerd@gnu.org>
3653
3654 * composite.c (Ffind_composition_internal): Accept ZV
3655 and a string's end position as POS.
3656
f6f1beba
GM
36572001-06-18 Gerd Moellmann <gerd@gnu.org>
3658
3659 * composite.c (Ffind_composition_internal): Check POS
3660 for validity.
3661
0ae83348
EZ
36622001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3663
3664 * editfns.c (Fmessage_box): If the frame is not under a window
3665 system, output the message in the echo area.
3666
e4cdc335
RS
36672001-06-14 Richard M. Stallman <rms@gnu.org>
3668
3669 * xdisp.c (try_window_id): When EOB is visible, don't treat
3670 insertion at EOB as if it were "off the bottom of the screen."
3671
a55a5f3c
AI
36722001-06-11 Andrew Innes <andrewi@gnu.org>
3673
3674 * w32proc.c (create_child): Add new parameter is_gui_app.
3675 (w32_executable_type): Add new parameter is_gui_app.
3676 (sys_spawnve): Use it.
3677 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3678 SIGQUIT. This matches better how the signals are interpreted by
3679 MSVC compiled programs.
3680 (syms_of_ntproc): Update docstring.
3681
1b85dc1c
SM
36822001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3683
3684 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3685 well otherwise note_mouse_highlight might optimize away highlighting
3686 if we pass over that same overlay again.
3687
b75f8eab
EZ
36882001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3689
3690 * lread.c (Fload): Document that the argument is run via
3691 substitute-in-file-name.
3692
94843cc1
GM
36932001-05-31 Gerd Moellmann <gerd@gnu.org>
3694
b14659e6
GM
3695 * Makefile.in (bootstrap-doc): New target.
3696 (bootstrap-emacs): Depend on it.
3697
0894672f
GM
3698 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3699 auto-save-list-file-name when shutting down Emacs, because
3700 creating the directory might signal an error, and leaves
3701 Emacs in a strange state.
3702
94843cc1
GM
3703 * term.c: (tty_cursor_hidden): New variable.
3704 (update_begin): Don't call tty_hide_cursor. Clean up.
3705 (update_end, set_terminal_window, set_scroll_region): Clean up.
3706 (ring_bell, reset_terminal_modes): Clean up.
3707 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3708 on tty_cursor_hidden.
3709 (write_glyphs): Call tty_hide_cursor.
3710
db3a49a6
SM
37112001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3712
3713 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3714
8bd189fb
GM
37152001-05-30 Gerd Moellmann <gerd@gnu.org>
3716
6f1be3b9
GM
3717 * xfns.c (enum image_value_type): New enumerator
3718 IMAGE_STRING_OR_NIL_VALUE.
3719 (parse_image_spec): Handle it.
3720 (xbm_format, pbm_format): Use it for :foreground and :background.
3721 (xbm_load, pbm_load): Check for nil color names.
3722
8bd189fb
GM
3723 * xterm.c (note_mouse_highlight): If an overlapping overlay
3724 exists, but we find that we highlight the same overlay as before,
3725 don't do the highlighting again.
3726
7bdba03c
GM
37272001-05-29 Gerd Moellmann <gerd@gnu.org>
3728
4c329aa8
GM
3729 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3730 Protect unibyte strings created by replacing their multibyte
3731 equivalents in menu_items.
3732
e15e2828
GM
3733 * keymap.c (Fsingle_key_description): NUL-terminate the string
3734 buffer before calling build_string.
3735
7bdba03c
GM
3736 * callproc.c (Fcall_process): Deal with decode_coding returning
3737 CODING_FINISH_INCONSISTENT_EOL.
3738
89c8dc6c
GM
37392001-05-28 Gerd Moellmann <gerd@gnu.org>
3740
db3a49a6 3741 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
3742 an item's name with its key description in case the description
3743 is a multibyte string.
3744
3745 * keymap.c (Fsingle_key_description): Create a multibyte string
3746 only if necessary.
3747
eb04d6cd
GM
3748 * macros.c (Fstart_kbd_macro): Doc fix.
3749
8bd6307f
GM
3750 * xterm.c (cursor_in_mouse_face_p): New function.
3751 (x_draw_stretch_glyph_string): Use it to choose a different GC
3752 when drawing a cursor within highlighted text.
3753
e26c4089
GM
3754 * editfns.c (char_property_eq): Put in #if 0.
3755
3756 * indent.c (string_display_width): Put in #if 0.
3757
3758 * lread.c (Fload): Remove unused label.
3759
89c8dc6c
GM
3760 * termcap.c (speeds): Put in #if 0.
3761
9a1211f2
GM
37622001-05-18 Gerd Moellmann <gerd@gnu.org>
3763
29148a3f
GM
3764 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3765
9a1211f2
GM
3766 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3767 transformation matrix by 10.
3768
09393d07
GM
37692001-05-16 Gerd Moellmann <gerd@gnu.org>
3770
3771 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3772 only if it's equal to the former foreground pixel color.
db3a49a6 3773 (x_set_foreground_color, x_set_background_color)
09393d07
GM
3774 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3775
460e6bae
GM
37762001-05-16 Dave Love <fx@gnu.org>
3777
3778 * insdel.c (signal_before_change, signal_after_change): Consider a
3779 local change hook which changes the buffer.
99c78ce8
GM
3780
3781 * process.c (read_process_output): Don't call signal_after_change
3782 and update_compositions after insert_from_string_before_markers.
3783
dbcf3c03
GM
37842001-05-16 Gerd Moellmann <gerd@gnu.org>
3785
a90b3d3c
GM
3786 * xfaces.c (split_font_name): Use the right field when
3787 checking for `[...]' syntax.
3788
1b7818b4
GM
3789 * buffer.c (copy_overlays): New function.
3790 (clone_per_buffer_values): Use it.
3791
3792 * buffer.h (OVERLAY_PLIST): New macro.
3793
9bae8781
GM
3794 * keymap.c (Fsingle_key_description): Replace a build_string with
3795 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3796
dbcf3c03
GM
3797 * fontset.c (Ffontset_info): Check that face is non-null
3798 before accessing its fields.
3799
8a1ae4dd
GM
38002001-05-15 Gerd Moellmann <gerd@gnu.org>
3801
18a0a39e
GM
3802 * keyboard.c (read_key_sequence): Prevent generating a fake
3803 prefix key twice.
3804
e335b66a
GM
3805 * xfaces.c (split_font_name): Handle `[...]' for the right
3806 font name fields.
3807
8a1ae4dd
GM
3808 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3809 of CCL_STAT_INVALID_CMD.
3810
3cf80731
SM
38112001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3812
33568849
SM
3813 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3814 in <var> has no default value yet.
3815
3cf80731
SM
3816 * xfaces.c (try_alternative_families): First try the FAMILY.
3817 And if nothing is found in the end, try again with scalable fonts.
3818 (try_font_list): Let try_alternative_families do a bit more of
3819 the work. Only use FAMILY if it is not nil.
3820 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3821
933b0249
GM
38222001-05-14 Gerd Moellmann <gerd@gnu.org>
3823
58e5af83
GM
3824 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3825 pointer shape when show_mouse_face has already done it.
33568849 3826
58e5af83 3827 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
3828 full-width rows.
3829
7b16a6bf
GM
3830 * xfaces.c (split_font_name): Make sure to leave the loop
3831 with the right value of `i'.
3cf80731 3832
933b0249
GM
3833 * xfaces.c (split_font_name): Handle matrix transformations
3834 in the pixel and point size fields of XLFD font names.
3835 (xlfd_point_size): Likewise.
3836
dddcbf00
EZ
38372001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3838
3cf80731 3839 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
3840 (x_to_w32_font): Add prototype.
3841
7689ef0b
EZ
3842 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3843 redefining, to avoid compiler warnings.
3844
e7c15bba
EZ
3845 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
3846
dddcbf00
EZ
3847 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
3848 (w32_get_bdf_glyph): Cast between unsigned char and char when
3849 passing arguments to subroutines, to shut up compiler warnings.
3850 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
3851 GET_HEX_VAL.
3852
3853 * xfaces.c: Include keyboard.h before frame.h, not after it.
3854
3855 * widget.c: Include keyboard.h before frame.h.
3856
3857 * w32term.h (struct image, struct face): Forward declaration, to
3858 avoid compiler warnings.
3859
7bd2d083
GM
38602001-05-11 Gerd Moellmann <gerd@gnu.org>
3861
47e72862
GM
3862 * keyboard.c (read_key_sequence): Don't modify events when
3863 generating fake prefix keys (mode-line, scroll-bar, ...) since
3864 this prevents proper processing of such events when pushed back
3865 into unread-command-events.
3866
dd5f324b
GM
3867 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
3868 actually redrawn. Make the function static.
3869 (note_mouse_highlight): Fix a case where the mouse cursor
3870 was changed back to the text cursor.
3871
3872 * xterm.h (clear_mouse_face): Remove prototype.
3873
d88a79d4
GM
3874 * xdisp.c (try_window_id): Fix the fix and set the right
3875 window_end_vpos.
3876
3877 * xdisp.c (try_window_id): Fix computation of window end in the
3878 case that lines were deleted at the end of the window. Add some
3879 more debug_method_adds.
0416532f 3880
7bd2d083
GM
3881 * xfaces.c (try_alternative_families): New function.
3882 (try_font_list): Use it. If ATTRS specifies a family, check
3883 fonts from that family first.
3884 (choose_face_font): Remove code setting the family part of
3885 the pattern to nil.
3886
23fca891
GM
38872001-05-10 Gerd Moellmann <gerd@gnu.org>
3888
ff9aa2ca
GM
3889 * xdisp.c (try_window_id): Fix case of all changes before
3890 the window start.
7b2654b5 3891
23fca891
GM
3892 * xdisp.c (try_window_id): Add some xasserts.
3893
e9726794
GM
38942001-05-09 Gerd Moellmann <gerd@gnu.org>
3895
3896 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
3897
9e53a675
GM
38982001-05-09 Dave Love <fx@gnu.org>
3899
3900 * xdisp.c (GIVE_UP): Fix for K&R C.
3901
0d487c52
GM
39022001-05-09 Gerd Moellmann <gerd@gnu.org>
3903
fe88d421
GM
3904 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
3905
0d487c52
GM
3906 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
3907 back to the text cursor shape without need.
3908
1e9fc92e
GM
39092001-05-07 Gerd Moellmann <gerd@gnu.org>
3910
a2a6232e
GM
3911 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
3912
3913 * dispextern.h (inverse_video): Declare extern.
3914
1e9fc92e
GM
3915 * keyboard.c (delete_kboard): Handle the case that selected_frame
3916 has been deleted in the course of x_connection_closed.
3917
12949a7f
EZ
39182001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
3919
7b2654b5
SM
3920 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
3921 Fix the change from 2001-04-30.
12949a7f 3922
2fa2f461
GM
39232001-05-03 Gerd Moellmann <gerd@gnu.org>
3924
a779d213
GM
3925 * xfns.c (file_dialog_unmap_cb): New function.
3926 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
3927 where a dialog is closed via the window manager.
3928
7b2654b5 3929 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
3930 the window start or all below the window end mostly rewritten.
3931 (redisplay_window): Move the tests if try_window_id is
3932 applicable to try_window_id.
3933 (GIVE_UP): New macro.
3934
3356df63
GM
39352001-05-02 Gerd Moellmann <gerd@gnu.org>
3936
a39202f6 3937 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
3938 currently being updated, mark the frame garbaged.
3939 Fix computation of rows intersecting the exposed rectangle.
a39202f6 3940 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 3941
3356df63
GM
3942 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
3943 again if it has already been drawn.
3944
a9d2fd1d
SM
39452001-05-01 Stefan Monnier <monnier@cs.yale.edu>
3946
3947 * syntax.c (update_syntax_table): Check that oldi has the same
3948 properties as old_prop before deciding not to invalidate.
3949
c95fc5f1
GM
39502001-04-30 Gerd Moellmann <gerd@gnu.org>
3951
a9793e45
GM
3952 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
3953 read-only text that is so because of text properties.
3954
c95fc5f1 3955 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 3956 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
3957 windows that are components of a Lucid menu bar.
3958
5a5d9185
GM
39592001-04-27 Gerd Moellmann <gerd@gnu.org>
3960
3961 * term.c (turn_on_face): Fix reverse video handling on terminals
3962 that don't support colors.
3963
ba973f7a
GM
39642001-04-26 Gerd Moellmann <gerd@gnu.org>
3965
3966 * editfns.c (save_excursion_restore): Don't use XBUFFER on
3967 a non-buffer.
3968
8c56a983
GM
39692001-04-25 Gerd Moellmann <gerd@gnu.org>
3970
a728644c
GM
3971 * term.c (toggle_highlight): New function.
3972 (turn_on_face): Change handling of reverse video.
3973
7b2654b5
SM
3974 * process.c (wait_reading_process_input):
3975 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 3976
bfd8410f
GM
3977 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
3978 of the number of overlays to check.
3979
be2488ca
GM
3980 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
3981
8c56a983
GM
3982 * xdisp.c (try_window_id): Fix a case where window_end_pos
3983 and window_end_bytepos were not adjusted.
3984
522d42f7
GM
39852001-04-23 Gerd Moellmann <gerd@gnu.org>
3986
3987 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
3988 zero instead of -1.
3989
78c1afb6
EZ
39902001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
3991
a9d2fd1d
SM
3992 * process.c (wait_reading_process_input) [!subprocesses]:
3993 Don't reference waiting_for_user_input_p, it's not defined in the
3994 branch without async subprocesses support.
78c1afb6 3995
a2fab450
GM
39962001-04-19 Gerd Moellmann <gerd@gnu.org>
3997
a122a38e
GM
3998 * keyboard.c (delete_kboard): Prevent a dangling reference
3999 from current_kboard to KB, which is freed.
4000
a9d2fd1d
SM
4001 * process.c (wait_reading_process_input):
4002 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
4003 read_key_sequence aware of buffer changes from under it.
4004
0f8d6dc7
GM
40052001-04-18 Gerd Moellmann <gerd@gnu.org>
4006
eeffb293
GM
4007 * xfaces.c (Qscalable_fonts_allowed): New variable.
4008 (realizing_basic_faces_p): Removed.
2fa2f461
GM
4009 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4010 removed.
eeffb293 4011 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
4012 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4013 for scalable-fonts-allowed to t.
eeffb293 4014
0f8d6dc7
GM
4015 * fileio.c (Finsert_file_contents): If the file size returned from
4016 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 4017 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 4018
eec2d1de
EZ
40192001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4020
4021 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4022 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4023 (__memalign_hook): Make the two prototypes consistent.
4024
f4f480bd
GM
40252001-04-17 Gerd Moellmann <gerd@gnu.org>
4026
4027 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4028 matrix of mini-windows.
4029
52283633
SM
40302001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4031
4032 * intervals.c (find_interval): Don't rebalance during signal handling.
4033
ec2423c9
GM
40342001-04-11 Gerd Moellmann <gerd@gnu.org>
4035
30cb0001 4036 * fns.c: Include blockinput.h.
52283633 4037
ec2423c9
GM
4038 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4039
719d83ad
GM
40402001-04-10 Gerd Moellmann <gerd@gnu.org>
4041
60f8d735
GM
4042 * fns.c (Fcompare_strings): Fix return values.
4043
afffeb57
GM
4044 * window.c (window_scroll): Change the meaning of N to mean
4045 N screen-fulls or N lines.
4046 (window_scroll_pixel_based, window_scroll_line_based)
4047 (scroll_command, Fscroll_other_window): Change accordingly.
4048
52283633
SM
4049 * window.c (window_scroll_pixel_based, Frecenter):
4050 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
4051 height of the window.
4052
4053 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4054 instead of using it.last_visible_y for the height of the window.
52283633 4055
719d83ad 4056 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 4057 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
4058
4059 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
4060 able to write to hidden and system files. From Dan Holmsand
4061 <dan@eyebee.com>.
719d83ad 4062
8ddf3ee1
GM
4063 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4064 Holmsand <dan@eyebee.com>.
719d83ad 4065
522ed7fb
GM
40662001-04-09 Gerd Moellmann <gerd@gnu.org>
4067
9170e5d4
GM
4068 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4069
522ed7fb
GM
4070 * window.c (window_internal_height): Return 1 less if the
4071 window has a header line.
4072
4073 * xdisp.c (try_window_id): When scrolling on a terminal, take
4074 the change of window_internal_height into account.
4075
ceeb3d7d
EZ
40762001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4077
4078 * gmalloc.c (align): If the argument SIZE would overflow
4079 __malloc_ptrdiff_t, fail right away.
4080
63685b9d
GM
40812001-04-06 Gerd Moellmann <gerd@gnu.org>
4082
4083 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4084 Make sure the tooltip is completely visible.
4085 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4086
4087 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4088
4089 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4090
3ffb33bb
DL
40912001-04-06 Dave Love <fx@gnu.org>
4092
52283633
SM
4093 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4094 Fix test of `from'.
3ffb33bb 4095
869fb12c
GM
40962001-04-06 Gerd Moellmann <gerd@gnu.org>
4097
52283633 4098 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 4099
869fb12c
GM
4100 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4101
441bf856
GM
41022001-04-05 Gerd Moellmann <gerd@gnu.org>
4103
4d664b04
GM
4104 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4105
52283633 4106 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 4107
30ca89f5
GM
4108 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4109 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4110
4111 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4112 shell widget's position only if it is non-null.
4113
52283633
SM
4114 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4115 Set f->output_data.x->widget to null after destroying it.
30ca89f5 4116
81a81c0f
GM
4117 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4118 FILENAME to bring it in synch with the documentation.
4119
441bf856
GM
4120 * xfaces.c (realizing_basic_faces_p): Renamed from
4121 realize_default_face_p.
4122 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4123 (realize_default_face): Don't set the flag.
4124
702a1e8e
GM
41252001-04-04 Gerd Moellmann <gerd@gnu.org>
4126
1013f4e3
GM
4127 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4128
52283633
SM
4129 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4130
1013f4e3
GM
4131 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4132 the buffer that was used for echoing.
4133
702a1e8e
GM
4134 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4135 (first_font_matching): Removed unused function.
4136 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4137 (may_use_scalable_font_p): Remove parameter FONT; rename
4138 parameter NAME to FONT.
4139 (x_face_list_fonts): Fix missing bounds check.
4140 (realizing_default_face_p): New variable.
4141 (realize_default_face): Set and clear that flag.
4142 (x_face_list_fonts): When called during the realization of the
4143 default face, and no matching fonts are found when ignoring
4144 scalable fonts and fonts matching a regexp from
4145 face-ignored-fonts, try without ignoring fonts.
4146
f9dbcda4
GM
41472001-04-03 Gerd Moellmann <gerd@gnu.org>
4148
ad18ffb1
GM
4149 * xfns.c (postprocess_image): New function.
4150 (lookup_image): Call it for all image types except PostScript.
4151 (x_kill_gs_process): Call postprocess_image.
4152
f9dbcda4
GM
4153 * xterm.c (x_use_underline_position_properties): New variable.
4154 (x_draw_glyph_string): Use it.
4155 (syms_of_xterm): DEFVAR_BOOL it.
4156
651f03b6
GM
41572001-04-02 Gerd Moellmann <gerd@gnu.org>
4158
4159 * xterm.c (x_alloc_nearest_color_1): New function.
4160 (x_alloc_nearest_color): Use it.
4161 (x_color_cells): Take a Display as argument, instead of a frame.
4162 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4163 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4164 (x_initialize): Register cvt_string_to_pixel as resource converter
4165 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4166
73d75a62
GM
41672001-03-30 Gerd Moellmann <gerd@gnu.org>
4168
b2046df8
GM
4169 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4170 (set_iterator_to_next): If a string from a display property ends,
4171 consider the case that this might also be the end of an
4172 overlay string having the display property.
4173
52283633 4174 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 4175
87d8eba4
GM
4176 * xdisp.c (reseat_to_string): Undo last change.
4177
73d75a62
GM
4178 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4179 matrix of a window when the header line changes, when
4180 new rows are allocated, or when the width changes.
4181
911a2406
EZ
41822001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4183
52283633 4184 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 4185
aea51abe
EZ
41862001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4187
4188 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4189 deprecated.
4190
176bc847
GM
41912001-03-29 Gerd Moellmann <gerd@gnu.org>
4192
ed31fabf
GM
4193 * data.c (Fsubr_interactive_form): New function.
4194 (syms_of_data): Defsubr it.
4195
176bc847
GM
4196 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4197 (live_float_p, live_misc_p): Return 1 only if the offset of the
4198 pointer in its block is >= 0.
4199
e59d0e9d
GM
42002001-03-28 Paul Eggert <eggert@twinsun.com>
4201
4202 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4203 microseconds calcuation. Avoid double-rounding problem.
4204 In doc string, warn that the result is approximate.
4205
f827b862
GM
42062001-03-28 Gerd Moellmann <gerd@gnu.org>
4207
30a3f61c
GM
4208 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4209 bind `inhibit-eval-during-redisplay' to t.
4210
4211 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4212
4213 * xdisp.c (inhibit_eval_during_redisplay)
4214 (Qinhibit_eval_during_redisplay): New variables.
4215 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4216 don't eval, return nil instead.
4217 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4218 Initialize Qinhibit_eval_during_redisplay.
4219
e719f5ae
GM
4220 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4221 the iterator's multibyte_p flag.
4222
deb2613a
GM
4223 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4224 instead of setting it to zero; it's incremented for each frame
4225 where the menu face is changed.
4226
52283633
SM
4227 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4228 change bottom shadow accordingly.
4229
4230 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
4231 intersections here.
4232 (expose_window): Do it here instead.
52283633 4233 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 4234
f827b862
GM
4235 * bytecode.c (BYTE_CODE_QUIT): New macro.
4236 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4237
4bde0ebb
GM
42382001-03-27 Gerd Moellmann <gerd@gnu.org>
4239
607ec83c
GM
4240 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4241 Give up if matrix starts in an ellipsis.
4242 (init_from_display_pos): Do nothing if POS doesn't specify
4243 a dpvec_index but the iterator has such a position.
4244
0245398f
GM
4245 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4246
aba25348
GM
4247 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4248 x/y position is (0, 0) after destroying the menu bar, restore
4249 its original position.
4250
4bde0ebb
GM
4251 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4252 (init_from_display_pos): Use it.
4253 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4254
8cdb267e
GM
42552001-03-26 Gerd Moellmann <gerd@gnu.org>
4256
4257 * xdisp.c (try_window_id): Undo last change.
4258
9948db79
EZ
42592001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4260
4261 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4262
4263 * buffer.c (syms_of_buffer): Doc fix.
4264
2eddf899
GM
42652001-03-26 Gerd Moellmann <gerd@gnu.org>
4266
4267 * xfaces.c (x_update_menu_appearance): Use local variable
4268 popup_path for setting font resources.
4269
6c145d35
EZ
42702001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4271
6a65b1b5
EZ
4272 * frame.c (Fframe_list): Don't reference tip_frame if
4273 HAVE_WINDOW_SYSTEM is not defined.
4274
6c145d35
EZ
4275 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4276 <wl@gnu.org>.
4277
d74c1900
GM
42782001-03-25 Gerd Moellmann <gerd@gnu.org>
4279
20fbd925
GM
4280 * xdisp.c (init_from_display_pos): Test invisible property
4281 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 4282
927c5b3b
GM
4283 * xdisp.c (redisplay_internal) <update one window>: Make sure
4284 last_arrow_position and last_arrow_string are set.
4285
d74c1900
GM
4286 * frame.c (Fframe_list): Don't return a tooltip frame.
4287
091f8878
GM
42882001-03-23 Gerd Moellmann <gerd@gnu.org>
4289
52283633
SM
4290 * xdisp.c (mark_window_display_accurate_1): New function,
4291 extracted from mark_window_display_accurate.
4292 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
4293 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4294 (mark_window_display_accurate): Use it.
4295 (redisplay_internal): Use it for the selected window.
4296 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4297 for the selected frame.
4298
ac90c44f
GM
4299 * xdisp.c Use make_number, for readability.
4300 (try_window_id): Disable rows below the window end.
4301 (try_window_reusing_current_matrix): Use cursor_row_p.
4302 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4303 of rows.
4304 (init_from_display_pos): If POS specifies a position in a display
4305 vector, maybe get the iterator set up for that ellipsis.
43c09969 4306
091f8878
GM
4307 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4308
991786dd
EZ
43092001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4310
4311 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4312
6c29b43c
GM
43132001-03-23 Gerd Moellmann <gerd@gnu.org>
4314
4315 * xfaces.c (x_update_menu_appearance): Use a different path
4316 for Lucid popup menus.
4317
d8731202
SM
43182001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4319
4320 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4321
4322 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4323 (string_buffer_position): Use `make_number'.
4324
f61a541b
GM
43252001-03-22 Gerd Moellmann <gerd@gnu.org>
4326
3c9e997b
GM
4327 * xfaces.c (x_update_menu_appearance): Renamed from
4328 x_set_menu_face_resources. Use different resources for popups.
4329
4330 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4331 (GC_CHECK_STRING_BYTES): Don't define.
4332
364cd450
GM
4333 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4334 Removed, together with subroutines.
4335 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 4336 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 4337
d8731202
SM
4338 * dispextern.h (x_set_menu_resources_from_menu_face):
4339 Remove prototype.
364cd450 4340
d8731202 4341 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
4342 Remove calls to x_set_menu_resources_from_menu_face.
4343
d8731202
SM
4344 * xfaces.c (xm_set_menu_resources_from_menu_face):
4345 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
4346
4347 * xmenu.c: Include widget.h.
4348 (single_submenu): Return int. Some cleanup.
4349 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4350
140330de
GM
43512001-03-21 Gerd Moellmann <gerd@gnu.org>
4352
4353 * xterm.c (x_update_window_end): Handle overwritten mouse face
4354 also for tool bar windows.
4355 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4356 DRAW is DRAW_IMAGE_RAISED.
4357
1741905c
GM
43582001-03-20 Gerd Moellmann <gerd@gnu.org>
4359
fa88947e
GM
4360 * print.c (syms_of_print): Doc fixes.
4361
1741905c
GM
4362 * fns.c (Fmd5): Doc fix.
4363
ade0bee1
GM
43642001-03-19 Gerd Moellmann <gerd@gnu.org>
4365
357e7376
GM
4366 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4367 Clear area of the frame not occupied by the scroll bar.
4368
c2c097cc
GM
4369 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4370 tip frame's root window buffer to *tip* right after creating
4371 the frame.
4372
ade0bee1
GM
4373 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4374 is an integer don't have to be for space characters.
4375
88c6e37e
GM
43762001-03-16 Gerd Moellmann <gerd@gnu.org>
4377
52283633
SM
4378 * indent.c (current_column, current_column_1, Fmove_to_column)
4379 (compute_motion): Handle characters from display vectors differently.
88c6e37e 4380
c62eed76
KH
43812001-03-15 Kenichi Handa <handa@etl.go.jp>
4382
4383 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4384 drawing glyph string.
4385
c899e7e6
GM
43862001-03-15 Gerd Moellmann <gerd@gnu.org>
4387
d0bbfc99
GM
4388 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4389 (command_loop_1): Undo last change.
4390
03d1a189
GM
4391 * xterm.c (fast_find_position): Return the correct vpos.
4392
c899e7e6 4393 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 4394 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
4395 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
4396 Call store_symval_forwarding with BUF null.
4397 (set_internal): Call store_symval_forwarding with the BUF
4398 parameter passed to set_internal. Formerly, the value was always
4399 set in the current buffer; the buffer recorded in specbind for
4400 this case wasn't used.
4401 (arith_driver): Reindent.
4402
52283633
SM
4403 * buffer.c (swap_out_buffer_local_variables):
4404 Call store_symval_forwarding with BUF null.
c899e7e6
GM
4405
4406 * lisp.h (store_symval_forwarding): Change prototype.
4407
4408 * eval.c (specbind): Call store_symval_forwarding with BUF null.
4409
57ac7c81
GM
44102001-03-14 Gerd Moellmann <gerd@gnu.org>
4411
697617d9
GM
4412 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
4413 FOR_DELETION. Avoid resizing the mini-window of the selected
4414 frame if FOR_DELETION is set.
4415 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
4416 (Fmake_frame_invisible): Change calls to do_switch_frame for new
4417 signature.
4418
4419 * window.c (Fset_window_configuration): Change call to
4420 do_switch_frame to new format.
4421
4422 * keyboard.c (quit_throw_to_read_char): Change call to
4423 do_switch_frame to new format.
4424
4425 * lisp.h (do_switch_frame): Change prototype.
4426
819dce0f
GM
4427 * frame.c (Fframe_parameters): In the `buffer-list' frame
4428 parameter, store the buffer list of FRAME, not the list of the
4429 selected frame.
4430
57ac7c81
GM
4431 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
4432 box just because the glyph row's full_width_p flag is set.
4433
65008712
GM
44342001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
4435
4436 * xdisp.c (highlight_trailing_whitespace): On character terminals,
4437 skip the padding blanks inserted in extend_face_to_end_of_line,
4438 before checking for trailing whitespace.
4439
159cf431
GM
44402001-03-13 Gerd Moellmann <gerd@gnu.org>
4441
52283633 4442 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
4443 Remove special handling for LessTif/Motif.
4444 (toplevel): Don't include Xm/Xm.h.
4445
52283633
SM
4446 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
4447 Remove workaround code for LessTif; it doesn't work anymore.
4448
2564ea1b 4449 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 4450 Xm/ScrollBarP.h.
afcdc0a1 4451
52283633
SM
4452 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
4453 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
4454 contemporary LessTif.
4455
52283633
SM
4456 * xfaces.c (xm_set_menu_resources_from_menu_face):
4457 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 4458
159cf431
GM
4459 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
4460 removing button grabs.
4461
c6f7429a
KH
44622001-03-13 Kenichi Handa <handa@etl.go.jp>
4463
cb82d767
KH
4464 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
4465 and clip-large-size-font as obsolete.
4466
c6f7429a
KH
4467 * lread.c (read_multibyte): Check the validity of multibyte
4468 sequence. If invalid, return the first byte.
4469
760cefb5
GM
44702001-03-12 Gerd Moellmann <gerd@gnu.org>
4471
4472 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
4473 before running the command; timer functions or process
4474 filters may have set it.
4475
5141f9d0
EZ
44762001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4477
4478 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4479 Doc fix.
4480
b6a15240
GM
44812001-03-12 Gerd Moellmann <gerd@gnu.org>
4482
4483 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4484 to sprintf.
4485
95522746
GM
44862001-03-09 Gerd Moellmann <gerd@gnu.org>
4487
db14cfc5
GM
4488 * dispextern.h (string_buffer_position): Add prototype.
4489
52283633 4490 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
4491 (single_display_prop_string_p): New functions.
4492
4493 * xterm.c (note_mouse_highlight): If there's no help-echo on
4494 a string, look at the buffer text ``under'' it.
4495
4496 * keyboard.c (make_lispy_event): Add string info to the event,
4497 analogous to what's done on mode lines.
4498 (read_key_sequence): For a click on a string, consider `local-map'
4499 and `keymap' of that string.
4500
52283633
SM
4501 * keyboard.c (make_lispy_event, make_lispy_movement):
4502 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
4503
4504 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4505
4506 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4507 POS; return void.
4508
95522746
GM
4509 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4510 flags argument to emacs_open; it seems to conflict with O_EXCL.
4511
898a399d
KH
45122001-03-09 Kenichi Handa <handa@etl.go.jp>
4513
28cd4910
KH
4514 * composite.h (struct composition): Change types of members;
4515 glyph_len to unsigned, width to unsigned short.
898a399d 4516
4cdf6a6c
AI
45172001-03-08 Andrew Innes <andrewi@gnu.org>
4518
4519 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4520 menu titles.
4521
129004d3
GM
45222001-03-08 Gerd Moellmann <gerd@gnu.org>
4523
221dd3e7
GM
4524 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4525 instead of nil.
4526
52283633 4527 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
4528 help-echo in strings.
4529 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4530 (fast_find_string_pos): New function.
4531
52283633
SM
4532 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4533 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
4534
4535 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4536 Handle `mouse-face'.
4537
4538 * dispextern.h (face_at_string_position): Change prototype.
4539
52283633 4540 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 4541
129004d3
GM
4542 * keyboard.c (make_lispy_event): Avoid generating drag events
4543 if the mouse hasn't actually moved to another buffer position.
52283633 4544
80c8ab8c
DL
45452001-03-08 Dave Love <fx@gnu.org>
4546
129004d3 4547 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 4548
989521fd
GM
45492001-03-08 Gerd Moellmann <gerd@gnu.org>
4550
4551 * process.c (Fset_process_window_size): Fix a typo.
4552
bb5c338d
KH
45532001-03-08 Kenichi Handa <handa@etl.go.jp>
4554
4555 * coding.c (detect_coding_sjis): Do more rigid check.
4556 (detect_coding_big5): Likewise.
4557 (decode_coding_sjis_big5): Likewise.
4558 (Fdetect_coding_region): Call detect_coding_system with tailing
4559 anchor byte `\0' for more rigid detection.
52283633 4560 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
4561 (Fdetect_coding_string): Likewise.
4562
8b8f9197
SM
45632001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4564
4565 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4566 a string before extracting its data.
4567
3bdf2660
GM
45682001-03-07 Gerd Moellmann <gerd@gnu.org>
4569
4570 * window.c (Frecenter): Rewrite code handling negative values
4571 of ARG on graphical frames.
4572
45732001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4574
4575 * window.c (displayed_window_lines): If W->start is outside the
4576 accessible portion of the buffer, call start_display with BEGV or
4577 ZV instead of W->start.
4578
471f86b9
GM
45792001-03-07 Gerd Moellmann <gerd@gnu.org>
4580
2ab62c6c
GM
4581 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4582
471f86b9
GM
4583 * process.c (Fset_process_filter): Don't crash if the input
4584 file descriptor of PROCESS is closed.
4585 (Fset_process_window_size): Likewise.
4586
101922c3
GM
45872001-03-06 Kenichi Handa <handa@etl.go.jp>
4588
4589 * xterm.c (XTflash): Make the timeout of select shorter, and call
4590 select repeatedly until the desired time expires.
4591
45d051a7
GM
45922001-03-06 Gerd Moellmann <gerd@gnu.org>
4593
4594 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4595
4596 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4597
4598 * lisp.h (Vwindow_list): Declare extern.
4599
8f372c46
EZ
46002001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4601
4602 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4603
f16a7aa5
GM
46042001-03-06 Gerd Moellmann <gerd@gnu.org>
4605
157ae273
GM
4606 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4607 to detect a case where we have to highlight a different region
4608 despite not having left the currently highlighted region.
4609 Set mouse_face_overlay in the x_display_info.
45d051a7 4610 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
4611
4612 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4613
4614 * buffer.c (mouse_face_overlay_overlaps): New function.
4615
4616 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4617 (Qmouse_face): Declare extern.
4618
f16a7aa5
GM
4619 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4620 if face_change_count is non-zero.
4621
827afcac
KH
46222001-03-06 Kenichi Handa <handa@etl.go.jp>
4623
4624 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4625 that the source is unibyte.
4626
14c7242e
DL
46272001-03-05 Dave Love <fx@gnu.org>
4628
827afcac 4629 * xterm.c (XTmouse_position): Fix typo.
14c7242e 4630
c28b847b
GM
46312001-03-05 Gerd Moellmann <gerd@gnu.org>
4632
4633 * minibuf.c (read_minibuf): Clean up the binding stack if
4634 called noninteractively.
4635
b86644f2
KH
46362001-03-05 Kenichi Handa <handa@etl.go.jp>
4637
4638 * coding.c (syms_of_coding): Docstring modified.
4639
203682cc 46402001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
4641
4642 * charset.c (char_to_string): If a single byte char has modifier
4643 bits that can't be reflected to the character code, ignore them
45d051a7 4644 instead of signaling an error.
b86644f2 4645
e30bd7b7
EZ
46462001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4647
4648 * s/msdos.h: Update copyright notice.
4649
4650 * dosfns.h: Update copyright notice.
4651
4652 * dosfns.c: Update copyright notice.
4653
4654 * msdos.c: Update copyright notice.
4655
b52b65bd
GM
46562001-03-02 Gerd Moellmann <gerd@gnu.org>
4657
4658 * xterm.c (glyph_rect): New function.
4659 (XTmouse_position): Use it to raise the threshold for mouse
4660 movement event generation.
4661
53c4b1e6
EZ
46622001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4663
4664 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4665 specifies (reverse . t), reverse the initial screen colors.
4666 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
4667 but we are reversing the colors, set bg_set, not fg_set.
4668 Likewise for setting background-color and reversing: set fg_set.
4669 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
4670 in effect.
4671
4672 * xfaces.c (Finternal_set_lisp_face_attribute)
4673 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4674 parameters alist.
4675
f964b4d7
GM
46762001-03-02 Gerd Moellmann <gerd@gnu.org>
4677
ef53d75e
GM
4678 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4679 to a single slash in the middle of file names.
4680
52283633 4681 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
4682 Accept only alphanumeric time zone names.
4683
f964b4d7
GM
4684 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4685 or width area.
4686 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4687 a widget to zero height.
52283633 4688
c3c45f65
GM
46892001-03-01 Gerd Moellmann <gerd@gnu.org>
4690
4691 * window.c (Fwindow_end): Call move_it_past_eol only if
4692 ending up on a partially visible line.
4693
028d739a
DL
46942001-03-01 Dave Love <fx@gnu.org>
4695
4696 * ccl.c (Fccl_execute): Doc fix.
4697
57c5889c
GM
46982001-03-01 Gerd Moellmann <gerd@gnu.org>
4699
35f59f6b
GM
4700 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4701 of the tool bar before calling x_figure_window_size.
4702
f84ff02c
GM
4703 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4704 NULL after destroying it, otherwise XTread_socket can access a
4705 destroyed widget when input is unblocked.
4706
8b8f9197 4707 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 4708
57c5889c
GM
4709 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4710 same name as before, although there was a change in fontsets.
4711
224227d1
KR
47122001-02-28 Ken Raeburn <raeburn@gnu.org>
4713
4560730a
KR
4714 * lisp.h (Fframe_parameter): Declare.
4715
224227d1 4716 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 4717 Lisp_Object.
224227d1 4718
ece93c02
GM
47192001-02-28 Gerd Moellmann <gerd@gnu.org>
4720
11ef99b9
GM
4721 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4722 NULL instead.
4723
4724 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4725 NULL instead.
4726
ece93c02
GM
4727 * alloc.c (toplevel): Include process.h.
4728 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4729 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4730 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
4731 (allocate_vector, allocate_hash_table, allocate_window)
4732 (allocate_frame, allocate_process, allocate_other_vector):
4733 New functions.
ece93c02
GM
4734 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4735 (mark_maybe_pointer): New function.
52283633 4736 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
4737 remain and not Lisp_Objects.
4738 (min_heap_address, max_heap_address): New variables.
4739 (mem_find): Return MEM_NIL if START is below min_heap_address or
4740 above max_heap_address.
4741 (mem_insert): Compute min_heap_address and max_heap_address.
4742
4743 * process.c (make_process): Use allocate_process.
4744
4745 * frame.c (make_frame): Use allocate_frame.
4746
4747 * window.c (make_window, make_dummy_parent): Use allocate_window.
4748 (Fcurrent_window_configuration): Use allocate_other_vector.
4749
4750 * lisp.h (allocate_vectorlike): Remove prototype.
4751 (allocate_vector, allocate_other_vector, allocate_frame)
4752 (allocate_window, allocate_process, allocate_hash_table):
4753 Add prototypes.
4754
4755 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4756 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4757
063af457
KH
47582001-02-27 Kenichi Handa <handa@etl.go.jp>
4759
4760 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4761 treat the produced bytes as a valid multibyte sequence.
4762
4763 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
4764 (ccl_driver) <CCL_WriteMultibyteChar2>:
4765 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
4766 <ccl_finish>: Set ccl->eight_bit_control properly.
4767
4768 * ccl.h (struct ccl_program): New member eight_bit_control.
4769
f58c6494
SM
47702001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4771
4772 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4773 accessible_keymaps_char_table.
4774 (accessible_keymaps_char_table): Obey `is_metized'.
4775 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4776 Lisp_Object.
4777
c596c392
GM
47782001-02-26 Gerd Moellmann <gerd@gnu.org>
4779
4780 * dispnew.c: Check HAVE_TERM_H before including term.h.
4781
425de386
AI
47822001-02-24 Andrew Innes <andrewi@gnu.org>
4783
4784 * makefile.w32-in: Update copyright notice.
4785
2ba11bbd
SM
47862001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4787
4788 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4789
66c56ed1
KH
47902001-02-24 Kenichi Handa <handa@etl.go.jp>
4791
4c1593ce
KH
4792 * Makefile.in (lisp): Add international/utf-8.elc.
4793
66c56ed1
KH
4794 * fontset.c (Fnew_fontset): Fix handling of the case that an
4795 element of FONTLIST is a cons of family and registry.
4796
796ead7e
JR
47972001-02-23 Jason Rumney <jasonr@gnu.org>
4798
4799 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4800 to height unconditionally.
4801
4802 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 4803 background face to the end of the drawing area in the text area, only.
796ead7e
JR
4804 (x_insert_glyphs): Call window_box_left to obtain the left
4805 x-coordinate of the area to shift.
4806
4807 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4808 safe_run_hooks.
4809
f6839838
AI
48102001-02-22 Andrew Innes <andrewi@gnu.org>
4811
52283633 4812 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
4813 ($(BLD)\dispnew.obj):
4814 ($(BLD)\editfns.obj):
4815 ($(BLD)\fileio.obj):
4816 ($(BLD)\filelock.obj):
4817 ($(BLD)\keyboard.obj):
4818 ($(BLD)\w32proc.obj):
4819 ($(BLD)\process.obj):
4820 ($(BLD)\sysdep.obj): Ditto.
4821
4822 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4823 header files.
52283633
SM
4824 ($(BLD)/dispnew.$(O)):
4825 ($(BLD)/editfns.$(O)):
4826 ($(BLD)/fileio.$(O)):
4827 ($(BLD)/filelock.$(O)):
4828 ($(BLD)/keyboard.$(O)):
4829 ($(BLD)/w32proc.$(O)):
4830 ($(BLD)/process.$(O)):
f6839838
AI
4831 ($(BLD)/sysdep.$(O)): Ditto.
4832
c224f70b
GM
48332001-02-22 Gerd Moellmann <gerd@gnu.org>
4834
51695746
GM
4835 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4836 at the start of the function, check that the \n in it->c is
4837 from the iterator's current position.
52283633 4838
a61b7058
GM
4839 * xdisp.c (handle_single_display_prop): Add parameter
4840 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4841 properties which replace the display of text with something else.
4842 (handle_display_prop): Call handle_single_display_prop with
4843 additional argument saying if we already replaced text display
4844 with something else. Use AREF.
52283633 4845 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
4846 (decode_mode_spec_coding): Use AREF and ASIZE.
4847
3473f362
GM
4848 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
4849 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
4850 * vmstime.h: Files removed.
52283633 4851
2bb58df3
GM
4852 * unexencap.c, unexfx2800.c: Files removed.
4853
c224f70b
GM
4854 * dispnew.c (direct_output_for_insert): Give up if we are showing
4855 a message or just cleared the message because we might need to
4856 resize the echo area window or display an empty echo area.
4857
ffc9ff0c
GM
48582001-02-21 Gerd Moellmann <gerd@gnu.org>
4859
0528abe1
GM
4860 * xdisp.c (redisplay_internal): Do the
4861 mark_window_display_accurate after all windows have been
4862 redisplayed because this call resets flags in buffers which are
4863 needed for proper redisplay.
4864
52283633
SM
4865 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
4866 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
4867 the old names.
4868
52283633
SM
4869 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4870 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4871
4872 * msdos.h (struct x_output): Rename busy_window to
4873 hourglass_window, busy_p to hourglass_p.
4874
52283633
SM
4875 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
4876 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
4877
4878 * xfns.c: Rename everything containing *busy_cursor* and similar
4879 to *hourglass*.
4880 (syms_of_w32fns): Rename x-busy-pointer-shape to
4881 x-hourglass-pointer-shape, display-busy-cursor to
4882 display-hourglass, busy-cursor-delay to hourglass-delay.
4883
4884 * w32fns.c: Rename everything containing *busy_cursor* and similar
4885 to *hourglass*.
4886 (syms_of_w32fns): Rename x-busy-pointer-shape to
4887 x-hourglass-pointer-shape, display-busy-cursor to
4888 display-hourglass, busy-cursor-delay to hourglass-delay.
4889
4890 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
4891 of its busy_p flag.
4892
4893 * dispextern.h (start_hourglass, cancel_hourglass)
4894 (display_hourglass_p): Renamed from *busy_cursor*.
4895
ab2c5f0a
GM
48962001-02-20 Gerd Moellmann <gerd@gnu.org>
4897
d17e49a8
GM
4898 * keyboard.c (read_char): When an event from unread-command-events
4899 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
4900
fa97adf6
GM
4901 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
4902 equal to the current buffer.
4903
ab2c5f0a
GM
4904 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
4905 nil, otherwise we're left with truncate_lines t when a message
4906 is printed with message-truncate-lines bound to t.
4907
aeac019e
GM
49082001-02-19 Gerd Moellmann <gerd@gnu.org>
4909
c8bc6f65
GM
4910 * window.c (Fmove_to_window_line): Undo last change.
4911 (displayed_window_lines): Call line_bottom_y to determine
4912 the line's bottom position.
4913
4914 * dispextern.h (line_bottom_y): Add prototype.
4915
52283633 4916 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
4917 (pos_visible_p): Use it.
4918
980a2d69
GM
4919 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
4920 set redisplaying_p to 0 here instead of in Frecursive_edit.
4921 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
4922 set redisplaying_p.
4923
52283633 4924 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
4925 New variables.
4926 (syms_of_xdisp): Initialize new variables.
4927 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
4928 Specbind `inhibit-menubar-update' when updating the menu bar.
4929
65048e97
GM
4930 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
4931 safe_run_hooks.
4932
4933 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
4934 safe_run_hooks.
4935
a57c4026
GM
4936 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
4937 is null.
4938
aeac019e
GM
4939 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
4940 to the start of the file.
4941
76846b31
GM
49422001-02-16 Gerd Moellmann <gerd@gnu.org>
4943
f3f053f3 4944 * window.c (set_window_buffer): Fix last change.
52283633 4945
f3f053f3
GM
4946 * window.c (set_window_buffer): Set window's vscroll to 0.
4947
dad75588
GM
4948 * window.c (coordinates_in_window): Increase width of area
4949 where the vertical line can be dragged.
4950
c220b753
GM
4951 * xterm.c (x_set_glyph_string_background_width): Extend the
4952 background face to the end of the drawing area in the text
4953 area, only.
4954
c56b1c1b
GM
4955 * xdisp.c (handle_single_display_prop): Set iterator's position
4956 to where the `display' property starts, like for images.
4957 (dump_glyph): New function.
4958 (dump_glyph_row): Use it. Dump info about marginal areas.
4959
4960 * dispnew.c (direct_output_for_insert): Recognize more cases where
4961 glyphs can be written instead of being inserted.
4962
4963 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
4964 the left x-coordinate of the area to shift.
4965
76846b31
GM
4966 * dired.c (directory_files_internal): Set result list to nil
4967 before retrying.
4968
0fc71a77
KH
49692001-02-15 Kenichi Handa <handa@etl.go.jp>
4970
4971 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
4972 invalid multibyte sequence, treat *SRC as a character of
4973 eight-bit-graphic.
4974
25078b54
EZ
49752001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
4976
4977 * textprop.c (Fset_text_properties): Doc fix.
4978
8399f8a0
GM
49792001-02-15 Gerd Moellmann <gerd@gnu.org>
4980
4981 * dispnew.c (update_text_area): Undo change of 2001-01-12.
4982
9a2a6f73
DL
49832001-02-14 Dave Love <fx@gnu.org>
4984
4985 * coding.c: Doc and message fixes.
4986
bf853fee
AI
49872001-02-14 Andrew Innes <andrewi@gnu.org>
4988
4989 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
4990 Emacs frame above the screen size.
4991
78c663d8
GM
49922001-02-14 Gerd Moellmann <gerd@gnu.org>
4993
4994 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
4995
7cc9f69f
GM
49962001-02-13 Gerd Moellmann <gerd@gnu.org>
4997
0a411995
GM
4998 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
4999 case that TO ends up beyond ZV after running before-change-functions.
5000
5ddc1b75
GM
5001 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5002 the selected window if it is showing the buffer in question.
5003
7cc9f69f
GM
5004 * dired.c (directory_files_internal): Initialize errno.
5005 (toplevel): Include errno.h.
5006
2e6621ca
GM
50072001-02-13 Kenichi Handa <handa@etl.go.jp>
5008
5009 * xfaces.c (best_matching_font): New parameter width_ratio.
5010 Multiply avgwidth by width_ratio.
5011 (choose_face_font): Call best_matching_font with width_ratio
5012 calculated from the column width of C.
5013
60222d69
AI
50142001-02-12 Andrew Innes <andrewi@gnu.org>
5015
5016 The following changes are to draw box lines inside characters area
5017 if line-width is negative.
52283633 5018
60222d69
AI
5019 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5020 face->box_line_width is negative.
5021 (x_produce_stretch_glyph): Likewise.
5022 (x_produce_glyphs): Likewise.
5023 (x_estimate_mode_line_height): Likewise.
5024 (x_draw_glyph_string_background): Likewise.
5025 (x_draw_glyph_string_foreground): Likewise.
5026 (x_draw_composite_glyph_string_foreground): Likewise.
5027 (x_draw_glyph_string_box): Likewise.
5028 (x_draw_image_foreground): Likewise.
5029 (x_draw_image_relief): Likewise.
5030 (x_draw_image_foreground_1): Likewise.
5031 (x_draw_image_glyph_string): Likewise.
5032
9804b846
KH
50332001-02-09 Kenichi Handa <handa@etl.go.jp>
5034
5035 The following changes are to draw box lines inside characters area
5036 if line-width is negative.
52283633 5037
9804b846
KH
5038 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5039 face->box_line_width is negative.
5040 (x_produce_stretch_glyph): Likewise.
5041 (x_produce_glyphs): Likewise.
5042 (x_estimate_mode_line_height): Likewise.
5043 (x_draw_glyph_string_background): Likewise.
5044 (x_draw_glyph_string_foreground): Likewise.
5045 (x_draw_composite_glyph_string_foreground): Likewise.
5046 (x_draw_glyph_string_box): Likewise.
5047 (x_draw_image_foreground): Likewise.
5048 (x_draw_image_relief): Likewise.
5049 (x_draw_image_foreground_1): Likewise.
5050 (x_draw_image_glyph_string): Likewise.
5051
5052 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5053 and :line-width can be negative.
52283633 5054 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 5055
49be9f70
JR
50562001-02-09 Jason Rumney <jasonr@gnu.org>
5057
5058 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5059 characters the same as ASCII and latin-1.
5060 (x_display_and_set_cursor): Check for the focus frame's selected
5061 window instead of selected_window.
5062 (x_after_update_window_line): Don't clear if frame's internal
5063 border width is zero.
5064 (x_new_font): Don't change a tooltip's size.
5065 (w32_initialize): Set char_ins_del_ok to 1.
5066
5067 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5068 (x_set_font): If font hasn't changed, avoid recomputing
5069 faces and other things.
52283633
SM
5070 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5071 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
5072 (x_create_tip_frame): Prevent changing the tooltip's
5073 background color by specifying a color for the default font
5074 in .Xdefaults.
5075 (Qcancel_timer): New variable.
5076 (syms_of_w32fns): Initialize and staticpro it.
5077 (Fx_hide_tip, Fx_show_tip): Use it.
5078 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5079 the timer.
5080 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5081
5082 * w32.c (init_environment): Duplicate local string before putenv.
5083
555e35d2
SZ
50842001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5085
5086 * charset.c (Fstring): A typo.
5087
19c92c94
KH
50882001-02-09 Kenichi Handa <handa@etl.go.jp>
5089
e47a1c33
KH
5090 * charset.c (Fstring): If all arguments are less than 256, return
5091 a unibyte string.
5092
5093 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5094 return a unibyte string.
5095
19c92c94
KH
5096 * coding.c (code_convert_region): After detecting a coding, if
5097 nothing found, set coding->composing to COMPOSITION_NO.
5098 (decode_coding_string): Likewise.
5099
d8e675f5
SM
51002001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5101
5102 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5103 to avoid overflow.
5104
bd503487
KH
51052001-02-07 Kenichi Handa <handa@etl.go.jp>
5106
5107 * charset.c (parse_str_to_multibyte): New function.
5108
5109 * charset.h (parse_str_to_multibyte): Extern it.
5110
5111 * print.c (print_string): If we are going to print a unibyte
5112 string into a multibyte buffer, convert the string to multibyte by
5113 str_to_multibyte.
5114
a8370d72
AI
51152001-02-06 Andrew Innes <andrewi@gnu.org>
5116
5117 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5118 been created. It seems we can get sent window messages such as
5119 WM_ERASEBKGND before we properly update a frame.
5120
c363a1d6
GM
51212001-02-06 Gerd Moellmann <gerd@gnu.org>
5122
5123 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5124 Avoid some unnecessary cursor positioning.
5125
a08332c0
GM
51262001-02-05 Gerd Moellmann <gerd@gnu.org>
5127
52283633 5128 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
5129 (LFACE_AVGWIDTH): New macro.
5130 (LFACEP): Use AREF.
5131 (check_lface_attrs): Check LFACE_AVGWIDTH.
5132 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5133 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5134 (merge_face_vectors): Check LFACE_AVGWIDTH.
5135 (Finternal_make_lisp_face): Use AREF.
5136 (xm_set_menu_resources_from_menu_face)
5137 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5138 (Finternal_lisp_face_empty_p): Use AREF.
5139 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5140 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5141 Compare average widths..
5142 (best_matching_font): Arrange for comparing average widths.
5143
52283633
SM
5144 * dispextern.h (enum lface_attribute_index):
5145 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5146
5cb3c8d4
DL
51472001-02-05 Dave Love <fx@gnu.org>
5148
5149 * puresize.h: Revert last change following loadup.el change.
5150
193fba87
AI
51512001-02-05 Andrew Innes <andrewi@gnu.org>
5152
5153 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5154 invocation of temacs, to work with Windows 2000.
5155 (bootstrap-emacs): Ditto.
5156
e16f52ce
GM
51572001-02-05 Gerd Moellmann <gerd@gnu.org>
5158
7a58ab59
GM
5159 * xterm.c (x_display_and_set_cursor): Check for the focus
5160 frame's selected window instead of selected_window.
5161
e89aaabd
GM
5162 * xdisp.c (try_scrolling): If point is in the line below the
5163 window, make sure to move the iterator at least a canonical
5164 char height down.
5165
52283633 5166 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 5167
789ce875
KH
51682001-02-05 Kenichi Handa <handa@etl.go.jp>
5169
52283633
SM
5170 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5171 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
5172 (ccl_driver): If the CCL program is terminated because of
5173 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5174 destination instead of throwing them away.
5175
20b28f82
GM
51762001-02-02 Gerd Moellmann <gerd@gnu.org>
5177
79fb38c0
GM
5178 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5179 faces and other things.
5180
20b28f82
GM
5181 * xdisp.c (get_next_display_element): Fix case of empty
5182 display table entry.
5183
5a72551e
EZ
51842001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5185
eb24d0bf
EZ
5186 * editfns.c (Fconstrain_to_field): Doc fix.
5187
6a3f48c7
EZ
5188 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5189 into `thoroughly', to make it consistent with the doc string.
5190
5a72551e
EZ
5191 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5192
01acdb05
GM
51932001-02-01 Gerd Moellmann <gerd@gnu.org>
5194
0353b28f
GM
5195 * search.c (search_buffer): Call set_search_regs with a byte
5196 position, not a character position.
5197
01acdb05
GM
5198 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5199 minibuffer-only,
5200
e86b5133
EZ
52012001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5202
5203 * frame.c (Fmodify_frame_parameters): Doc fix.
5204
7442878f
GM
52052001-01-31 Gerd Moellmann <gerd@gnu.org>
5206
01acdb05
GM
5207 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5208 identifier which is not reserved by Standard C.
52283633 5209
7442878f
GM
5210 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5211
5212 * window.c (enum window_part): New enumeration.
5213 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5214 Qright_bitmap_area.
5215 (coordinates_in_window): Return an enumerator from enum
5216 window_part. Fix handling of right scroll bar.
5217 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5218 `right-fringe' instead of `left-bitmap-area' and
5219 `right-bitmap-area'. Use enumerators from enum window_part
5220 instead of hard-coded integers.
52283633
SM
5221 (check_window_containing, window_from_coordinates):
5222 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
5223 (syms_of_window): Replace Qleft_bitmap_area and
5224 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5225
7c132cba
EZ
52262001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5227
5228 * editfns.c (Fformat_time_string): Doc fix.
5229
c359dd9e
SM
52302001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5231
5232 * keymap.c (Fwhere_is_internal): Use the first valid binding
5233 if no ascii binding is found (when firstonly is t).
5234
ce070307
GM
52352001-01-31 Gerd Moellmann <gerd@gnu.org>
5236
b4f30ec5
GM
5237 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5238 instead of Finteractive_p.
5239
5240 * lisp.h (interactive_p): Add prototype.
5241
5242 * eval.c (interactive_p): New function.
5243 (Finteractive_p): Use it.
5244
ce070307
GM
5245 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5246
f57b6e64
DL
52472001-01-31 Dave Love <fx@gnu.org>
5248
d61c7afe
DL
5249 * .gdbinit (hook-run): Define to run xreload.
5250
f57b6e64
DL
5251 * textprop.c (Fset_text_properties): Fix newline in doc string.
5252
eef93f99
GM
52532001-01-30 Gerd Moellmann <gerd@gnu.org>
5254
52283633
SM
5255 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5256 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
5257
5258 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 5259 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
5260 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5261
5262 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5263 height.
5264
d9c1f6f9
DL
52652001-01-30 Dave Love <fx@gnu.org>
5266
5267 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5268 AFTER_POTENTIAL_GC.
5269
e8f044a0
GM
52702001-01-29 Gerd Moellmann <gerd@gnu.org>
5271
52283633
SM
5272 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5273 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 5274
8e1db7b3
EZ
52752001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5276
5277 * textprop.c (Fset_text_properties): Doc fix.
5278
4eefd9d2
GM
52792001-01-29 Gerd Moellmann <gerd@gnu.org>
5280
5281 * xdisp.c (forward_to_next_line_start): Remove xassert.
5282
fccb8288
EZ
52832001-01-29 Jason Rumney <jasonr@gnu.org>
5284
4eefd9d2 5285 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
5286 returning without releasing it.
5287
76581eab
KH
52882001-01-29 Kenichi Handa <handa@etl.go.jp>
5289
5290 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5291 for '^', '$', and '\0'.
5292
83a96b4d
AC
52932001-01-28 Andrew Choi <akochoi@i-cable.com>
5294
5604ec34
AC
5295 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5296 regex for '^', '$', and '\0'.
5297
83a96b4d
AC
5298 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5299 only if current_sblock has been initialized.
5300
5301 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5302 terminal frame even if it is the only visible frame.
5303
c09a6440
KH
53042001-01-28 Kenichi Handa <handa@etl.go.jp>
5305
5306 * fontset.c (font_family_registry): Even if FONTNAME conform to
5307 XLFD, if it specifies other fields than family and registry,
52283633 5308 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 5309 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
5310 a signle byte character. Don't set FAMILY part to nil here.
5311 It is handled by the caller choose_face_font.
c09a6440
KH
5312 (Fnew_fontset): Call font_family_registry with FORCE 0.
5313 (Fset_fontset_font): Likewise.
5314
4dcd74e6
GM
53152001-01-27 Gerd Moellmann <gerd@gnu.org>
5316
5317 * xdisp.c (display_line): Don't treat a newline as fitting
5318 on the line.
5319
d2906bf8
GM
53202001-01-26 Gerd Moellmann <gerd@gnu.org>
5321
0130fe1a
GM
5322 * window.c (size_window): Set the window's orig_top to nil when
5323 changing heights, so that a future shrink_mini_window won't
5324 restore a bogus height.
5325
550f0e6a
GM
5326 * frame.c (do_switch_frame): If selected frame has a mini-window,
5327 resize that to exact size.
5328
b7b20fbd
GM
5329 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5330
a47b7816
GM
5331 * xdisp.c (display_line): Simplify check for glyphs fitting
5332 entirely in the line.
5333
d2906bf8
GM
5334 * xfns.c (xic_style): New variable.
5335 (create_frame_xic): Move static variable to global scope for
550f0e6a 5336 the case that `static' gets defined away.
d2906bf8 5337
73df2b1e
KH
53382001-01-26 Kenichi Handa <handa@etl.go.jp>
5339
5340 * coding.c (decode_coding): Set a flag for inhibiting
5341 inconsistent eol.
5342 (code_convert_region): Always set saved_coding_symbol.
5343 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 5344 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 5345
6613cfc4
GM
53462001-01-25 Gerd Moellmann <gerd@gnu.org>
5347
c5e6e06b
GM
5348 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5349 XClearArea.
5350
5351 * xterm.c (x_after_update_window_line): Don't clear if frame's
5352 internal border width is zero.
5353 (x_clear_area): New function.
5354 (x_after_update_window_line, x_clear_end_of_line)
5355 (x_scroll_bar_create, x_scroll_bar_set_handle)
5356 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5357 instead of XClearArea.
5358
5359 * xterm.h (x_clear_area): Add prototype.
5360
6613cfc4
GM
5361 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5362 which doesn't seem necessary anymore with Lesstif 0.92.
5363
650cc6cc
DL
53642001-01-25 Dave Love <fx@gnu.org>
5365
34ac3367
DL
5366 * puresize.h (BASE_PURESIZE): Up to 720000.
5367
650cc6cc
DL
5368 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5369
5e37dc22
GM
53702001-01-25 Gerd Moellmann <gerd@gnu.org>
5371
e1e441f9
GM
5372 * xdisp.c (echo_area_display): Don't call redisplay_internal
5373 when Emacs is shutting down. We can't run hooks etc. that
5374 would be necessary to do a redisplay.
5375
5e37dc22
GM
5376 * lread.c (read_integer): Use type EMACS_INT instead of int.
5377
0fb94c7f
EZ
53782001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5379
5380 * ccl.c (ccl_driver): Fix last change.
5381
e3778624
KH
53822001-01-25 Kenichi Handa <handa@etl.go.jp>
5383
5384 * ccl.h (sturct ccl_program): New member suppress_error.
5385
bb264518 5386 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
5387 insert error message to the output.
5388 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5389
5390 * coding.h (struct coding_system): New member suppress_error.
5391
5392 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5393 (Fset_terminal_coding_system_internal): Set the member
5394 suppress_error to 1.
5395 (Fset_safe_terminal_coding_system_internal): Likewise.
5396
245ed2b1
SM
53972001-01-24 Stefan Monnier <monnier@cs.yale.edu>
5398
5399 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
5400 as if it was a `charset'.
5401
f9aaedb6
GM
54022001-01-24 Gerd Moellmann <gerd@gnu.org>
5403
5404 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
5405 value in where_is_cache; the next lookup in the cache returns
5406 something bogus if we do.
5407
c3902c3e
EZ
54082001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5409
5410 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
5411 if HAVE_WINDOW_SYSTEM isn't defined.
5412
3497f73e
GM
54132001-01-24 Gerd Moellmann <gerd@gnu.org>
5414
e7e41584
GM
5415 * fns.c (sweep_weak_table): Fix code taking items out of
5416 the hash collision chain. Some cleanup.
5417
3497f73e
GM
5418 * xterm.c (x_new_font): Don't change a tooltip's size.
5419
5420 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
5421 background color by specifying a color for the default font
5422 in .Xdefaults.
5423
3d48e687
KH
54242001-01-24 Kenichi Handa <handa@etl.go.jp>
5425
96531b20
KH
5426 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
5427 a workaround for SunOS 4's cc.
5428 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
5429 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
5430 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
5431 statement.
3d48e687 5432
a30629d2
GM
54332001-01-23 Gerd Moellmann <gerd@gnu.org>
5434
5435 * xterm.c (x_set_window_size_1): New function extracted from
5436 x_set_window_size.
5437 (x_set_window_size): Use it.
5438 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
5439 doesn't have a widget, like tooltips.
5440
5a43decf
EZ
54412001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
5442
52283633 5443 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 5444
b0e98867
KH
54452001-01-23 Kenichi Handa <handa@etl.go.jp>
5446
5447 * fns.c (Fset_char_table_default): Fix to make sub char-table
5448 correctly.
5449
50606b4c
GM
54502001-01-22 Gerd Moellmann <gerd@gnu.org>
5451
cb2ddc53 5452 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
5453 a desired tool bar string, even if there are no tool bar items.
5454
57c28064
GM
5455 * xdisp.c (Ftool_bar_lines_needed): New function.
5456 (syms_of_xdisp): Defsubr it.
5457
50606b4c
GM
5458 * editfns.c (Fformat): Don't extend text properties from arguments
5459 to padding chars in the result.
5460
2f169c38
EZ
54612001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5462
5463 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
5464
0f32f023
AI
54652001-01-20 Andrew Innes <andrewi@gnu.org>
5466
52283633 5467 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
5468 (w32_initialize): Don't set term hooks that aren't actually needed
5469 in windowed mode.
5470
5471 * xfaces.c (realize_default_face):
5472 (realize_face):
5473 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
5474
5475 * xdisp.c (handle_single_display_prop): Remove references to
5476 FRAME_W32_CONSOLE_P.
5477
52283633 5478 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
5479
5480 * frame.h (output_method): Remove output_w32_console method.
5481 (FRAME_W32_CONSOLE_P): Remove macro.
5482
5483 * frame.c (Qw32_console): Remove variable.
5484 (Fframep): Remove references to it.
5485 (syms_of_frame): Ditto.
5486 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5487
5488 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5489 redefinition.
5490
7173eada
KH
54912001-01-20 Kenichi Handa <handa@etl.go.jp>
5492
5493 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5494
755b45ce
AI
54952001-01-19 Andrew Innes <andrewi@gnu.org>
5496
5497 * w32.c (init_environment): Add a version-independent site-lisp
5498 directory to EMACSLOADPATH, after the version dependent one.
5499
0a949811
GM
55002001-01-19 Gerd Moellmann <gerd@gnu.org>
5501
8501998a
GM
5502 * editfns.c (Fbuffer_substring): Doc fix.
5503
52283633
SM
5504 * xdisp.c (message_dolog, message2, message2_nolog):
5505 Rename parameter LEN to NBYTES.
0a949811 5506
e6ebcbbe
KH
55072001-01-19 Kenichi Handa <handa@etl.go.jp>
5508
200ecca2
KH
5509 * charset.c (strwidth): Use c_string_width.
5510 (c_string_width): New function.
5511 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5512 Caller changed.
5513
5514 * charset.h (c_string_width, lisp_string_width): Extern them.
5515
52283633 5516 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 5517
e6ebcbbe
KH
5518 * indent.c (check_composition): Check validity of composition.
5519
200ecca2
KH
5520 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5521 characters by calling c_string_width.
5522 (x_consider_frame_title): Get byte length of frame tile string
5523 correctly.
5524 (display_mode_element): Pay attention to width of non-ASCII
5525 characters by calling strwidth.
5526
8692ca92
GM
55272001-01-18 Gerd Moellmann <gerd@gnu.org>
5528
8962e303
GM
5529 * xfns.c (Qcancel_timer): New variable.
5530 (syms_of_xfns): Initialize and staticpro it.
5531 (Fx_hide_tip, Fx_show_tip): Use it.
5532 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5533 the timer.
5534 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5535
91523be9
GM
5536 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5537
5538 * window.h (WINDOW_LIVE_P): New macro.
5539
b0b7ed0e
GM
5540 * window.c (window_size_fixed): New variable.
5541 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5542 the doc string.
5543
06bccf8e
GM
5544 * eval.c (specbind): If binding a per-buffer variable which
5545 doesn't have a buffer-local value in the current buffer, change
5546 the global value by changing the value of the symbol bound in all
5547 buffers not having their own value, to make it consistent with
5548 what happens with other buffer-local variables.
5549
8692ca92
GM
5550 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5551
5552 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5553 when searching for a newline.
5554
bb3a3b50
KH
55552001-01-18 Kenichi Handa <handa@etl.go.jp>
5556
5557 * xdisp.c (display_string): Fix previous change.
5558
c2cc16fa
JR
55592001-01-18 Jason Rumney <jasonr@gnu.org>
5560
5561 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5562 GLYPH_DEBUG is defined.
5563 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5564 true for images with `:ascent 100'.
5565 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5566 meantime, use face MOUSE_FACE_ID.
5567 If first glyph isn't a character glyph, use the ASCII NUL
5568 character to determine the face.
5569 (expose_area): Do not treat left margin specially.
5570 (note_mode_line_highlight): If no local_map, check global keymap.
5571 (note_mouse_highlight): Initialize overlay.
52283633 5572 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
5573 (show_scroll_bars): Remove unused function.
5574 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5575 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5576 Clip to row.
52283633 5577 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
5578 (x_free_frame_resources): Unload relief colors.
5579
9c11f79e
GM
55802001-01-17 Gerd Moellmann <gerd@gnu.org>
5581
3aec8722 5582 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
5583 get_next_display_element when the newline is already found.
5584 This may change the iterator's position, when its current position is
3aec8722
GM
5585 equal to the iterator's stop_charpos.
5586
f3ffc2c3
GM
5587 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5588 zero, use this method only at the end of a line.
5589
52283633 5590 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
5591 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5592 if SCALABLE_FONTS_P is set.
52283633 5593
d26d6fd9
GM
5594 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5595 so that scalable fonts are included.
5596
9c11f79e
GM
5597 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5598 In the cache, use a key containing the information if scalable
5599 fonts are included.
5600 (x_load_font): Adapt to change of keys in the font cache.
5601
56022001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 5603
d26d6fd9
GM
5604 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5605 XListFonts to take advantage of font caching.
5606
9c11f79e
GM
5607 * xterm.c (x_list_fonts): Ensure caching font information when
5608 called for a null frame, which is the case frequently when Emacs
5609 starts.
5610
51446987
GM
56112001-01-17 Gerd Moellmann <gerd@gnu.org>
5612
f864120f
GM
5613 * xfns.c (QCconversion): Replaces QCalgorithm.
5614
5615 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5616
5617 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5618 of :algorithm.
52283633 5619
e37d1417
GM
5620 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5621 not everything could be displayed.
5622
51446987
GM
5623 * line.h, x-list-font.c: Files removed because unused.
5624
9ad4f3e5
AI
56252001-01-17 Andrew Innes <andrewi@gnu.org>
5626
5627 * dired.c (directory_files_internal): Convert result from readdir
5628 to a unibyte string initially, to avoid possible misinterpretation
5629 of some bytes as the internal form of Emacs characters.
5630
2eda09b5
KH
56312001-01-17 Kenichi Handa <handa@etl.go.jp>
5632
5633 * fns.c (concat): Be sure to avoid putting the same `composition'
5634 property on the adjacent regions.
5635
826f3788
GM
56362001-01-16 Gerd Moellmann <gerd@gnu.org>
5637
52283633 5638 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
5639 (Fscroll_right, Fscroll_left): Set it here instead, if called
5640 interactively.
5641
d57b83b3
GM
5642 * buffer.c (Fset_buffer_modified_p): Set buffer's
5643 prevent_redisplay_optimizations_p flag.
5644
826f3788 5645 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
5646 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5647 with additional arg.
5648
5649 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5650 Change prototype.
826f3788 5651
826f3788
GM
5652 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5653 FROM_WHERE, for debugging.
5654
261d788b
KH
56552001-01-16 Kenichi Handa <handa@etl.go.jp>
5656
5657 * ccl.c (Fregister_ccl_program): Handle the return value of
5658 resolve_symbol_ccl_program correctly.
52283633 5659 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 5660
bccee4f2
GM
56612001-01-15 Gerd Moellmann <gerd@gnu.org>
5662
e4ded23c
GM
5663 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5664 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
5665
5666 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5667 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
5668 the display; we didn't open it.
5669
bccee4f2
GM
5670 * dispnew.c (save_or_restore_current_matrices): Function removed.
5671 (save_current_matrix, restore_current_matrix): New functions.
5672 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5673 restore the frame's current matrix. Due to the glyph pointer
5674 setup done in adjust_glyph_matrix, there is no easy way to make
5675 saving the current matrix in the desired matrix generally correct,
5676 so don't try it.
5677
ebeccffa
KH
56782001-01-15 Kenichi Handa <handa@etl.go.jp>
5679
5680 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5681 truncation glyphs.
5682 (display_line): Optimize for wide characters.
e4ded23c 5683 (display_string): Don't try to display a multi-column character
ebeccffa
KH
5684 partially. On ttys, produce more than one truncation glyph for
5685 multi-column characters that don't fit on the line.
5686
64388126
KH
56872001-01-13 Kenichi Handa <handa@etl.go.jp>
5688
52283633
SM
5689 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5690 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 5691
8edb0a6f
JR
56922001-01-13 Jason Rumney <jasonr@gnu.org>
5693
5694 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5695 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
5696 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5697 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 5698
52283633
SM
5699 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5700 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
5701 (x_draw_image_glyph_string): Adapt to change of image margins.
5702
5703 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5704 variables.
5705
5706 * w32bdf.c (search_file_line, get_cached_font_char)
5707 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5708
5709 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5710
5711 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5712 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5713 (Fw32_send_sys_command): Remove unused variables.
5714 (w32_msg_pump): Add parentheses.
5715
5716 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5717 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5718 Add parentheses.
5719
4956d1ef
GM
57202001-01-12 Gerd Moellmann <gerd@gnu.org>
5721
b30623be
GM
5722 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5723 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5724 being a pair of margins.
5725 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5726 to DEFVAR_LISP. Extend doc.
5727
5728 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5729 margins.
5730 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5731 pair of integers `(X . Y)', use X for the horizontal and Y for the
5732 vertical margin.
5733 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5734 (parse_image_spec): Check it.
52283633
SM
5735 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5736 (tiff_format, gif_format, gs_format):
5737 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 5738
52283633
SM
5739 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5740 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
5741 (x_draw_image_glyph_string): Adapt to the change of image margins.
5742
5743 * dispextern.h (struct image): Replace member `margin' with
5744 `hmargin' and `vmargin'.
5745
4554cc79
GM
5746 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5747 and GLYPHS.
5748
5749 * dispnew.c (update_text_area): Put code which decrements the
5750 stop position when the row's face extends to the end of the
3bffc665 5751 line in #if 0.
4554cc79 5752
3cccce8d
GM
5753 * xfns.c (x_set_mouse_color): Fix color allocation.
5754
4956d1ef
GM
5755 * keyboard.c: Call get_local_map with new argument list.
5756
5757 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5758
5759 * intervals.h (enum map_property): Removed.
5760 (get_local_map): Change prototype.
5761
5762 * keymap.c: Call get_local_map with new argument list.
5763 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5764
2c2ff7f2
GM
57652001-01-11 Gerd Moellmann <gerd@gnu.org>
5766
a23887b9
GM
5767 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5768 of the size needed for the tool bar string. For the last image,
5769 use a `display' property that reaches to the end of the string.
5770
a7ee2d2e
GM
5771 * xselect.c (selection_request_dpyinfo): New variable.
5772 (x_handle_selection_request): Set it.
5773 (x_selection_request_lisp_error): Don't call
5774 x_decline_selection_request if selection request's display has
5775 been closed.
5776
52283633
SM
5777 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5778 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 5779
457b792c
GM
57802001-01-10 Dave Love <fx@gnu.org>
5781
5782 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5783 ${SOME_MACHINE_LISP}, not ${lisp}.
5784
c1efd260
GM
57852001-01-10 Gerd Moellmann <gerd@gnu.org>
5786
52283633
SM
5787 * xdisp.c (display_line): On ttys, produce more than one truncation
5788 glyph for multi-column characters that don't fit on the line.
a98b5ed9 5789
ac95a621
GM
5790 * xselect.c (x_reply_selection_request): Add a comment.
5791
c1efd260
GM
5792 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5793 XkbGetNames instead of XkbGetKeyboard.
5794
1bfb1345
DL
57952001-01-10 Dave Love <fx@gnu.org>
5796
5797 * sysdep.c (random): Revert the declaration.
5798
38119822
GM
57992001-01-09 Gerd Moellmann <gerd@gnu.org>
5800
52283633
SM
5801 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5802 Call function string_bytes.
35f464a7
GM
5803 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5804
5805 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5806 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5807 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5808 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5809 the current sblock.
5810 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5811 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5812 after sweeping strings, and at the end.
5813 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5814
38119822
GM
5815 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5816 ensure that pop_message is called.
5817
5818 * keyboard.c (Fexecute_extended_command): Use a
5819 record_unwind_protect to ensure that pop_message is called.
5820
5821 * lisp.h (push_message_unwind): Add prototype.
5822
5823 * xdisp.c (push_message_unwind): New function.
5824
5825 * fileio.c (do_auto_save_unwind): Do the pop_message here
5826 instead of in Fdo_auto_save.
5827 (Fdo_auto_save): Don't call pop_message.
5828
f47a9ec4
KR
58292001-01-08 Ken Raeburn <raeburn@gnu.org>
5830
5831 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5832 in inner block.
5833
a758f97d
GM
58342001-01-08 Gerd Moellmann <gerd@gnu.org>
5835
6d0afc03
GM
5836 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5837 when increasing window's vscroll.
5838
a758f97d
GM
5839 * macros.c (Qkbd_macro_termination_hook): New variable.
5840 (syms_of_macros): Initialize and staticpro it.
5841 (pop_kbd_macro): Run kbd-macro-termination-hook.
5842
5843 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
5844
1bfb1345 58452001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
5846
5847 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
5848 arglist, for documentation's sake.
5849
0dac6924
AI
58502001-01-06 Andrew Innes <andrewi@gnu.org>
5851
5852 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
5853 of *.pdb.
5854
8182406a
AI
58552001-01-05 Andrew Innes <andrewi@gnu.org>
5856
5857 * term.c (update_end): Don't check updating_frame; for some reason
5858 this can be 0 sometimes, such as after dismissing a popup menu,
5859 and isn't necessary given the explicit frame argument.
5860
3828218c
GM
58612001-01-05 Gerd Moellmann <gerd@gnu.org>
5862
5863 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
5864 on some systems, and an unsigned long on others, like FreeBSD 4.1.
5865
2f5ded21
GM
58662001-01-04 Gerd Moellmann <gerd@gnu.org>
5867
52283633 5868 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
5869
5870 * xfns.c (x_create_tip_frame): Preserve the value of
5871 face_change_count around the creation of the tip frame.
52283633 5872
2f5ded21
GM
5873 * xfns.c (last_show_tip_args): New variable.
5874 (compute_tip_xy): New function.
5875 (Fx_show_tip): Reuse an existing tip frame, if possible.
5876 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
5877
dfad65fa
DL
58782001-01-04 Dave Love <fx@gnu.org>
5879
64d4ec0f
DL
5880 * editfns.c (Fformat): Doc fix.
5881
dfad65fa
DL
5882 * systime.h (set_file_times): Prototype.
5883
5884 * widget.h (EmacsFrameSetCharSize_): Prototype.
5885
5886 * sysdep.c (random, srandom): Declare explicitly.
5887
5888 * dispextern.h (move_it_vertically_backward): Declare.
5889
85fe3b5e
GM
58902001-01-04 Gerd Moellmann <gerd@gnu.org>
5891
0f2ac578
GM
5892 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
5893 like in Fx_create_frame.
5894
482cca61
GM
5895 * xfaces.c (set_font_frame_param): Don't do anything for
5896 non-graphical frames.
5897
85fe3b5e
GM
5898 * window.c (Fdelete_other_windows): Set window's window_end_valid
5899 to nil when changing the window's start. Don't change the
5900 window's start when its top position hasn't changed. If we do,
5901 this will set the window's optional_new_start, which act's like a
5902 force_start during redisplay with C-x 1 M-> under particular
5903 circumstances (see report from Per Starback to emacs-pretest-bug
5904 from 2000-12-13.).
5905
3e99d3b4
GM
59062001-01-03 Gerd Moellmann <gerd@gnu.org>
5907
a77dc1ec
GM
5908 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
5909 short cut at the start of the function. Add an assertion.
5910 (reseat_at_next_visible_line_start): Add an assertion.
5911
2f3cad6c
GM
5912 * window.c (Frecenter): When changing the window start, set the
5913 window's window_end_valid to nil.
5914 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
5915
5916 * dispextern.h (move_it_past_eol): Add prototype.
5917
5918 * xdisp.c (move_it_past_eol): New function.
5919
3e99d3b4
GM
5920 * window.c (Fwindow_end): Doc fix.
5921
59222001-01-03 Dave Love <fx@gnu.org>
5923
52283633 5924 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 5925
bafb434c
GM
59262001-01-03 Gerd Moellmann <gerd@gnu.org>
5927
5928 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
5929 the enabled_p flag of the glyph row at window_end_vpos to 0.
5930 (handle_single_display_prop): Fix last change.
5931
5297fb00
RS
59322001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
5933
5934 * window.c (Frecenter): Doc fix.
5935
13d6a61c
AI
59362001-01-02 Andrew Innes <andrewi@gnu.org>
5937
5938 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
5939
5940 * frame.h (output_method): Add output_w32_console method.
5941 (FRAME_W32_CONSOLE_P): New macro.
5942
5943 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
5944 use output_w32_console method.
5945 (Qw32_console): New Lisp_Object.
5946 (Fframep): Return it.
5947 (syms_of_frame): Init it.
52283633 5948 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
5949
5950 * xfaces.c (realize_default_face): Set face foreground and
5951 background to unspecified for w32_console frames.
5952 (realize_face): Realize face cache for w32_console frames.
5953 (realize_tty_face): Accept w32_console frames.
5954
52283633 5955 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
5956 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
5957 necessary, even if running interactively.
5958
5959 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
5960 w32_console frames.
5961
52283633
SM
5962 * w32term.c (x_update_begin):
5963 (x_update_end):
5964 (x_clear_frame):
5965 (x_ins_del_lines):
5966 (x_change_line_highlight):
5967 (x_delete_glyphs):
5968 (w32_ring_bell):
5969 (x_update_begin):
5970 (x_update_end):
5971 (w32_reassert_line_highlight):
5972 (w32_frame_rehighlight):
13d6a61c
AI
5973 (w32_frame_raise_lower): Do nothing if not w32 frame.
5974
5975 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
5976
5977 * w32fns.c (Fx_display_color_cells): Determine correct value, when
5978 system doesn't tell us directly.
5979 (Fx_display_visual_class): Implement properly.
5980
d6bb0c0d
GM
59812001-01-02 Gerd Moellmann <gerd@gnu.org>
5982
5983 * window.c (Frecenter): Handle centering in graphical frames
5984 specially. Centering on the basis of line counts doesn't work
5985 reliably with variable-height lines.
52283633 5986
315f5865
EZ
59872001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
5988
5989 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
5990 and al[].
5991
52283633 5992 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
5993 (update_compositions): Remove unused variable `hook'.
5994
5995 * intervals.c (get_local_map): Remove unused variable `tem'.
5996
5997 * doprnt.c (doprnt1): Remove unused variable `size'.
5998
5999 * fns.c (Flength): Remove unused variable `tail'.
6000 (Fdelete): Remove unused variable `size'.
6001
6002 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6003 and `gcpro2'.
6004
52283633 6005 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
6006
6007 * data.c (find_symbol_value): Remove extra 3rd argument in the
6008 call to swap_in_symval_forwarding.
6009
52283633 6010 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
6011
6012 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6013 (trivial_regexp_p): Remove unused variable `c'.
6014 (boyer_moore): Remove unused variable `k'.
6015
6016 * indent.c (current_column): Remove unused variable `stopchar'.
6017 (Fcompute_motion): Remove unused variable `contin'.
6018
6019 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6020
6021 * dired.c (directory_files_internal): Fix a typo in a comment.
6022 Remove an unused variable `handler'.
52283633 6023 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
6024 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6025 on BSD4_2.
6026
52283633 6027 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
6028
6029 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6030 and `buf'.
6031 (Fmarker_insertion_type): Remove unused variable `buf'.
6032
6033 * insdel.c (make_gap): Remove unused variable `result'.
6034
52283633 6035 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
6036 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6037 (menu_bar_items): Remove unused function-scope variable `tem'.
6038
6039 * fontset.c (fontset_ref): Remove unused variable `i'.
6040 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 6041 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
6042 (make_fontset_for_ascii_face): Remove unused variable `name'.
6043 (fs_load_font): Remove unused variable `font_idx'.
52283633 6044 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
6045 (list_fontsets): Remove unused variable `tail'.
6046 (Fnew_fontset): Remove unused variables `family' and `registry'.
6047 (accumulate_font_info): Remove unused variable `tmp'.
6048 (Ffontset_font): Remove unused variable `id'.
6049 (syms_of_fontset): Remove unused variable `i'.
6050
6051 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6052 to x_term_init.
6053 (lookup_image): Remove unused variable `file'.
6054 (xbm_load): Remove unused variables `bitmap_data', `height', and
6055 `width'. Remove function-local variable `i', leave the
6056 block-local one.
6057 (gif_load): Remove unused variable `inc'.
6058
52283633 6059 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
6060 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6061 leave only the one in the inner block.
6062
6063 * xfaces.c (face_fontset, realize_default_face): Remove unused
6064 variable `fontset'.
6065 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6066
6067 * term.c (encode_terminal_code): Remove unused variable `c'.
6068
6069 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6070 char *' instead of `char *'.
6071
6072 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 6073 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
6074 (Fchar_category_set): Remove unused variables `val', `charset',
6075 `c1' and `c2'.
6076
52283633
SM
6077 * coding.c (detect_coding_iso2022, setup_coding_system):
6078 Remove unused variable `i'.
315f5865
EZ
6079 (detect_coding_mask): Remove unused variable `idx'.
6080 (detect_coding): Remove unused variable `i'.
6081 (ccl_coding_driver): Remove unused variable `result'.
6082 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 6083 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
6084 (encode_coding_string): Remove unused variables `gcpro1' and
6085 `saved_coding_symbol'.
6086 (Ffind_coding_systems_region_internal): Remove function-local
6087 variable args[], leave only the block-local one.
6088 (code_convert_region1): Remove unused variable `len'.
6089
6090 * charset.c (char_printable_p): Remove unused variable `chars'.
6091 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6092 (str_to_multibyte): Remove unused variable `c'.
6093
6094 * window.c (size_window): Remove block-local variable `min_size'.
6095
6096 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6097 `header_line_height'.
6098 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6099 enum display_element_type.
6100
1a8a9daf
GM
61012001-01-02 Gerd Moellmann <gerd@gnu.org>
6102
6dde6abc 6103 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
6104 statements that call X. Save away the error message in a local copy.
6105
1883b2c6
GM
6106 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6107 the start.
6108
a13be207
GM
6109 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6110 in or at the start of invisible text.
6111
1a8a9daf
GM
6112 * dispnew.c (update_window): Don't check_current_matrix_flags.
6113
3608c0f9
JR
61142001-01-01 Jason Rumney <jasonr@gnu.org>
6115
6116 * w32fns.c (x_figure_window_size): Do not allow new_height and
6117 new_width of frame to override specified values.
6118
abb1acc4
KH
61192000-12-30 Kenichi Handa <handa@etl.go.jp>
6120
52283633 6121 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 6122
762a68ec
GM
61232000-12-29 Gerd Moellmann <gerd@gnu.org>
6124
52283633 6125 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
6126 (update_window) [GLYPH_DEBUG]: Call it.
6127 (scrolling_window): Prevent including current rows which are below
6128 what's displayed in the window.
6129
6130 * xdisp.c (try_window_reusing_current_matrix)
6131 <new start <= old start>: Disable rows in the current matrix
6132 which are below the window after scrolling.
52283633 6133
762a68ec
GM
6134 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6135 is zero. It's not worth the complexity.
6136 (invisible_text_between_p): Put in #if 0 because unused.
6137
2d5912c1
GM
61382000-12-28 Gerd Moellmann <gerd@gnu.org>
6139
46f6a258
GM
6140 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6141 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6142
89f93679
GM
6143 * keyboard.c (echo_char): If C is an integer, always call
6144 push_key_description. Former code could signal an invalid
6145 character error.
6146
6147 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6148 If set, print multibyte text.
6149 (Fsingle_key_description): Call push_key_description with
6150 FORCE_MULTIBYTE set.
6151 (describe_buffer_bindings): Likewise.
6152
6153 * lisp.h (push_key_description): Add prototype.
6154
c06017fb
GM
6155 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6156 around the call to redisplay_internal.
6157
f1d2ce7f
GM
6158 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6159
2d5912c1
GM
6160 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6161
9371f831
KH
61622000-12-28 Kenichi Handa <handa@etl.go.jp>
6163
6164 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6165 (ccl_driver): New local variable `extra_bytes'.
6166
6167 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6168
52283633
SM
6169 * coding.c (setup_coding_system):
6170 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
6171 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6172
0c80628a
KH
61732000-12-28 Kenichi Handa <handa@etl.go.jp>
6174
6175 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6176 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6177 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6178 (decode_composition_emacs_mule): New function.
6179 (decode_coding_emacs_mule): Decode composition sequence by calling
6180 decode_composition_emacs_mule.
6181 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
6182 (encode_coding_emacs_mule): Changed from macro to function.
6183 If a text contains compositions, encode them correctly.
0c80628a
KH
6184 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6185 that decoding and encoding are required.
6186
3e32cc27
GM
61872000-12-27 Gerd Moellmann <gerd@gnu.org>
6188
5e25feee
GM
6189 * xfaces.c (PT_PER_INCH): New macro.
6190 (xlfd_point_size): Compute real point size from font's pixel size.
6191 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6192 instead of 72.
6193
892d8fcd
GM
6194 * .gdbinit: Comment out the line pointing to the Lesstif source
6195 directory.
6196
12c8b416
GM
6197 * window.c (Frecenter): Use displayed_window_lines instead
6198 of window_internal_height.
6199
6061fbf0
GM
6200 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6201 instead of x-toolkit-scroll-bars-p.
6202 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6203
6204 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6205 instead of x-toolkit-scroll-bars-p.
6206 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 6207
3e32cc27
GM
6208 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6209 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
6210 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6211 New variables.
6212 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
6213 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6214 (build_frame_matrix_from_leaf_window): Remove unused code.
6215 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6216 redisplay history.
6217 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6218 (update_window) [GLYPH_DEBUG]: Likewise.
6219 (syms_of_display): Defsubr dump-redisplay-history.
6220
31798cfe
GM
62212000-12-23 Gerd Moellmann <gerd@gnu.org>
6222
f717c2ba
GM
6223 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6224 the end of the prompt. Set echo_after_prompt to the offset
6225 of echoptr in echobuf.
6226
aeb2b8fc
GM
6227 * xdisp.c (init_from_display_pos): Pop until the iterator's
6228 stack is empty; there may be frames for stretch or images
6229 on the stack.
6230
31798cfe
GM
6231 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6232 (save_or_restore_current_matrix): New function for the same
6233 purpose, but more efficient.
6234 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6235
f8156156
EZ
62362000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6237
6238 * xdisp.c (syms_of_xdisp): Fix last change.
6239
bdd6d4e8
GM
62402000-12-23 Gerd Moellmann <gerd@gnu.org>
6241
6242 * xdisp.c (syms_of_xdisp): Doc fix.
6243
6244 * xdisp.c (redisplay_window): Remove label restore_buffers;
6245 use finish_scroll_bars instead to make sure that scroll bars
6246 are redeemed. If we don't do this, flickering can result from
6247 scroll bars being destroyed and recreated.
6248
9436cdf9
JR
62492000-12-22 Jason Rumney <jasonr@gnu.org>
6250
6251 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6252 in the wrong colors when the foreground is not black.
6253 (expose_window): Don't redraw the window that's currently being
6254 updated.
6255
951f9df5
GM
62562000-12-22 Gerd Moellmann <gerd@gnu.org>
6257
856ff7a7
GM
6258 * window.c (size_window): When setting the window's too_small_ok
6259 flag, compare old size with minimum size depending on WIDTH_P,
6260 don't compare with window_min_width.
52283633 6261
951f9df5
GM
6262 * window.c (delete_window): Simplify somewhat.
6263 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6264 freeing window matrices. The flag windows_or_buffers_changed is
6265 set, so the next redisplay will consider all windows; this should
6266 suffice.
6267
886bc933
KH
62682000-12-22 Kenichi Handa <handa@etl.go.jp>
6269
6270 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6271
6272 * ccl.h (struct ccl_program): New member cr_consumed.
6273
6274 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6275 (CCL_READ_CHAR): Handle EOL conversion here.
6276 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6277
177f4e88
GM
62782000-12-21 Gerd Moellmann <gerd@gnu.org>
6279
52283633 6280 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
6281
6282 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6283 otherwise tabs of different size compare equal.
6284
6285 * callint.c (Fcall_interactively): Prevent a compiler warning.
6286
6287 * print.c (print_unwind): Return nil.
6288 (PRINTDECLARE): Initialize all local variables.
6289 (print_preprocess): Add a default case.
6290
8e15274f
GM
6291 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6292
6293 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6294
52283633 6295 * window.c (delete_window, Fsplit_window)
177f4e88
GM
6296 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6297
6298 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6299
6300 * dispnew.c (ensure_frame_matrix): Removed.
6301 (save_frame_matrix, restore_frame_matrix): New functions.
6302 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6303
6304 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6305 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6306
99012074
AI
63072000-12-21 Andrew Innes <andrewi@gnu.org>
6308
6309 * w32term.c (x_update_begin): Regenerate the palette here, rather
6310 than for each window.
6311
6312 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6313 palette is NULL, since this corrupts memory! Also get
6314 display_info reference from frame.
6315
29ef7d2d
JR
63162000-12-21 Jason Rumney <jasonr@gnu.org>
6317
6318 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6319
6320 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6321 to avoid returning without releasing it.
3e27fa1f 6322
3f9d67a6
KH
63232000-12-21 Kenichi Handa <handa@etl.go.jp>
6324
587fc3f9
KH
6325 * keymap.c (push_key_description): Don't convert eight-bit-control
6326 and eight-bit-graphic to multibyte character.
6327
3f9d67a6
KH
6328 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6329 generic character and CODE1 is nil, return the smallest character
6330 in CHARSET.
6331
774ba8c9
DL
63322000-12-20 Dave Love <fx@gnu.org>
6333
6334 * s/osf5-0.h (NSIG): Don't redefine.
6335
88416888
SM
63362000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6337
6338 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6339 excluding menu-bar and tool-bar.
6340 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6341 (menu_item_p): Remove.
6342 (where_is_internal_1): Don't ignore menu-items.
6343
a6426c6f
GM
63442000-12-20 Gerd Moellmann <gerd@gnu.org>
6345
03ff8aab
GM
6346 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6347 into account.
6348
6349 * window.c (make_window): Initialize window's min_hscroll.
6350 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6351 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6352 to zero.
6353 (struct saved_window): New member min_hscroll.
6354 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6355 (Fset_window_configuration): Set window's min_hscroll.
6356 (save_window_save): Save window's min_hscroll.
6357 (compare_window_configurations): Compare min_hscroll values.
6358
6359 * window.h (struct window): New member min_hscroll.
6360
6361 * keyboard.c (echo_prompt): Prevent a compiler warning.
6362
8de4aaf8
GM
6363 * xdisp.c (try_cursor_movement): Fix last change. The real
6364 condition is that PT is at the end of the row, and should
6365 be displayed at the start of the next row.
52283633 6366
3f7e3031
GM
6367 * xdisp.c (try_cursor_movement): If we end on a partially
6368 visible line, end we already decided to scroll, return -1.
6369
a6426c6f
GM
6370 * dispextern.h (ensure_frame_matrix): Add prototype.
6371
6372 * window.c (delete_window, Fsplit_window)
6373 (Fset_window_configuration): Call ensure_frame_matrix.
6374
52283633
SM
6375 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6376 New functions.
a6426c6f
GM
6377 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6378 completed, call fake_current_matrices instead of marking frame
6379 garbaged.
6380
57fa2774
JR
63812000-12-20 Jason Rumney <jasonr@gnu.org>
6382
6383 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6384
d925df90
EZ
63852000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6386
6387 * fns.c (Frequire): Doc fix.
6388
7b93a85b
GM
63892000-12-19 Gerd Moellmann <gerd@gnu.org>
6390
52283633 6391 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 6392
c74e645b
GM
6393 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6394 currently displaying a message.
6395
7b93a85b
GM
6396 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
6397 xterm.h.
6398 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
6399
90d97e64
AI
64002000-12-18 Andrew Innes <andrewi@gnu.org>
6401
6402 * w32.c (w32_strerror): New function.
6403
6404 * w32.h (w32_strerror): New extern.
6405
6406 * w32fns.c (Fw32_shell_execute): Use it.
6407
91c9e6ce
GM
64082000-12-18 Gerd Moellmann <gerd@gnu.org>
6409
6410 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
6411
6f4745e2
EZ
64122000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6413
6414 * msdos.c (IT_set_face): Obey inverse_video.
6415
c9e088ce
KH
64162000-12-18 Kenichi Handa <handa@etl.go.jp>
6417
6418 * dired.c (directory_files_internal): Always return decoded filenames.
6419
c3695f5f
GM
64202000-12-18 Gerd Moellmann <gerd@gnu.org>
6421
52d8e4ff
GM
6422 * xterm.c (x_connection_closed): Prevent being called recursively
6423 because of an error condition in XtCloseDisplay.
52283633 6424
62be9979
GM
6425 * xdisp.c (init_iterator): If noninteractive, and the frame's
6426 face cache is null, make one.
6427
52283633 6428 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 6429
c3695f5f
GM
6430 * process.c (wait_reading_process_input): Check for pending
6431 input when running timers.
6432
78555fbe
EZ
64332000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6434
52283633 6435 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 6436
b2b36264
KH
64372000-12-18 Kenichi Handa <handa@etl.go.jp>
6438
6439 * process.c (read_process_output): Don't run a filter if the code
6440 decoder produces nothing but carryover.
6441
9c543fbf
AI
64422000-12-17 Andrew Innes <andrewi@gnu.org>
6443
6444 * w32.c (sys_rename): Only check errno against EEXIST, and not
6445 EACCES, when determining whether rename failed because the target
6446 exists. This was resulting in indefinite looping on Windows 9x if
6447 the source file was locked by another process.
6448
6449 * w32fns.c (Ffile_system_info): New function.
6450 (syms_of_w32fns): Defsubr it.
6451
10c2b5a8
GM
64522000-12-17 Gerd Moellmann <gerd@gnu.org>
6453
b0228ace
GM
6454 * window.c (coordinates_in_window): Fix computation for
6455 position on vertical line between mode lines.
6456
10c2b5a8
GM
6457 * xfns.c (unwind_create_frame): Return t if frame was deleted.
6458 Don't alter tip_frame or tip_window.
6459 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6460 was deleted.
6461
c844a81a
GM
6462 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
6463 Don't alter tip_frame or tip_window.
6464 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6465 was deleted.
6466
6c825f8e
EZ
64672000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
6468
6469 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
6470 be consistent with the doc string. Reported by NAKAJIMA Mikio
6471 <minakaji@osaka.email.ne.jp>.
6472
af4bb4c8
KH
64732000-12-16 Kenichi Handa <handa@etl.go.jp>
6474
6475 * xfaces.c (Vface_ignored_fonts): New variable.
6476 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
6477 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
6478
8062e53a
GM
64792000-12-15 Gerd Moellmann <gerd@gnu.org>
6480
e87b8809
GM
6481 * dispnew.c (update_window): Detect pending input every nth line
6482 updated, i.e. do it depending on real work done, and not on the
6483 vpos of the line.
6484
6485 * xterm.c (expose_window): Don't redraw the window that's
6486 currently being updated.
6487
a6768cc5
GM
6488 * window.c (Fset_window_point): Remove test for
6489 cursor_in_non_selected_windows.
6490
4ea7fdca
GM
6491 * lread.c (read1): Recognize end of file after `\\'.
6492
8062e53a
GM
6493 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6494 not unwind_create_frame.
6495
bb7959c1
GM
64962000-12-15 Dave Love <fx@gnu.org>
6497
6498 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6499 bcopy & al.
6500
6501 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6502
ced04c42
KH
65032000-12-15 Kenichi Handa <handa@etl.go.jp>
6504
c5443913
KH
6505 * coding.c (setup_coding_system): Clear all members of the struct
6506 coding_system at first.
bc137305
KH
6507 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6508 argument.
6509 (code_convert_region): Don't override coding->src_multibyte and
6510 coding->dst_multibyte.
c5443913 6511
ced04c42
KH
6512 * fns.c (Fmd5): Docstring improved.
6513
c2d7f289
MB
65142000-12-15 Miles Bader <miles@gnu.org>
6515
6516 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6517 are actually marked as mode-lines; otherwise use
6518 estimate_mode_line_height.
6519
9d7d9263
GM
65202000-12-14 Gerd Moellmann <gerd@gnu.org>
6521
6522 * editfns.c (Fformat): Prevent a buffer overrun when the format
6523 specifies a precision.
6524
7cf0153a
EZ
65252000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6526
6527 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6528 argument is outside the range [2..3].
6529
1de0f662
AI
65302000-12-14 Andrew Innes <andrewi@gnu.org>
6531
6532 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6533 nothing to do. Bind inhibit-quit.
6534 (tip_frame): Make it a Lisp_Object.
6535 (x_create_tip_frame): Set tip_frame after it has been added to
6536 Vframe_list.
6537 (Fx_show_tip): Don't set tip_frame here.
52283633 6538 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
6539 (unwind_create_frame, unwind_create_tip_frame): New functions.
6540 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6541 while a frame is only partially constructed.
6542
6543 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6544 (x_free_frame_resources): New function.
6545 (x_destroy_window): Use it.
6546
02387dcc
GM
65472000-12-14 Gerd Moellmann <gerd@gnu.org>
6548
6549 * xfns.c (Fx_backspace_delete_keys_p): New function.
6550 (syms_of_xfns): Defsubr it.
6551
6552 * config.in (HAVE_XKBGETKEYBOARD): Add.
6553
0544ef49
KH
65542000-12-14 Kenichi Handa <handa@etl.go.jp>
6555
98d62747
KH
6556 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6557 Always store string in multibyte representation in echobuf.
6558 (echo_char): Always store string in multibyte representation in
6559 echobuf.
6560 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6561 (read_key_sequence): Adjusted for the change of echo_prompt.
6562
a20193cd
KH
6563 * fns.c (Fmd5): Docstring improved.
6564
191b83b6
KH
6565 * lisp.h (detect_coding_system): Prototype adjusted.
6566
0544ef49
KH
6567 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6568 (detect_coding_emacs_mule, detect_coding_iso2022,)
6569 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
6570 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6571 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
6572 (detect_coding_mask, detect_coding_system): New argument
6573 MULTIBYTEP. Callers changed.
1da1bb05
KH
6574 (decode_coding_string): Set coding->src_multibyte and
6575 coding->dst_multibyte before calling detect_coding and detect_eol.
6576 Update them after some coding system is detected.
52283633 6577
d5b3eb1b
SM
65782000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6579
6580 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6581
6582 * keyboard.c (menu_bar_items, tool_bar_items):
6583 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6584
f7f8bb69
GM
65852000-12-13 Gerd Moellmann <gerd@gnu.org>
6586
52283633 6587 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
6588 New variables.
6589 (unwind_create_frame, unwind_create_tip_frame): New functions.
6590 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6591 while a frame is only partially constructed.
6592
6593 * xterm.h (x_free_frame_resources): Declare.
6594
6595 * xterm.c (x_free_frame_resources): New function.
6596 (x_destroy_window): Use it.
6597
e10da507
GM
6598 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6599 don't interrupt the update for pending input initially, i.e.
6600 update at least some lines.
6601
6602 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 6603
d5b3eb1b 6604 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
6605
6606 * xfns.c (gray_bitmap_bits): Declare `char *'.
6607
90aa2856
GM
66082000-12-12 Gerd Moellmann <gerd@gnu.org>
6609
6610 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6611 lines start with a relief line.
6612
a308c9cd
DL
66132000-12-12 Dave Love <fx@gnu.org>
6614
6615 * window.c (Fdisplay_buffer): Doc fix.
6616 (Fwindow_list): Remove unused var.
6617
6618 * buffer.h (mmap_set_vars): Declare.
6619
6620 * window.h (Fset_window_point): Declare.
6621
d575011f
EZ
66222000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6623
bf6282d2 6624 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
6625 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6626 variable `area'. When looking for a row under (X,Y), give up if some
6627 of the previous rows is not enabled.
d575011f 6628
ecf4d726
GM
66292000-12-12 Gerd Moellmann <gerd@gnu.org>
6630
2ebf6139
GM
6631 * window.c (Fset_window_point): If displaying cursors in windows
6632 other than the selected window, make sure redisplay updates
6633 other windows to show the new value of point in the window.
6634
6635 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6636
bfdb75ee
GM
6637 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6638 the buffer is the sole visible buffer when in the mini-buffer.
6639
52283633 6640 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
6641 Bind `inhibit-read-only' to t.
6642 (unwind_with_echo_area_buffer): Use AREF.
6643
c0006262
GM
6644 * xfns.c (Fx_hide_tip): Simplified.
6645
52283633
SM
6646 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6647 instead of `1'.
e9a59cad 6648
ecf4d726
GM
6649 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6650
e5959a9a
GM
66512000-12-11 Gerd Moellmann <gerd@gnu.org>
6652
a3642e49 6653 * xfns.c (Fx_hide_tip): Fix last change.
52283633 6654
44b5a125
GM
6655 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6656 nothing to do. Bind inhibit-quit.
6657 (tip_frame): Make it a Lisp_Object.
6658 (x_create_tip_frame): Set tip_frame after it has been added to
6659 Vframe_list.
6660 (Fx_show_tip): Don't set tip_frame here.
6661
6662 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6663
6664 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6665 Lisp_Object.
6666
6667 * dispextern.h: Change external declaration of tip_frame.
6668
d990421f
GM
6669 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6670 return an empty string.
6671
4db87380
GM
6672 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6673 of the window's update_mode_line flag, since the former is set by
6674 force-mode-line-update, not the latter. This makes
6675 column-number-mode slightly faster.
52283633 6676
e5959a9a
GM
6677 * xdisp.c (try_window_id) <all changes above window start>:
6678 Set the cursor.
6679
169fe44e
GM
66802000-12-11 Paul Eggert <eggert@twinsun.com>
6681
6682 * config.in (HAVE_FTELLO): Remove.
6683 (HAVE_FSEEKO): Add.
6684 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6685 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6686 HAVE_FTELLO.
6687 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6688 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 6689
59ec59ae
MB
66902000-12-11 Miles Bader <miles@gnu.org>
6691
6692 * window.c (displayed_window_lines): Don't round up when
6693 converting empty space at bottom to lines.
ff904dd6
MB
6694 Handle non-newline-terminated final lines properly.
6695 (Fwindow_text_height): New function (used to be in lisp).
6696 (syms_of_window): Initialize it.
59ec59ae 6697
42ebfa31
SM
66982000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6699
6700 * syntax.c (scan_lists): Check that the right quote char has the
6701 right Sstring syntax when jumping over strings.
6702 (init_syntax_once): Use Smax rather than 13.
6703
5cdb3cf3
MB
67042000-12-09 Miles Bader <miles@gnu.org>
6705
6706 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6707 with PARTIALLY, inverting the sense.
6708 (window_scroll_pixel_based): Scroll partially visible lines into
6709 place if we hit the beginning or end of the buffer.
a12167c5
MB
6710 (displayed_window_lines): Don't include partially visible lines.
6711 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 6712
842b2a94
GM
67132000-12-08 Gerd Moellmann <gerd@gnu.org>
6714
6715 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6716
6717 * tparam.c (tparam1): Change the way buffers are reallocated to be
6718 portable and less obfuscated.
6719
6720 * termcap.c (tgetent): Change the way buffers are reallocated to
6721 be portable and less obfuscated.
6722
6723 * macros.c (store_kbd_macro_char): Change the way buffers are
6724 reallocated to be portable and less obfuscated.
6725
6726 * lread.c (read1): Change the way buffers are reallocated to be
6727 portable and less obfuscated.
6728
6729 * doc.c (Fsubstitute_command_keys): Change the way buffers
6730 are reallocated so that it is portable.
6731
137cad7c
EZ
67322000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6733
6734 * dosfns.c (Ffile_system_info): New function.
6735 (syms_of_dosfns): Defsubr it.
6736
5c7f629c
SM
67372000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6738
6739 * alloc.c (gc_sweep): Add comment.
6740
959e647d
GM
67412000-12-07 Gerd Moellmann <gerd@gnu.org>
6742
52283633
SM
6743 * sound.c (vox_configure): Change order of ioctls.
6744 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
6745 Ignore errors when changing volume.
6746 (vox_close): Don't reset the device.
6747
926b7e5e
GM
6748 * process.c (read_process_output): Make sure the process marker's
6749 position is valid when the process buffer is changed in
6750 after-change functions. W3 does that.
52283633 6751
959e647d
GM
6752 * xfns.c (x_free_gcs): New function.
6753
6754 * xterm.h (x_free_gcs): Add prototype.
6755
6756 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6757 freeing GCs here.
6758
6759 * xterm.c (x_destroy_window): Call x_free_gcs so that
6760 resources of non-toolkit X windows will be freed.
6761
478ea067
AI
67622000-12-07 Andrew Innes <andrewi@gnu.org>
6763
6764 * w32fns.c (xlfd_charset_of_font): Fix last change.
6765
fbee3231
DL
67662000-12-06 Dave Love <fx@gnu.org>
6767
67292061
DL
6768 * md5.h (__P): Don't define -- it comes from config.h.
6769
fbee3231
DL
6770 * strftime.c: Change some #if foo to #ifdef foo.
6771
4ee87dbb
AI
67722000-12-06 Andrew Innes <andrewi@gnu.org>
6773
6774 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6775
52283633 6776 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 6777 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 6778 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 6779
9765b4a4
GM
67802000-12-06 Gerd Moellmann <gerd@gnu.org>
6781
d285b373
GM
6782 * alloc.c (gc_sweep): Prevent symbols read during loadup
6783 from being freed.
6784
384333ee
GM
6785 * xdisp.c (underlying_face_id): New function.
6786 (handle_face_prop, face_before_or_after_it_pos): Use it
6787 to determine the face ``under'' a string. Let strings inherit
6788 the face of the buffer under them.
6789
6790 * xfaces.c (face_at_string_position): Update function comment.
52283633 6791
d4b72d58
GM
6792 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6793 matrix if the window's left position has changed; we need to
6794 redraw it in this case.
6795
6796 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6797
e1d05387
GM
6798 * window.c (coordinates_in_window): Check mouse on mode-line or
6799 header-line first.
6800
eb1b0c74
GM
6801 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6802 advertized by the function documentation.
6803
d94d636f
GM
6804 * window.c (syms_of_window): Doc fix.
6805
3887b449
GM
6806 * sound.c (vox_configure): Set volume for left and right channel.
6807 (sound_cleanup): Return nil.
6808
efc8f57a
GM
6809 * xdisp.c (move_it_by_lines): Fix paren typo.
6810
9765b4a4
GM
6811 * xterm.c (x_load_font): Don't use the font's max_bounds for
6812 computing the height of the font. If max_bounds' ascent or
6813 descent are greater than the font's ascent or descent, this means
6814 glyphs overlap, which should be handled now by redisplay.
6815
6529ed87
GM
6816 * window.c (Veven_window_heights): New variable.
6817 (syms_of_window): DEFVAR_LISP it.
6818 (Fdisplay_buffer): Check Veven_window_heights before evening the
6819 window heights.
52283633 6820
0eb2ecde
MB
68212000-12-06 Miles Bader <miles@gnu.org>
6822
6823 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6824 update `default-frame-alist' instead of setting no frame parameters.
6825
03d7a167
KH
68262000-12-06 Kenichi Handa <handa@etl.go.jp>
6827
6828 * composite.c (update_compositions): Fix typo (use the correct
6829 variable).
6830
5f8803c2
JR
68312000-12-05 Jason Rumney <jasonr@gnu.org>
6832
6833 * md5.h: Remove underscores from function declarations.
6834 (__attribute__, __alignof__) [!__GNUC__]: Define.
6835
6836 * md5.c: Delay include of md5.h until after namespace cleaning.
6837
c28a075b
JR
6838 * makefile.w32-in (fns.o): Depend on md5.h
6839 (md5.o): New target.
6840 (sunfns.o): Remove.
6841
6842 * makefile.nt: Likewise.
6843
ff3c7056
JR
68442000-12-05 Jason Rumney <jasonr@altavista.net>
6845
6846 * w32term.c (expose_area): Complete last change.
6847
0c21eeeb
KR
68482000-12-05 Ken Raeburn <raeburn@gnu.org>
6849
6850 * minibuf.c: Include intervals.h.
6851
f201d732
JR
68522000-12-05 Jason Rumney <jasonr@gnu.org>
6853
6854 * w32term.c (x_produce_glyphs): If a font for a component of
6855 a composition is not found, use 1 pixel dot ascent and 0 dot
6856 descent value to avoid displaying terribly tall empty boxes.
6857 (expose_area): Pass x-coordinate relative to the exposed
6858 area to x_draw_glyphs instead of a window-relative coordinate.
6859
21999ab9
GM
68602000-12-05 Gerd Moellmann <gerd@gnu.org>
6861
4d2036e4
GM
6862 * xdisp.c (next_element_from_ellipsis): Save face before selective
6863 display in saved_face_id, and set face_before_selective_p.
6864 (reseat_1): Reset face_before_selective_p.
6865 (append_space, extend_face_to_end_of_line): If iterator's
6866 face_before_selective_p is set, use the face from saved_face_id.
6867 (extend_face_to_end_of_line): For tty frames, make sure to
6868 use the right face id when producing spaces at the end of
6869 the line.
6870
6871 * dispextern.h (struct it): Add face_before_selective_p.
6872
52be17cc
GM
6873 * keyboard.c (record_char): Don't record identical help-echo
6874 events in recent_keys.
6875
8a4f36cc
GM
6876 * xterm.c [USE_X_TOOLKIT]: Close the display.
6877 (xim_close_dpy): Handle case that the display has been closed.
6878
57d6e381
GM
6879 * xterm.c (x_destroy_window): Reset the frame's X window after
6880 destroying it.
6881
21999ab9
GM
6882 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
6883 variable window_width.
6884 (line_draw_cost): Fix code skipping over spaces at the end of the
6885 line when must_write_spaces is not set.
6886 (scrolling_window): Fix code inserting runs in list of all runs.
6887
91372bb7
KH
68882000-12-05 Kenichi Handa <handa@etl.go.jp>
6889
6890 * coding.c (setup_coding_system): Be sure to initialize
6891 coding->category_idx.
6892
6c083b4c
GM
68932000-12-04 Gerd Moellmann <gerd@gnu.org>
6894
0c68ce6f 6895 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 6896
6452929e
GM
6897 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
6898 area to x_draw_glyphs instead of a window-relative coordinate.
6899
d7f31e22
GM
6900 * fileio.c (auto_save_error): Add parameter ERROR. Show the
6901 error in the message.
6902
ae18aa3b
GM
6903 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
6904 timer after having read a key. It's not good for code reading
6905 several keys in a loop, like an input method.
6906
caa15ef7
GM
6907 * fileio.c (Finsert_file_contents): When VISIT is t, don't
6908 record undo information for format-decode.
6909
6910 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
6911 current buffer is read-only, not if it isn't.
6912
6c083b4c
GM
6913 * keyboard.c (record_char): Record `help-echo' input events
6914 in recent_keys only if they display some help. Don't record
6915 `help-echo' events as macro char.
6916
caa15ef7
GM
69172000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6918
6919 * editfns.c (save_excursion_restore): Don't move point
6920 in another window if it is showing the wrong buffer.
6921 Avoid the call to Fwindow_live_p, for speed.
6922
5a13529b
KH
69232000-12-04 Kenichi Handa <handa@etl.go.jp>
6924
e225faa7
KH
6925 * xfaces.c (struct font_name): New member registry_priority.
6926 (split_font_name): Initialize the above member to zero.
6927 (concat_font_list): New function.
6928 (font_list): Include fonts of all alternative registries.
6929 (FONT_POINT_SIZE_QUANTUM): New macro.
6930 (better_font_p): Ignore point size difference less than
6931 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
6932
e89648b4
KH
6933 * xterm.c (x_produce_glyphs): If a font for a component of
6934 a composition is not found, use 1 pixel dot ascent and 0 dot
6935 descent value to avoid displaying terribly tall empty boxes.
6936
5a13529b
KH
6937 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
6938
d7935eb6
KR
69392000-12-03 Ken Raeburn <raeburn@gnu.org>
6940
6941 * coding.h (code_convert_string1): Declare.
6942
6943 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
6944
52283633 6945 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 6946
0dd5e255
JR
69472000-12-02 Jason Rumney <jasonr@gnu.org>
6948
6949 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
6950 correctly for single byte character case.
6951 (w32_per_char_metric): Do not try to make any assumptions about
6952 the metrics of BDF fonts.
250cfece 6953 (x_estimate_mode_line_height): If `mode-line' face
52283633 6954 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
6955 (note_mouse_highlight): Change the cursor shape on the vertical
6956 border between windows [not enabled].
6957
6958 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
6959
6960 * w32fns.c (Fx_create_frame): Reintroduce the call to
6961 face-set-after-frame-defaults.
6962 (Vx_window_horizontal_drag_shape): New variable.
6963 (syms_of_xfns): DEFVAR_LISP it.
6964 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
6965 enabled].
0dd5e255 6966
b5d8d2ca
GM
69672000-12-02 Simon Josefsson <simon@josefsson.org>
6968
6969 * fns.c (Fmd5): Use a different logic to decide the coding system
6970 to use.
6971
6972 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
6973
fbb87147
EZ
69742000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
6975
52283633 6976 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 6977
447e9da0
GM
69782000-12-01 Gerd Moellmann <gerd@gnu.org>
6979
7708ced0
GM
6980 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
6981 height for YNegative.
6982 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
6983 height; also see comment there.
6984
447e9da0
GM
6985 * window.c (coordinates_in_window): Handle computations for
6986 positions on the vertical bar and fringes differently for
6987 window-system frames. Consider some pixels near the vertical bar
6988 as on the bar if the frame doesn't have vertical scroll bars.
6989 Associate positions between mode or header lines with the
6990 right window, the left one.
6991
86d1db20
JR
69922000-12-01 Jason Rumney <jasonr@gnu.org>
6993
6994 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
6995
6996 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
6997 invalid frame.
6998
a1d58e5b
GM
69992000-12-01 Gerd Moellmann <gerd@gnu.org>
7000
52283633 7001 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
7002 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7003 (save_window_save, Fset_window_configuration): Save/restore
7004 window's orig_top and orig_height.
7005
89c609af
JR
70062000-12-01 Jason Rumney <jasonr@gnu.org>
7007
4d177746 7008 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 7009
89c609af
JR
7010 * w32fns.c (x_set_cursor_color): Fix last change.
7011
eccc05db
GM
70122000-11-30 Gerd Moellmann <gerd@gnu.org>
7013
31b6671b
GM
7014 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7015 sure that the next redisplay displays the minibuffer, so that
7016 the cursor will be replaced with what the minibuffer wants.
7017
eccc05db
GM
7018 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7019 #ifndef instead of using #if.
7020 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7021 USE_TOOLKIT_SCROLL_BARS is defined.
7022
162de750
JR
70232000-11-30 Jason Rumney <jasonr@gnu.org>
7024
7025 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7026 x_display_cursor.
7027
693c4692
GM
70282000-11-30 Gerd Moellmann <gerd@gnu.org>
7029
7030 * fns.c (Fmd5): Doc fix.
7031
b5d8d2ca 70322000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
7033
7034 * fns.c (Fmd5): New function.
7035 (syms_of_fns): Defsubr md5.
7036
7037 * Makefile.in (obj): Add md5.o
7038
b02cd40b
GM
70392000-11-30 Gerd Moellmann <gerd@gnu.org>
7040
edfb795e
GM
7041 * md5.h, md5.c: New files, taken from glibc.
7042
df3aedcf
GM
7043 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7044
b02cd40b 7045 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 7046 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 7047
8b5176cd
SM
70482000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7049
7050 * eval.c (Frun_hooks): Allow 0 arguments.
7051
346598f1
GM
70522000-11-29 Gerd Moellmann <gerd@gnu.org>
7053
f9396e03
GM
7054 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7055 is over the menu bar widget, say it's not on the frame.
7056
4a967a9b
GM
7057 * xfns.c (Fx_create_frame): Reintroduce the call to
7058 face-set-after-frame-defaults.
7059
346598f1
GM
7060 * eval.c (Fsignal): Reset handling_signal.
7061
222456a1
JR
70622000-11-28 Jason Rumney <jasonr@gnu.org>
7063
7064 * w32menu.c (add_menu_item): Reset menu item text when changing
7065 type to radio button.
7066
8049ddc0
GM
70672000-11-28 Gerd Moellmann <gerd@gnu.org>
7068
346598f1 7069 * xselect.c: Update copyright.
f4f4ee4d 7070
bebe4a2c
GM
7071 * window.c (coordinates_in_window): If on a mode or header line,
7072 but sufficiently close to its start, return ``on vertical
7073 border''. This gives us a way to drag windows horizontally when
7074 using toolkit scroll bars.
7075
7076 * xterm.c (note_mouse_highlight): Change the cursor shape
7077 on the vertical border between windows.
7078
7079 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7080
7081 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7082 (syms_of_xfns): DEFVAR_LISP it.
7083 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7084
8d2c2642
GM
7085 * textprop.c (text_read_only): New function.
7086 (verify_interval_modification): Use it instead of signaling
7087 `text-read-only'. This makes it easier to catch this error
52283633 7088 with a breakpoint.:
8d2c2642 7089
52283633 7090 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
7091 not end of line, which includes CR.
7092
5a2bae6c
KH
70932000-11-28 Kenichi Handa <handa@etl.go.jp>
7094
7095 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7096 include no-conversion.
7097
ae31f84d
JR
70982000-11-27 Jason Rumney <jasonr@gnu.org>
7099
7100 * w32fns.c (w32_load_system_font): Always mark font as double byte
7101 if codepage is unicode.
7102
67f1cf4c
GM
71032000-11-27 Gerd Moellmann <gerd@gnu.org>
7104
4a74d071 7105 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 7106 just consume it to avoid unintended skipping over invisible text below.
4a74d071 7107
902ae620
GM
7108 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7109 `vertical-line', `mode-line' and `header-line' events.
7110
7111 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
7112 of a character, a TAB for instance. This is easier than to set
7113 up the iterator exactly, and it's not a frequent case, so the
7114 additional effort wouldn't really pay off.
7115
c1e279c2
AC
71162000-11-26 Andrew Choi <akochoi@i-cable.com>
7117
67f1cf4c 7118 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
7119 init_window_once.
7120
a609568a
JR
71212000-11-25 Jason Rumney <jasonr@gnu.org>
7122
52283633
SM
7123 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7124 Args to window_from_coordinates should be pixel coordinates.
48b21762 7125
a609568a
JR
7126 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7127 redisplay handles them properly.
7128
a658d039
MB
71292000-11-25 Miles Bader <miles@gnu.org>
7130
7131 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7132
d3416cca
JR
71332000-11-24 Jason Rumney <jasonr@gnu.org>
7134
7135 * w32.c (init_environment): Set LANG environment variable based on
7136 locale settings, if not set.
7137
7138 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7139 making tool bar smaller. When clearing the frame, also
7140 clear current matrices. Clear frame when tool bar disappears.
7141 Don't use more lines for the tool-bar than is available.
7142 (x_change_window_heights): New function.
7143
ba193890
GM
71442000-11-24 Gerd Moellmann <gerd@gnu.org>
7145
2be8f184
GM
7146 * xdisp.c (init_from_display_pos): If POS says we're already after
7147 an overlay string ending at POS, make sure to pop the iterator
7148 because it will be in front of that overlay string. When POS is
7149 ZV, we've thereby also ``processed'' overlay strings at ZV.
7150
ba193890
GM
7151 * xfaces.c (lface_from_face_name): Function comment fix.
7152
1862a24e
MB
71532000-11-24 Miles Bader <miles@gnu.org>
7154
7155 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7156 apply `mode-line-inverse-video' -- zero means force display using
7157 the default face, non-zero means display using the specialized face.
7158 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7159
f07fa1b8
KH
71602000-11-23 Kenichi Handa <handa@etl.go.jp>
7161
7162 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7163 hard coded `4'.
7164
2bcdf662
EZ
71652000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7166
7167 * coding.c (decode_coding_emacs_mule): Fix the case of
7168 CODING_EOL_LF, which used uninitialized value of c.
7169
ba8299ff
SM
71702000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7171
7172 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7173
f4117c4d
GM
71742000-11-22 Gerd Moellmann <gerd@gnu.org>
7175
03e757c1
GM
7176 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7177 buffer object.
7178
f4117c4d
GM
7179 * frame.h (struct frame): Replace desired_tool_bar_items,
7180 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 7181 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
7182
7183 * frame.c (make_frame): Change initialization of tool bar
7184 items accordingly.
7185
7186 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 7187 Change references to members deleted from struct frame to use the
f4117c4d
GM
7188 new ones.
7189
7190 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 7191 references to members deleted from struct frame to use the new ones.
f4117c4d 7192
52283633 7193 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
7194
7195 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7196
7197 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 7198 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
7199 from struct frame to use the new ones.
7200
f8e2f3f2
MB
72012000-11-23 Miles Bader <miles@gnu.org>
7202
7203 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7204 the face's inverse-video attribute, rather than overriding it.
7205
60e8e0a5
GM
72062000-11-22 Gerd Moellmann <gerd@gnu.org>
7207
7208 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7209 making tool bar smaller.
7210
92dd1b29
DL
72112000-11-22 Dave Love <fx@gnu.org>
7212
7213 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7214
e672fdce
MB
72152000-11-22 Miles Bader <miles@gnu.org>
7216
3a17d6cc
MB
7217 * keyboard.c (Vminibuffer_message_timeout): New variable.
7218 (command_loop_1): Use it to determine message timeout.
7219 (syms_of_keyboard): Initialize it.
7220
60e8e0a5 7221 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 7222
e9655d81
KH
72232000-11-22 Kenichi Handa <handa@etl.go.jp>
7224
7225 * sysdep.c: Move the code for declaring h_errno after #include
7226 <netdb.h>.
7227
77270fac
GM
72282000-11-21 Gerd Moellmann <gerd@gnu.org>
7229
cd913aae
GM
7230 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7231 the menu bar when the tooltip is unmapped.
7232
77270fac
GM
7233 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7234 sole visible buffer when we're currently in the mini-buffer, and
7235 give up if so.
52283633 7236
556635d6
JR
72372000-11-21 Jason Rumney <jasonr@gnu.org>
7238
7239 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7240 put on the clipboard.
7241 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7242 copy of what Emacs last put there. If they are the same, do not
52283633 7243 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 7244
5b7bde64
MB
72452000-11-22 Miles Bader <miles@gnu.org>
7246
7247 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7248 (syms_of_minibuf): Initialize it.
7249 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7250 to prompt, don't make read-only.
7251
ff23e1dd
GM
72522000-11-21 Gerd Moellmann <gerd@gnu.org>
7253
52283633
SM
7254 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7255 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 7256
7aaf4388
GM
7257 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7258
f5f47add 7259 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 7260
ff23e1dd
GM
7261 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7262
37c35586
KH
72632000-11-21 Kenichi Handa <handa@etl.go.jp>
7264
7265 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7266 ... #endif scope.
7267
ff9ab414
GM
72682000-11-20 Gerd Moellmann <gerd@gnu.org>
7269
52283633 7270 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
7271 screen supports it.
7272
29a01b72
GM
7273 * s/gnu-linux.h: Don't use `#cpu'.
7274
09dfdf85
GM
7275 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7276 not defined in mman.h.
7277
52283633 7278 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
7279 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7280 and store an index in the XClientMessageEvent. Storing a
7281 Lisp_Object or pointer can fail on a 64 bit system, since X only
7282 transfers 32 bits.
52283633
SM
7283 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7284
81459ac9
DL
72852000-11-20 Dave Love <fx@gnu.org>
7286
7287 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7288
56c13ae6
GM
72892000-11-20 Gerd Moellmann <gerd@gnu.org>
7290
7291 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7292
495a6df3
KH
72932000-11-20 Kenichi Handa <handa@etl.go.jp>
7294
2bcf3714
KH
7295 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7296 by WIDTH.
7297
495a6df3
KH
7298 * alloc.c (make_string): Fix previous change. Be sure to make
7299 unibyte string correctly.
7300
6d950f4c
GM
73012000-11-19 Gerd Moellmann <gerd@gnu.org>
7302
39b39373
GM
7303 * window.c (Fwindow_list): Change parameter list to be XEmacs
7304 compatible.
7305 (window_list_1): New function.
7306 (window_loop): Use it instead of Fwindow_list.
7307
b95b34e5
GM
7308 * sysdep.c (emacs_ospeed): New variable.
7309 (toplevel): Don't declare ospeed extern.
7310 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7311
7312 * termcap.c (ospeed): Remove.
7313 (tputs) [!emacs]: Remove unused code.
7314 (tgetent): Avoid a compiler warning.
7315
e83dc917
GM
7316 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7317 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 7318 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
7319
7320 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7321 removed.
7322 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7323 Take the X display as additional argument.
7324 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7325 `Widget' is a pointer type that's not easily stored in Lisp_Object
7326 form in a portable way.
52283633 7327
6d950f4c
GM
7328 * dispnew.c (update_text_area): Fix last change.
7329
e47306e6
GM
73302000-11-18 Gerd Moellmann <gerd@gnu.org>
7331
fb3cd89b
GM
7332 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7333
7334 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7335 clear current matrices.
7336
edaa9aed
GM
7337 * buffer.c (mmap_enlarge): Don't print a message on stderr
7338 if mapping new memory at the end of the existing region fails.
7339
e47306e6
GM
7340 * dispnew.c (update_text_area): Don't skip over equal glyphs
7341 when the last current glyph overlaps the glyph to its right.
7342
509633e3
MB
73432000-11-18 Miles Bader <miles@gnu.org>
7344
7345 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7346 lines that *end* with "..." too (that's the most common case!).
7347
d392e9c5
GM
73482000-11-18 Gerd Moellmann <gerd@gnu.org>
7349
67988445
GM
7350 * xdisp.c (resize_mini_window): Temporarily change to the
7351 mini-window's buffer if necessary.
1bfdbe43 7352
d392e9c5
GM
7353 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7354 the tooltip obscures less text under it.
7355
73562000-11-17 Gerd Moellmann <gerd@gnu.org>
7357
7358 * puresize.h (BASE_PURESIZE): Increase to 700000.
7359
92bb977f
JR
73602000-11-18 Jason Rumney <jasonr@gnu.org>
7361
7362 * w32term.c (w32_draw_bitmap): Use face to set colors.
7363
26fbf20b
DL
73642000-11-17 Dave Love <fx@gnu.org>
7365
7366 * lread.c (Fload): Fix #ifdef for pcc.
7367
100b593b
GM
73682000-11-17 Gerd Moellmann <gerd@gnu.org>
7369
7370 * xdisp.c (pos_visible_p): Compute the default character height
7371 differently.
7372
a288d0d1
GM
73732000-11-16 Gerd Moellmann <gerd@gnu.org>
7374
cac94de6 7375 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 7376 knowing the line's height; use the default font's height in that case.
cac94de6 7377
a288d0d1
GM
7378 * xfaces.c (weight_table): Add `demi' with the same meaning as
7379 `demibold'.
7380
981fb6f6
KH
73812000-11-16 Kenichi Handa <handa@etl.go.jp>
7382
2cca872d 7383 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
7384 (clear_glyph_row): Delete local static variable null_row.
7385
e5fa381b
JR
73862000-11-15 Jason Rumney <jasonr@gnu.org>
7387
7388 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7389 (w32_alloc_lighter_color): Use new brightness calculations from
7390 xterm.c. Scale delta to be in the range expected by W32.
7391 (w32_draw_relief_rect): Use frame relief colors.
7392
8e42f043
GM
73932000-11-15 Gerd Moellmann <gerd@gnu.org>
7394
6d133d1f
GM
7395 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
7396 (Qinhibit_default_face_x_resources): New variable.
7397 (syms_of_frame): Initialize it.
7398 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
7399
7400 * xdisp.c (pos_visible_p): Improve function comment.
7401
7402 * lisp.h (BINDING_STACK_SIZE): New macro.
7403
8e42f043
GM
7404 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
7405 reading the directory if readdir returns null and errno is EAGAIN
7406 or EINTR.
7407
e8c87124
SM
74082000-11-14 Stefan Monnier <monnier@cs.yale.edu>
7409
7410 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
7411 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
7412 Set amount_to_scroll to max of dx and scroll_step so that
7413 scroll-conservatively doesn't defeat scroll-step>1.
7414 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
7415 scroll-conservatively for line-at-a-time scrolling.
7416
5f0c971d
GM
74172000-11-14 Gerd Moellmann <gerd@gnu.org>
7418
7419 * window.c (Fpos_visible_in_window_p): Call pos_visible with
7420 extra argument.
7421
7422 * xdisp.c (current_mode_line_height, current_header_line_height):
7423 New variables.
7424 (init_xdisp): Initialize them.
7425 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
7426 and use exact mode line heights if it is set.
7427
7428 * lisp.h (pos_visible_p): Change prototype.
7429
7430 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
7431 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
7432 and current_header_line_height first.
52283633
SM
7433 (current_mode_line_height, current_header_line_height):
7434 Declare extern.
5f0c971d 7435
d7361edf
MB
74362000-11-14 Miles Bader <miles@lsi.nec.co.jp>
7437
7438 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
7439 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
7440 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
7441
ee5e440a
MB
74422000-11-14 Miles Bader <miles@gnu.org>
7443
7444 * xterm.c (x_alloc_lighter_color): Include an additive component
7445 too for dark colors, because FACTOR isn't enough.
7446 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
7447 New macros.
7448
5ca020fc
GM
74492000-11-13 Gerd Moellmann <gerd@gnu.org>
7450
7451 * keyboard.c (show_help_echo): Call message3_nolog with number of
7452 bytes in the help string as 2nd parameter, instead of the number
7453 of characters.
7454
9d348294
MB
74552000-11-13 Miles Bader <miles@gnu.org>
7456
7457 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
7458 (Fload): Use new openp return protocol.
7459 Don't try to use Vload_source_file_function to load .elc files.
7460 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
7461 openp return protocol.
7462 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
7463
1729bb9a
KH
74642000-11-11 Kenichi Handa <handa@etl.go.jp>
7465
4e677396
KH
7466 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
7467
7468 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
7469 Defined these macros.
7470 (NLIST_STRUCT): Avoid re-defining it.
7471
1729bb9a
KH
7472 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
7473 -I/usr/contrib/X11R6/include.
7474 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
7475
a82fe213
JR
74762000-11-10 Jason Rumney <jasonr@gnu.org>
7477
7478 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
7479
7480 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
7481 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7482
7483 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7484 (Qw32_charset_vietnamese): New symbol.
7485 (xlfd_charset_of_font): New function.
7486 (w32_load_system_font): Use it.
7487 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7488 when Vw32_charset_info_alist is nil to ensure default face always
7489 has font. Use Fcar and Fcdr for safety.
7490 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7491 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7492 pseudo-codepages for special cases.
7493 (w32_to_x_font): New parameter to allow charset portion to be
7494 specified where there is many to one mapping. Callers changed.
7495 (w32_list_fonts): Avoid listing fonts that won't display.
7496
52d89894
GM
74972000-11-10 Gerd Moellmann <gerd@gnu.org>
7498
7499 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7500 (font_list_1): Renamed from font_list.
7501 (font_list): New function, trying alternative registries from
7502 Vface_alternative_font_registry_alist.
7503 (Finternal_set_alternative_font_registry_alist): New function.
7504 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
7505 Vface_alternative_font_registry_alist.
7506 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 7507
651cd3da
KR
75082000-11-09 Ken Raeburn <raeburn@gnu.org>
7509
7510 * lisp.h (Flooking_at): Declare.
7511
388ac098
GM
75122000-11-09 Gerd Moellmann <gerd@gnu.org>
7513
778fbc46 7514 * dired.c (directory_files_internal): Fix a braino.
52283633 7515
388ac098
GM
7516 * dired.c (directory_files_internal): Add missing GCPRO's.
7517 Some cleanup.
7518
ecaedde1
GM
75192000-11-08 Gerd Moellmann <gerd@gnu.org>
7520
f7eb32aa
GM
7521 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7522 (resize_mini_window): Return quickly if Vresize_mini_window is
7523 nil. Don't return if Vmax_mini_window_height is nil.
7524
7525 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7526 (syms_of_xdisp): Initialize them.
7527 (resize_mini_window): Act according to the setting of
7528 Vresize_mini_window.
7529 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7530
ecaedde1
GM
7531 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7532 scroll bar widget after configuring it, so that it will appear at
7533 the right position from the start.
7534 (XTredeem_scroll_bar): Cleaned up.
7535
3747ef2c
KH
75362000-11-08 Kenichi Handa <handa@etl.go.jp>
7537
7538 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 7539 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
7540 division by two.
7541
7542 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7543
03391420
DL
75442000-11-07 Dave Love <fx@gnu.org>
7545
7758f1c1 7546 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
7547
7548 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7549
b5de343d
GM
75502000-11-07 Gerd Moellmann <gerd@gnu.org>
7551
acad3c0b
GM
7552 * window.c (Fset_window_configuration): Don't try to preserve
7553 point in the current buffer, if that buffer is displayed in more
7554 than one window.
7555
b5de343d
GM
7556 * xfaces.c (lookup_named_face): If default face isn't realized,
7557 try to realize it. Return -1 if not successful.
7558 (Fx_list_fonts): Handle case that face cannot be determined.
7559 (Fface_font): Likewise.
7560
cdb1fe49
GM
75612000-11-06 Gerd Moellmann <gerd@gnu.org>
7562
7563 * window.c (displayed_window_lines): Detect partially
7564 visible lines at the bottom correctly.
7565
d3a67486
SM
75662000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7567
7568 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7569 when ensuring we don't do visit in indirect buffer.
7570
ff8dd5d5
KH
75712000-11-06 Kenichi Handa <handa@etl.go.jp>
7572
7573 * composite.h (compose_chars_in_text): Add prototype.
7574
7575 * composite.c (Vcomposition_function_table): New variable.
7576 (Qcomposition_function_table): New variable.
7577 (run_composition_function): Call
7578 Vcompose_chars_after_function with three arguments.
7579 (compose_chars_in_text): New function.
7580 (syms_of_composite): Modified the doc-string of
7581 Vcompose_chars_after_function. Declare composition-function-table
7582 as a lisp variable, and initialize it.
7583
7584 * xfns.c (x_encode_text): Suppress producing escape sequences for
7585 composition.
7586
7587 * xselect.c: Include composite.h.
7588 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7589
d1145f85
AI
75902000-11-05 Andrew Innes <andrewi@gnu.org>
7591
7592 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7593
7594 * sysdep.c (read_input_waiting): Remove extraneous argument to
7595 read_socket_hook.
7596
7597 * w32fns.c (Fx_server_version): Include w32_build_number in the
7598 return list.
7599
7600 * w32heap.c (w32_build_number): New variable.
7601 (cache_system_info): Set it.
7602
7603 * w32heap.h (w32_build_number): Add extern.
7604
7605 * emacs.c (syms_of_emacs): Update docstring for
7606 system-configuration, to reflect the actual usage on MS-Windows.
7607
e85ee976
GM
76082000-10-31 Gerd Moellmann <gerd@gnu.org>
7609
26dcb81b
GM
7610 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7611 process idle timers while waiting for another event.
7612
52283633 7613 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
7614 the default face are colored.
7615
e85ee976
GM
7616 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7617 window height hasn't changed.
7618
01b220b6
JR
76192000-10-31 Jason Rumney <jasonr@gnu.org>
7620
7621 * w32term.c (x_produce_glyphs): Handle composite characters.
7622 (x_draw_glyph_string_foreground)
7623 (x_draw_composite_glyph_string_foreground): Restore old font.
7624
4e6b7204
MB
76252000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7626
7627 * minibuf.c (read_minibuf): Reset the undo history just before
7628 starting the recursive-edit.
7629
d4358b37
GM
76302000-10-30 Gerd Moellmann <gerd@gnu.org>
7631
563f68f1
GM
7632 * xfaces.c (menu_face_change_count): New variable.
7633 (Finternal_set_lisp_face_attribute): Increment it for changes
7634 of the `menu' face.
7635 (realize_basic_faces): Reflect changes in the `menu' faces
7636 in menu bars.
7637
82e274d1
GM
7638 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7639 dy obtained from the iterator's y-position after moving from
7640 scroll_margin_pos to PT; see comment there.
52283633 7641
0dbf9fd2
GM
7642 * xdisp.c (safe_eval_handler): Call add_to_log.
7643
906b3b14
GM
7644 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7645 is not a symbol or string.
7646
d4358b37
GM
7647 * xdisp.c (echo_area_display): Don't perform a display update from
7648 inside redisplay. The update will happen anyway at the end of
7649 redisplay, and it can confuse redisplay (GC messages while
7650 redisplaying, for instance.)
7651
70c825df
SM
76522000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7653
cf9b4b0b
SM
7654 * xrdb.c (x_load_resources): Use the class name in the defaults.
7655
70c825df
SM
7656 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7657 (regex_compile): Catch bogus \(\1\).
7658
a1d34b1e
GM
76592000-10-30 Gerd Moellmann <gerd@gnu.org>
7660
cae71efe
GM
7661 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7662 RGB values.
52283633 7663
35efe0a1
GM
7664 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7665 we have a color cache, check that the cached color equals the
7666 allocated color. If not, clear the color cache.
7667
1d3baf74
GM
7668 * window.c (displayed_window_lines): Change buffers if necessary.
7669 Fix computation of displayed lines.
7670
a1d34b1e
GM
7671 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7672 update_menu_bindings to DEFVAR_BOOL.
7673
70737ea9
KH
76742000-10-30 Kenichi Handa <handa@etl.go.jp>
7675
70c825df 7676 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 7677
fa0cb51d
KH
7678 * puresize.h (BASE_PURESIZE): Increase to 680000.
7679
70737ea9
KH
7680 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7681
0e4c08e8
JR
76822000-10-29 Jason Rumney <jasonr@gnu.org>
7683
7684 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7685
7686 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7687 (w32_cache_char_metrics): Handle possibility that 'x' does not
7688 exist in a BDF font.
7689 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7690
7691 * w32bdf.h (bdffont): Add nchars.
7692
7693 * w32bdf.c (set_bdf_font_info): Set it.
7694 (w32_BDF_TextOut): Swap byte order of double byte characters.
7695 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7696
45b84006
EZ
76972000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7698
7699 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7700 don't override the colors in frame's param_alist, unless they are
7701 unspecified.
7702
7703 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7704 reverse the effect of the highlight flag.
7705
caf9deee
KR
77062000-10-27 Ken Raeburn <raeburn@gnu.org>
7707
7708 * window.h (Fwindow_live_p): Declare.
7709
ae0b9b46
KR
7710 * undo.c (record_delete): Check that last_undo_buffer is really a
7711 buffer before applying XBUFFER to it.
7712
7713 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7714 Faref.
7715
02067692
SM
77162000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7717
7718 * lisp.h (KEYMAPP): New macro.
7719 (get_keymap): Remove.
7720 (get_keymap_1): Rename get_keymap.
7721
7722 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7723
7724 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7725
7726 * xmenu.c (single_submenu): Use KEYMAPP.
7727 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7728 Use KEYMAPP rather than Fkeymapp.
7729
7730 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7731
7732 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7733 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7734 Use KEYMAPP rather than Fkeymapp.
7735 (single_submenu): Use KEYMAPP.
7736 (w32_menu_show, w32_dialog_show): Use TRUE.
7737
7738 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7739
7740 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7741 (Fkeymapp): Use KEYMAPP.
7742 (get_keymap): Rename from get_keymap_1. Remove old def.
7743 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7744 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7745 (Fminor_mode_key_binding): Don't raise an error if the binding
7746 is not a keymap.
7747 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7748 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7749
7750 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7751 Allow Vspecial_event_map to be autoloaded.
7752 (menu_bar_items): Fetch the keymap rather than using keymapp.
7753 (menu_bar_one_keymap): No need to follow func-indirect any more.
7754 (parse_menu_item): get_keymap_1 -> get_keymap.
7755 (tool_bar_items): Fetch the keymap rather than using keymapp.
7756 (read_key_sequence): Use KEYMAPP.
7757
7758 * intervals.c (get_local_map): Use get_keymap rather than following
7759 function-indirections explicitly.
7760
7761 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7762
f9d80af3
JR
77632000-10-27 Jason Rumney <jasonr@gnu.org>
7764
7765 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7766 point, as Windows has oversized fonts.
7767
7768 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7769
a3ba27da
GM
77702000-10-27 Gerd Moellmann <gerd@gnu.org>
7771
7772 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7773 (freehook, reallochook): Handle null pointer arguments.
7774 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7775
aa3b80cc
SM
77762000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7777
7778 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7779 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7780 Giving in to popular pressure to shut up the compiler with casts.
7781
e24e84cc
GM
77822000-10-27 Gerd Moellmann <gerd@gnu.org>
7783
7784 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7785 signed value, and use a default value computed from the font's
7786 maximum descent.
7787
05ea7ef2
MB
77882000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7789
7790 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7791 that specify a negative underline position can still use underlines.
7792
7793 * window.c (Fpos_visible_in_window_p): Make POS default to
7794 WINDOW's point, not the current buffer's point.
7795
0b95284b
DL
77962000-10-26 Dave Love <fx@gnu.org>
7797
7798 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7799 when it's necessary.
7800
6c5b90af
GM
78012000-10-26 Gerd Moellmann <gerd@gnu.org>
7802
8b6d9dc9
GM
7803 * window.c (size_window): Compute size difference from sum of old
7804 child window sizes instead of from parent's size.
7805
6bc92b2e
GM
7806 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7807 Handle obscured lines at the top of the window.
7808
7809 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7810 down after the last error condition check.
7811
6c5b90af
GM
7812 * frame.c (Fdelete_frame): Run delete-frame-hook.
7813
42f92d4d
KH
78142000-10-26 Kenichi Handa <handa@etl.go.jp>
7815
7816 * coding.c (decode_coding): Fix previous change (check also
7817 CODING_MODE_LAST_BLOCK).
7818
d97151cb
SM
78192000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7820
e7efc503
SM
7821 * regex.c: More `unsigned char' -> `re_char' changes.
7822 Also change several `int' into `re_wchar_t'.
7823 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7824 (PUSH_FAILURE_POINTER): Don't cast any more.
7825 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7826 We want GCC to complain, since this piece of code makes
7827 re_match non-reentrant, which *should* be fixed.
7828 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7829 (EXTEND_BUFFER): Use RETALLOC.
7830 (SET_LIST_BIT): Don't cast.
7831 (re_wchar_t): New type.
7832 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7833 that those two functions will always properly return.
7834 (IMMEDIATE_QUIT_CHECK): Cast to void.
7835 (analyse_first): Use recursion rather than an explicit stack.
7836 (re_compile_fastmap): Can't fail anymore.
7837 (re_search_2): Don't check re_compile_fastmap for failure.
7838 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7839 Now also sets the new value (passed in a new argument).
7840 (re_match_2_internal): Use it.
7841 Also, use a new var `reg' of type size_t when looping through regs
7842 rather than reuse the inappropriate `mcnt'.
7843
d97151cb
SM
7844 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
7845 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
7846 (where_is_internal): Renamed from Fwhere_is_internal.
7847 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
7848 (Fwhere_is_internal): New function wrapping where_is_internal.
7849 (where_is_internal_1): Handle the case where we're filling the cache.
7850 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
7851
d5789b65
MB
78522000-10-25 Miles Bader <miles@gnu.org>
7853
7854 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
7855
4ecda532
GM
78562000-10-25 Gerd Moellmann <gerd@gnu.org>
7857
7858 * window.c (pos_fully_visible_p): Removed.
7859 (Fpos_visible_in_window_p): Use pos_visible_p to determine
7860 if position is visible and/or fully visible.
7861
7862 * lisp.h (pos_visible_p): Add prototype.
7863
7864 * xdisp.c (pos_visible_p): New function.
7865
68c3a137
KH
78662000-10-25 Kenichi Handa <handa@etl.go.jp>
7867
7868 * process.c (send_process): If OBJECT is t, it means that the data
7869 is from C string, but we should encode it. Before calling
7870 setup_raw_text_coding_system, be sure to flush out data by the
7871 previous coding system.
7872
7ae1c032
MB
78732000-10-25 Miles Bader <miles@lsi.nec.co.jp>
7874
ff4dcd4b
MB
7875 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
7876 assignment of startpos to prev when startpos == pos.
7877
7ae1c032
MB
7878 * editfns.c (find_field): Set the field stickiness correctly from
7879 overlay fields. Use renamed `text_property_stickiness'.
7880 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 7881 Only check text properties, not overlays.
7ae1c032
MB
7882 * textprop.c (get_char_property_and_overlay): New function.
7883 (Fget_char_property): Use it.
7884 * intervals.h (get_char_property_and_overlay): Add declaration.
7885
49801145
SM
78862000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7887
7888 * keymap.c: Use AREF, ASET and ASIZE macros.
7889 (Fmake_sparse_keymap): Docstring fix.
7890 (synkey): Remove.
7891 (shadow_lookup): Move up.
7892 Handle the case where lookup-key returns an integer.
7893 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
7894 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
7895 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
7896 Simplify/rewrite the keymap-finding code.
7897 Add check for command shadowing, using shadow_lookup.
7898
39e776cd
SM
78992000-10-24 Stefan Monnier <monnier@cs.yale.edu>
7900
7901 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
7902 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
7903 a symbol.
7904
2488aba5
AI
79052000-10-24 Andrew Innes <andrewi@gnu.org>
7906
7907 * dired.c (directory_files_internal_unwind): New function.
7908 (directory_files_internal): Use it to ensure closedir is called
7909 even if expand-file-name or file-attributes throw, eg. because of
7910 a user interrupt. Also enable immediate_quit while calling
7911 re_search, so that matching can be interrupted as well.
7912
b94fdf61
AI
79132000-10-24 Andrew Innes <andrewi@gnu.org>
7914
7915 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
7916 NT-Emacs only.
7917 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
7918 so that re_search functions only quit when callers expect them to.
7919
79202000-10-24 Kenichi Handa <handa@etl.go.jp>
7921
7922 * regex.c (regex_compile): Change the way of handling a range from
7923 a char less than 256 to a char not less than 256.
7924
1946f901
GM
79252000-10-24 Gerd Moellmann <gerd@gnu.org>
7926
7ae2f10f
GM
7927 * window.c (size_window): Prevent setting window's width or
7928 height to a negative value (esp. with XSETFASTINT).
7929
5dcab13e
GM
7930 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
7931 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
7932 (protect_malloc_state) [GC_MALLOC_CHECK &&
7933 GC_PROTECT_MALLOC_STATE]: New function.
7934 (PROTECT_MALLOC_STATE): New macro.
7935 (__malloc_initialize, morecore, _malloc_internal)
7936 (_free_internal) _realloc_internal): Use it to make _heapinfo
7937 read-only outside of gmalloc.
7938
63e1b552
GM
7939 * keymap.c: Update copyright.
7940
1946f901
GM
7941 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
7942 a symbol.
7943
4fa09beb
GM
79442000-10-24 Colin Walters <walters@cis.ohio-state.edu>
7945
7946 * filelock.c (unlock_all_files): Use unlock_file to expand each
7947 buffer's file_truename before trying remove its lock file.
7948
23afac01
EZ
79492000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
7950
7951 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
7952 or CRLF, decode EOLs.
7953
04448b95
KH
79542000-10-24 Kenichi Handa <handa@etl.go.jp>
7955
7956 * window.c (Fdisplay_buffer): Fix doc.
7957
3090a5a5
JR
79582000-10-23 Jason Rumney <jasonr@gnu.org>
7959
7960 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
7961 ASCII font of default fontset on Windows.
7962
7963 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
7964 xterm.c comment below).
7965
7966 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
7967
a83fee2c
GM
79682000-10-23 Gerd Moellmann <gerd@gnu.org>
7969
7970 * xterm.c (x_connection_closed): Reset handling_signal.
7971
52283633 7972 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 7973
6ffdb539
MB
79742000-10-23 Miles Bader <miles@gnu.org>
7975
7976 * window.c (window_scroll_pixel_based, window_scroll_line_based):
7977 Pass nil for FULLY argument to Fpos_visible_in_window_p to
7978 maintain old behavior.
7979 * minibuf.c (Fminibuffer_complete): Likewise.
7980
7f1c969b
MB
79812000-10-23 Miles Bader <miles@lsi.nec.co.jp>
7982
7983 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
7984 that when a font can't be exactly centered, it errs up rather than
7985 down.
7986
23afac01 79872000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 7988
52283633 7989 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 7990
1a578e9b
AC
79912000-10-23 Andrew Choi <akochoi@i-cable.com>
7992
7993 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
7994
7995 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 7996 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
7997
7998 * emacs.c (main) [macintosh]: Call syms_of_textprop,
7999 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8000 syms_of_search, x_term_init, and init_keyboard before calling
8001 init_window_once. Also, call syms_of_xmenu.
8002
8003 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8004 default fontset to Monaco.
8005
8006 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8007 NewMacWindow and DisposeMacWindow.
8008 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8009 instead of calling NewMacWindow and setting fields of
8010 f->output_data.mac directly. Call init_frame_faces.
8011 (Fdelete_frame) [macintosh]: Remove unused code.
8012 (Fmodify_frame_parameters) [macintosh]: Call
8013 x_set_frame_parameters instead of mac_set_frame_parameters.
8014
8015 * frame.h [macintosh]: Define menu_bar_lines field in struct
8016 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8017
8018 * keyboard.c [macintosh]: Include macterm.h.
8019 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8020 and menu_bar_activate_event type events as for X and NT.
8021 (make_lispy_event) [macintosh]: Construct lisp events of type
8022 MENU_BAR_EVENT as for X and NT.
8023
8024 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8025 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8026 (sys_subshell) [macintosh]: Remove definition entirely.
8027 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8028 Vwindow_system_version here. Remove initialization of
8029 Vx_bitmap_file_path.
8030 (read_input_waiting): Correct the number of parameters passed to
8031 read_socket_hook.
8032 Move all Macintosh functions to mac/mac.c.
8033
8034 * term.c [macintosh]: Include macterm.h.
8035
8036 * window.c [macintosh]: Include macterm.h.
8037
8038 * xdisp.c [macintosh]: Include macterm.h. Declare
8039 set_frame_menubar and pending_menu_activation.
8040 (echo_area_display) [macintosh]: Do not return if terminal frame
8041 is the selected frame.
8042 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8043 Allow only the selected frame to set menu bar.
8044 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8045 calling FRAME_EXTERNAL_MENU_BAR (f).
8046 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8047
8048 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8049 and check_x. Declare XCreateGC. Define x_create_gc and
8050 x_free_gc. Initialize font_sort_order.
8051 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8052 but call x_list_fonts instead of w32_list_fonts.
8053 (Finternal_face_x_get_resource) [macintosh]: Do not call
8054 display_x_get_resource.
8055 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8056 (realize_x_face) [macintosh]: Load the font if it is specified in
8057 ATTRS.
52283633 8058 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 8059
1ffbabe3
SM
80602000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8061
8062 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8063 is nil: since we go to the end of submap anyway, we'd end up
8064 setting nil to nil.
8065 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8066 doesn't obey autoload.
8067
bed43f1d
EZ
80682000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8069
1ffbabe3 8070 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 8071
ea4233a7
JR
80722000-10-21 Jason Rumney <jasonr@gnu.org>
8073
8074 * w32term.c (w32_cache_char_metrics): Double check that font is
8075 really fixed pitch before trusting tmPitchAndFamily.
8076
f3d3c491
AI
80772000-10-21 Andrew Innes <andrewi@gnu.org>
8078
8079 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8080
8081 * w32term.h: Extern decl for w32_cache_char_metrics.
8082
8083 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8084
8085 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8086 (w32_unload_font): Free per_char array if present.
8087
8088 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8089 cached information in emulated XFontStruct to handle common cases
8090 quickly. Do not allocate XCharStruct for return.
8091 (w32_native_per_char_metric): New function.
8092 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8093 allocating one.
8094 (x_produce_glyphs): Don't get an HDC. Change calls to
8095 w32_per_char_metric to match arg change above. Remove calls to
8096 free results.
8097 (w32_get_glyph_overhangs): Ditto.
8098 (w32_cache_char_metrics): New function.
8099
8100 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8101 ($(BLD)/casefiddle.$(O)): Remove compile command.
8102 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
8103 ($(BLD)/dispnew.obj):
8104 ($(BLD)/keyboard.obj):
8105 ($(BLD)/w32inevt.obj):
8106 ($(BLD)/w32bdf.obj):
8107 ($(BLD)/alloc.obj):
8108 ($(BLD)/buffer.obj):
8109 ($(BLD)/editfns.obj):
8110 ($(BLD)/emacs.obj):
8111 ($(BLD)/fileio.obj):
8112 ($(BLD)/fns.obj):
8113 ($(BLD)/indent.obj):
8114 ($(BLD)/insdel.obj):
8115 ($(BLD)/intervals.obj):
8116 ($(BLD)/minibuf.obj):
8117 ($(BLD)/print.obj):
8118 ($(BLD)/scroll.obj):
8119 ($(BLD)/sysdep.obj):
8120 ($(BLD)/textprop.obj):
8121 ($(BLD)/widget.obj):
f3d3c491
AI
8122 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8123 ($(BLD)/term.obj): Add dependency on dispextern.h.
8124
52283633
SM
8125 * makefile.nt ($(BLD)\dispnew.obj):
8126 ($(BLD)\keyboard.obj):
8127 ($(BLD)\w32inevt.obj):
8128 ($(BLD)\w32bdf.obj):
8129 ($(BLD)\alloc.obj):
8130 ($(BLD)\buffer.obj):
8131 ($(BLD)\editfns.obj):
8132 ($(BLD)\emacs.obj):
8133 ($(BLD)\fileio.obj):
8134 ($(BLD)\fns.obj):
8135 ($(BLD)\indent.obj):
8136 ($(BLD)\insdel.obj):
8137 ($(BLD)\intervals.obj):
8138 ($(BLD)\minibuf.obj):
8139 ($(BLD)\print.obj):
8140 ($(BLD)\scroll.obj):
8141 ($(BLD)\sysdep.obj):
8142 ($(BLD)\textprop.obj):
8143 ($(BLD)\widget.obj):
f3d3c491
AI
8144 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8145 ($(BLD)\term.obj): Add dependency on dispextern.h
8146
18ad4821
EZ
81472000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8148
8149 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8150 with an additional argument of Qt.
8151
de54681a
MB
81522000-10-21 Miles Bader <miles@gnu.org>
8153
8154 * window.c (pos_fully_visible_in_window_p): New function.
8155 (Fpos_visible_in_window_p): Add FULLY argument.
8156 Use pos_fully_visible_in_window_p.
8157 (window_scroll_pixel_based, window_scroll_line_based): Update
8158 calls to Fpos_visible_in_window_p.
8159 * lisp.h (Fpos_visible_in_window_p): Update prototype
8160
13c844fb
GM
81612000-10-20 Gerd Moellmann <gerd@gnu.org>
8162
8163 * alloc.c (toplevel): Conditionalize compilation of mem_*
8164 functions differently.
52283633 8165
d9506268
JR
81662000-10-20 Jason Rumney <jasonr@gnu.org>
8167
8168 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8169 mem_init where it used to be. mem_z etc not defined otherwise.
8170
8094989b
GM
81712000-10-20 Gerd Moellmann <gerd@gnu.org>
8172
8173 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8174 GC_MALLOC_CHECK.
8175 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8176 structure definition and related variabled to the top of the file.
8177 Include this code when GC_MALLOC_CHECK is defined.
8178 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8179 register/unregister allocated region.
8180 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8181 which isn't allocated.
8182 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8183 something which is already in use.
8184 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8185 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8186 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8187 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8188
8189 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8190 _malloc_internal instead of malloc.
8191 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8192 of free.
8193
ea456eb4
AI
81942000-10-20 Andrew Innes <andrewi@gnu.org>
8195
8196 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8197 Windows.
8198 (my_strftime) <macro>: Don't use macro arg list when redefining as
8199 _strftime_copytm.
8200 (my_strftime) <function>: Supply 0 as ut argument.
8201
e64c3a75
JR
82022000-10-19 Jason Rumney <jasonr@altavista.net>
8203
8204 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8205 including dispextern.h, as it stops faces from working.
8206
8207 * w32fns.c (Fx_create_frame): Don't bother calling
8208 face-set-after-frame-default since the caller does it for us
8209 anyway. Clean up calls to x_get_arg to be consistent with X.
8210
8211 * w32term.c (x_produce_glyphs): Handle
8212 unibyte_display_via_language_environment correctly.
8213 (w32_draw_box_rect): Fix the calculation of width and height.
8214
8215 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8216 as it has stopped working.
8217 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8218 menu-bar.
8219
17401c97
GM
82202000-10-19 Gerd Moellmann <gerd@gnu.org>
8221
8222 * eval.c (skip_debugger): Prevent a compiler warning.
8223 (Fcondition_case): Likewise.
8224 (Fbacktrace_frame): Use a null interactive spec.
8225
773272d8
KH
82262000-10-19 Kenichi Handa <handa@etl.go.jp>
8227
8228 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8229
a42943e9
GM
82302000-10-18 Gerd Moellmann <gerd@gnu.org>
8231
e50517d9
GM
8232 * strftime.c: Sync with glibc, file version 1.78.
8233 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8234 should no longer be used according to ISO 8601.
8235
9035a35a
GM
8236 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8237 no map for meta_prefix_char, don't try to use it as a keymap.
8238 Instead, if T_OK is non-zero, look up a default binding, if any,
8239 otherwise, if T_OK is zero, return nil.
8240
a42943e9
GM
8241 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8242 (x_to_xcolors, png_load): Use x_query_color.
8243
52283633
SM
8244 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8245 New functions.
a42943e9
GM
8246 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8247 which can be slow.
8248 (x_copy_color, x_alloc_lighter_color): Likewise.
8249
8250 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8251 (x_query_color, x_query_colors): Add prototype.
8252
8253 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8254 check_string_bytes only if not noninteractive, increase count to 50.
8255
00de2987
MB
82562000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8257
8258 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8259 markers correctly.
8260
54918e2b
GM
82612000-10-17 Gerd Moellmann <gerd@gnu.org>
8262
1f0b3fd2
GM
8263 * alloc.c (pure_bytes_used): Renamed from pureptr.
8264 (ALIGN): New macro.
8265 (pure_alloc): New function.
8266 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8267 Use it.
8268 (Fpurecopy): Use PURE_POINTER_P.
8269
68c5d1db
GM
8270 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8271 PT has moved backward.
52283633 8272
9a038881
GM
8273 * xdisp.c (cursor_row_p): Take continued lines into account.
8274
361b097f
GM
8275 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8276 string's size_byte.
8277 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8278 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8279 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8280 string allocated.
8281
54918e2b
GM
8282 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8283 of selective display off while searching for the next line start.
8284
03ed0806
KH
82852000-10-17 Kenichi Handa <handa@etl.go.jp>
8286
8287 * Makefile.in (term.o): Depend on dispextern.h.
8288
7e05cdaf
SM
82892000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8290
8291 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8292
a6801fd1
GM
82932000-10-16 Gerd Moellmann <gerd@gnu.org>
8294
483de32b
GM
8295 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8296 the iterator at the beginning, so that they can be set later on,
8297 for instance in reseat_at_next_visible_line_start, without being
8298 overwritten.
8299
a6801fd1
GM
8300 * xfns.c (pbm_format): Add :foreground and :background keywords.
8301 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 8302 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 8303
dbf1fcc1
EZ
83042000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8305
8306 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8307
52283633 8308 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
8309
8310 * msdos.c (IT_set_face): Compare highlighted face with the default
8311 face, and invert colors if these faces' colors are identical.
8312 (Fmsdos_remember_default_colors): Don't swap foreground and
8313 background colors in initial_colors[].
8314 (IT_set_frame_parameters): Don't swap frame's foreground and
8315 background pixels. If ALIST includes "(reverse . t)", swap
8316 foreground-color and background-color properties in frame's
8317 param_alist. If the original frame's param_alist doesn't specify
8318 the colors, store unspecified-fg and unspecified-bg, reversed if
8319 required.
8320
8321 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8322 the colors are unspecified and reversed, reverse fore- and back-
8323 ground in the returned value.
8324 (Fframe_parameter): Ditto.
8325
b41fe2c3 83262000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 8327
3a6b59d9
GM
8328 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8329 get_last_unchanged_at_beg_row.
8330 (find_first_unchanged_at_end_row): Renamed from
8331 get_first_unchanged_at_end_row.
8332 (find_first_unchanged_at_end_row): Convert assertions to
8333 unconditional tests which abort. When looking for a row in
8334 unchanged text, don't go further back than first_text_row.
8335
b41fe2c3
GM
8336 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8337 Don't add in the last line's height when deciding if the new
8338 position is below the scroll margin.
9d1af64f 8339
b41fe2c3 83402000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
8341
8342 * editfns.c (Fconstrain_to_field): Check carefully for field
8343 boundaries if either OLD_POS or NEW_POS has a non-nil field
8344 property, even if they're the same.
8345
c412cb7b
KH
83462000-10-16 Kenichi Handa <handa@etl.go.jp>
8347
8348 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8349 height for XFillRectangle.
8350
5586f3eb
SM
83512000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8352
8353 * syntax.c (Fstring_to_syntax): New function extracted from
8354 Fmodify_syntax_entry.
8355 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8356 (skip_chars, Fforward_comment): Remove unused variables.
8357 (syms_of_syntax): Add defsubr for string-to-syntax.
8358 (describe_syntax): Add code for comment and string fences.
8359
db785038
SM
83602000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8361
8362 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8363 Do the meta->esc mapping. Call get_keyelt before returning.
8364 Start scanning from the second element (the first is always `keymap')
8365 to make it easier to detect when we reach a parent map.
8366 Handle the case of inheriting from a symbol whose function is a map.
8367 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8368 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8369 (get_keyelt, Flookup_key): Update call to access_keymap.
8370 Remove the meta->esc mappings.
8371 (define_as_prefix): Delete old disabled code.
8372 (menu_item_p): New function.
8373 (where_is_internal_1): Skip over the few remaining menu items.
8374 * lisp.h (access_keymap): Update prototype.
8375 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8376 Update call to access_keymap.
8377 (follow_key, read_key_sequence): Update calls to access_keymap.
8378 Remove the meta->esc mappings.
8379
cafafe0b
GM
83802000-10-13 Gerd Moellmann <gerd@gnu.org>
8381
a2e2a7f6
GM
8382 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8383 with additional argument.
8384
cafafe0b
GM
8385 * xdisp.c (cursor_row_p): New function.
8386 (try_cursor_movement, display_line): Use it.
52283633 8387
cafafe0b
GM
8388 * xdisp.c (append_space): Also save/restore iterator's current
8389 character and its length.
8390
8391 * xdisp.c (init_from_display_pos): Add an assertion.
8392 (handle_stop): Don't set iterator's add_overlay_start.
8393 (handle_invisible_prop): Likewise.
8394 (load_overlay_strings): If text under an overlay is invisible,
8395 take both before- and after-strings into account when the iterator
8396 is positioned either at the start or at the end of the overlay.
8397 (forward_to_next_line_start): Rewritten.
8398 (reseat_at_next_visible_line_start): Rewritten.
8399 (set_iterator_to_next): Add parameter RESEAT_P.
8400
8401 * dispextern.h (struct it): Remove member add_overlay_start.
8402 (set_iterator_to_next): Change prototype.
8403
c744452b
KH
84042000-10-13 Kenichi Handa <handa@etl.go.jp>
8405
8406 * coding.c (code_convert_region): Be sure to initialize
8407 coding->category_idx.
e4a3f4e1
KH
8408 (decode_coding_string): Set coding->src_multibyte and
8409 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
8410 (encode_coding_string): Set coding->src_multibyte and
8411 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 8412
321fd26f
SM
84132000-10-12 Stefan Monnier <monnier@cs.yale.edu>
8414
8415 * xfns.c (Fx_create_frame): Don't bother calling
8416 face-set-after-frame-default since the caller does it for us anyway.
8417
76832439
EZ
84182000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
8419
8420 * window.c (coordinates_in_window): Fix detection of vertical line
8421 on character terminals.
8422
2483cf58
GM
84232000-10-12 Gerd Moellmann <gerd@gnu.org>
8424
8425 * editfns.c (save_excursion_save): Additionally record the
8426 selected window.
8427 (save_excursion_restore): If buffer was visible in a window, and a
8428 different window was selected, and the old selected window is
8429 still live, restore point in that window.
8430
eb991b25
KH
84312000-10-12 Kenichi Handa <handa@etl.go.jp>
8432
8a0eba09
KH
8433 * xterm.c (x_produce_glyphs): Handle
8434 unibyte_display_via_language_environment correctly.
8435
20401fcc
KH
8436 * regex.c (regex_compile): Change the way of handling a range from
8437 unibyte char to multibyte char.
8438
8439 * syntax.c (skip_chars): Change the way of handling a range from
8440 unibyte char to multibyte char.
8441
eb991b25
KH
8442 * process.c (read_process_output): Cancel previous change.
8443
365dd325
EZ
84442000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
8445
c1b096cb
EZ
8446 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
8447
365dd325
EZ
8448 * charset.c (Ffind_charset_string): Doc fix.
8449 (Ffind_charset_region): Doc fix.
8450
eb483c2b
KH
84512000-10-11 Kenichi Handa <handa@mule.m17n.org>
8452
8453 * process.c (read_process_output): Fix previous change. Adjust
8454 multibyteness of text to insert in a buffer by
52283633 8455 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 8456
b40bfb99
AS
84572000-10-10 Andreas Schwab <schwab@suse.de>
8458
8459 * alloc.c (mark_object): Remove all workarounds installed on
8460 1993-08-08.
8461
caff31d4
KH
84622000-10-10 Kenichi Handa <handa@etl.go.jp>
8463
52283633 8464 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
8465 (base64_encode_1): Make it work for a text of multibyte form.
8466 (Fbase64_decode_region): Allocate sufficient memory for multibyte
8467 case. Don't call str_to_multibyte because base64_decode_1
8468 produces correct multibyte form for eight-bit codes.
52283633 8469 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
8470 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
8471 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
8472 codes.
8473
8474 * charset.h (CHAR_STRING): Optimized for single byte characters.
8475
cba026ef
AS
84762000-10-09 Andreas Schwab <schwab@suse.de>
8477
8478 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
8479 -1 after socket is closed, to fall through to error processing.
8480
1e21fe48
EZ
84812000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8482
8483 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 8484 variables. If ALIST includes foreground-color or
1e21fe48
EZ
8485 background-color, change also the colors of the default face for
8486 this frame.
8487
a640322e
EZ
84882000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8489
8490 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8491 them extern (they are defined on xfaces.c).
8492 (syms_of_msdos): Don't intern and don't staticpro
8493 Qbackground_color and Qforeground_color.
8494
a115794c
EZ
84952000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8496
8497 * frame.c (Fframe_parameter): For non-windowed frames, if
8498 f->param_alist says foreground or background color is unspecified,
8499 call tty_color_name to return the color name computed from the
8500 frame's current colors.
8501
f5533b63
DL
85022000-10-06 Dave Love <fx@gnu.org>
8503
8504 * terminfo.c (ospeed): Don't declare.
8505
8506 * sysdep.c: Don't include string.h.
8507 (h_errno): Declare conditional also on TRY_AGAIN.
8508
8509 * charset.c (Ffind_charset_string): Doc fix.
8510
52283633 8511 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
8512 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8513 error messages.
8514
2b06561a
DL
85152000-10-05 Dave Love <fx@gnu.org>
8516
8517 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8518 position like menu-bar.
8519
ca839c85
GM
85202000-10-05 Gerd Moellmann <gerd@gnu.org>
8521
8522 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8523
8524 * xdisp.c (handle_single_display_prop): Use safe_call1.
8525 (safe_call): Renamed from call_function.
8526 (safe_call1): New function.
8527 (handle_fontified_prop): Use safe_call1 instead of call1.
8528 (safe_eval): Renamed from eval_form.
8529 (safe_eval_handler): Renamed from eval_handler.
8530 (handle_single_display_prop, display_mode_element): Use safe_eval
8531 instead of eval_form.
8532
8533 * xfaces.c (merge_face_heights): Use safe_call instead of
8534 call_function.
8535
8536 * keyboard.c (show_help_echo): Use safe_call instead of
8537 call_function; use safe_eval instead of eval_form.
8538
8539 * lisp.h (safe_call): Renamed from call_function.
8540 (safe_eval): Renamed from eval_form.
8541 (safe_call1): Add prototype.
8542
a3489ece
MB
85432000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8544
8545 * xfns.c (image_ascent): Rearrange ascent calculation for the
8546 has-a-font case.
8547
35810b6f
SM
85482000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8549
8550 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8551 (where_is_internal_1): Don't bother ignoring menu-items any more.
8552
3dc78168
GM
85532000-10-04 Gerd Moellmann <gerd@gnu.org>
8554
8555 * keyboard.c (update_menu_bindings): New variable.
8556 (parse_menu_item): Use AREF. If update_menu_bindings
8557 is 0, don't update menu bindings.
8558 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8559
1efc2bb9
EZ
85602000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8561
8562 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8563 to `mark_object'.
8564
3f679f55
SM
85652000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8566
8567 * syntax.c (forw_comment): Match nestedness of ender/starter.
8568 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8569 (prev_char_comstart_first): Remove.
8570 (back_comment): Check two-char comment markers more carefully
8571 to better handle overlapping cases like *//* or /* */* */ ...
8572 Match nestedness of ender/starter.
8573
2021ab61
DL
85742000-10-02 Dave Love <fx@gnu.org>
8575
8576 * config.in (HAVE_GAI_STRERROR): Add undef.
8577
8578 * process.c (Fopen_network_stream): Use it.
8579
8580 * m/alpha.h (NO_REMAP): Don't define.
8581
64e6cc18
GM
85822000-10-02 Gerd Moellmann <gerd@gnu.org>
8583
8584 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8585 return with a string converted to an integer or vice versa when
8586 Vmocklisp_arguments is t.
8587 (Fsignal): Likewise. The function can return for `quit'.
8588 (struct gcpro): Declare member `var' to point to a volatile
8589 Lisp_Object.
8590
8591 * eval.c (error): Prevent compiler warning.
8592
b1904cd9
SM
85932000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8594
8595 * keymap.c (keymap_memberp): New function.
8596 (Fset_keymap_parent): Use it.
8597 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8598 Use keymap_memberp to avoid creating cycles.
8599 (access_keymap): Use KEYMAPP.
8600
71c9ec51
GM
86012000-09-30 Gerd Moellmann <gerd@gnu.org>
8602
8603 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
8604 gai_strerror. Make sure xerrno is set if connect fails. Improve
8605 error recovery.
71c9ec51 8606
c70c6b58
JR
86072000-09-29 Jason Rumney <jasonr@gnu.org>
8608
8609 * w32term.c (w32_char_font_type, w32_encode_char)
8610 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8611 (w32_bdf_per_char_metric): New function.
8612 (w32_per_char_metric): Use it.
8613 (x_draw_glyph_string_background): Always draw background for BDF
8614 glyphs.
8615
8616 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8617 GDI object which is a scarce resource.
8618
8619 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8620 (get_quoted_string): Fix limit on memchr search.
8621 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8622 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8623 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8624 (get_cached_font_char, cache_char_offset): Use macro
8625 BDF_CODEPOINT_RANGE_COVER_P.
8626 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8627 (clear_cached_bitmap_slots): New function.
8628 (GET_HEX_VALUE): G-Z, g-z are not hex.
8629 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8630 (get_bitmap_with_cache): Use new cache implementation.
8631 (create_offscreen_bitmap): New function.
8632 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8633
8634 * w32term.c (x_produce_glyphs): If the distance from the current
8635 position to the next tab stop is less than a canonical character
8636 width, use the tab stop after that.
8637 (x_draw_glyphs): Handle case START and END are out of bounds more
8638 carefully.
8639 (x_clear_mouse_face): Block/unblock input.
8640 (x_display_and_set_cursor): Don't show a hollow box cursor for
8641 buffers whose cursor_type is nil.
8642
fe01239f
GM
86432000-09-29 Gerd Moellmann <gerd@gnu.org>
8644
52283633 8645 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
8646
8647 * dispextern.h (updating_frame): Declare extern.
8648
e7c52f1f
AS
86492000-09-29 Andreas Schwab <schwab@suse.de>
8650
8651 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8652
de6e1f7c
GM
86532000-09-29 Gerd Moellmann <gerd@gnu.org>
8654
25126faa
GM
8655 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8656 use its function definition.
8657 (tool_bar_items): Likewise.
8658
de6e1f7c 8659 * lisp.h (fatal): Declare NO_RETURN.
52283633 8660
454ee39b
KH
86612000-09-29 Kenichi Handa <handa@etl.go.jp>
8662
8663 * keymap.c: Remove the line "#undef NULL".
8664
96301c5f
GM
86652000-09-28 Gerd Moellmann <gerd@gnu.org>
8666
52283633 8667 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 8668
efffeeb4
DL
86692000-09-28 Dave Love <fx@gnu.org>
8670
ecb8b666
DL
8671 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8672
dc3cd20f
DL
8673 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8674
8675 * .gdbinit (xreload): Note its need on GNU/Linux.
8676
efffeeb4
DL
8677 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8678 r_alloc, r_alloc_free.
8679
8610d903
KH
86802000-09-28 Kenichi Handa <handa@etl.go.jp>
8681
8682 * syntax.c (skip_chars): Handle negation correctly.
8683
8901d1ac
GM
86842000-09-27 Gerd Moellmann <gerd@gnu.org>
8685
6f22f1ad
GM
8686 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8687 with non-zero FORCE_P argument.
8688
52283633 8689 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
8690 Add assertions.
8691
8692 * xdisp.c (window_box_height): Add an assertion.
8693
8694 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8695 tool-bar than is available.
8696 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8697
36f1966f
DL
86982000-09-27 Dave Love <fx@gnu.org>
8699
efffeeb4 8700 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 8701
31d929e5
GM
87022000-09-26 Gerd Moellmann <gerd@gnu.org>
8703
c98863bf
GM
8704 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8705 instead of BITS_PER_INT.
8706 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8707 EMACS_UINT, respectively.
8708 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8709
8710 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8711
8712 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8713
77072ab1
GM
8714 * window.c (freeze_window_starts): Construct last argument for
8715 foreach_window differently.
8716
8717 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8718
8719 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8720 EMACS_UINT instead of `int' and `unsigned int'.
8721 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8722
8723 * frame.h (struct frame): Make the `nothing' member of union
8724 output_data an EMACS_INT.
8725
52283633 8726 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
8727 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8728 size in the sdata structure.
8729 (SDATA_NBYTES, SDATA_DATA): New macros.
8730 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8731 differently for the different layout of the sdata structure.
8732 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8733 in sdata.
8734 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8735 Check that size recorded in the string size and size recorded in
8736 the sdata structure agree.
8737
3e60b029
DL
87382000-09-25 Dave Love <fx@gnu.org>
8739
8740 * buffer.c: Include stdio.h.
8741
8742 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 8743
3e60b029
DL
8744 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8745
8746 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 8747 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
8748 (__malloc_extra_blocks): Declare as __malloc_size_t.
8749
8ff16b4e
GM
87502000-09-25 Gerd Moellmann <gerd@gnu.org>
8751
755a2ccd
GM
8752 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8753
d8b4516f
GM
8754 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8755 (read_char): If help-echo is showing, preserve the echo area
8756 when redisplaying.
8757
8758 * xdisp.c (help_echo_showing_p): New variable.
8759 (set_message): Reset it to 0.
8760 (init_xdisp): Initialize help_echo_showing_p.
8761
8762 * dispextern.h (help_echo_showing_p): Declare extern.
8763
8764 * config.in: Fix typo in __GNUC_MINOR__.
8765
8766 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8767
b11af2dd
GM
8768 * s/freebsd.h (POSIX_SIGNALS): Define.
8769
8ff16b4e
GM
8770 * xterm.c (x_clear_mouse_face): Block/unblock input.
8771
844eb643
DL
87722000-09-24 Dave Love <fx@gnu.org>
8773
8774 * fns.c (base64_encode_1): Fix last change.
8775
b30ab1b3
GM
87762000-09-22 Gerd Moellmann <gerd@gnu.org>
8777
8778 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8779
8780 * xdisp.c (try_window_reusing_current_matrix): More fixes
8781 for the case window has a header-line.
8782
c6cbe5f0
DL
87832000-09-22 Dave Love <fx@gnu.org>
8784
4c7c1f3f
DL
8785 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8786 a doc string.
8787
8788 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8789
c6cbe5f0
DL
8790 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8791
550a625e
GM
87922000-09-21 Gerd Moellmann <gerd@gnu.org>
8793
4c7c1f3f 8794 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
8795 for GCC >= 2.5.
8796
52283633
SM
8797 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8798 Declare NO_RETURN.
fca99116 8799
80d26f99
GM
8800 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8801 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8802 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8803 warnings.
52283633 8804
80d26f99
GM
8805 * marker.c (byte_char_debug_check): Return void.
8806
623a0aae
GM
8807 * xfns.c (Fx_create_frame): Set default frame parameter value
8808 for tool-bar-lines to 1.
8809
8810 * dispnew.c (scrolling_window): Compare y-positions of rows
8811 equal at the start. Some simplification.
8812
8813 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8814 reused rows' y-position in the case window has a header-line, and
8815 new window start is greater than old window start.
8816
42ac0ae5
GM
8817 * process.c (process_sent_to): New variable.
8818 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8819 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8820 Declare more parameters volatile.
8821
550a625e
GM
8822 * lread.c (Vrecursive_load_depth_limit): New variable.
8823 (Fload): Check recursive loads whose recursion depth exceeds
8824 Vrecursive_load_depth_limit.
8825 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8826
8320414c
GM
88272000-09-20 Gerd Moellmann <gerd@gnu.org>
8828
f46c275e
GM
8829 * fileio.c (Fread_file_name): Doc fix.
8830
8831 * editfns.c (Fmessage_or_box): Doc fix.
8832
8833 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8834
b7e11c5b 8835 * xfns.c (xbm_scan): Allow C-style comments.
52283633 8836
8320414c
GM
8837 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8838 symbols are specified, add color translations to the cache.
52283633 8839 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
8840 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8841 xpm_cache_color.
8842 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8843 structures to xpm_init_color_cache.
8844
da1608d9
GM
88452000-09-19 Gerd Moellmann <gerd@gnu.org>
8846
52283633 8847 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 8848
6badfa25
AI
88492000-09-19 Andrew Innes <andrewi@gnu.org>
8850
8851 * makefile.nt (bootstrap-emacs): Don't change directory.
8852
3a5f42bb
KH
88532000-09-19 Kenichi Handa <handa@etl.go.jp>
8854
1b7649bd
KH
8855 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
8856
3a5f42bb
KH
8857 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
8858 If output buffer is too small, signal an appropriated error.
8859
9f83cf0b
DL
88602000-09-18 Dave Love <fx@gnu.org>
8861
52283633 8862 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
8863 (current_active_maps): Remove redundant get_local_map call.
8864
28c7826c
GM
88652000-09-18 Gerd Moellmann <gerd@gnu.org>
8866
5cefa566
GM
8867 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
8868 cursor for buffers whose cursor_type is nil.
52283633 8869
6fed3546
GM
8870 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
8871 a feature to implement that is already implemented.
8872 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
8873 warnings.
8874
8875 * xfns.c (x_clear_image_1): New function.
8876 (x_clear_image): Use it.
52283633 8877 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 8878
05b1f851
GM
8879 * dispnew.c (update_window): Move test for invisible lines
8880 at the top to update_window_line.
8881 (update_window_line): Handle invisible lines here.
8882
f4779de9
GM
8883 * xfns.c (clear_image_cache): Clear current matrices of all
8884 frames sharing an image cache. Block input while freeing
8885 images. Fix timestamp comparison.
8886 (x_clear_image): Also free the mask.
8887
28c7826c
GM
8888 * xfns.c (lookup_image): Block input while loading the image so
8889 that we won't get interrupted in a state where the image isn't yet
8890 set up completely.
8891 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
8892 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
8893 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 8894 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 8895
b7412313
GM
88962000-09-16 Gerd Moellmann <gerd@gnu.org>
8897
8898 * dispnew.c (update_window): Make sure to make desired rows
8899 current even if they are completely invisible at the top
8900 of a window.
8901
47e351a3
GM
89022000-09-15 Gerd Moellmann <gerd@gnu.org>
8903
7f8f1edc
GM
8904 * xfns.c (lookup_image): Build mask before applying an algorithm.
8905 Recognize algorithm `disabled'.
8906 (cross_disabled_images): New variable.
8907 (COLOR_INTENSITY): New macro.
8908 (x_detect_edges): Use COLOR_INTENSITY.
8909 (x_disable_image): New function.
8910 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
8911
8912 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
8913 disabled state, don't apply an image transformation algorithm if
8914 the user specified an image for the disabled state. Use
28c7826c 8915 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
8916 user hasn't specified an image.
8917
ebb8f116
GM
8918 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
8919 allocation functions with the XPM lib.
8920 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
8921 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
8922 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
8923 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 8924 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
8925 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
8926 functions, if possible, because these handle color allocation
8927 failure more gracefully.
8928 (Fimage_mask_p): New function.
8929
47e351a3
GM
8930 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
8931 (Qedge_detection, Qheuristic): New symbols.
8932 (syms_of_xfns): Initialize new symbols.
8933 (lookup_image): Handle `:mask X', `:algorithm emboss', and
8934 `algorithm (edge-detection ...)'.
8935 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
8936 (tiff_format, gif_format, gs_format): Add `:mask'.
8937 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
8938 (GIF_MASK, GS_MASK): New enumerators.
8939 (x_laplace_read_row, x_laplace_write_row): Functions removed.
8940 (emboss_matrix, laplace_matrix): New variables.
8941 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
8942 (x_edge_detection): New functions.
8943 (x_laplace): Rewritten in terms of x_detect_edges.
8944 (x_build_heuristic_mask): If image has a mask, free it.
8945
fe83b953
AI
89462000-09-14 Andrew Innes <andrewi@gnu.org>
8947
8948 * makefile.w32-in: Revert to Unix line endings.
8949
3021e816
AI
89502000-09-14 Andrew Innes <andrewi@gnu.org>
8951
8952 * makefile.w32-in: Standardize indentation somewhat.
8953 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
8954 cater for differences between shells.
8955
8956 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
8957
2a32b5ea
GM
89582000-09-14 Gerd Moellmann <gerd@gnu.org>
8959
8960 * xterm.c (x_produce_glyphs): If the distance from the current
8961 position to the next tab stop is less than a canonical character
8962 width, use the tab stop after that.
8963
b4331e96
DL
89642000-09-14 Dave Love <fx@gnu.org>
8965
8966 * buffer.c (alloc_buffer_text): Fix xmalloc call.
8967
ef9e4345
GM
89682000-09-14 Gerd Moellmann <gerd@gnu.org>
8969
085536c2
GM
8970 * xdisp.c (handle_fontified_prop): While running fontification
8971 functions, bind `fontification-functions' and
8972 `after-change-functions' to nil.
8973
ef9e4345
GM
8974 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
8975 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
8976
8977 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
8978
8979 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
8980 USE_MMAP_FOR_BUFFERS.
8981
8982 * insdel.c (make_gap): Use enlarge_buffer_text.
8983
8984 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
8985 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
8986 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
8987 from former r_alloc_* functions in ralloc.c.
52283633 8988 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
8989 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
8990 (mmap_init) [REL_ALLOC_MMAP]: New function.
8991 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
8992 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
8993 BUFFER_FREE.
8994
8995 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
8996 (enlarge_buffer_text): Add prototype.
8997
8998 * ralloc.c: Remove everything having to do with the use of mmap.
8999
f8608968
GM
90002000-09-13 Gerd Moellmann <gerd@gnu.org>
9001
2a494b2d
GM
9002 * sound.c (Fplay_sound): Doc fix.
9003
8c907a56
GM
9004 * keyboard.c: Avoid some more compiler warnings.
9005 (parse_tool_bar_item): Ignore cached key bindings.
9006
f8608968
GM
9007 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9008 and allocation of Lisp data.
9009
6ab70e9a
GM
90102000-09-12 Gerd Moellmann <gerd@gnu.org>
9011
d12d0a9b
GM
9012 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9013 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9014 defaults first.
9015
6ab70e9a
GM
9016 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9017
63c36c3c
KH
90182000-09-12 Miyashita Hisashi <himi@meadowy.org>
9019
9020 * ccl.c: Comment fixed.
9021 (MAX_MAP_SET_LEVEL): Increased to 30.
9022 (PUSH_MAPPING_STACK): Enclose with do-while block.
9023 (POP_MAPPING_STACK): Likewise.
9024 (stack_idx_of_map_multiple): New variable.
9025 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9026 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 9027 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
9028 (ccl_driver) <CCL_MapSingle>: Likewise.
9029 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9030 with the case where looking up process reaches to the end of
9031 map-set, and call CCL programs as the above change.
9032
7ee3bd7b
GM
90332000-09-11 Gerd Moellmann <gerd@gnu.org>
9034
8ec8a5ec
GM
9035 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9036 that might be clobbered by longjmp.
9037 (check_x_display_info, x_decode_color, create_frame_xic)
9038 (Fx_display_backing_store, Fx_display_visual_class)
52283633 9039 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 9040
f74b0705
GM
9041 * lread.c (init_lread): Set Vloads_in_progress to nil.
9042 (Fload): Show list of recursively loaded files, when signaling an
9043 error.
9044
7ee3bd7b
GM
9045 * lread.c (Vloads_in_progress): New variable.
9046 (record_load_unwind): New function.
9047 (Fload): Check for recursive loads.
9048 (syms_of_lread): Initialize Vloads_in_progress.
9049 (read_integer, read1): Avoid some compiler warnings.
9050
9051 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9052 compiler warnings.
9053
974e1e5b
MB
90542000-09-11 Miles Bader <miles@gnu.org>
9055
9056 * editfns.c (Fbuffer_string): Doc fix.
9057
9824c4e3
GM
90582000-09-10 Gerd Moellmann <gerd@gnu.org>
9059
9060 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9061
6a72fdd1
KR
90622000-09-09 Ken Raeburn <raeburn@gnu.org>
9063
9064 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9065 whether to include other header files.
9066
28e6fb66
GM
90672000-09-09 Gerd Moellmann <gerd@gnu.org>
9068
52283633 9069 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 9070 by Fmemq as a boolean.
28e6fb66 9071
7f8b6551
SM
90722000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9073
9074 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9075
a8710abf
GM
90762000-09-08 Gerd Moellmann <gerd@gnu.org>
9077
d1a02881
GM
9078 * ralloc.c (mmap_fd): Remove initializer which can make it
9079 read-only in a dumped Emacs.
9080 (mmap_fd_1): New variable.
9081 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9082 restore it from there.
9083 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9084 unconditionally so that mmap_fd can be initialized there.
9085 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9086 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9087 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9088
c454aac1
GM
9089 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9090
9091 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 9092 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 9093
fc653ef2
GM
9094 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9095
3015eec0
GM
9096 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9097 inheritance.
9098
bfe0ee88
GM
9099 * xdisp.c (try_window_id): When trying to locate cursor in
9100 unchanged rows at the top, handle the case that we can't find it.
9101
a8710abf
GM
9102 * xterm.c (x_draw_glyphs): Handle case START and END are out
9103 of bounds more carefully.
9104
6b7d4ae4
DL
91052000-09-08 Dave Love <fx@gnu.org>
9106
423193c5
DL
9107 * s/sol2.h (REL_ALLOC_MMAP): Define.
9108 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9109
9110 * ralloc.c: Don't include string.h (redundant).
9111 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9112 [!MAP_ANON]: Include fcntl.h.
9113 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9114 (r_alloc, r_re_alloc, r_alloc_free)
9115 (mmap_enlarge, mmap_set_vars): Use it.
9116 (r_alloc_init_fd): New function.
9117 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9118 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9119 malloc type.
9120
9121 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9122 Remove vm-limit.o.
9123
6b7d4ae4
DL
9124 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9125 change to __NetBSD__.
9126
44d31981
KH
91272000-09-08 Kenichi Handa <handa@etl.go.jp>
9128
9129 * search.c (compile_pattern): Check the multibyteness of cached
9130 string and PATTERN.
9131
aad40737
MB
91322000-09-08 Miles Bader <miles@gnu.org>
9133
9134 * xfaces.c (default_face_vector): Function removed.
9135 (Finternal_merge_in_global_face): Restore old global/local
9136 attribute override order. Use inline loop instead of calling
9137 default_face_vector.
9138
91a211b5
GM
91392000-09-07 Gerd Moellmann <gerd@gnu.org>
9140
9141 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9142 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9143 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9144 where necessary, in case POINTER_TYPE is `void'.
9145
03419440
EZ
91462000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9147
9148 * frame.c (make_terminal_frame): Initialize frame foreground and
9149 background colors to unspecified, for the initial instance of an
9150 MSDOS frame.
9151
f46f845b
GM
91522000-09-07 Gerd Moellmann <gerd@gnu.org>
9153
24f76fbf
GM
9154 * ralloc.c (mmap_find): Fix overlap computation.
9155 (mmap_enlarge): Compute nbytes before trying to find an
9156 overlapping region.
9157
f46f845b
GM
9158 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9159 instead of `!='.
9160
9161 * lread.c (syms_of_lread): Change value of regexp
9162 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9163
9164 * xmenu.c (xdialog_show): When looking up the selection in
9165 menu_items, take `quote' boundaries into account; this corresponds
9166 to a nil ITEM in x-popup-dialog.
9167
3c014385
KH
91682000-09-07 Kenichi Handa <handa@etl.go.jp>
9169
fd6f711b
KH
9170 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9171 not 0x81.
9172 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9173
3c014385 9174 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
9175 encoding, not decoding. Fix the handling of latin-jisx0201.
9176 Check for the charset katakana-jisx0201 too.
3c014385 9177 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 9178 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 9179
0da3ecef
GM
91802000-09-07 Gerd Moellmann <gerd@gnu.org>
9181
ab0ee409
GM
9182 * xfaces.c (Vparam_value_alist): New variable.
9183 (syms_of_xfaces): Initialize it.
9184 (Finternal_set_lisp_face_attribute): Avoid more consing.
9185
9186 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9187 specially.
9188 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9189 (Qbackground_mode): New variable.
9190 (syms_of_frame_1): Initialize Qbackground_mode.
9191
9192 * lisp.h (Qdisplay): Declare extern.
1091dd67 9193
0da3ecef
GM
9194 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9195 change face on all frames, and change the default for new frames.
9196
b14654b9
DL
91972000-09-07 Dave Love <fx@gnu.org>
9198
9199 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9200
d24fd56f
KH
92012000-09-07 Kenichi Handa <handa@etl.go.jp>
9202
794f3670
KH
9203 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9204
0fddd0dc
KH
9205 * charset.c: Include composite.h
9206 (lisp_string_width): New function.
9207 (Fstring_width): Call lisp_string_width instead of strwidth.
9208
9209 * Makefile.in (charset.o): Depends on composite.h.
9210
d24fd56f
KH
9211 * process.c (read_process_output): Before inserting the decoded
9212 text in the buffer, adjust the multibyteness.
9213
fa0b693c
GM
92142000-09-06 Gerd Moellmann <gerd@gnu.org>
9215
52283633 9216 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
9217 buffer's text buffer is null, map new memory.
9218
0a58f946
GM
9219 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9220 POINTER_TYPE and size_t.
9221 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9222 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9223 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9224 [REL_ALLOC_MMAP]: New macros.
9225 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9226 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9227 [REL_ALLOC_MMAP]: New functions.
9228
9229 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9230 before and after unexec.
9231
9232 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9233 text buffers if necessary.
9234
9235 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9236 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9237 in prototypes.
9238
fa0b693c
GM
9239 * config.in (HAVE_MMAP): Add #undef.
9240
877055f6
GM
92412000-09-05 Gerd Moellmann <gerd@gnu.org>
9242
08ba3862
GM
9243 * frame.c (Qdisplay_type): New variable.
9244 (syms_of_frame_1): Initialize it.
9245 (Fframe_parameter): New function that avoids consing.
9246 (syms_of_frame): Defsubr it.
9247
66ffe51c
GM
9248 * buffer.c (Fother_buffer): Consider buffers as invisible when
9249 they are displayed in a window on an invisible frame.
9250
877055f6
GM
9251 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9252 get-largest-window always return nil.
9253
bb970e67
GM
92542000-09-04 Gerd Moellmann <gerd@gnu.org>
9255
9256 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9257 variable; recognize Emacs 19 elc files.
9258
7a3d0e0e
MB
92592000-09-04 Miles Bader <miles@gnu.org>
9260
9261 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9262 before initially popping up the menu, so the menu doesn't flash
52283633 9263 when the face settings are significantly different from the defaults.
7a3d0e0e 9264
14473664
SM
92652000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9266
9267 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9268 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9269 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9270 (BIT_UNIBYTE): Remove.
9271 (re_match_2_internal): Delete corresponding code and streamline the
9272 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9273 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9274 (re_wctype_t): New type.
9275 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9276 (regex_compile): Use them and fix handling of overly long char classes.
9277
c1174479
AI
92782000-09-03 Andrew Innes <andrewi@gnu.org>
9279
f8803e97
AI
9280 * makefile.w32-in: Change to DOS line endings.
9281
c1174479
AI
9282 * s/ms-w32.h (ORDINARY_LINK): New define.
9283
9284 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9285 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9286
9287 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9288 (distclean): Delete them here instead.
9289
44ef7cf6
AI
9290 * w32proc.c (compare_env): Convert to uppercase for comparison,
9291 not lowercase, to match how the native Windows shell works.
9292
49b3bd82
JR
92932000-09-03 Jason Rumney <jasonr@gnu.org>
9294
9295 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9296 CVS changes the line-ends when checking in/out on DOS/Windows.
9297
9298 * makefile.nt (emacs): Do not change directory to run temacs, as
9299 the load-path is set relative to current directory.
9300
a3d35a39
MB
93012000-09-03 Miles Bader <miles@gnu.org>
9302
9303 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9304
d276b0cf
GM
93052000-09-02 Gerd Moellmann <gerd@gnu.org>
9306
715e84c9
GM
9307 * xdisp.c (redisplay_mode_lines): New function.
9308 (display_mode_lines): Return number of mode lines displayed.
9309 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9310 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9311
8892f40b
GM
9312 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9313 string.h and strings.h.
9314 (index) [HAVE_INDEX]: Add prototype.
9315
d276b0cf
GM
9316 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9317 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9318
9319 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9320 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9321
38404229
GM
93222000-09-01 Gerd Moellmann <gerd@gnu.org>
9323
9324 * lread.c (read1): Accept `?' as symbol constituent, for
9325 compatiblity with XEmacs.
9326
c0f9ea08
SM
93272000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9328
9329 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9330 (struct re_pattern_buffer): Remove newline_anchor.
9331 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9332 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9333 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9334 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9335 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9336 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9337 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9338 Get rid of references to newline_anchor.
9339 (regcomp): Allocate and precompute a fastmap.
9340
8c0f83fe
GM
93412000-08-31 Gerd Moellmann <gerd@gnu.org>
9342
9343 * lread.c (openp): GCPRO local variable `filename'.
9344
4bb91c68
SM
93452000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9346
9347 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9348
9349 * regex.c: Merge some changes from GNU libc. Add prototypes.
9350 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9351 Use memcmp and memcpy instead of bcopy and bcmp.
9352 (init_syntax_once): Use ISALNUM.
9353 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9354 (REG_UNSET_VALUE): Remove. Use NULL instead.
9355 (REG_UNSET, re_match_2_internal): Use NULL.
9356 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9357 New macros.
9358 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9359 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9360 (regex_compile): In handle_interval, return an error rather than try to
9361 unfetch the interval if we can't find the closing brace.
9362 Obey the RE_NO_GNU_OPS syntax bit.
9363 (TOLOWER): New macro.
9364 (regcomp): Use it.
9365 (regexec): Allocate regs.start and regs.end as one block.
9366
5226a931
GM
93672000-08-30 Gerd Moellmann <gerd@gnu.org>
9368
868dd24b
GM
9369 * xdisp.c (echo_area_display): Check display_completed instead
9370 of calling detect_input_pending.
9371
9372 * dispnew.c (update_frame): Only set display_completed here; move
9373 the update_begin and update_end calls here from update_frame_1.
9374 (update_frame_1): Don't set display_completed here, don't call
9375 update_begin/update_end.
9376
5226a931
GM
9377 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9378 instead of store_frame_param.
9379
2a8bd25f
GM
93802000-08-29 Gerd Moellmann <gerd@gnu.org>
9381
9382 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9383 desired window matrix hasn't been displayed, use the current row
9384 instead. Make sure that only those frame rows are updated for
9385 which there exists a corresponding enabled desired row.
52283633 9386
ba3478d9
MB
93872000-08-29 Miles Bader <miles@gnu.org>
9388
9389 * xfaces.c (default_face_vector): New function.
9390 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9391
87d0f685
GM
93922000-08-29 Gerd Moellmann <gerd@gnu.org>
9393
9394 * lread.c (openp): Prevent temporary string passed to
9395 Ffile_readable_p from being garbage collected.
9396
6fa86045
DL
93972000-08-28 Dave Love <fx@gnu.org>
9398
9399 * keymap.c (store_in_keymap): Add `static' to declaration.
9400
bb17930d
GM
94012000-08-28 Gerd Moellmann <gerd@gnu.org>
9402
9403 * emacs.c, callint.c, doc.c, editfns.c
9404 (toplevel) [HAVE_STRING_H]: Include string.h.
9405 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
9406 (index): Remove prototypes which might conflict with non-standard
9407 definitions of index/strchr.
9408
9409 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
9410 (rindex): Define only if !HAVE_RINDEX.
9411
9412 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
9413
9414 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
9415
87188200
MB
94162000-08-28 Miles Bader <miles@gnu.org>
9417
9418 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
9419 made inconsistent by a font-related attribute in FROM.
9420 (merge_face_inheritance): Add function comment.
9421
41a68aef
KH
94222000-08-28 Kenichi Handa <handa@etl.go.jp>
9423
9424 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
9425 the 4th arg (PREV_EVENT) Qt to suppress input method.
9426
f7c436c1
SM
94272000-08-27 Stefan Monnier <monnier@cs.yale.edu>
9428
0b32bf0e
SM
9429 * regex.c: Indent cpp directives and remove parens after `defined'.
9430 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
9431 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
9432 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
9433 (re_compile_pattern): Use size_t for length.
9434 (init_syntax_once): Move to a better place.
9435 * regex.h: Merge changes from GNU libc. Indent cpp directives.
9436 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
9437
f7c436c1
SM
9438 * syntax.c (back_comment): Detect cases where a comment-starter is
9439 actually inside another comment as in: /* a // b */ c // d \n.
9440 Make it clear that `comstart_pos' is unused for nested comments.
9441
9442 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
9443 (KEYMAPP): New macro.
9444 (Fkeymap_parent, Fset_keymap_parent): Use it.
9445 (fix_submap_inheritance): Mark it static.
9446 (define_as_prefix, describe_buffer_bindings, describe_command)
9447 (describe_translation, describe_map): Complete prototypes.
9448
9449 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
9450
9451 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
9452 to better match the key-lookup behavior.
9453
6288c62f
GM
94542000-08-27 Gerd Moellmann <gerd@gnu.org>
9455
9456 * xfaces.c (lface_fully_specified_p): Handle :inherit.
9457 (Finternal_set_lisp_face_attribute): Fix typo in error message.
9458
e931344e
EZ
94592000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
9460
9461 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
9462 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
9463 (xterm.o): Depend on coding.h
9464
d10dfeef
KH
94652000-08-26 Kenichi Handa <handa@etl.go.jp>
9466
9467 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
9468 the corresponding '#endif'.
9469
2d73e8d3
MB
94702000-08-26 Miles Bader <miles@gnu.org>
9471
9472 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
9473 * xfaces.c (QCinherit): New variable.
9474 (syms_of_xfaces): Initialize it.
9475 (LFACE_INHERIT): New macro.
9476 (Finternal_get_lisp_face_attribute)
52283633 9477 (merge_face_vector_with_property)
2d73e8d3
MB
9478 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
9479 (check_lface_attrs): Allow new types of face height. Check
9480 inherit attribute.
9481 (CYCLE_CHECK): New macro.
9482 (merge_face_inheritance): New function.
9483 (merge_face_vectors): Merge inherited faces too. Add F and
9484 CYCLE_CHECK arguments.
9485 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9486 (lookup_named_face, lookup_derived_face, realize_named_face)
9487 (face_at_string_position, face_at_buffer_position): Supply
9488 new F and CYCLE_CHECK arguments to merge_face_vectors.
9489 (merge_face_heights): New function.
52283633 9490 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
9491 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9492 handle relative face heights.
9493 (lface_same_font_attributes_p): Compare heights using EQ.
9494
6ce974d4
KH
94952000-08-26 Kenichi Handa <handa@etl.go.jp>
9496
9497 * charset.c (char_to_string): Check the character validity.
52283633 9498 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 9499
dc1e502d
SM
95002000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9501
9502 * regex.c (PUSH_FAILURE_COUNT): New macro.
9503 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9504 Handle popping of a register's or a counter's data.
9505 (POP_FAILURE_POINT): Use the new name.
9506 (re_match_2_internal): Push counter data on the stack for succeed_n,
9507 jump_n and set_number_at and remove misleading dead code in succeed_n.
9508
bd9d0f3f
GM
95092000-08-25 Gerd Moellmann <gerd@gnu.org>
9510
9511 * xdisp.c (redisplay_internal): If considering all windows on all
9512 frames, update the display for each frame as soon as possible,
9513 instead of first building all desired matrices for all frames, and
9514 then updating them all.
9515 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9516
aa5b8e15
GM
95172000-08-24 Gerd Moellmann <gerd@gnu.org>
9518
17494071
GM
9519 * bytecode.c (mark_byte_stack): Add a comment.
9520
52283633
SM
9521 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9522 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
9523 a graphical frame.
9524
c543db81
KH
95252000-08-24 Kenichi Handa <handa@etl.go.jp>
9526
d246d5f5
KH
9527 * minibuf.c (do_completion): Always use compare-string, not
9528 string-equal because the latter doesn't pay attention to
9529 multibyteness of strings.
9530
c543db81
KH
9531 * process.c (create_process): Don't setup raw-text coding here.
9532 (Fopen_network_stream): Don't set coding->src_multibyte and
9533 coding->dst_multibyte here.
9534 (read_process_output): For process filter, return unibyte string
9535 if default-enable-multibyte-characters is nil.
9536 (send_process): If OBJECT is multibyte text, be sure to encoded it
9537 by the specified coding system for the process. Otherwise, setup
9538 raw-text coding.
52283633 9539 (init_process): Don't initialize default-process-coding-system here.
c543db81 9540
9b47cfe0
EZ
95412000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9542
9543 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9544 <scroll-down-aggressively>: Likewise.
9545
f5a36960
KH
95462000-08-23 Kenichi Handa <handa@etl.go.jp>
9547
9548 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9549 zero. Set coding->produced_char correctly.
9550
69a7ffa7
AI
95512000-08-22 Andrew Innes <andrewi@gnu.org>
9552
9553 * makefile.w32-in: New file.
9554
9555 * unexw32.c (unexec): Ignore old_name, and use the actual location
9556 of the current executable instead. Base new_name on this.
9557
9558 * w32proc.c (create_child): Remove reference to security
9559 descriptor, which isn't needed and doesn't compile with mingw32.
9560
9561 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9562 up dllimport attributes.
9563 (x_update_window_end): Update prototype.
9564
9565 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9566 extern, which screws up dllimport attributes.
9567
9568 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9569 up dllimport attributes.
9570
9571 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9572 screws up dllimport attributes.
9573
9574 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9575 up dllimport attributes.
9576 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9577 screws up dllimport attributes.
9578
9579 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9580 up dllimport attributes.
9581
9582 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9583 screws up dllimport attributes.
9584
9585 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9586 screws up dllimport attributes.
9587
9588 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9589 up dllimport attributes.
9590
9591 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9592 unnecessary extern, which screws up dllimport attributes.
9593 (main): Ditto.
9594
9595 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9596 up dllimport attributes.
9597
9598 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9599 unnecessary extern, which screws up dllimport attributes.
9600
9601 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9602 screws up dllimport attributes.
9603
9604 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9605 up dllimport attributes.
9606
9607 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9608
52283633
SM
9609 * w32bdf.c (search_file_line):
9610 (set_bdf_font_info):
9611 (seek_char):
9612 (w32_get_bdf_glyph):
69a7ffa7
AI
9613 (w32_BDF_to_x_font): Fix compile warnings.
9614
52283633 9615 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
9616
9617 * w32select.c: Include keyboard.h before frame.h.
9618
9619 * w32fns.c (max): Define macro.
9620 (JOHAB_CHARSET): Define if not known.
9621 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9622 (Fx_show_tip): Synch with X version.
9623
9624 * w32xfns.c: Include keyboard.h before frame.h.
9625
9626 * w32fns.c: Include keyboard.h before frame.h.
9627
9628 * w32term.c: Include keyboard.h before frame.h.
9629
9630 * fontset.c: Include keyboard.h before frame.h.
9631
9632 * w32inevt.c: Include keyboard.h before frame.h.
9633 (MOUSE_MOVED): Define if not known.
9634
9635 * minibuf.c: Include keyboard.h before frame.h.
9636
9637 * keyboard.c: Include keyboard.h before frame.h.
9638
9639 * indent.c: Include keyboard.h before frame.h.
9640
9641 * dispnew.c: Include keyboard.h before frame.h.
9642
9643 * buffer.c: Include keyboard.h before frame.h.
9644
9645 * alloc.c: Include keyboard.h before frame.h.
9646
9647 * print.c: Include keyboard.h before frame.h.
9648
9649 * process.c: Include keyboard.h before frame.h.
9650
9651 * scroll.c: Include keyboard.h before frame.h.
9652
9653 * sysdep.c: Include keyboard.h before frame.h.
9654
9655 * term.c: Include keyboard.h before frame.h.
9656
9657 * window.c: Include keyboard.h before frame.h.
9658
9659 * xdisp.c: Include keyboard.h before frame.h.
9660 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9661
9662 * frame.c: Include keyboard.h before frame.h.
9663
9664 * w32heap.h: Undefine min, max.
9665
9666 * w32gui.h: Undefine min, max.
9667
9668 * unexw32.c: Change PUCHAR to PCHAR.
9669 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
9670 (relocate_offset):
9671 (get_section_info):
69a7ffa7
AI
9672 (copy_executable_and_dump_data): Remove unnecessary static defs.
9673 (copy_executable_and_dump_data): Fix compile warnings.
9674
9675 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9676
9677 * w32console.c (min): Define macro.
9678 (clear_frame, write_glyphs): Fix compile warning.
9679
52283633 9680 * w32proc.c (compare_env):
69a7ffa7
AI
9681 (find_child_console): Fix compile warning.
9682
9683 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9684 sys_errlist instead of _sys_errlist.
9685 (get_emacs_configuration_options): New function.
9686
9687 * s/ms-w32.h (sys_nerr): Provide default definition.
9688 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9689 name with _ prepended.
9690 (NSIG): Define if not known.
9691 (get_emacs_configuration): Provide extern declaration.
9692 (get_emacs_configuration_options): Provide extern declaration.
9693 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9694
9695 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 9696 (map_w32_filename):
69a7ffa7
AI
9697 (read_unc_volume): Fix compile warning.
9698
9699 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9700 definitions from being used.
9701
9702 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9703
52283633 9704 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
9705 (open_unc_volume): Make arg const.
9706
9707 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9708 (read_input_waiting): Remove excess parameter.
9709
9710 * w32.c (init_environment): Call _access.
9711 (check_windows_init_file): Call _close.
9712 (init_user_info): Call _putenv.
9713 (init_environment): Call _putenv and _strdup.
9714 (init_ntproc): Reset volume info cache on startup.
9715
9716 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9717 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9718 cannot override the CRT malloc.
9719
9720 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9721 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9722
9723 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9724 unless we are linking with a static CRT.
9725 (RVA_TO_PTR): Cast result to unsigned char*.
9726
9727 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9728 (add_volume_info): Use xstrdup.
9729
25060080
SM
97302000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9731
9732 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9733 (do_completion, Fminibuffer_complete_word): Use it.
9734 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9735 var so it can take non-boolean values.
9736
6917e6bb
GM
97372000-08-21 Gerd Moellmann <gerd@gnu.org>
9738
acb7cc89 9739 * editfns.c (find_field): Formatting changes.
52283633 9740 (toplevel): Some old-style function forward declarations
acb7cc89
GM
9741 changed to prototypes, some new protypes added, some functions
9742 made static.
9743
9744 * lisp.h (set_time_zone_rule): Add prototype.
9745 (use_dialog_box): External declaration.
9746
0bbfdc25
GM
9747 * keyboard.c (gen_help_event): Add parameter SIZE.
9748 (kbd_buffer_events_waiting): Slightly rewritten.
9749 (clear_event): New function.
9750 (kbd_buffer_get_event): Use it, and clear the input_events of
9751 HELP_EVENTs.
9752 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9753 don't fill the newly created array with nils.
9754 (toplevel): Convert some old-style function forward declarations
9755 to prototypes.
9756
9757 * keyboard.h (gen_help_event): Change prototype.
9758
9759 * xterm.c (XTread_socket): Change calls to gen_help_event.
9760
9761 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9762
6917e6bb
GM
9763 * eval.c (Fmacroexpand): Doc fix.
9764
e5cd3d11
JR
97652000-08-20 Jason Rumney <jasonr@gnu.org>
9766
9767 * w32term.h (x_display_info_for_display): Remove as this function
9768 does not exist on W32.
9769
9770 * w32term.c (help_echo_window): New variable.
9771 (syms_of_w32term): staticpro it.
9772 (note_mode_line_highlight): Set it.
9773 (XTextExtents16): Removed as there is no equivalent on W32.
9774 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9775 the X way of doing this will not work for W32.
9776 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9777 (x_draw_image_foreground): Avoid drawing outside of the clip area
9778 when image doesn't have a mask.
9779 (note_mouse_highlight): Process overlays in the right order of
9780 priority. Set help_echo_window.
9781 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9782 because that's more visible for large images.
9783
9784 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9785 name to single_keymap_panes.
9786 (w32_menu_show): Set wv->title when dealing with titles.
9787 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9788
6e69ab8c
MB
97892000-08-21 Miles Bader <miles@gnu.org>
9790
9791 * minibuf.c (do_completion): Try again if we rewrite the input
9792 string, but no completion was done, so that any completion message
9793 will be correct.
9794
511bd4eb
GM
97952000-08-20 Gerd Moellmann <gerd@gnu.org>
9796
9797 * xfaces.c (lface_equal_p): Compare strings differently.
9798 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9799 (realize_tty_face): Use them.
9800 (syms_of_xfaces): Initialize new variables.
9801 (map_tty_color): New function, extracted from realize_tty_face.
9802 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9803 foreground or background color, store the new color name in the
9804 realized face; previous code trying to do this had no effect.
9805 (realize_tty_face): Use map_tty_color.
9806 (Fclear_face_cache): Set face_change_count and ensure thorough
9807 redisplay.
9808
1433385f
GM
98092000-08-19 Gerd Moellmann <gerd@gnu.org>
9810
511bd4eb
GM
9811 * undo.c (record_first_change, record_marker_adjustment): Don't
9812 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 9813
419ac0a2
KH
98142000-08-18 Kenichi Handa <handa@etl.go.jp>
9815
9816 * coding.c (decode_coding_string): Set members consumed,
9817 consumed_char, produced, produced_char of *coding correctly. If
9818 decode_coding doesn't consume any byte, don't try anymore.
9819 (encode_coding_string): Likewise.
9820
7eb9e30d
GM
98212000-08-18 Gerd Moellmann <gerd@gnu.org>
9822
511bd4eb
GM
9823 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9824 conditional have void type, for Standard C compilers.
7eb9e30d
GM
9825
9826 * xdisp.c (redisplay_internal): Compare windows for equality with
9827 EQ, instead of applying XWINDOW to something that might not
9828 be a window.
52283633 9829
dd34a735
KH
98302000-08-18 Kenichi Handa <handa@etl.go.jp>
9831
9832 * fontset.c (Finternal_char_font): Search only the selected frame
9833 for a window of the current buffer.
9834
385ff9e3
GM
98352000-08-18 Gerd Moellmann <gerd@gnu.org>
9836
511bd4eb 9837 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
9838 Lisp_Objects.
9839
385ff9e3
GM
9840 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9841 second half of a HELP_EVENT is found at the start of kbd_buffer.
9842
d6abb4c7
MB
98432000-08-18 Miles Bader <miles@gnu.org>
9844
4618074a
MB
9845 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
9846
d6abb4c7
MB
9847 * editfns.c (save_restriction_save): Rewrite to use markers.
9848 (save_restriction_restore): Rewrite to understand new form of data
9849 saved by save_restriction_save.
9850 (Fsave_restriction): Remove cautionary note in doc-string.
9851
a7b28523
GM
98522000-08-17 Gerd Moellmann <gerd@gnu.org>
9853
9854 * fileio.c (build_annotations): Add a comment explaining the
9855 return value of format-annotate-function. Replace a spurious call
9856 to Flength with a CONSP test. Call format-annotate-function with
9857 a fifth arg specifying how many times the function is been called
9858 in a row, to let it choose temporary buffers appropriately.
9859
03c9ed77
DL
98602000-08-17 Dave Love <fx@gnu.org>
9861
9862 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
9863 declare make_temp_name twice.
9864
52283633 9865 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
9866 (unreadpure): Give it an arg.
9867
9868 * unexalpha.c: Prototype fatal_unexec, mark_x,
9869 update_dynamic_symbols. Declare unexec as void.
9870
9871 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
9872 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
9873
9874 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 9875 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
9876
9877 * alloca.c: Use #error.
9878 [POINTER_TYPE]: Use it.
9879
9880 * eval.c (Fdefvar): Doc fix.
9881
9882 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
9883 INITIALIZE_INTERVAL.
9884
9885 * buffer.h: Avoid DECLARE_INTERVALS.
9886
9887 * config.in: Add size_t.
9888
aae41d97
EZ
98892000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
9890
9891 * w16select.c (set_clipboard_data): If there's not enough memory
9892 to put text into clipboard, return 1, as Fw16_set_clipboard_data
9893 expects. In case of other failures, return 3.
9894 (system_error_msg): New error message.
9895 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
9896 system_error_msg.
9897
65aa5e85
GM
98982000-08-16 Gerd Moellmann <gerd@gnu.org>
9899
9900 * term.c (write_glyphs): Also turn off inverse video after turning
9901 off other appearances in case TS_exit_attribute_mode is not equal
9902 to TS_end_standout_mode.
9903 (insert_glyphs): Turn inverse video on/off for each run of glyphs
9904 with the same face.
9905 (turn_off_face): Reset standout_mode only if
9906 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
9907 is equal to TS_end_standout_mode.
9908
ece23901
KH
99092000-08-16 Kenichi Handa <handa@etl.go.jp>
9910
9d7bcb2e
KH
9911 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
9912 sequence at the end of the source block.
9913
ece23901
KH
9914 * ccl.c (Fccl_program_p): Docstring modified.
9915 (Fccl_execute): Likewise.
9916 (Fccl_execute_on_string): Likewise.
9917
5e30eaa2
EZ
99182000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
9919
9920 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
9921
290602fd
KH
99222000-08-16 Kenichi Handa <handa@etl.go.jp>
9923
9924 The following changes are mainly to fix bugs of
9925 encode/decode-coding-string failing if encoding/decoding return
9926 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
9927 variable conversion_buffer.
9928
9929 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
9930 decrement dst_end to avoid buffer overflow in the later call of
9931 string_as_multibyte
9932
9933 * coding.h (conversion_buffer_size, conversion_buffer)
9934 (get_conversion_buffer): Extern deleted.
9935
9936 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
9937 (conversion_buffer, conversion_buffer_size): Variables deleted.
9938 (get_conversion_buffer): Function deleted.
9939 (struct conversion_buffer): New structure.
9940 (MAX_ALLOCA): New macro.
9941 (allocate_conversion_buffer): New macro.
9942 (extend_conversion_buffer, free_conversion_buffer): New functions.
9943 (ccl_coding_driver): Set coding->result.
9944 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
9945 this is the last block of source.
9946 (encode_coding): Likewise. Handle the source block as the last
9947 one only when the whole source text is consumed.
9948 (decode_coding_string): Handle the case that the output buffer is
9949 too small to decode the whole source text. Use
9950 allocate_conversion_buffer, extend_conversion_buffer and
9951 free_conversion_buffer, not get_conversion_buffer.
9952 (encode_coding_string): Likewise.
9953 (init_coding): Function deleted.
52283633 9954 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
9955
9956 * emacs.c (main): Don't call init_coding.
9957
52283633 9958 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
9959
9960 * term.c (write_glyphs): Use a locally declared conversion_buffer.
9961 (insert_glyphs): Likewise.
9962
9963 * w32console.c (write_glyphs): Use a locally declared
9964 conversion_buffer.
9965
b9f80d41
EZ
99662000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
9967
9968 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
9969 member of display_info is NULL.
9970
32dc52f7
GM
99712000-08-15 Gerd Moellmann <gerd@gnu.org>
9972
52283633 9973 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 9974
32dc52f7 9975 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 9976 appearances with capability `me'.
32dc52f7
GM
9977 (write_glyphs): Switch on inverse video before each face change.
9978
4eb22d33
DL
99792000-08-14 Dave Love <fx@gnu.org>
9980
9981 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
9982 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
9983 (lisp_free): Declare and make static.
9984
9985 * window.c: Fix embedded comment.
9986 (syms_of_window): Fix doc string.
9987
90cbf47e
GM
99882000-08-14 Gerd Moellmann <gerd@gnu.org>
9989
52283633 9990 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
9991 make sure to print `C-' before `M-', like in the manual.
9992
440fc135
GM
99932000-08-11 Gerd Moellmann <gerd@gnu.org>
9994
9995 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
9996 since they aren't relocated anymore.
52283633 9997 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
9998
9999 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 10000 partially visible line which is smaller than the window's height.
440fc135 10001
6e264fad
KH
100022000-08-11 Kenichi Handa <handa@etl.go.jp>
10003
10004 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 10005 the multibyte form of eight-bit-control characters.
6e264fad
KH
10006 (Fccl_execute_on_string): Initialize ccl->multibyte.
10007
10008 * ccl.h (struct ccl_program): New member multibyte.
10009
10010 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10011
c371f69a
KH
100122000-08-11 Kenichi Handa <handa@etl.go.jp>
10013
10014 * regex.c (regex_compile) <normal_char>: Pay attention to
10015 multibyteness.
10016 (analyse_first) <exactn>: Setup fastmap correctly for
10017 eight-bit-control characters.
10018
100192000-08-11 Kenichi Handa <handa@etl.go.jp>
10020
52283633 10021 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
10022
10023 * keyboard.c (make_lispy_event): Handle the new event type
10024 multibyte_char_keystroke.
10025
10026 * xterm.c: Include coding.h.
10027 (XTread_socket): Work around a bug of XmbLookupString. If the
10028 input is from XIM, decode it according to the current locale. In
10029 that case, generate multibyte_char_keystroke events.
10030
b8ddbe71
KH
100312000-08-11 Kenichi Handa <handa@etl.go.jp>
10032
10033 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10034 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10035
47589c8c
GM
100362000-08-10 Gerd Moellmann <gerd@gnu.org>
10037
10038 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10039 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10040 (move_it_in_display_line_to): Record iterator's ascent and descent
10041 before producing glyphs, and restore them when we know the glyph
10042 doesn't fit on the line.
10043 (move_it_to): Restructured so that it's easier to debug. If
10044 moving to a vpos, and not moving to an x or character position,
10045 stop as soon as the specified vpos is reached; don't move further
10046 into that line because that might change the computed line height.
10047 (try_cursor_movement): New function, extracted from the cursor
10048 movement branch of redisplay_window. If ending on a partially
10049 visible line, don't try to scroll if the cursor line is taller
10050 than the window.
10051 (redisplay_window): Use try_cursor_movement.
10052
10053 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10054 because that function doesn't cope with variable-height lines.
10055
10056 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10057 box cursor because that's better visible for large images.
52283633 10058
c51bacd6
MB
100592000-08-10 Miles Bader <miles@gnu.org>
10060
10061 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10062
bea56df7
GM
100632000-08-10 Gerd Moellmann <gerd@gnu.org>
10064
10065 * xdisp.c (Vmessages_buffer_name): New variable.
10066 (message_dolog): Use it.
10067 (syms_of_xdisp): Initialize it.
10068
99cd7364
EZ
100692000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10070
52283633 10071 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
10072 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10073 redundant now that keyboard.h is included.
10074
7d093d56
EZ
100752000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10076
10077 * keyboard.c (kbd_buffer_events_waiting): New function.
10078
10079 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10080
10081 * msdos.c: Include keyboard.h.
10082 (XMenuActivate): Empty no_event events from the event buffer. If
10083 no events are left after that, call clear_input_pending.
10084 (mouse_clear_clicks): New function, code moved from mouse_init.
10085 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10086 mouse driver to ``forget'' any past clicks.
10087
10088 * Makefile.in (msdos.o): Depend on keyboard.h.
10089
41e757a6
GM
100902000-08-09 Gerd Moellmann <gerd@gnu.org>
10091
8e7bd231
GM
10092 * lisp.h (input_pending): External declaration.
10093
10094 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 10095
8e7bd231
GM
10096 * xdisp.c (echo_area_display): Display thoroughly if input is
10097 pending. Bind redisplay-dont-pause to t during the redisplay.
10098 in case input is pending.
10099
10100 * dispnew.c (Qredisplay_dont_pause): New variable.
10101 (syms_of_display): Initialize and staticpro it.
10102 (update_frame_1): Don't interrupt the display for pending input if
10103 redisplay_dont_pause is set.
52283633 10104
43028b7e
GM
10105 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10106
41e757a6
GM
10107 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10108
2f2174fa
KH
101092000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10110
10111 * callproc.c (Fcall_process): Terminate the unwind-protect around
10112 the post-read-conversion of coding system.
10113
0a6fd67e
MB
10114 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10115 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10116 * buffer.h (overlays_at): Update prototype.
10117 * xdisp.c (next_overlay_change): Update call to overlays_at.
10118 * xfaces.c (face_at_buffer_position): Likewise.
10119 * textprop.c (Fget_char_property): Likewise.
10120 * xterm.c (note_mouse_highlight): Likewise.
10121
0c80756e
MB
10122 * minibuf.c (do_completion): Don't consider a simple change of
10123 case as `completion'.
10124
975f250a
KR
101252000-08-08 Ken Raeburn <raeburn@gnu.org>
10126
52283633 10127 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
10128 * undo.c (record_delete): Make sure last_point_position_buffer is
10129 a buffer before comparing pointers.
10130
10131 * coding.h (decode_coding_string): Declare.
10132
10133 * intervals.h (Fprevious_single_char_property_change): Declare.
10134
10135 * textprop.c (Fprevious_single_char_property_change): Don't do
10136 arithmetic directly on lisp objects.
10137
52283633 10138 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
10139
10140 * keyboard.h (menu_item_eval_property): Declare.
10141
10142 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10143 reuse as buffer name, instead of recreating (and discarding) every
10144 time a message is logged.
10145 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
10146 (current_message_1, truncate_message_1, set_message_1)
10147 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10148 (current_message, truncate_echo_area, display_echo_area)
10149 (resize_echo_area_axactly): Changed calls.
b347b3fd 10150
975f250a 10151 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 10152 Lisp object.
975f250a 10153 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 10154 must be an integer, not a Lisp object.
975f250a 10155
46dc9912
KH
101562000-08-08 Kenichi Handa <handa@etl.go.jp>
10157
10158 * charset.c (Fchar_width): Doc fix.
10159
9f6d1a6c
GM
101602000-08-08 Gerd Moellmann <gerd@gnu.org>
10161
10162 * charset.c (Fstring_width): Doc fix.
10163
ff3d9573
GM
101642000-08-07 Gerd Moellmann <gerd@gnu.org>
10165
41e757a6 10166 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
10167 line, clear ascent and descent members of the iterator structure;
10168 the height of the continued line does not affect the height of the
10169 continuation line.
10170 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10171 line taller than the window.
10172 (redisplay_window) <forced window start>: Handle case that the
10173 middle of the window is not found in any row.
10174 (dump_glyph_row): Show more information.
10175 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10176 first text line in a glyph matrix.
10177
10178 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10179 of the clip area when image doesn't have a mask.
10180
70fc58b3
GM
10181 * fns.c (sweep_weak_table): Fix survival conditions for
10182 key-or-value and key-and-value weakness.
10183
10184 * .gdbinit (xhashtable): New command.
10185
ac0e96ee
GM
10186 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10187 tables out of the list of all weak hash tables.
10188
ff3d9573
GM
10189 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10190 a new buffer is created, make sure echo_area_buffer[] references
10191 the new buffer.
10192
e0d8827b
EZ
101932000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10194
10195 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10196 the doc string.
10197
c6f35378
KH
101982000-08-07 Kenichi Handa <handa@etl.go.jp>
10199
10200 * syntax.c (skip_chars): Fix previous change. Make the handling
10201 of unibyte string consistent with that of regex search.
10202
1fd4c450
GM
102032000-08-05 Gerd Moellmann <gerd@gnu.org>
10204
e49aa397
GM
10205 * xmenu.c (popup_get_selection): Use xfree instead of free.
10206
10207 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10208
10209 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10210
10211 * callproc.c (child_setup): Use xfree instead of free.
10212
10213 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10214 instead of malloc.
10215 (run_mac_command, closedir): Use `xfree' instead of `free'.
10216
10217 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10218
10219 * eval.c (error): Use xfree instead of free.
10220
1fd4c450
GM
10221 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10222
10223 * fns.c: Replace `illegal' with `invalid'.
e49aa397 10224 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 10225
82d497fc
KH
102262000-08-05 Kenichi Handa <handa@etl.go.jp>
10227
10228 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10229 conversion.
10230
59f953a2
NF
102312000-08-04 Noah Friedman <friedman@splode.com>
10232
10233 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10234 docstring.
10235
688351f2
GM
102362000-08-04 Gerd Moellmann <gerd@gnu.org>
10237
10238 * syntax.c (skip_chars): Fix typo in error message.
10239
2dad51cc
AS
102402000-08-04 Andreas Schwab <schwab@suse.de>
10241
10242 * m/ia64.h: Moved from s/ia64.h.
10243
99bb2c60
KH
102442000-08-04 Kenichi Handa <handa@etl.go.jp>
10245
082a1df2
KH
10246 * process.c (read_process_output): Big simplification. Handle
10247 composition and post-read-conversion of coding system correctly.
10248 (send_process): Handle composition correctly.
10249
10250 * callproc.c (Fcall_process): Handle post-read-conversion of
10251 coding system if any.
10252
99bb2c60
KH
10253 * coding.c (decode_coding_iso2022): More strict check for handling
10254 single shifting.
082a1df2
KH
10255 (coding_restore_composition): Pay attention to the case that
10256 cmp_data is not set properly (because of invalid code in the
10257 source text).
10258 (run_pre_post_conversion_on_str): Include text properties in the
10259 resulting string.
10260 (decode_coding_string): Set members of coding correctly.
99bb2c60 10261
f4988be7
GM
102622000-08-03 Gerd Moellmann <gerd@gnu.org>
10263
10264 * s/ia64.h: New file.
10265
10266 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10267 Use NULL instead of 0 at the end of variable argument list of
10268 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10269 sizeof (int) < sizeof (void *).
10270
10271 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10272 of variable argument lists of XtVaGetValues and XtVaSetValues.
10273
10274 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10275 variable argument lists of XtVaGetValues and XtVaSetValues.
10276
ead53494
GM
102772000-08-02 Gerd Moellmann <gerd@gnu.org>
10278
10279 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10280 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10281
10282 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10283 prototype.
10284
10285 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10286 in call to Fsingle_key_description.
10287
10288 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10289 Callers changed.
10290
102912000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10292
10293 * window.c (display_buffer_reuse_frames): New variable.
10294 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10295 frames displaying BUFFER.
52283633 10296 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 10297
10b0f752
MB
102982000-08-01 Miles Bader <miles@gnu.org>
10299
10300 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10301 when to constrain NEW_POS (they were pretty screwed up before).
10302
16425c4a
EZ
103032000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10304
10305 * msdos.c (run_msdos_command): Save and restore the master
10306 environment, for the case that child_setup signals an error.
10307 When mirroring slashes in DOS shell commands, don't fail when
10308 argv[2] has embedded blanks.
da288c14
EZ
10309 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10310 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10311 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
10312
10313 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10314 using alloca; free it after run_msdos_command returns.
10315
27f73852
DL
103162000-07-27 Dave Love <fx@gnu.org>
10317
52283633
SM
10318 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10319 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
10320
10321 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10322
c0261b5e
EZ
103232000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10324
10325 * editfns.c (lisp_time_argument): Fix last change.
10326
b548072f
GM
103272000-07-27 Gerd Moellmann <gerd@gnu.org>
10328
3ab82477
GM
10329 * fns.c (Fdelete): Make it work on vectors and strings in addition
10330 to lists.
10331
b548072f
GM
10332 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10333 (syms_of_fns): Initialize new variables.
52283633 10334 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
10335 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10336 weakness, with t meaning the same as `key-and-value'.
10337
91ae8751
KH
103382000-07-27 Kenichi Handa <handa@etl.go.jp>
10339
10340 * coding.h (struct coding_system): Member safe_charset deleted.
10341
10342 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
10343 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10344 New variables.
91ae8751
KH
10345 (coding_safe_chars): New function.
10346 (CODING_SAFE_CHAR_P): New macro.
10347 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 10348 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
10349 (detect_coding_iso2022): New local variable safe_chars.
10350 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10351 safe_charsets member of the coding system.
10352 (decode_coding_iso2022): New local variable safe_chars.
10353 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10354 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10355 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10356 (ENCODE_UNSAFE_CHARACTER): New macro.
10357 (encode_coding_iso2022): New local variable safe_chars. Check
10358 unsafe chars.
10359 (setup_coding_system): Delete the code to initialize
10360 coding->safe_charses
10361 (intersection, find_safe_codings): New functions.
10362 (Ffind_coding_systems_region_internal): New function.
10363 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10364 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10365 variable and initialize it.
10366
10367 * fns.c (char_table_ref_and_index): New function.
10368
10369 * lisp.h (char_table_ref_and_index): Add prototype.
10370
34a7a267
SS
103712000-07-26 Sam Steingold <sds@gnu.org>
10372
10373 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 10374 (Ffloat_time): New built-in Lisp function.
34a7a267 10375
a95cb10a
GM
103762000-07-26 Gerd Moellmann <gerd@gnu.org>
10377
3353ef5a
GM
10378 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10379 for the character code.
10380
10381 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10382 GNU/Linux.
10383
a95cb10a
GM
10384 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10385 if called for a popup menu.
10386 (xmenu_show): Store help string in widget values.
10387
b4a12321
DL
103882000-07-26 Dave Love <fx@gnu.org>
10389
10390 * syswait.h: Move some definitions.
10391 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10392 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10393 perspicuous definitions.
10394 (WTERMSIG): Fix bit pattern used.
10395
13f5ad37
KH
103962000-07-26 Kenichi Handa <handa@etl.go.jp>
10397
10398 * print.c (print_object): If vector printing is truncated, print
10399 "..." to indicate it as well as the case of list printing.
10400
070fe99c
GM
104012000-07-25 Gerd Moellmann <gerd@gnu.org>
10402
969065c3
GM
10403 * xdisp.c (next_element_from_display_vector): Improve comments.
10404
10405 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
10406 for the character code, and the rest for the face id as in 20.x.
10407 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
10408
10409 * window.c (window_display_table): Cleaned up.
10410
070fe99c
GM
10411 * syntax.c (Fforward_word): Add last arg nil in call of
10412 Fconstrain_to_field.
10413
bad77ef7
EZ
104142000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
10415
969065c3 10416 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
10417 identical but for the letter-case, don't call
10418 barf_or_query_if_file_exists.
bad77ef7 10419
c28da489
MB
104202000-07-25 Miles Bader <miles@gnu.org>
10421
10422 * editfns.c (find_field): Honor special `boundary' fields.
10423 (Qboundary): New variables.
10424 (syms_of_editfns): Initialize Qboundary.
10425 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
10426 Use scan_buffer instead of find_before_next_newline, because it
10427 allows us to detect the boundary case where there's a newline at
10428 the search limit.
10429 * lisp.h (Fconstrain_to_field): Update external declaration.
10430
e3c31fd5
GM
104312000-07-24 Gerd Moellmann <gerd@gnu.org>
10432
10433 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
10434 if that is nil.
c28da489 10435
c66c29a2
DL
104362000-07-24 Dave Love <fx@gnu.org>
10437
10438 * s/sunos4-0.h, s/sol2.h:
10439 (LIBS_TERMCAP): Move from m/sparc.h.
10440
10441 * m/sparc.h (TERMINFO): Moved to system files (probably only
10442 relevant for sunos4 judging by its vintage).
10443 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
10444 __arch64__.
10445
fbe0a958
EZ
104462000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
10447
10448 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
10449 name to single_keymap_panes.
10450
7d88e5c9
AS
104512000-07-24 Andreas Schwab <schwab@suse.de>
10452
10453 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
10454
e024b101
GM
104552000-07-24 Gerd Moellmann <gerd@gnu.org>
10456
10457 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
10458 parameters instead of using int parameters. Expect FN to accept
10459 EMACS_INT parameters.
10460 (display_echo_area, resize_echo_area_axactly, current_message)
10461 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
10462 with new argument list.
10463 (resize_mini_window_1): New callback function.
10464 (current_message_1, truncate_message_1, set_message_1): Change
52283633 10465 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 10466
25c1a9ce
KH
104672000-07-24 Kenichi Handa <handa@etl.go.jp>
10468
10469 * fontset.c (fontset_ref): Remove INLINE declaration.
10470 (fontset_ref_via_base): Likewise.
10471 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
10472 to downcase.
10473
7f987ac0
EZ
104742000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
10475
10476 * msdos.c (IT_note_mouse_highlight): Process overlays in the
10477 correct order of priority. If help echo was found in an overlay,
10478 use that overlay as the object in which the help echo was found.
10479
e2db3069
MB
104802000-07-22 Miles Bader <miles@gnu.org>
10481
10482 * textprop.c (Fprevious_single_char_property_change): The initial
10483 property value should be from the position preceding POSITION, not
10484 following it.
10485
5e3203e4
EZ
104862000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10487
10488 * coding.c (syms_of_coding): Doc fix for
10489 inhibit-iso-escape-detection.
10490
62145073
GM
104912000-07-21 Gerd Moellmann <gerd@gnu.org>
10492
c20aeb83
GM
10493 * xterm.c (note_mouse_highlight): Process overlays in the right
10494 order of priority.
34a7a267 10495
743934db
GM
10496 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10497
10498 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 10499 overlay, use that overlay as the object in which the help was found.
743934db 10500
d1dc7e43 10501 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 10502
62145073
GM
10503 * window.c (foreach_window): Instead of a fake variable argument
10504 list, take one USER_DATA argument.
10505 (foreach_window_1): Likewise, and call callback functions with two
10506 args, the window and USER_DATA.
10507 (struct check_window_data): New struct.
10508 (check_window_containing): Use it.
10509 (window_from_coordinates): Set up a struct check_window_data for
10510 foreach_window.
10511 (add_window_to_list, freeze_window_start): Change parameters
10512 according to new calling convention.
10513
10514 * window.h (foreach_window): Change prototype.
10515
10516 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10517
105182000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10519
10520 * xmenu.c (menu_help_callback): Call show_help_echo with
10521 additional arguments OBJECT and POS.
10522
11270583
KH
105232000-07-21 Kenichi Handa <handa@etl.go.jp>
10524
07b14857
KH
10525 * data.c (Faset): Allow storing any multibyte character in a
10526 string. Convert unibyte string to multibyte if necessary.
10527
11270583
KH
10528 * xfns.c (x_encode_text): New function.
10529 (x_set_name): Use x_encode_text.
10530 (x_set_title): Likewise.
10531
10532 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10533
10534 * xterm.h (x_encode_text): Add prototype.
10535
bc75b4fd
DL
105362000-07-20 Dave Love <fx@gnu.org>
10537
10538 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10539 xfree, not free.
10540
48c14970
EZ
105412000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10542
10543 * msdos.c (help_echo_window): New variable.
10544 (syms_of_msdos): Initialize and staticpro it.
10545 (IT_note_mode_line_highlight): Set help_echo_window.
10546 (IT_note_mouse_highlight): Ditto.
10547 (dos_rawgetc): Store help_echo_window in the second event produced
10548 for HELP_EVENTs.
10549
10550 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10551 Record the object that generated the help echo and the position of
10552 that object in help_echo_object and help_echo_pos. Record that
10553 some glyphs in a row are displayed in mouse-face.
10554 (IT_update_begin): Don't clear mouse highlight unless one of the
10555 enabled glyph rows is marked as being displayed in mouse-face.
10556 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10557 and position recorded in help_echo_object and help_echo_pos to the
10558 event queue.
10559 (IT_menu_display): Accept a new argument PN: the pane number of
10560 the current menu pane. Record the pane number and the item
10561 number of the item which has associated help string.
10562 (XMenuActivate): Update the prototype for help_callback in
10563 function declaration. Call IT_menu_display with the current menu
10564 pane number as an additional argument. Call help_callback with
10565 two additional arguments: the pane number and the item number of
10566 the menu item associated with the help text.
10567 (help_echo_object, help_echo_pos): New variables.
10568 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10569
10570 * msdos.h (XMenuActivate): Update prototype.
10571
4279296d
GM
105722000-07-19 Gerd Moellmann <gerd@gnu.org>
10573
47db06aa
GM
10574 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10575 Add some more prototypes.
10576
10577 * xterm.c, xterm.h: Add some more prototypes.
10578
10579 * lisp.h (Fnext_single_char_property_change): Add prototype.
10580
10581 * dispnew.c (direct_output_for_insert): Remove confusing
10582 outer local variable mouse_face_overwritten_p.
10583 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10584
4279296d
GM
10585 * alloc.c (allocate_string_data): Don't copy old string contents.
10586
670acd62
KH
105872000-07-19 Kenichi Handa <handa@etl.go.jp>
10588
10589 * coding.c (code_convert_region): Delete text properties before
10590 shrinking the conversion region.
10591
7cea38bc
GM
105922000-07-18 Gerd Moellmann <gerd@gnu.org>
10593
dc1cac59
GM
10594 * dispnew.c (update_text_area): Write the whole row if it
10595 has mouse-face in it.
10596
85a8aca9
GM
10597 * xfaces.c (face-alternative-font-family-alist): Remove
10598 DEFVAR_LISP; staticpro instead.
10599
34a7a267 10600 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
10601 new arguments.
10602
10603 * keyboard.c (show_help_echo): Add parameter WINDOW.
10604 (read_char): Call show_help_echo with window extracted from Lisp
10605 help event.
10606 (gen_help_event): Add parameter WINDOW.
10607
10608 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10609
10610 * xterm.c (help_echo_window): New variable.
52283633 10611 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
10612 (XTread_socket): Pass help_echo_window to gen_help_event.
10613 (syms_of_xterm): Initialize and staticpro help_echo_window.
10614
f8276b77
DL
106152000-07-18 Dave Love <fx@gnu.org>
10616
52283633 10617 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 10618
088831a6
GM
106192000-07-18 Gerd Moellmann <gerd@gnu.org>
10620
3d6cd763
GM
10621 * alloc.c (allocate_string_data): If string had already data
10622 assigned, copy old contents to new string data.
10623
10624 * coding.c (syms_of_coding): Fix typo in spelling of variable
10625 `inhibit-iso-escape-detection'.
10626
088831a6
GM
10627 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10628
10629 * Makefile.in: Add dependencies on dispextern.h.
10630 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10631 `free'; both can conflict with system header files.
10632
bc8a8d55
KH
106332000-07-18 Kenichi Handa <handa@etl.go.jp>
10634
10635 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10636 undefined.
10637
069f5950
DL
106382000-07-18 Dave Love <fx@gnu.org>
10639
10640 * window.c (Fwindow_list): Declare arg `window'.
10641
aa96c820
KH
106422000-07-18 Kenichi Handa <handa@etl.go.jp>
10643
10644 * coding.c (setup_coding_system): Don't override the explicitly
10645 specified designations.
10646
06be8d32
MB
106472000-07-15 Miles Bader <miles@gnu.org>
10648
10649 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10650 from `text_property_eq' and `text_property_stickiness', respectively.
10651 (find_field, Fconstrain_to_field, char_property_eq)
10652 (char_property_stickiness): Changed to call char-property functions
10653 instead of text-property-only ones.
10654
10655 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10656 `next_single_char_property_change'). Do more error checking, and
10657 cleanup limit behavior.
10658 (Fprevious_single_char_property_change): New function.
10659 (syms_of_textprop): Initialize new subrs.
10660
10661 * xdisp.c (display_prop_end, invisible_text_between_p):
10662 Call Fnext_single_char_property_change instead of
10663 next_single_char_property_change.
10664
3fddcdc3
JR
106652000-07-15 Jason Rumney <jasonr@gnu.org>
10666
10667 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10668 after menu is finished with.
10669 (add_menu_item): Only consider wv->title as a menu title.
10670 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10671
10672 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10673 null title.
10674 (FONT_REGEXP): Remove unused macro, and its sub-components.
10675 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10676
10677 * w32term.c (help_echo_object, help_echo_pos): New variables.
10678 (note_mode_line_highlight): Store additional information about the
10679 help-echo in help_echo_object and help_echo_pos. Check both
10680 `local-map' and `keymap' properties for changing the cursor
10681 (note_mouse_highlight): Store additional information about the
10682 help-echo in help_echo_object and help_echo_pos.
10683 (note_tool_bar_highlight): Set help_echo_object to nil and
10684 help_echo_pos to -1.
10685 (w32_read_socket): Use gen_help_event instead of filling
10686 input_events manually.
10687 (syms_of_w32term): Staticpro help_echo_object.
10688 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 10689 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
10690 (x_clear_mouse_face): New function.
10691 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10692 (x_update_window_begin): No need to turn off the mouse
10693 highlight here.
10694 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10695 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
10696 (x_fill_stretch_glyph_string): Consume runs of stretch
10697 glyphs instead of a single one.
10698 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10699 with new argument list.
10700 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10701 (x_append_glyph, x_append_composite_glyph)
10702 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10703 changes in struct glyph starting 1999-12-27. See comments for
10704 xterm.c on 2000-07-05.
10705
178c5d9c
SS
107062000-07-14 Sam Steingold <sds@gnu.org>
10707
10708 * xfaces.c (realize_x_face): Fix the last patch:
10709 check `default_face' before dereferencing.
10710
6fe533f6
DL
107112000-07-14 Dave Love <fx@gnu.org>
10712
069f5950 10713 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 10714
dd7b81cf
KH
107152000-07-14 Kenichi Handa <handa@etl.go.jp>
10716
0693904a 10717 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 10718 default_face's fontset, not using the default fontset.
0693904a 10719
dd7b81cf
KH
10720 * coding.c (inhibit_iso_escape_detection): New variable.
10721 (syms_of_coding): Make it a Lisp variable.
10722 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10723 nonzero, ignore ISO2022's escape sequence.
10724
d5aa31d8
GM
107252000-07-14 Gerd Moellmann <gerd@gnu.org>
10726
e5acf0ca
GM
10727 * alloca.c (malloc) [emacs]: Define as xmalloc.
10728
bd23a692
GM
10729 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10730 use that instead of the mouse position. Add parameters DX and DY.
10731
10732 * dispextern.h (Fx_show_tip): Adjust number of parameters
10733 in prototype.
10734
9662da0b
GM
10735 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10736 if HELP is a function, call it with OBJECT and POS as parameters
10737 to get the help to display.
10738 (gen_help_event, kbd_buffer_store_help_event): New functions.
10739 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10740 (read_char): Call show_help_echo with new parameters.
10741
178c5d9c 10742 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
10743 Add prototypes.
10744
10745 * xterm.c (help_echo_object, help_echo_pos): New variables.
10746 (note_mode_line_highlight): Store additional information about the
10747 help-echo in help_echo_object and help_echo_pos. Check both
10748 `local-map' and `keymap' properties for changing the cursor
10749 (note_mouse_highlight): Store additional information about the
10750 help-echo in help_echo_object and help_echo_pos.
10751 (note_tool_bar_highlight): Set help_echo_object to nil and
10752 help_echo_pos to -1.
10753 (XTread_socket): Use gen_help_event instead of filling
10754 input_events manually.
10755 (syms_of_xterm): Staticpro help_echo_object.
10756
10757 * xmenu.c (menu_highlight_callback): Use
10758 kbd_buffer_store_help_event instead of setting up and input_event
10759 structure manually.
10760
10761 * xdisp.c (eval_form): GCPRO argument sexpr.
10762 (call_function): New function.
10763 (handle_single_display_prop): Use call_function and FUNCTIONP
10764 instead of checking whether if font_height is a symbol and
10765 using eval_form.
10766
10767 * eval.c (internal_condition_case_2): New function.
10768
10769 * lisp.h (FUNCTIONP): New macro.
10770 (internal_condition_case_2, call_function): Add prototypes.
10771
d5aa31d8
GM
10772 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10773 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10774 Always set `arg' member of input_events.
10775 (construct_menu_click): Unused function removed.
10776
10777 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10778
10779 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10780 (construct_drag_n_drop, x_scroll_bar_handle_click)
10781 (w32_read_socket): Always set `arg' member of input_events.
10782
10783 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10784
10785 * lisp.h (eval_form): Add prototype.
10786
10787 * xdisp.c (eval_form): Make it externally visible.
10788
0f1a9b23
GM
107892000-07-13 Gerd Moellmann <gerd@gnu.org>
10790
10791 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10792 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10793 consing. For prefix events, store the frame in the `arg' slot of
10794 the event, otherwise store the key there.
10795 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 10796 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
10797
10798 * xmenu.c (menu_highlight_callback): Store help string in the
10799 `arg' member of the input event; don't cons.
10800 (menubar_selection_callback): Use the `arg' slot of input events
10801 to queue additional information, instead of consing.
10802
10803 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10804
10805 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10806 TOOL_BAR_EVENTs.
10807 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10808
10809 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10810 input events to queue additional information, instead of consing.
10811
10812 * keyboard.c (kbd_buffer_gcpro): Renamed from
10813 kbd_buffer_frame_or_window. Now used for all Lisp objects
10814 referenced from the input queue.
10815 (kbd_buffer_store_event): Always use structure assignment for
10816 copying input events. Record all Lisp objects referenced from
10817 events in kbd_buffer_gcpro.
10818 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10819 differently from input events. Test for prefix menu_bar_events
10820 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10821 event in kbd_buffer_gcpro to nil.
10822 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10823 frame_or_window is equal to its arg member as prefix events.
10824 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10825 used by an input event to nil.
10826 (init_keyboard): Use two times the size of the input queue
10827 for kbd_buffer_gcpro.
10828 (syms_of_keyboard): Likewise.
10829
52283633
SM
10830 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10831 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
10832
10833 * termhooks.h (struct input_event): Add member `arg'.
10834 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10835 (USER_SIGNAL_EVENT): Renamed from user_signal.
10836
10837 * xfaces.c (ASET): Remove definition.
10838
10839 * lisp.h (AREF, ASET, ASIZE): New macros.
10840
10841 * fontset.c (AREF, ASIZE): Remove definitions.
10842
10843 * fns.c (AREF): Remove definition.
178c5d9c 10844
0f1a9b23
GM
10845 * composite.c (AREF): Remove definition.
10846
712eaef2
GM
108472000-07-12 Gerd Moellmann <gerd@gnu.org>
10848
d8ee7803
GM
10849 * dispnew.c (redraw_overlapped_rows): Add missing local.
10850 (scrolling_window): Remove debug code.
10851
712eaef2
GM
10852 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
10853 Before scrolling, turn off a mouse-highlight in the window
10854 being scrolled.
10855
10856 * xterm.c (x_update_window_end): Add parameter
10857 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
10858 redisplay in XTframe_up_to_date.
10859 (x_clear_mouse_face): New function.
10860 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
10861
10862 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
10863 current glyph row.
10864 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
10865 it when any row is written to that contains glyphs highlighted in
10866 mouse-face.
10867 (update_window): Call the window update end hook with new
10868 parameter MOUSE_FACE_OVERWRITTEN_P.
10869 (direct_output_for_insert): Give up if row contains mouse-face.
10870
10871 * dispextern.h (struct redisplay_interface): Add parameter
10872 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
10873 (clear_mouse_face): New function pointer member.
10874
02010917
SM
108752000-07-11 Stefan Monnier <monnier@cs.yale.edu>
10876
10877 * syntax.c (back_comment): Use one switch rather than a few `if's.
10878 Obey open_paren_in_column_0_is_defun_start.
10879 When reverting to the `slow' method, try to nicely handle the case
10880 of nested comments by checking that the comment-starter we found
10881 does indeed match the comment-ender.
10882 (scan_sexps_forward, scan_sexps_forward):
10883 Ignore excessive opening parenthesis rather than throwing an error.
10884
d76c03ea
GM
108852000-07-11 Gerd Moellmann <gerd@gnu.org>
10886
10887 * doc.c (Fsubstitute_command_keys): Handle case that a GC
10888 in Fwhere_is_internal or get_keymap_1 relocates string contents.
10889
10890 * dispnew.c (direct_output_forward_char): Give up if currently
10891 displaying a message instead of the minibuffer contents.
10892
10893 * xterm.c (x_update_window_begin): No need to turn off the mouse
10894 highlight here.
10895 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10896 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
10897
10898 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
10899 compare the mouse_face_p flags of both rows.
10900
10901 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
10902
d55ead18
EZ
109032000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
10904
10905 * keyboard.c (show_help_echo): Accept additional parameter
10906 ok_to_overwrite_keystroke_echo.
10907 (read_char): Call show_help_echo with a zero
10908 ok_to_overwrite_keystroke_echo argument.
52283633 10909 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
10910 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
10911 ok_to_overwrite_keystroke_echo argument.
10912 * w32menu.c (w32_menu_display_help): Call show_help_echo with
10913 non-zero ok_to_overwrite_keystroke_echo argument.
10914
df75b1a3
GM
109152000-07-10 Gerd Moellmann <gerd@gnu.org>
10916
4b92c49a
GM
10917 * xdisp.c (try_window_id): If changes are all below what is
10918 displayed in the window, and point is in the window, we still
10919 might have to find point on the display.
10920
10921 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
10922 glyphs instead of a single one.
10923 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10924 with new argument list.
10925 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10926
df75b1a3
GM
10927 * keymap.c (get_keymap_1): Add comment that this function can GC.
10928 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
10929 comment that functions can GC.
10930 (Fset_keymap_parent): GCPRO arg KEYMAP.
10931
4314cf3e
EZ
109322000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
10933
10934 * msdos.c (XMenuActivate): After exiting the menu, restore the
10935 echo area message and erase it.
10936
ab49ce15
KH
109372000-07-10 Kenichi Handa <handa@etl.go.jp>
10938
10939 * fontset.c (Ffontset_info): Make the return value more compatible
10940 with that of Emacs 20.
10941
090a072f
GM
109422000-07-07 Gerd Moellmann <gerd@gnu.org>
10943
10944 * eval.c (Fsignal): Handle case that backtrace_list is null.
10945
f92de4a6
KH
109462000-07-07 Kenichi Handa <handa@etl.go.jp>
10947
10948 * ccl.c (Fccl_execute): Typo fixed.
10949
dd8888a1
GM
109502000-07-06 Gerd Moellmann <gerd@gnu.org>
10951
e5c81191 10952 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 10953
dd8888a1
GM
10954 * window.c (Fwindow_list): Reverse list at the end.
10955 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
10956 means allow windows on OWINDOW's frame, only.
10957 (window_loop): Simplified; use Fwindow_list.
10958
10959 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
10960
485266d0
GM
109612000-07-05 Gerd Moellmann <gerd@gnu.org>
10962
10963 * xterm.c (XTread_socket): Increment handling_signal at the start,
10964 decrement it at the end.
10965
10966 * eval.c (handling_signal): New variable.
10967 (Fsignal): Abort if handling_signal is non-zero.
10968
10969 * lisp.h (handling_signal): External declaration.
178c5d9c 10970
485266d0
GM
10971 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
10972
80fcd514
KR
109732000-07-05 Ken Raeburn <raeburn@gnu.org>
10974
10975 Sound support for NetBSD through "Linux emulation" support:
10976 * config.in (HAVE_SOUNDCARD_H): Undef.
10977 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
10978 * Makefile.in (LIBSOUND): New variable.
10979 (LIBES): Include it.
52283633
SM
10980 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
10981 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
10982 (vox_open): Use DEFAULT_SOUND_DEVICE.
10983 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
10984
d5c5cddd
GM
109852000-07-05 Gerd Moellmann <gerd@gnu.org>
10986
10987 * print.c (print_error_message): If Vsignaling_function is set,
10988 show it in *Messages*.
10989
10990 * lisp.h (Vsignaling_function): External declaration.
10991
10992 * eval.c (Vsignaling_function): New variable.
10993 (Fsignal): Compute it.
10994 (syms_of_eval): Staticpro it.
10995
65171e3a
DL
109962000-07-05 Dave Love <fx@gnu.org>
10997
10998 * syswait.h: Use the autoconf recommended approach. Old code
10999 #if'd out in case we need to revert.
11000
178c5d9c 11001 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 11002
e2c46326
AI
110032000-07-05 Andrew Innes <andrewi@gnu.org>
11004
11005 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11006 when non-NULL instead of __morecore, to take account of buffer
11007 memory. This also solves a problem with spurious memory warnings
11008 on Windows.
11009
11010 * ralloc.c: Make real_morecore non-static.
11011
11012 * eval.c (internal_condition_case): Comment out abort if
11013 interrupt_input_blocked is not zero.
11014
11015 * makefile.nt: Add support for `bootstrap' and related targets.
11016 Include minimal debug info in emacs.exe in release build.
11017 Remove all dependencies on lisp.h, and fixup some others.
11018
11019 * w32.c (init_environment): Install code from 20.7 for providing
11020 default values for environment variables, based on the
11021 executable's own location.
52283633 11022 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
11023 (sys_socket): Install socket inheritance bug fix from 20.7.
11024
11025 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11026 here via blockinput.h).
11027
a027a91b
SM
110282000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11029
e4b31601
SM
11030 * w32menu.c (w32_menu_display_help):
11031 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
11032
11033 * keyboard.h (show_help_echo): Declare.
11034
11035 * keyboard.c (show_help_echo): New function, extracted from read_char.
11036 Feval its `msg' argument if it's a cons cell.
11037 (read_char): Use it.
4cf8d9d5 11038 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 11039
178c5d9c 11040 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 11041 (note_tool_bar_highlight, XTread_socket):
178c5d9c 11042 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
11043 (dos_rawgetc):
11044 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11045 (note_tool_bar_highlight, w32_read_socket):
11046 Do not gratuitously ignore non-string `help-echo' properties.
11047
88d75730
GM
110482000-07-05 Gerd Moellmann <gerd@gnu.org>
11049
969f7e79
GM
11050 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11051
71201b00
GM
11052 * window.c (delete_all_subwindows): Reset Vwindow_list.
11053
88d75730
GM
11054 * xterm.c (x_append_glyph, x_append_composite_glyph)
11055 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11056 changes in struct glyph starting 1999-12-27. Some bit-fields of
11057 struct glyph were not set, which made glyphs unequal when compared
11058 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11059 effects were the result. This also depended on the contents of
11060 memory returned by xmalloc. If flickering happens again, activate
11061 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 11062 gone with that, chances are that it is caused by something similar.
88d75730
GM
11063
11064 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 11065
88d75730
GM
11066 * dispextern.h: Add some comments.
11067
11068 * window.c (add_window_to_list): Add parameter LIST.
11069 (window_list): Order list so that, for each frame, windows are
11070 in canonical order, and so that frames appear in the list in
11071 the order given by Vframe_list.
11072 (next_window): Reverse the handling of NEXT_P.
11073
53654733
GM
110742000-07-04 Gerd Moellmann <gerd@gnu.org>
11075
87efd256
GM
11076 * window.c (Vwindow_list): New variable.
11077 (make_window, delete_window): Set Vwindow_list to nil.
11078 (check_window_containing): New function.
11079 (window_from_coordinates): Rewritten.
11080 (add_window_to_list, window_list, candidate_window_p)
11081 (decode_next_window_args, next_window): New functions.
52283633 11082 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
11083 (Fwindow_list): New function.
11084 (Fother_window): Cleaned up.
11085 (foreach_window): Add a longer "variable argument list". Let
11086 callback function return 0 to indicate that cycling over windows
11087 should stop.
11088 (foreach_window_1): Likewise.
11089 (freeze_window_start): Return int.
11090 (init_window): New function.
11091 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11092
11093 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11094 input_event with bzero.
11095 (main): Call init_window.
11096
53654733
GM
11097 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11098 a menu filter.
11099
4a8c194f
KH
111002000-07-04 Kenichi Handa <handa@etl.go.jp>
11101
11102 * composite.h (make_composition_value_copy): Extern it.
11103
11104 * composite.c (make_composition_value_copy): New function.
11105
11106 * editfns.c (Fformat): While copying text properties, make each
11107 composition property value a copy.
11108
11109 * fns.c (concat): While copying text properties, make each
11110 composition property value a copy.
11111
831a6cb0
GM
111122000-07-03 Gerd Moellmann <gerd@gnu.org>
11113
2f516940
GM
11114 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11115
178c5d9c 11116 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
11117 marked already.
11118
831a6cb0
GM
11119 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11120 include those frames as candidates which have their focus
11121 redirected to the minibuffer frame.
11122
d9c4f922
SM
111232000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11124
11125 * fns.c (Fputhash): Return `value' rather than nil.
11126
3780bc22
GM
111272000-06-30 Gerd Moellmann <gerd@gnu.org>
11128
97d176db
GM
11129 * frame.c (next_frame): Don't check focus redirection in case
11130 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
11131 unless their focus is redirected, which contradicts the
11132 specification of next-frame, and leads to infinite loops in
11133 certain situations when cycling through windows with next-window.
11134
dca9961d
KH
111352000-06-30 Kenichi Handa <handa@etl.go.jp>
11136
11137 * coding.c (code_convert_region): Even if the length of text is
11138 zero, try to convert it if coding->type is coding_type_ccl.
11139 (decode_coding_string, encode_coding_string): Likewise.
11140
d5483ab1
GM
111412000-06-28 Gerd Moellmann <gerd@gnu.org>
11142
af5c25e1 11143 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 11144 the display if windows_or_buffers_changed.
af5c25e1
GM
11145
11146 * dispnew.c (struct row_entry): New structure.
11147 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11148 (row_table_size, old_lines, new_lines, old_lines_size)
11149 (new_lines_size, run_pool, runs_size, runs): New variables.
11150 (add_row_entry): New function.
11151 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 11152 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
11153 holding them in local variables. Use a larger hash table whose
11154 size depends on glyph matrix sizes. Don't use bzero to clear the
11155 hash table; instead, clear used slots only.
11156
11157 * fns.c (next_almost_prime): Make it externally visible.
11158
11159 * lisp.h (next_almost_prime): Add prototype.
11160
d5483ab1
GM
11161 * s/isc4-0.h (sigunblock): Define.
11162
11163 * s/sco5.h (sigunblock): Define.
11164
93e40f40
DL
111652000-06-27 Dave Love <fx@gnu.org>
11166
11167 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11168 (moved to osf5-0.h).
11169 [!NOT_C_CODE]: Protect string.h stuff.
11170
11171 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11172 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11173
3c4b7685
GM
111742000-06-27 Gerd Moellmann <gerd@gnu.org>
11175
97d176db 11176 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
11177 below the last line from the needed window height.
11178
32cad0aa
SM
111792000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11180
11181 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11182 (Fwidget_get): Use it.
11183 (syms_of_fns): Defsubr it.
11184
2c69ced2
GM
111852000-06-26 Gerd Moellmann <gerd@gnu.org>
11186
178c5d9c 11187 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
11188 display info for XIM.
11189 (xim_open_dpy): Likewise.
11190 (xim_close_dpy): Don't free the display info's XIM.
11191
11192 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11193
11194 * config.in (USE_XIM): New define.
11195
3fc720e4
GM
11196 * keymap.c (get_keyelt): For menu-items containing a `:filter
11197 FILTER', apply FILTER to the menu-item's definition to get the
11198 real definition to use.
11199
11200 * lisp.h (QCfilter): External declaration.
11201
2c69ced2
GM
11202 * xfns.c (Fimage_size): New function.
11203 (syms_of_xfns): Defsubr it.
11204
f978b2a2
AS
112052000-06-26 Andreas Schwab <schwab@suse.de>
11206
11207 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11208 Fstring_as_unibyte.
11209
94cc7892
DL
112102000-06-25 Dave Love <fx@gnu.org>
11211
52283633 11212 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
11213
11214 * Makefile.in (blockinput.h): Depend on atimer.h.
11215 (atimer.h): Depend on systime.h.
11216
52283633 11217 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 11218
52283633 11219 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
11220
11221 * lisp.h (swap_in_global_binding): Declare.
11222
b8c24556
KR
112232000-06-24 Ken Raeburn <raeburn@gnu.org>
11224
11225 * process.c (Fopen_network_stream): Turn off atimers for duration
11226 of call to connect. (Patch from Gerd.)
11227
8cf8560b
DL
112282000-06-23 Dave Love <fx@gnu.org>
11229
511c7541
DL
11230 * ralloc.c: Maybe include unistd.h
11231
8cf8560b
DL
11232 * emacs.c (setgrp): Undefine before defining.
11233 (malloc_warning, set_time_zone_rule, index): Prototype.
11234
11235 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11236 HAVE_STRUCT_TIMEZONE.
11237
11238 * s/osf1.h: Move string.h hack here from alpha.h and make it
11239 conditional.
11240 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11241 _XOPEN_SOURCE.
11242 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11243 (SOCKLEN_TYPE): Don't define.
11244
11245 * m/alpha.h: Remove string.h hack.
11246
11247 * s/osf5-0.h: New file.
11248
11249 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11250 include time.h, done by systime.h.
11251 [__FreeBSD__]: Remove redundant includes.
11252
3fc720e4 11253 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
11254 (delete_temp_file): Return Qnil to avoid warning.
11255
11256 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11257
11258 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11259 HAVE_X_WINDOWS.
11260
11261 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11262
11263 * composite.h (compose_text): Declare.
11264
11265 * xterm.c: Don't include sys/types.h unconditionally. Don't
11266 protect its inclusion with !USG (following xmenu.c).
11267
ea055732
GM
112682000-06-23 Gerd Moellmann <gerd@gnu.org>
11269
11270 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11271 in x_create_frame.
11272
74b01b80
EZ
112732000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11274
11275 * coding.c (decode_eol_post_ccl): Special handling for undecided
11276 and inconsistent EOL types.
11277
64f3a166
GM
112782000-06-22 Gerd Moellmann <gerd@gnu.org>
11279
16cf31f7
GM
11280 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11281 trough color and main window's background color.
11282
52283633 11283 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
11284
11285 * xterm.h (Xt_app_con): External declaration.
11286
11287 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 11288
486a103d
GM
11289 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11290
64f3a166
GM
11291 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11292 (handle_invisible_prop): Record the start of invisible text in
11293 it->add_overlay_start.
11294 (struct overlay_entry): Add member `overlay'.
11295 (handle_overlay_change): Simplify.
11296 (next_overlay_string): After having processed overlay strings at the
11297 end of the buffer, record that fact in
11298 it->overlay_strings_at_end_processed_p.
11299 (compare_overlay_entries): If before- and after-strings come
11300 from the same overlay, let before-strings come first.
11301 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11302 (load_overlay_strings): Take it->add_overlay_start into account
11303 when adding overlay strings.
11304
11305 * dispextern.h (struct it): Add member add_overlay_start.
11306
bb746ea6
DL
113072000-06-22 Dave Love <fx@gnu.org>
11308
11309 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11310
11311 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11312
a8f573f3
KH
113132000-06-22 Kenichi Handa <handa@etl.go.jp>
11314
11315 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11316 is greater than 0.
11317
9f2bbc92
DL
113182000-06-21 Dave Love <fx@gnu.org>
11319
178c5d9c 11320 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 11321
3ee5041c
SM
113222000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11323
11324 * syntax.c (back_comment): Simplify string-parity counting (with
11325 the added benefit of handling multiple string-styles as long as
11326 they are not intertwined).
11327 Jump to the slow code as soon as a comment starter is found in
11328 a "string_lossage" position. Fixes the case: " /* " /* " */.
11329
4c343001
DL
113302000-06-21 Dave Love <fx@gnu.org>
11331
11332 * Makefile.in: Use GETLOADAVG_LIBS.
11333
11334 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11335 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11336
e6365855
SM
113372000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11338
11339 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11340 (Fforward_comment, scan_lists):
11341 Check the comstyle of single-char comment-starters.
11342 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11343 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
11344 Check the comstyle of single-char comment-starters.
11345 Clarify control-flow around the Scomment case.
e6365855 11346
5700d2cc
DL
113472000-06-20 Dave Love <fx@gnu.org>
11348
d355bd8a
SM
11349 * fns.c (make_hash_table, maybe_resize_hash_table):
11350 Cast arg of next_almost_prime.
5700d2cc 11351
178c5d9c 11352 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
11353
11354 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11355 and unistd.h.
11356
4a27bdfb
GM
113572000-06-20 Gerd Moellmann <gerd@gnu.org>
11358
a61d762c 11359 * keyboard.c (adjust_point_for_property): Check if display
52283633 11360 property should be treated as intangible by looking at its value.
a61d762c 11361
178c5d9c 11362 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
11363 (display_prop_intangible_p): New functions.
11364
11365 * dispextern.h (display_prop_intangible_p): Add prototype.
11366
11367 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 11368
4a27bdfb
GM
11369 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11370 argument to sigprocmask.
11371
11372 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11373 argument to sigprocmask.
11374
11375 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11376 sigprocmask_set, and pass a pointer to it to sigprocmask.
11377
11378 * sysdep.c (sigprocmask_set): New variable.
11379
11380 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11381 report_file_error.
11382
427ec082
SS
113832000-06-20 Sam Steingold <sds@gnu.org>
11384
11385 * xrdb.c: Don't declare xmalloc, xrealloc.
11386
8972fe79 113872000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
11388
11389 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11390 (re_comp): Cast gettext return value to avoid complaints when
11391 !HAVE_LIBINTL.
11392
074b6efe
DL
113932000-06-20 Dave Love <fx@gnu.org>
11394
52283633 11395 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 11396
5700d2cc 11397 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 11398
d355bd8a 11399 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
11400
11401 * m/alpha.h: Don't declare xmalloc, xrealloc.
11402
0af4f205
DL
11403 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
11404
11405 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
11406
11407 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
11408
11409 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
11410 HAVE_GETWD.
11411
074b6efe
DL
11412 * keyboard.h (poll_for_input_1): Declare.
11413
11414 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
11415
11416 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
11417
11418 * doprnt.c: Don't declare xmalloc, xrealloc.
11419
11420 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
11421 (getenv, ctime, getwd): Removed.
11422 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
11423
11424 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
11425 x_set_tool_bar_lines.
11426
11427 * config.in: Add HAVE_GETWD. Move some definitions above
11428 machine/system includes.
11429
68a5e97b
KH
114302000-06-20 Kenichi Handa <handa@etl.go.jp>
11431
95417e1e
KH
11432 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
11433
68a5e97b
KH
11434 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
11435 contain information about ENCODING.
11436
11437 * fontset.c (FONTSET_ASCII): Use the first element of char table
11438 for an ASCII font, not defalt slot.
11439 (fontset_ref_via_base): If FONTSET doesn't contain information for
11440 C, try the default fontset.
11441 (make_fontset): Don't copy the default fontset.
11442 (fontset_font_pattern): Likewise.
11443 (accumulate_font_info): If ELT is nil, use the corresponding
11444 element in the default fontset.
11445
3b4fa1b2
DL
114462000-06-19 Dave Love <fx@gnu.org>
11447
943e731c
DL
11448 * syntax.c (Fparse_partial_sexp): Doc fix.
11449
11450 * regex.h: Test PROTOTYPES as well as __STDC__.
11451
3b4fa1b2
DL
11452 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
11453 errno, strerror. Put text after #endif in comment.
11454
52283633 11455 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
11456
11457 * xterm.c (x_frame_of_widget): Likewise.
11458
cdf0357b
GM
114592000-06-19 Gerd Moellmann <gerd@gnu.org>
11460
11461 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
11462 to Vfundamental_mode_abbrev_table.
11463
11464 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
11465 bogus objects are marked. This slows down GC by ~80 percent, but
11466 it might be worth trying when debugging GC-related problems.
11467 This feature requires conservative stack marking to be enabled.
11468
11469 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
11470 returns XLookupChars, reset `modifiers' to zero.
11471
998e9f8c
DL
114722000-06-19 Dave Love <fx@gnu.org>
11473
11474 * mktime.c: Unprotoized.
11475
18e21ce8 114762000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
11477
11478 * data.c (set_internal): If variable is frame-local,
11479 store the new value immediately into the frame parameter alist.
11480
140c4ac6
KR
114812000-06-19 Ken Raeburn <raeburn@gnu.org>
11482
14358466
KR
11483 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11484 in the custom handler pointer.
11485
140c4ac6
KR
11486 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11487 value, or checks for CHAR_META can fail when Lisp_Object is a
11488 union type.
11489 * keymap.c (get_keyelt): Likewise.
11490
10d7bf84
KH
114912000-06-19 Kenichi Handa <handa@etl.go.jp>
11492
11493 * ccl.h (struct ccl_program): New member eol_type.
11494 (struct ccl_spec): New member cr_carryover.
11495
11496 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11497 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11498
11499 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11500 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11501 (decode_eol_post_ccl): New function.
11502 (decode_coding): Don't detect EOL format here for CCL based coding
11503 systems.
11504 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11505 decode_eol_post_ccl after running the CCL program.
11506 (code_convert_region): Don't detect EOL format here for CCL based
11507 coding systems.
11508 (decode_coding_string): Likewise.
11509
52e386c2
KR
115102000-06-18 Ken Raeburn <raeburn@gnu.org>
11511
11512 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11513 when treating it as an integer.
11514
11515 * coding.h (encode_coding_string): Declare.
11516
11517 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11518 it as an integer.
11519
11520 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11521 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11522 to be passed to get_local_map.
11523
11524 * sound.c (Fplay_sound): Don't call make_number on
11525 Frun_hook_with_args count argument.
11526
11527 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11528 for lisp objects in X event structure data field, when lisp
11529 objects are represented with unions.
11530 (x_scroll_bar_to_input_event): Ditto.
11531
b357b9d4
KR
115322000-06-16 Ken Raeburn <raeburn@gnu.org>
11533
11534 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
11535 termination of string. Fix sense of test whether
11536 Vline_number_display_limit is an integer.
b357b9d4 11537
a871441d
GM
115382000-06-16 Gerd Moellmann <gerd@gnu.org>
11539
a9021acd
GM
11540 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11541 only if HAVE_X_WINDOWS.
11542
6344985d
GM
11543 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11544 of titles.
11545
427ec082 11546 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
11547 out of bounds.
11548
228b083e
EZ
115492000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11550
11551 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11552 of its headers.
11553
c25b53a2
KH
115542000-06-15 Kenichi Handa <handa@etl.go.jp>
11555
11556 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11557 start of the while loop.
11558
a6981b11
GM
115592000-06-15 Gerd Moellmann <gerd@gnu.org>
11560
e9924e52
GM
11561 * atimer.c (alarm_signal_handler): Add forward declaration.
11562
a6981b11
GM
11563 * data.c (set_internal): Remove debug code.
11564
25fa6deb
GM
115652000-06-14 Gerd Moellmann <gerd@gnu.org>
11566
dce6b995
GM
11567 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11568
9f817ea4
GM
11569 * unexec.c (toplevel) [COFF]: Include coff.h.
11570
11571 * s/lynxos.h: New file.
11572
11573 * keymap.c (Fsingle_key_description): Enclose function key and
11574 event symbol names in angle brackets.
11575
8a4e3c0c
GM
11576 * xdisp.c (setup_echo_area_for_printing): Call
11577 message_log_maybe_newline if message_buf_print is not set.
11578
11579 * print.c (printchar, strout): Don't check message_buf_print
427ec082 11580 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
11581 function does something useful even when message_buf_print is
11582 already set.
11583
52283633
SM
11584 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11585 New variables.
25fa6deb
GM
11586 (ensure_echo_area_buffers): Initialize echo buffer's
11587 truncate lines setting to nil.
11588 (with_echo_area_buffer): Don't set the echo buffer's truncate
11589 lines setting here.
8a4e3c0c 11590 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
11591 of message_truncate_lines.
11592 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
11593 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11594 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
11595
11596 * keyboard.c (read_char): Bind message-truncate-lines to t
11597 while displaying a help-echo.
11598
11599 * lisp.h (Qmessage_truncate_lines): External declaration.
11600
163dcff3
GM
116012000-06-13 Gerd Moellmann <gerd@gnu.org>
11602
1681ead6
GM
11603 * xdisp.c (Vline_number_display_limit): Renamed from
11604 line_number_display_limit.
11605 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11606 Extend documentation string. Initialize
11607 Vline_number_display_limit to nil meaning no limit.
11608 (decode_mode_spec): Use Vline_number_display_limit with its new
11609 meaning.
11610
163dcff3
GM
11611 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11612
18e21ce8 116132000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
11614
11615 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 11616
163dcff3
GM
11617 * xfns.c (x_set_frame_parameters): Comment fix.
11618
11619 * frame.c (store_frame_param): Call swap_in_global_binding if the
11620 variable's current binding was chosen based on this frame.
11621
11622 * data.c (swap_in_global_binding): New function.
11623
a704139d
EZ
116242000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11625
11626 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11627 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11628
9b6610db
EZ
116292000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11630
11631 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11632
c68833d2
JR
116332000-06-12 Jason Rumney <jasonr@gnu.org>
11634
11635 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11636
11637 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11638
11639 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11640
11641 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11642
ed1056b3
GM
116432000-06-12 Gerd Moellmann <gerd@gnu.org>
11644
11645 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11646 (syms_of_xfaces): Defsubr Sdump_colors.
11647 (x_free_colors): Don't treat b&w specially on default visual.
11648 (x_free_dpy_colors): New function.
11649 (free_face_colors): Don't check visual class; it's done
11650 in x_free_colors.
11651
11652 * xterm.c (x_frame_of_widget): New function.
11653 (x_alloc_nearest_color_for_widget): Use it.
11654 (x_copy_dpy_color): New function.
11655 (x_destroy_window): Free various colors.
11656
5050a2ef
KH
116572000-06-12 Kenichi Handa <handa@etl.go.jp>
11658
11659 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11660
11661 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11662
11663 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11664
11665 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11666
11667 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11668
fb1b041d
DL
116692000-06-11 Dave Love <fx@gnu.org>
11670
11671 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11672
ff96b5f4
EZ
116732000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11674
11675 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11676
db8eeecd
GM
116772000-06-11 Gerd Moellmann <gerd@gnu.org>
11678
ed1056b3 11679 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
11680 to `XEvent *'.
11681
49b71c5f
KH
116822000-06-10 Kenichi Handa <handa@etl.go.jp>
11683
c479bd55
KH
11684 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11685 (regex_compile): Fix the code for handling the case of single byte
11686 char and multibyte char being mixed in a range within [...].
11687
ff6a65c2
KH
11688 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11689 and dst_multibyte members of coding.
11690
49b71c5f
KH
11691 * charset.c (update_charset_table): Update the table
11692 bytes_by_char_head.
11693 (init_charset_once): Initialize elements of bytes_by_char_head to
11694 1 except for leading codes for private charases.
11695
11696 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 11697 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 11698
9e80b57d
KR
116992000-06-09 Ken Raeburn <raeburn@gnu.org>
11700
11701 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11702 access the data it doesn't point to.
11703
f83fe4b4
GM
117042000-06-08 Gerd Moellmann <gerd@gnu.org>
11705
11706 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 11707 will be translated to a switch-frame event when reading the
f83fe4b4
GM
11708 event queue. This is necessary because Emacs otherwise won't
11709 perform a switch-frame to a new frame until some other event, for
11710 example a keystroke event, forces it to do so. This has various
11711 effects, one visible being that the cursor of a frame created with
11712 C-x 5 2 or switched to with a window manager key binding like
11713 A-TAB stays hollow because selected_window isn't on the newly
11714 focused frame until the switch-frame is performed.
11715
11716 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11717 generating a switch-frame event if necessary.
11718
11719 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11720
11721 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11722 it's an integer.
11723
0890801b
KH
117242000-06-08 Kenichi Handa <handa@etl.go.jp>
11725
52283633 11726 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 11727
173cbca8
GM
117282000-06-07 Gerd Moellmann <gerd@gnu.org>
11729
3091c2a6
GM
11730 * window.c (displayed_window_lines): Take empty lines at
11731 the bottom of a window into account.
427ec082 11732
f38952fe
GM
11733 * window.c (displayed_window_lines): New function.
11734 (Fmove_to_window_line): Use displayed_window_lines to determine
11735 the number of lines to move, instead of using the window's height.
11736
11737 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11738 to stop reading, even if the form read sets point to a different
11739 value when evaluated.
11740
427ec082 11741 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
11742 put the cursor.
11743
6ba6c818
KH
117442000-06-07 Kenichi Handa <handa@etl.go.jp>
11745
11746 * fileio.c (e_write): Free composition data if stored in
11747 coding->cmp_data.
11748
5f1aea9a
GM
117492000-06-06 Gerd Moellmann <gerd@gnu.org>
11750
666852af
GM
11751 * xdisp.c (display_line): Set row's and iterator's
11752 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11753 Set cursor even if row ends in the middle of a character.
11754 (dump_glyph_row): Print values of new flags.
11755 (redisplay_window) <cursor movement in unchanged window>: When
11756 point has been moved forward, and PT is at the end of the cursor
11757 row, don't place the cursor in the next row if the cursor row ends
11758 in the middle of a character or at ZV.
11759
11760 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11761 (struct glyph_row): Add starts_in_middle_of_char_p and
11762 ends_in_middle_of_char_p.
11763 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11764 ends_in_middle_of_char_p flag.
11765 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11766
d13f3e2e
GM
11767 * term.c (append_glyph): Revert change of 2000-06-06.
11768
11769 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11770 padding glyph not fitting on line as whole character not
11771 fitting on line.
11772
5f1aea9a
GM
11773 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11774 this isn't true for images with `:ascent 100'.
11775
10cda9b0
KH
117762000-06-06 Kenichi Handa <handa@etl.go.jp>
11777
ed00559d
KH
11778 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11779 as modified if it is originally unmodified.
11780
10cda9b0
KH
11781 * term.c (encode_terminal_code): Change the way to check if
11782 terminal coding does any conversion.
11783 (append_glyph): Set glyph->pixel_width correctly.
11784
11785 * xdisp.c (display_line): While checking line continuation, pay
11786 attention to a padding glyph.
11787
1969fae2
GM
117882000-06-05 Gerd Moellmann <gerd@gnu.org>
11789
11790 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11791
162ccef4
DL
117922000-06-05 Dave Love <fx@gnu.org>
11793
f19f32dd
DL
11794 * xdisp.c: Include fontset.h.
11795
11796 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11797
11798 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11799
11800 * dispnew.c: Conditionally include term.h.
11801
11802 * coding.h: Declare code_convert_string_norecord.
11803
11804 * frame.h (struct frame): Use volatile unconditionally.
11805
11806 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11807
11808 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11809
11810 * systime.h: Protect against multiple inclusion.
11811 (timezone) [USG5_4]: Define as time_t.
11812
11813 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11814 (Foptimize_char_table, make_temp_name): Declare.
11815
11816 * Makefile.in (xdisp.o): Depend on fontset.h.
11817
11818 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11819
11820 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11821 (Foptimize_char_table, make_temp_name): Declare.
11822
427ec082 11823 * s/irix4-0.h:
162ccef4
DL
11824 * s/irix5-0.h:
11825 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11826
2082fe81
DL
118272000-06-02 Dave Love <fx@gnu.org>
11828
11829 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11830
dcf671d2
GM
118312000-06-02 Gerd Moellmann <gerd@gnu.org>
11832
11833 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 11834 result face, set flags in that face indicating that colors may not
dcf671d2
GM
11835 be freed.
11836
11837 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11838 glyph, use the ASCII NUL character to determine the face.
11839
d42122a3
DL
118402000-06-02 Dave Love <fx@gnu.org>
11841
11842 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11843 (VFORK_RETURN_TYPE): Remove.
427ec082 11844
d42122a3
DL
11845 * config.in: Add NO_MATHERR.
11846
dd432f16
DL
118472000-06-01 Dave Love <fx@gnu.org>
11848
90aa4ea8
DL
11849 * cmds.c (internal_self_insert): Don't check
11850 Vbefore_change_function, Vafter_change_function.
11851
11852 * insdel.c (signal_before_change, signal_after_change): Likewise.
11853
11854 * buffer.c (Vbefore_change_function, Vafter_change_function):
11855 Variables and their initializations deleted.
11856
2330c9d4
DL
11857 * callint.c (Fcall_interactively): Doc fix.
11858
dd432f16
DL
11859 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
11860
bf9e8804
DL
118612000-05-31 Dave Love <fx@gnu.org>
11862
11863 * textprop.c: Revert last change -- duplicated.
11864
3694b4ab
GM
118652000-05-31 Gerd Moellmann <gerd@gnu.org>
11866
11867 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
11868 in #if 0.
11869
11870 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
11871
f14156cd
JR
118722000-05-31 Jason Rumney <jasonr@gnu.org>
11873
8119aab8
JR
11874 * search.c (Fre_search_forward, Fre_search_backward)
11875 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
11876
f14156cd
JR
11877 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
11878
4aab9be3
JR
118792000-05-30 Jason Rumney <jasonr@gnu.org>
11880
11881 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
11882 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
11883
52283633 11884 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
11885
11886 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
11887 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
11888 expand a nil default_filename.
11889
11890 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
11891 pointer to glyph_to_pixel_coords, not a frame.
11892
11893 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
11894 coding.h to dependencies.
11895
11896 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
11897
11898 * w32console.c (glyph_to_pixel_coords): Change first parameter to
11899 window pointer to be consistent with w32term.c and xterm.c.
11900
11901 * w32fns.c: Format and doc changes to bring closer to xfns.c.
11902 (VIETNAMESE_CHARSET): Define if not defined in system headers.
11903 (Qline_spacing, Qcenter): New variables.
11904 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
11905 (x_set_line_spacing): New function.
52283633 11906 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
11907 (x_specified_cursor_type): New function.
11908 (x_set_cursor_type): Use it.
11909 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
11910 and icon strings.
11911 (validate_x_resource_name, x_get_resource_string): Measure lengths
11912 of external strings in bytes.
11913 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
11914 GetTextExtentPoint32 with NULL title.
11915 (Fx_create_frame): Initialize Qline_spacing.
11916 (w32_load_system_font): Initialize font->double_byte_p.
11917 (x_to_w32_charset): Use Vw32_charset_info_alist.
11918 (Image, busy cursor, tooltip functions): Merged changes from
11919 xfns.c. Not yet functional on Windows.
11920
11921 * w32gui.h (W32FontStruct): Add double_byte_p member.
11922
11923 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
11924 (emacs_button_translation): Use it.
11925 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
11926 in `mask' to be set.
11927
11928 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
11929 menu strings.
11930
11931 * w32term.c: Format and doc changes to bring closer to xterm.c.
11932 (w32_char_font_type): New enum.
11933 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
11934 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
11935 (w32_encode_char): New function.
11936 (x_encode_char): Removed.
11937 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
11938 x_encode_char and w32_font_is_double_byte.
11939 (x_produce_image_glyph): Use image_ascent.
11940 (x_produce_glyphs): Use new version of w32_per_char_metric and
11941 handle NULL return value. Allow extra line spacing.
11942 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
11943 (w32_get_glyph_overhangs): Remove unicode_p param. Use
11944 w32_font_type member of glyph instead.
11945 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
11946 (fast_find_position): Make sure not to consider rows not visible
11947 in the window.
11948 (w32_read_socket) [WM_MENUSELECT]: Cannot call
11949 w32_menu_display_help with input blocked, as it can abort.
11950 (x_display_and_set_cursor): Choose cursor depending
11951 on buffer-local value of cursor_type.
11952 (x_draw_bar_cursor): Add parameter WIDTH.
11953
11954 * w32term.h (CP_DEFAULT): Define.
11955 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
11956
10fc3187
GM
119572000-05-30 Gerd Moellmann <gerd@gnu.org>
11958
11959 * search.c (Fre_search_forward, Fre_search_backward)
11960 (Fposix_search_backward, Fposix_search_forward): Doc fix.
11961
d0555360
KH
119622000-05-30 Kenichi Handa <handa@etl.go.jp>
11963
11964 * coding.c (detect_coding_iso2022): Fix code for checking
11965 CODING_CATEGORY_MASK_ISO_8_2.
11966
f1ad044f
SM
119672000-05-29 Stefan Monnier <monnier@cs.yale.edu>
11968
11969 * regex.c (PREFETCH_NOLIMIT): New function.
11970 (re_match_2_internal): Use it and adjust the end_match_2 logic.
11971
84ec3b4b
GM
119722000-05-29 Gerd Moellmann <gerd@gnu.org>
11973
66254a13
GM
11974 * syntax.c (find_defun_start): Move test for
11975 open_paren_in_column_0_is_defun_start outside of the loop.
11976
49e70dec
GM
11977 * xdisp.c (redisplay_window): Really switch buffers when
11978 displaying mode lines, and temporarily set selected_frame to the
11979 frame of the window that's redisplayed.
11980
84ec3b4b
GM
11981 * xfaces.c (free_realized_faces): Block/unblock input.
11982 (free_realized_multibyte_face): Ditto.
11983
869a3a14
DL
119842000-05-29 Dave Love <fx@gnu.org>
11985
11986 * textprop.c (Qkeymap): New variable.
11987 (syms_of_textprop): Intern it.
11988
11989 * keymap.c: Include intervals.h.
11990 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
11991
11992 * Makefile.in (keymap.o): Depend on intervals.h.
11993
11994 * keyboard.c (menu_bar_items, tool_bar_items)
11995 (Fexecute_extended_command): Deal with `keymap' property.
11996 (read_key_sequence): Track map from `keymap' property as well as
11997 `local_map'.
11998
11999 * intervals.c (get_local_map): Extra arg to allow looking for
12000 `keymap' too.
12001
12002 * intervals.h (map_property): New enum.
12003 (get_local_map): Extra arg using it.
12004 (Qkeymap): Declare.
12005
84ec3b4b 12006 * lisp.h (get_local_map): Don't declare here.
869a3a14 12007
89d0c844
KH
120082000-05-29 Kenichi Handa <handa@etl.go.jp>
12009
12010 * Makefile.in (callproc.o): Depend on composite.h.
12011
12012 * callproc.c: Include composite.h.
12013 (Fcall_process): Handle composition correctly.
12014
12015 * coding.h (coding_allocate_composition_data): Extern it.
12016 (coding_restore_composition): Likewise.
12017
12018 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12019 yet allocated, finish decoding with result
12020 CODING_FINISH_INSUFFICIENT_CMP.
12021 (coding_allocate_composition_data): Make it non-static.
12022 (coding_restore_composition): Likewise.
12023
797a084a
EZ
120242000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12025
12026 * charset.c (syms_of_charset): Revert last change.
12027
cf872af5
EZ
120282000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12029
12030 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
12031 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12032 Handa.
cf872af5 12033
5b1ae051
EZ
120342000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12035
12036 * charset.c (syms_of_charset): Set width of character sets
12037 eight-bit-control and eight-bit-graphic to 1 column.
12038
34ec9ebe
GM
120392000-05-26 Gerd Moellmann <gerd@gnu.org>
12040
12041 * config.in (HAVE_SPEED_T): New define.
12042
12043 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12044 `extern speed_t'.
12045
dd854dc2
DL
120462000-05-26 Dave Love <fx@gnu.org>
12047
12048 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12049
12050 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12051 (Fsubr_arity): New function.
12052 (syms_of_data): Install them.
12053
ba9f8f95
KH
120542000-05-26 Kenichi Handa <handa@etl.go.jp>
12055
0f3e0672
KH
12056 * charset.c (init_charset_once): Set the table bytes_by_char_head
12057 correctly.
12058
cebefb44
KH
12059 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12060 the default fontset to what Emacs uses by default.
0f3e0672
KH
12061 (check_registry_encoding): This function deleted.
12062 (Fset_fontset_font): Remove the adhoc condition for the default
12063 fontset. Allow cons in FONTNAME.
cebefb44 12064
0f3e0672
KH
12065 * fns.c (map_char_table): Ignore char-table entries for
12066 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 12067
7a18af49
KR
120682000-05-25 Ken Raeburn <raeburn@gnu.org>
12069
12070 * emacs.c (main): Initialize keyboard syms before initializing
12071 window code, so face names are available.
12072
d2af47df
SM
120732000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12074
12075 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12076 of an anchor at the beginning of a shy-group.
12077
fc6a6a4e
GM
120782000-05-25 Gerd Moellmann <gerd@gnu.org>
12079
12080 * xdisp.c (handle_invisible_prop): Don't try to skip over
12081 invisible text if end of text is already reached.
12082
005f0d35
DL
120832000-05-25 Dave Love <fx@gnu.org>
12084
02513cdd
DL
12085 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12086
005f0d35
DL
12087 * coding.c (encode_eol): Add null statement after label.
12088
89f6ca4e
EZ
120892000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12090
12091 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12092 2000-05-20.
12093
a4e1759e
KH
120942000-05-25 Kenichi Handa <handa@etl.go.jp>
12095
12096 * ccl.c (ccl_driver): Fix previous change.
12097
eacfd7fe
KH
120982000-05-25 Kenichi Handa <handa@etl.go.jp>
12099
46ab33a9
KH
12100 * coding.c (run_pre_post_conversion_on_str): Set point to the
12101 beginning of buffer before calling coding->post_read_conversion.
12102 (decode_coding_string): Give correct args to
12103 run_pre_post_conversion_on_str.
12104 (encode_coding_string): Likewise.
12105
eacfd7fe
KH
12106 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12107 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12108 eight-bit-graphic correctly.
12109
f8569325
DL
121102000-05-24 Kenichi HANDA <handa@etl.go.jp>
12111
12112 * fileio.c (Finsert_file_contents): Even if a file is not found,
12113 execute codes for setting up coding system. Call
12114 after-insert-file-functions unconditionally.
12115
04545643
GM
121162000-05-24 Gerd Moellmann <gerd@gnu.org>
12117
12118 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12119 BSD_PGRPS are not defined.
12120
747d90ea
KH
121212000-05-24 Kenichi Handa <handa@etl.go.jp>
12122
12123 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12124 DESCRIPTION.
12125 (syms_of_charset): Avoid building same strings.
12126
716e3b88
GM
121272000-05-23 Gerd Moellmann <gerd@gnu.org>
12128
12129 * lread.c (Fload): Add a comment about the meaning of
12130 Vuser_init_file being t.
12131
12132 * puresize.h (BASE_PURESIZE): Increase to 675000.
12133
12134 * s/gnu-linux.h (setpgrp): Don't define it here because this
12135 prevents compilation on GNU/Linux systems with glib 2.2.
12136
12137 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12138 as setpgid.
427ec082 12139
9aeb39fa
EZ
121402000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12141
12142 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12143 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12144 version.
12145 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12146
29ced61b
KH
121472000-05-23 Kenichi Handa <handa@etl.go.jp>
12148
52283633 12149 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 12150
3d80f24d
KH
12151 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12152
52283633 12153 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 12154
29ced61b
KH
12155 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12156
d7e00792
KH
121572000-05-22 Kenichi Handa <handa@etl.go.jp>
12158
c9d80d38
KH
12159 * keyboard.c (read_char): Allow character codes 128..255 to be
12160 handled by input-method-function.
12161
d7e00792
KH
12162 * insdel.c (adjust_markers_for_replace): Fix previous change.
12163 (adjust_after_replace): If PREV_TEXT is nil, call
12164 adjust_markers_for_insert, not adjust_markers_for_replace.
12165
087121cc 121662000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 12167
087121cc
GM
12168 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12169 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12170 [HAVE_GRANDPT]: Define.
12171 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12172
12173 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12174 like SYSV_PTYS.
12175
12176 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12177
12178 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12179
c9671f81
KH
121802000-05-20 Kenichi Handa <handa@etl.go.jp>
12181
12182 The following changes are to handle 8-bit characters in a
12183 multibyte buffer/string without facing with byte combining
12184 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12185 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12186
12187 * Makefile.in (fns.o): Depend on charset.h.
12188
12189 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12190 convert it to unibyte.
12191 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12192
12193 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12194 apparent char boundary.
12195 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12196 0x80..0x9F to/from multibyte form.
12197
12198 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12199 to unibyte.
12200
12201 * callproc.c (Fcall_process): Always encode an argument string if
12202 it is multibyte. Setup src_multibyte and dst_multibyte members of
12203 process_coding properly.
ce75fd23 12204
c9671f81
KH
12205 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12206 SPLIT_NON_ASCII_CHAR.
12207
12208 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12209 as is.
12210 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12211
52283633 12212 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 12213 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 12214 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
12215 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12216 and eight-bit-graphic.
12217 (char_to_string): Likewise. Signal an error for too large
12218 character code.
12219 (char_printable_p): Return 0 for 8-bit characters.
12220 (update_charset_table): Update iso_charset_table only when a final
12221 character is non-negative.
12222 (find_charset_in_text): Renamed from find_charset_in_str.
12223 Arguments and return value changed. Callers changed.
12224 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12225 be -1 if CHARSET is used only internally.
12226 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12227 eight-bit-graphic.
12228 (Fcharset_after): Simplified.
12229 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12230 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12231 (multibyte_chars_in_text): Simplified by assuming there's no
12232 invalid multibyte sequence.
52283633
SM
12233 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12234 (str_as_unibyte): New functions.
12235 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
12236 (init_charset_once): Initialization for
12237 LEADING_CODE_8_BIT_CONTROL.
12238 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12239 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12240 eight-bit-control and eight-bit-graphic.
12241
52283633
SM
12242 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12243 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
12244 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12245 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12246 (CHARSET_REVERSE_CHARSET): Likewise.
12247 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12248 eight-bit-graphic.
12249 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12250 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12251 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12252 encounter an invalid multibyte sequence.
12253 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12254 sequence is always valid.
12255 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 12256 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
12257 (CHAR_STRING): For 8-bit characters, call char_to_string.
12258 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12259 multibyte sequence is always valid.
12260 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
12261 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12262 (str_as_unibyte): Extern them.
c9671f81 12263 (BCOPY_SHORT): Fix a bug.
52283633 12264 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
12265 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12266 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12267 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12268
bd4bde7f 12269 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 12270 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
12271 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12272 (EMIT_BYTES): New macros.
12273 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12274 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
12275 macros deleted.
12276 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12277 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12278 check the validity of multibyte sequence.
12279 (decode_coding_emacs_mule): New function.
12280 (encode_coding_emacs_mule): New macro.
12281 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12282 the source.
12283 (DECODE_ISO_CHARACTER): Just return a character code.
12284 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12285 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12286 EMIT_CHAR to produced decoded characters. Exit the loop only by
12287 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12288 block here.
12289 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12290 only position codes for an invalid character.
12291 (encode_designation_at_bol): Return new destination pointer. 5th
12292 arg DSTP is changed to DST.
12293 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12294 from the source by ONE_MORE_CHAR. Don't handle the case of last
12295 block here.
12296 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12297 macros deleted.
52283633
SM
12298 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12299 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
12300 TWO_MORE_BYTES to fetch a byte from the source.
12301 (encode_eol): Pay attention to coding->src_multibyte.
12302 (detect_coding, detect_eol): Preserve members src_multibyte and
12303 dst_multibyte.
12304 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12305 (encoding_buffer_size): Set magnification to 3 for all coding
12306 systems that require encoding.
12307 (ccl_coding_driver): For decoding, be sure that the result is
12308 valid multibyte sequence.
12309 (decode_coding): Initialize coding->errors and coding->result.
12310 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12311 and raw-text, always call decode_eol. Handle the case of last
12312 block here. If not coding->dst_multibyte, convert the resulting
12313 sequence to unibyte.
12314 (encode_coding): Initialize coding->errors and coding->result.
12315 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12316 and raw-text, always call encode_eol. Handle the case of last
12317 block here.
12318 (shrink_decoding_region, shrink_encoding_region): Detect cases
12319 that we can't skip data more rigidly.
12320 (code_convert_region): Setup src_multibyte and dst_multibyte
12321 members of coding. For decoding, if the buffer is multibyte,
12322 convert the source sequence to unibyte in advance. For encoding,
12323 if the buffer is multibyte, convert the resulting sequence to
12324 multibyte afterward.
12325 (run_pre_post_conversion_on_str): New function.
12326 (code_convert_string): Deleted and divided into the following two.
12327 (decode_coding_string, encode_coding_string): New functions.
12328 (code_convert_string1, code_convert_string_norecord): Call one of
12329 above.
12330 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12331 MAKE_NON_ASCII_CHAR.
52283633
SM
12332 (Fset_terminal_coding_system_internal)
12333 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
12334 and dst_multibyte members.
12335 (init_coding_once): Initialize iso_code_class with new enum
12336 ISO_control_0 and ISO_control_1.
12337
12338 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12339 devided into ISO_control_0 and ISO_control_1.
12340 (struct coding_system): New members src_multibyte, dst_multibyte,
12341 errors, and result. Delete member fake_multibyte.
12342 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12343 nonzero.
12344 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12345 nonzero.
12346
12347 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12348 (Faset): Likewise.
12349
12350 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12351 multibyte form.
12352 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12353 combining occurs.
12354 (Ftranspose_region): Delete codes for handling byte combining.
12355
12356 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12357 dst_multibyte members of coding. On handling REPLACE on unibyte
12358 buffer, convert the result of decode_coding to unibyte. On
12359 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 12360 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
12361 multibyteness of the source (buffer or string).
12362
12363 * fns.c (concat): Handle 8-bit characters correctly.
12364 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12365 unibyte in the result.
12366 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12367 valid multibyte form in the result.
12368 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12369 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12370 return -1, signal an error.
12371 (base64_encode_1): New arg MULTIBYTE. Get each character by
12372 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12373 character is found, return -1.
12374 (Fbase64_decode_region): Delete codes for handling byte-combining.
12375 Treat each decoded byte as a unibyte character.
12376 (Fbase64_decode_string): Return unibyte string.
12377 (Fcompare_strings, concat, string_byte_to_char): Use
12378 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12379 FETCH_STRING_CHAR_ADVANCE.
12380 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12381 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12382
12383 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12384 SPLIT_NON_ASCII_CHAR.
12385 (fontset_ref_via_base, fontset_set): Likewise
12386
12387 * insdel.c (adjust_markers_for_record_delete): Deleted.
12388 (adjust_markers_for_insert): Argument changed. Caller changed.
12389 (adjust_markers_for_replace): Likewise.
52283633
SM
12390 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12391 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
12392 (copy_text): Delete unused local varialbe c_save. For converting
12393 to multibyte, be sure to make all 8-bit characters in valid
12394 multibyte form.
12395 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
12396 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12397 (adjust_after_replace, replace_range, del_range_2)
c9671f81 12398 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
12399 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12400 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
12401 handling byte combining.
12402 (adjust_before_replace): Deleted.
427ec082 12403
c9671f81
KH
12404 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
12405 SPLIT_NON_ASCII_CHAR.
12406 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 12407 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
12408 (Fkey_description): Likewise.
12409
12410 * lread.c (read1): On reading multibyte string, be sure to make
12411 all 8-bit chararacters in valid multibyte form.
12412 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12413
12414 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
12415 unconditionally.
12416
12417 * process.c (Fstart_process): GCPRO current_dir before calling
12418 Ffind_operation_coding_system. Encode arguments here.
12419 (create_process): Don't encode arguments here. Setup
12420 src_multibyte and dst_multibyte members of struct coding.
12421 (read_process_output): Setup src_multibyte and dst_multibyte
12422 members of struct coding. If the output is to multibyte buffer,
12423 always decode the output of the process. Adjust the
52283633 12424 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
12425 (send_process): Setup coding->src_multibyte according to the
12426 multibyteness of the source.
12427
52283633 12428 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
12429 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
12430 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
12431
52283633 12432 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
12433
12434 * w16select.c (Fw16_set_clipboard_data): Setup members
12435 src_multibyte and dst_multibyte of coding. Adjusted for the
12436 change for find_charset_in_str.
12437 (Fw16_get_clipboard_data): Likewise.
12438
12439 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
12440 dst_multibyte of coding.
12441 (x_to_w32_font): Likewise.
12442
12443 * w32select.c (Fw32_set_clipboard_data): Setup members
12444 src_multibyte and dst_multibyte of coding. Adjusted for the
12445 change for find_charset_in_str.
12446 (Fw32_get_clipboard_data): Likewise.
12447
12448 * xdisp.c (get_next_display_element): Handle 8-bit characters
12449 correctly.
52283633
SM
12450 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
12451 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
12452
12453 * xselect.c (selection_data_to_lisp_data): Setup members
12454 src_multibyte and dst_multibyte of coding. Adjusted for the
12455 change for find_charset_in_str.
12456 (lisp_data_to_selection_data): Likewise.
12457
5f64c9e0
GM
124582000-05-19 Gerd Moellmann <gerd@gnu.org>
12459
52283633 12460 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 12461
5f64c9e0
GM
12462 * dispextern.h (Vimage_types): Add extern declaration.
12463
12464 * xdisp.c (Vimage_types): Moved here from xfns.c.
12465 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
12466
12467 * xfns.c (Vimages_types): Moved to xdisp.c.
12468 (syms_of_xfns): Move `image-types' to xdisp.c.
12469
12470 * w32fns.c (Vimage_types): Removed.
12471 (syms_of_w32fns): Remove `image-types'.
12472
813086ea
KH
124732000-05-18 Kenichi Handa <handa@etl.go.jp>
12474
12475 * fns.c (map_char_table): Pay attention to character number of
12476 charset. Check the validity of charset at the first level. For
12477 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
12478 the default value.
12479
12480 * fontset.c: Include "buffer.h".
12481 (fs_load_font): If the face has fontset, record the face ID in
12482 that fontset.
12483 (Finternal_char_font): New function.
12484 (accumulate_font_info): New function.
12485 (Ffontset_info): Rewritten for the new fontset implementation.
12486 (syms_of_fontset): Register Vdefault_fontset in the first element
12487 of Vfontset_table. Include Vdefault_fontset in
12488 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12489 function.
12490
bdaebbf0
DL
124912000-05-16 Dave Love <fx@gnu.org>
12492
12493 * m/iris5d.h: Deleted -- unused.
12494
cb613bb8
GM
124952000-05-16 Gerd Moellmann <gerd@gnu.org>
12496
b15f3b77
GM
12497 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12498 `invalid' instead of `illegal'.
12499
12500 * indent.c (Fmove_to_column): When ending within a tab, insert
12501 spaces first so that markers at the end of the tab get adjusted.
12502
835c1b36
GM
12503 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12504 buffer list that wasn't selected in that frame.
12505
cb613bb8
GM
12506 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12507 is needed on mescaline, use a 2 char prefix, and call
12508 make_temp_name with second arg non-zero.
12509
12510 * fileio.c (make_temp_name): New function, extracted from
12511 Fmake_temp_name.
12512 (Fmake_temp_name): Use it.
12513
f685bea9
EZ
125142000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12515
52283633 12516 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 12517
a1b8d58b
GM
125182000-05-15 Gerd Moellmann <gerd@gnu.org>
12519
12520 * Makefile.in (lisp): Add env.elc.
12521
12522 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12523
a265079f
GM
125242000-05-12 Gerd Moellmann <gerd@gnu.org>
12525
12526 * search.c (Freplace_match): Handle case of `\N' in the
12527 replacement when there's no group N.
12528
da4496b6
GM
125292000-05-11 Gerd Moellmann <gerd@gnu.org>
12530
0ace421a
GM
12531 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12532 of the message to message_dolog.
12533
1172eb8d
GM
12534 * keyboard.c (read_char): Don't clear current message for help
12535 events; let the code handling help events handle this. Change
12536 code detecting help events that should be ignored.
12537
da4496b6
GM
12538 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12539 we're interating over a string.
12540
0623e40f
DL
125412000-05-09 Dave Love <fx@gnu.org>
12542
12543 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12544 that offset before writing. Move gcpro region past call of
12545 Ffile_regular_p.
12546
bae2503b
DL
125472000-05-04 Dave Love <fx@gnu.org>
12548
12549 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12550
ec82fb2f
GM
125512000-05-04 Gerd Moellmann <gerd@gnu.org>
12552
12553 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12554 of inserted characters when BUF equals the current buffer, and PT
12555 is in front of or equal to FROM.
12556
cbf18892
GM
125572000-05-03 Gerd Moellmann <gerd@gnu.org>
12558
4ff40dd0
GM
12559 * xdisp.c (handle_single_display_prop): If display property value
12560 is invalid, or something not supported on the frame, restore
12561 iterator's position to what it was initially. Make sure to return
12562 0 for invalid and unsupported property values.
12563
cbf18892
GM
12564 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12565 that x_per_char_metric returns null.
12566
1b0672c3
GM
125672000-05-02 Gerd Moellmann <gerd@gnu.org>
12568
576da55d
GM
12569 * xterm.h (struct face): Add forward declaration.
12570 (struct image): Ditto.
12571 (image_ascent): Add prototype.
12572
12573 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12574 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12575 image_ascent instead of using IMAGE_ASCENT.
12576
12577 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12578 (IMAGE_ASCENT): Removed.
12579
12580 * xfns.c (Qcenter): New variable.
12581 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12582 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12583 (image_ascent): New function.
12584 (lookup_image): Recognize `:ascent center'.
12585 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12586 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12587 (xbm_load): Don't set image's ascent here.
12588 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12589 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12590 check ascent values here.
12591 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12592 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12593 (syms_of_xfns): Initialize Qcenter.
12594
1b0672c3
GM
12595 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12596 to the limits, increase the limits.
12597
0d7811ed
KH
125982000-05-01 Kenichi Handa <handa@etl.go.jp>
12599
12600 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 12601 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 12602
a943a5ca
GM
126032000-04-28 Gerd Moellmann <gerd@gnu.org>
12604
12605 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12606 taller than the window.
12607
5dba1e29
KH
126082000-04-28 Kenichi Handa <handa@etl.go.jp>
12609
12610 * xfaces.c (realize_x_face): Fix the argument of the second
12611 xassert. BASE_FACE may not be a face for ASCII.
12612
353964e3
GM
126132000-04-27 Gerd Moellmann <gerd@gnu.org>
12614
c76e04a8
GM
12615 * print.c (print_object): Treat print-length < 0 as nil.
12616
12617 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12618
12619 * s/freebsd.h (TERMCAP_OBJ): Removed.
12620 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12621
12622 * lread.c (read1): Don't treat period followed by certain
12623 characters as symbol start.
12624
12625 * xfns.c (slurp_file): New function.
12626 (xbm_image_p): Handle case of in-memory XBM files.
12627 (xbm_scan): Rewritten to work on memory buffers instead of files.
12628 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12629 Work on memory buffers instead of files. If DATA is null test
12630 if buffer looks like an in-memory XBM file.
12631 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12632 memory buffers instead of files.
12633 (xbm_file_p): New function.
12634 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12635
353964e3
GM
12636 * lread.c (end_of_file_error): New function.
12637 (read1): Call it instead of signaling `end-of-file' directly.
12638
427ec082 12639 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
12640 with Fprinc instead of Fprin1.
12641
24d744ac
KR
126422000-04-26 Ken Raeburn <raeburn@gnu.org>
12643
12644 * window.c (freeze_window_start): Check that minibuffer scroll
12645 window isn't nil before extracting the window structure pointer
12646 from it.
12647
12648 * undo.c (record_delete): If we hit the end of the undo list, stop
12649 picking elements apart.
12650
7464346d
GM
126512000-04-26 Gerd Moellmann <gerd@gnu.org>
12652
12653 * xdisp.c (display_line): If lines are continued, restore
12654 iterator's ascent/descent information to the values before the
12655 first glyph not fitting on the line.
12656
612839b6
GM
126572000-04-25 Gerd Moellmann <gerd@gnu.org>
12658
12659 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 12660 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
12661
12662 * dispnew.c (increment_matrix_positions): Renamed from
12663 increment_glyph_matrix_buffer_positions.
12664 (increment_row_positions): Renamed from
12665 increment_glyph_row_buffer_positions.
12666
12667 * dispextern.h: Change names of renamed functions from dispnew.c
12668 in prototypes.
12669
cc181e95
GM
126702000-04-24 Gerd Moellmann <gerd@gnu.org>
12671
abfcc168
GM
12672 * fileio.c (Fdo_auto_save): Create directories for auto-save
12673 list file if necessary.
12674
cc181e95
GM
12675 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12676 from buffer or frame.
12677 (automatic_hscrolling_p): New variable.
12678 (hscroll_windows): Scroll windows horizontally only if automatic
12679 hscrolling is allowed.
12680 (syms_of_xdisp): New variable `automatic-hscrolling'.
12681
12682 * frame.h (struct frame): Add member extra_line_spacing.
12683
12684 * xfns.c (x_set_line_spacing): New function.
12685 (Fx_create_frame): Set line spacing from resources.
12686 (Qline_spacing): New variable.
12687 (syms_of_xfns): Initialize Qline_spacing.
427ec082 12688
cc181e95
GM
12689 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12690
12691 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12692 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 12693 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
12694 extra_line_spacing from default value.
12695 (init_buffer_once): Initialize default value of extra_line_spacing.
12696
12697 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12698 and extra3.
12699
12700 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12701 prompt_width. Add extra line spacing.
12702
12703 * term.c (produce_glyphs): Remove reference to struct it's
12704 prompt_width.
12705
12706 * dispextern.h (struct it): Remove member prompt_width, add
12707 extra_line_spacing.
12708
58827478
GM
127092000-04-22 Gerd Moellmann <gerd@gnu.org>
12710
12711 * dispnew.c (update_frame_line): When writing a whole line, make
12712 sure cursor is in the right row afterwards, otherwise a use of
12713 capability `ch' in cmgoto might leave the cursor in the row below.
12714
25a87f42
GM
127152000-04-21 Gerd Moellmann <gerd@gnu.org>
12716
12717 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12718
12719 * keyboard.c (timer_check): Fix typo in comment.
12720
54edf5c2
KH
127212000-04-21 Kenichi Handa <handa@etl.go.jp>
12722
12723 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12724 name change: ch -> character.
12725
3a64eef5
GM
127262000-04-20 Gerd Moellmann <gerd@gnu.org>
12727
12728 * keyboard.c (echo_message_buffer): New variable.
12729 (echo_now): Set echo_message_buffer to the echo area buffer used
12730 to display the echo.
12731 (cancel_echoing): Reset echo_message_buffer to nil.
12732 (read_char): Code rewritten that handles canceling an echo or
12733 echoing a dash, respectively.
12734
12735 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12736 directory doesn't exist.
12737
6142fdcb
DL
127382000-04-19 Dave Love <fx@gnu.org>
12739
12740 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
12741 (concat): Don't allow numeric args.
12742 (Fconcat): Doc change.
6142fdcb 12743
ac6b5352
SM
127442000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12745
12746 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12747 instead define end_match(1|2) more carefully.
12748 Use GET_CHAR_BEFORE_2 for `begline'.
12749
cb9215e4
GM
127502000-04-19 Gerd Moellmann <gerd@gnu.org>
12751
5e3dac3f
GM
12752 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12753 on 64-bit systems where NULL is defined as `0'.
12754
12755 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12756 the `variable argument list' to make it work on Alpha.
12757
cb9215e4
GM
12758 * m/alpha.h (_LP64) [!_LP64]: Define.
12759 (ORDINARY_LINK): Define for NetBSD.
12760
12761 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 12762
f532dca0
DL
127632000-04-19 Dave Love <fx@gnu.org>
12764
c750667e
DL
12765 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12766 change.
12767
12768 * Makefile.in (LIBS): Don't use.
12769 (GETLOADAVG_OBJ): Define again.
12770 (otherobj): Add GETLOADAVG_OBJ.
12771
f532dca0
DL
12772 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12773
1c7e22fd
GM
127742000-04-18 Gerd Moellmann <gerd@gnu.org>
12775
f6d3257b
GM
12776 * lread.c (read_filtered_event): Cancel and start busy cursor.
12777
427ec082 12778 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
12779 that the per-character metrics may be null.
12780
e10f64e7
GM
127812000-04-17 Gerd Moellmann <gerd@gnu.org>
12782
0daee095
GM
12783 * buffer.c (clone_per_buffer_values): New function.
12784 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12785 clone_per_buffer_values if CLONE is not nil.
12786
e10f64e7
GM
12787 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12788
38687d43
DL
127892000-04-16 Dave Love <fx@gnu.org>
12790
12791 * Makefile.in: Remove obsolete localcpp stuff.
12792 (GETLOADAVG_OBJ): Don't define.
12793 (obj): Move LIBOBJS...
12794 (otherobj): ... to here.
12795 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12796 whitespace-only lines after the continuation (Irix).
12797
c21c7262
GM
127982000-04-14 Gerd Moellmann <gerd@gnu.org>
12799
12800 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12801
12802 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12803
314767c0
DL
128042000-04-14 Dave Love <fx@gnu.org>
12805
12806 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12807 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12808 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12809 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12810 NLIST_STRUCT.
12811
12812 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12813 autoconfiscated HAVE_GETLOADAVG.
12814
12815 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12816 BROKEN_MKTIME.
12817
a2522dca
GM
128182000-04-14 Gerd Moellmann <gerd@gnu.org>
12819
12820 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 12821 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 12822
33744b5d
DL
128232000-04-14 Dave Love <fx@gnu.org>
12824
c21c7262 12825 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
12826 (INTERVAL_SRC): Convert to make variable.
12827 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12828 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12829 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12830 add LIBOBJS.
12831 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12832 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12833 (shortlisp): Add facemenu, float-sup, frame.
12834 (SOME_MACHINE_LISP): Remove them from here.
12835 (LIBES): Change unused LDLIBS to autoconf LIBS.
12836
12837 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12838
9d3d5916
KH
128392000-04-14 Kenichi Handa <handa@etl.go.jp>
12840
12841 * composite.c (update_compositions): If FROM and TO are not in a
12842 valid range, do nothing.
12843
198e3c7a
GM
128442000-04-13 Gerd Moellmann <gerd@gnu.org>
12845
52283633 12846 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 12847
52283633 12848 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
12849
12850 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
12851 as TERMCAP_OBJ.
12852
055a28c9
EZ
128532000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
12854
12855 * fileio.c (a_write): Remove redundant semi-colons.
12856 (e_write): Return -1 if failed to write all the data.
12857 This fixes the changes made at 1999-12-15.
12858
f5c75033
DL
128592000-04-12 Dave Love <fx@gnu.org>
12860
12861 * fns.c (mapcar1): Test for null vals to support mapc.
12862 (Fmapc): New function.
12863
0c3cfc51
EZ
128642000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
12865
12866 * msdos.c (NUM_MOUSE_BUTTONS): Define.
12867 (IT_frame_up_to_date): Support the buffer local value of
12868 cursor-type, if defined.
12869
33465a31
DL
128702000-04-10 Dave Love <fx@gnu.org>
12871
12872 * editfns.c (preceding-char, following-char): Doc fix.
12873
6ed56568
KR
128742000-04-10 Ken Raeburn <raeburn@gnu.org>
12875
12876 * Makefile.in (temacs): Revert 2000-03-12 change.
12877
7cf80d4e
JR
128782000-04-10 Jason Rumney <jasonr@gnu.org>
12879
12880 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
12881
34f3f342
GM
128822000-04-10 Gerd Moellmann <gerd@gnu.org>
12883
1a1b1895
GM
12884 * xdisp.c (setup_echo_area_for_printing): Choose an echo
12885 area buffer, if it's not set up yet.
12886
34f3f342
GM
12887 * indent.c (compute_motion): Set immediate_quit.
12888
be0dbdab
GM
128892000-04-09 Gerd Moellmann <gerd@gnu.org>
12890
52283633 12891 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
12892 (realize_tty_face): Suppress boldness if colors are the inverse of
12893 the default colors, and tty_suppress_bold_inverse_default_colors_p
12894 is set.
12895 (Ftty_suppress_bold_inverse_default_colors): New function.
12896 (syms_of_xfaces): Defsubr it.
12897
be0dbdab
GM
12898 * buffer.c (Frestore_buffer_modified_p): New function.
12899 (syms_of_buffer): Defsubr it.
12900
e8413c3b
KR
129012000-04-08 Ken Raeburn <raeburn@gnu.org>
12902
87f67317
KR
12903 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
12904 charset id (int) argument, not a charset (Lisp_Object).
12905
e8413c3b
KR
12906 * coding.h (code_convert_string): Declare.
12907 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
12908 object, as the fourth argument to code_convert_string.
12909
52283633 12910 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
12911 (Fset_fontset_font): Use EQ to compare lisp objects.
12912
7c752c80
KR
129132000-04-05 Ken Raeburn <raeburn@gnu.org>
12914
c0333abc
KR
12915 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
12916 a pointer that looks like a lisp object.
12917 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
12918 zero, instead see whether it's an integer object, since they can't
12919 have intervals.
12920 (GET_INTERVAL_OBJECT): Simply assign to the destination.
12921
52283633
SM
12922 * dispnew.c (allocate_matrices_for_frame_redisplay)
12923 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
12924 to convert between (unsigned) int values and lisp integers.
12925 * keyboard.c (read_key_sequence): Likewise.
12926 * lread.c (substitute_object_recurse): Likewise.
12927 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
12928 * minibuf.c (do_completion, Fminibuffer_complete_word)
12929 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
12930 * term.c (produce_special_glyphs): Likewise.
12931
12932 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
12933 * print.c (print_preprocess, print_object): Likewise.
12934
12935 * search.c (compile_pattern): Use NILP when checking for nil.
12936
74e49b38
KR
12937 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
12938 __OPTIMIZE__]: Provide a GNU C macro version that handles
12939 lisp-object unions.
12940 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
12941 field, to better cope with ENABLE_CHECKING and calls that modify a
12942 Lisp_Object using its old value.
12943
685e5ed2
GM
129442000-04-04 Gerd Moellmann <gerd@gnu.org>
12945
c407c570
GM
12946 * window.c (compare_window_configurations): Signal an error
12947 if parameters C1 or C2 aren't window configurations.
12948
685e5ed2
GM
12949 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
12950 AFTER_POTENTIAL_GC calls around calls to functions that can
12951 signal an error and thus invoke the debugger.
12952
587a49ab
GM
129532000-04-03 Gerd Moellmann <gerd@gnu.org>
12954
62f20204
GM
12955 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
12956 an error if decoding fails.
12957
587a49ab
GM
12958 * keyboard.c (lispy_mouse_names): Variable removed.
12959 (Vlispy_mouse_stem): New variable.
12960 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
12961 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
12962 for any mouse button number. Increase size of mouse_syms and
12963 button_down_location as needed. Call modify_event_symbol with
12964 different arguments.
12965 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
12966 Call modify_event_symbol with different arguments.
12967 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
12968 for any button number. Call modify_event_symbol with different
12969 arguments.
12970 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
12971 Accept a string for NAME_ALIST_OR_STEM.
12972
12973 * lisp.h (larger_vector): Add prototype.
12974
12975 * fns.c (larger_vector): Make externally visible.
12976
12977 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
12978
2d1675e4
SM
129792000-04-02 Stefan Monnier <monnier@cs.yale.edu>
12980
12981 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
12982 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
12983 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
12984 we are between str1 and str2.
12985 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
12986 (PATFETCH): Use `TRANSLATE'.
12987 (PATFETCH_RAW): Fetch multibyte char if applicable.
12988 (PATUNFETCH): Remove.
12989 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
12990 When writing a char, write it directly into the pattern buffer rather
12991 than going needlessly through a temp char-array.
12992 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
12993 multibyte magic and remove the useless `#ifdef emacs'.
12994 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
12995 buffer.
12996
12997 * regex.h (struct re_pattern_buffer): Make field `multibyte'
12998 conditional on `emacs'.
12999
13000 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13001
cc2d8c6b
KR
130022000-04-01 Ken Raeburn <raeburn@gnu.org>
13003
13004 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13005 non-union-type versions of XMARK and friends here, because XMARK
13006 and friends won't work on an integer field if NO_UNION_TYPE is not
13007 defined.
52283633 13008 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 13009
52283633 13010 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
13011 (syms_of_composite): Delete local var NARGS, pass an int as first
13012 argument to Fmake_hash_table.
13013
2387b382
KR
13014 * editfns.c (text_property_stickiness): Use NILP to test
13015 Lisp_Object boolean value.
13016 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
13017 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13018 problems reading from and changing the same lisp value in an
13019 XSETSTRING call.
13020
27660e89
GM
130212000-04-01 Gerd Moellmann <gerd@gnu.org>
13022
13023 * term.c (TN_no_color_video): New variable.
13024 (term_init): Intitialize TN_no_color_video.
13025 (enum no_color_bit): New enumeration.
13026 (MAY_USE_WITH_COLORS_P): New macro.
13027 (turn_on_face): Use it to determine if attributes may be used
13028 combined with colors.
13029
3578db3c
KR
130302000-04-01 Ken Raeburn <raeburn@gnu.org>
13031
13032 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 13033 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
13034 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13035 proper accessor macros.
13036 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13037 (grow_mini_window): Fix typo getting int value of root->height.
13038
6fc556fd
KR
13039 * xdisp.c (compute_string_pos): Fix order of arguments to
13040 string_pos_nchars_ahead.
13041 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13042 count arg to variable-arg routines like Frun_hook_with_args and
13043 Fformat.
587a49ab
GM
13044 (back_to_previous_visible_line_start)
13045 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
13046 fixed-arg routines like Fget_char_property and Fmake_string.
13047 (reconsider_clip_changes): Use XINT when comparing integer lisp
13048 objects, or passing them as int arguments.
587a49ab
GM
13049 (mark_window_display_accurate, insert_left_trunc_glyphs)
13050 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
13051 storing or passing integer values as lisp objects.
13052 (set_cursor_from_row, highlight_trailing_whitespace): Use
13053 INTEGERP, not implicit test against zero, for glyph object.
13054 (try_window_id): Don't use make_number when we want an int value.
13055
13056 * xfaces.c (xlfd_symbolic_value): Make last argument a
13057 Lisp_Object, to be consistent with callers.
13058 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13059 (lface_hash): Apply XFASTINT to lisp values before folding in.
13060
13061 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13062 fill in window width and height. Pass an int, not a lisp object,
13063 as first arg to Finsert.
13064
6e7b2457
GM
130652000-04-01 Gerd Moellmann <gerd@gnu.org>
13066
610d841e
GM
13067 * xfaces.c (realize_basic_faces): Block input while realizing
13068 the faces.
13069
6e7b2457
GM
13070 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13071
13072 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13073
aa110c0c
GM
130742000-03-31 Gerd Moellmann <gerd@gnu.org>
13075
13076 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 13077 or ASCII, handle case that per-char metric is null.
aa110c0c 13078
8801a864
KR
130792000-03-30 Ken Raeburn <raeburn@gnu.org>
13080
c6129d7e
KR
13081 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13082
52283633
SM
13083 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13084 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
13085 pointer, using eassert.
13086 * frame.h (XFRAME): Likewise.
13087
52283633
SM
13088 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13089 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13090 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 13091 * data.c (set_internal): Likewise.
52283633
SM
13092 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13093 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
13094 * fileio.c (auto_save_1): Likewise.
13095 * insdel.c (check_markers): Likewise.
13096 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13097 * undo.c (record_insert): Likewise.
13098 * vmsproc.c (child_sig): Likewise.
13099 * window.c (unshow_buffer, window_loop): Likewise.
13100 * xterm.c (x_erase_phys_cursor): Likewise.
13101
8e7af858
GM
131022000-03-30 Gerd Moellmann <gerd@gnu.org>
13103
13104 * xfns.c (free_image_cache): Free the cache structure itself
13105 last, after all its members have been freed.
13106
13107 * lisp.h (xstrdup): Add prototype.
13108
13109 * alloc.c (xstrdup): Moved here from xfaces.c.
13110 (allocating_for_lisp): Variable removed.
52283633 13111 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
13112
13113 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13114 of Fsymbol_value.
13115 (xstrdup): Moved to alloc.c.
13116
e0b8c689
KR
131172000-03-29 Ken Raeburn <raeburn@gnu.org>
13118
b96f9fb7
KR
13119 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13120
13121 * emacs.c (main): Fix sense of no-loadup test.
13122
e0b8c689
KR
13123 * config.in (ENABLE_CHECKING): Undef.
13124
13125 * lisp.h (struct interval): Replace "parent" field with a union of
13126 interval pointer and Lisp_Object; add new bitfield to use as
13127 discriminant. Change other flag fields to bitfields.
13128 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
13129 is defined and the supplied test fails, print a message and abort.
13130 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
13131
13132 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13133 pointers; abort if the value looks like a lisp object.
52283633
SM
13134 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13135 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
13136 Modify for new interval parent definition.
13137
52283633
SM
13138 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13139 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
13140 addressable lisp object in the interval structure.
13141 (die): New function.
13142 (suppress_checking): New variable.
13143
13144 * intervals.c (interval_start_pos): Just return 0 if there's no
13145 parent object.
13146
f83c5440
GM
131472000-03-29 Gerd Moellmann <gerd@gnu.org>
13148
13149 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13150 and earlier Emacs versions.
13151
13152 * keyboard.c (Ftop_level): Cancel busy-cursor.
13153
13154 * eval.c (call_debugger): Cancel busy-cursor.
13155
fdce64ff
KH
131562000-03-29 Kenichi Handa <handa@etl.go.jp>
13157
13158 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 13159 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 13160
f6a3f532
SM
131612000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13162
13163 * regex.c (analyse_first): New function obtained by ripping out most
13164 of re_compile_fastmap and generalizing it a little bit so that it
13165 can also just return whether a given (sub)pattern can match the empty
13166 string or not.
13167 (regex_compile): Use `analyse_first' to decide whether the loop-check
13168 needs to be done or not for *, +, *? and +? (the loop check is costly
13169 for non-greedy repetition).
13170 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13171
e9b309ac
DL
131722000-03-28 Dave Love <fx@gnu.org>
13173
52283633 13174 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 13175
e9b309ac
DL
13176 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13177
ed0767d8
SM
131782000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13179
13180 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13181 an expression.
13182 (enum re_opcode_t): Update description of succeed_n.
13183 (PATFETCH): Always define.
13184 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13185 operators, char classes, shy-groups and intervals).
13186 Optimize special cases of intervals so as to only use succeed_n and
13187 jump_n when really needed.
13188 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13189 that we don't have to handle the special cases any more.
13190 Simplify on_failure_jump handling as well.
13191
e11e7e46
JR
131922000-03-28 Jason Rumney <jasonr@gnu.org>
13193
13194 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13195
88faab89
GM
131962000-03-27 Gerd Moellmann <gerd@gnu.org>
13197
182ff242
GM
13198 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13199
13200 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 13201
182ff242
GM
13202 * alloc.c (mark_maybe_object): New function.
13203 (mark_memory): Use it.
13204 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13205 (setjmp_tested_p, longjmp_done): New variables.
13206 (test_setjmp): New function.
13207 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13208 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13209
c1005d06
GM
13210 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13211 to DEC_TEXT_POS and INC_TEXT_POS.
13212
13213 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13214 with parameter MULTIBYTE_P.
13215
52283633 13216 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 13217
7439e5b9 13218 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
13219 buffers because it looks for multibyte character byte sequences
13220 which don't exist in unibyte text.
7439e5b9 13221
d9c545da
GM
13222 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13223
11fd416e 13224 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
13225 [DEBUG_X_COLORS]: New functions.
13226 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13227
13228 * xfns.c (x_set_cursor_color): Get color reference counts right.
13229
13230 * xterm.c (x_copy_color): New function.
13231 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13232
13233 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13234 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13235 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13236 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13237 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13238 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13239 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13240 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13241 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13242 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13243
11fd416e
GM
13244 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13245 names for handling per-buffer variables.
d9c545da
GM
13246
13247 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13248 instead of MAX_BUFFER_LOCAL_VARS.
13249 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13250
13251 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13252
88faab89
GM
13253 * xfns.c (x_specified_cursor_type): New function.
13254 (x_set_cursor_type): Use it.
13255
13256 * buffer.h (struct buffer): Add cursor_type.
13257
d80f42b7
SM
132582000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13259
13260 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
13261 (print_partial_compiled_pattern, re_compile_fastmap):
13262 Handle new opcode.
d80f42b7
SM
13263 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13264 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13265 executing it as well as when popping it off the stack to find infinite
13266 loops in non-greedy repetition operators.
13267
89e80928
GM
132682000-03-26 Gerd Moellmann <gerd@gnu.org>
13269
3d4ff2dd
GM
13270 * doc.c (Qfunction_documentation): New variable.
13271 (syms_of_doc): Initialize Qfunction_documentation.
13272 (Fdocumentation): If FUNCTION is a symbol with non-nil
13273 `function-documentation' property, return a documentation derived
13274 from that.
13275
bd96bd79
GM
13276 * buffer.c (syms_of_buffer): Add default-cursor-type.
13277 (init_buffer_once): Don't let cursor_type have a local value
13278 in every buffer.
13279
19d1bc27
GM
13280 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13281 on buffer-local value of cursor_type.
13282 (x_draw_bar_cursor): Add parameter WIDTH.
13283
13284 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13285 (init_buffer_once): Set default cursor_type value to t.
13286 Mark cursor_type as local everywhere.
13287 (syms_of_buffer): New per-buffer variable cursor-type.
13288
89e80928
GM
13289 * buffer.h (struct buffer): Remove member local_var_flags,
13290 add local_flags.
13291 (MAX_BUFFER_LOCAL_VARS): New macro.
13292 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13293 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13294 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13295 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13296
52283633 13297 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
13298
13299 * category.c (Fset_category_table): Use new macros for per-buffer
13300 variables.
13301
13302 * buffer.c (buffer_permanent_local_flags): Make a char array.
13303 (max_buffer_local_idx): New variable.
13304 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13305 for new handling of per-buffer variables.
13306 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13307 (init_buffer_once): Initialize per-buffer vars differently.
13308 Set max_buffer_local_idx.
13309
13310 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13311 variables.
13312
52283633 13313 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
13314
13315 * data.c (do_symval_forwarding, store_symval_forwarding)
13316 (find_symbol_value, set_internal, default_value, Fset_default)
13317 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13318 per-buffer variables.
13319
13320 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13321
9a0dd3dc
GM
133222000-03-24 Gerd Moellmann <gerd@gnu.org>
13323
b68c375f
GM
13324 * xterm.c (x_term_init): Unblock input around call1 of
13325 Qvendor_specific_keysyms.
13326
9a0dd3dc
GM
13327 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13328 (find_defun_start): Consider an open parenthesis in column 0
13329 a defun start only if open_paren_in_column_0_is_defun_start is set.
13330 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13331
7973e637
SM
133322000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13333
13334 * eval.c (Fautoload): Add entry in load-history (if after dump).
13335 * lread.c (load-history): Update docstring.
13336
39210e90
GM
133372000-03-24 Gerd Moellmann <gerd@gnu.org>
13338
13339 * indent.c (Fvertical_motion): Always use the current buffer.
13340 Temporarily change the window's buffer, if necessary.
13341
72db3ab5
GM
133422000-03-23 Gerd Moellmann <gerd@gnu.org>
13343
13344 * xterm.c (fast_find_position): Make sure not to consider rows
13345 not visible in the window.
13346
990b2375
SM
133472000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13348
13349 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13350 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13351
ff4df011
JR
133522000-03-22 Jason Rumney <jasonr@gnu.org>
13353
13354 * w32menu.c (single_submenu): Set help string to NULL if none.
13355 (w32_menu_show): Set help string correctly.
13356 (add-menu-item): Set help string in MIIM_DATA for menu item.
13357 Load SetMenuItemInfoA explicitly.
13358 (w32_menu_display_help): New function.
427ec082 13359
ff4df011
JR
13360 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13361 (QCdata): Moved to xdisp.c.
13362
13363 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13364 (Vw32_charset_to_codepage_alist): Removed.
13365 (Vw32_charset_info_alist): New variable.
52283633
SM
13366 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13367 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13368 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
13369 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13370 with TODO comment.
13371 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13372 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13373 Define Vw32_charset_info_alist and w32_charset symbols.
13374
133752000-03-22 Jason Rumney <jasonr@gnu.org>
13376
13377 * makefile.nt (w32bdf.obj): Update dependencies.
13378
13379 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13380
13381 * w32fns.c: Include fontset.h after dispextern.h.
13382 (Fx_create_frame): Do not create fontset.
13383 (w32_load_system_font): Doc fix.
13384 (Fx_close_connection): Free full_name if it is not shared.
13385
13386 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
13387 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13388 Callers updated.
ff4df011
JR
13389 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13390 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13391 (w32_font_is_double_byte): New function, needs body.
13392 (x_append_glyph): Set glyph->glyph_not_available_p.
13393 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13394 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13395 character, convert it to a unibyte character.
13396 (struct glyph_string): Delete member `charset'.
13397 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
13398 calculating it is found.
13399 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13400 the case that per char metric is not available correctly.
13401 (x_fill_glyph_string): Handle the case that the specific glyph is
13402 not available correctly.
13403 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13404 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13405 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13406 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13407 fontset. Don't call FS_LOAD_FONT.
13408
439d5cb4
KR
134092000-03-22 Ken Raeburn <raeburn@gnu.org>
13410
13411 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
13412 (INT_LISPLIKE): New macro.
13413 (NULL_INTERVAL_P): Use it.
52283633
SM
13414 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
13415 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
13416 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
13417
13418 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
13419 explicit references to "parent" field of struct interval and
13420 associated unclean type conversions.
52283633
SM
13421 * intervals.c (create_root_interval, root_interval, rotate_right)
13422 (rotate_left, balance_possible_root_interval, split_interval_right)
13423 (split_interval_left, interval_start_pos, find_interval)
13424 (next_interval, previous_interval, update_interval)
13425 (adjust_intervals_for_insertion, delete_node, delete_interval)
13426 (adjust_intervals_for_deletion, merge_interval_right)
13427 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
13428 (copy_intervals_to_string): Likewise.
439d5cb4
KR
13429 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
13430 Likewise.
13431 * syntax.c (update_syntax_table): Likewise.
13432
13433 * intervals.c (reproduce_tree_obj): New function, like
13434 reproduce_tree but takes a Lisp_Object for the parent. Declare
13435 with prototype.
13436 (graft_intervals_into_buffer): Use it when appropriate.
13437 (reproduce_tree): Declare with prototype.
13438 (balance_possible_root_interval): Check that the parent is a lisp
13439 object before trying to examine its type.
13440
ee1c5b21
GM
134412000-03-22 Gerd Moellmann <gerd@gnu.org>
13442
13443 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
13444 as strings only if both are known to be strings.
13445
13446 * s/openbsd.h (LIBS_TERMCAP): Undef.
13447
1fb352e0
SM
134482000-03-21 Stefan Monnier <monnier@cs.yale.edu>
13449
13450 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
13451 definitions for non-Emacs compilation.
13452 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
13453 outside of `#ifdef emacs'.
13454 (print_partial_compiled_pattern): Update.
13455 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
13456 (re_compile_fastmap): Merge handling of charset and charset_not (for
13457 emacs and non-emacs compilation as well).
13458 Similarly for (not)categoryspec and (not)syntaxspec.
13459 Don't use the fastmap when reaching `anychar' since the added
13460 complexity is not justified.
13461 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
13462 and (not)syntaxspec. Merge (not)categoryspec.
13463
fdaa1f77
KH
134642000-03-22 Kenichi Handa <handa@etl.go.jp>
13465
52283633
SM
13466 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
13467 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 13468 --without-x.
fdaa1f77 13469
d152fb46
DL
134702000-03-21 Dave Love <fx@gnu.org>
13471
13472 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
13473 doc string.
13474
d2cafc8c
GM
134752000-03-21 Gerd Moellmann <gerd@gnu.org>
13476
13477 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
13478 (lface_fully_specified_p): Don't check contents of
13479 LFACE_FONT_INDEX because that attribute is optional.
13480 (realize_x_face): Remove now unwarranted xassert.
13481
9111d4b5
KH
134822000-03-21 Kenichi HANDA <handa@etl.go.jp>
13483
13484 The following changes are to make font selection based on
13485 characters, not charset. In addition, they recover fontset
13486 facilities while utilizing the new font selection mechanism.
13487
6c4bfdc0
KH
13488 * Makefile.in (fontset.o): Depend on dispextern.h.
13489
13490 * alloc.c (mark_face_cache): Don't mark face->registry.
13491
9111d4b5
KH
13492 * dispextern.h (struct glyph): New member glyph_not_available_p.
13493 Use 22 bits for face_id.
13494 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13495 (struct face): Delete member registry, new member ascii_face.
13496 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13497 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13498 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 13499 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
13500
13501 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13502 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
13503 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13504 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 13505 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
13506 (fs_free_face_fontset, fontset_font_pattern)
13507 (face_suitable_for_char_p, face_for_char)
13508 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
13509 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13510 (FS_LOAD_FACE_FONT): New macro.
13511
13512 * fontset.c: All codes rewritten or adjusted for the change of
13513 fontset implementation. Now fontset is represented by char table.
52283633
SM
13514 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13515 Variables removed.
9111d4b5 13516 (my_strcasecmp): Function removed.
52283633 13517 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 13518 (AREF, ASIZE): New macros.
52283633
SM
13519 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13520 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13521 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13522 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13523 (fontset_id_valid_p, font_family_registry, fontset_name)
13524 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13525 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
13526 New functions.
13527 (fs_load_font): New arg FACE. Caller changed.
13528 (fs_query_fontset): Argument changed. Caller changed.
13529 (Fquery_fontset): call fs_query_fontset.
13530 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13531 Functions removed.
52283633
SM
13532 (clear_fontset_elements, check_registry_encoding)
13533 (check_fontset_name): New functions.
9111d4b5
KH
13534 (syms_of_fontset): Set char-table-extra-slots property of fontset
13535 to 3. Staticpro and initialize Vfontset_table and
13536 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13537
13538 * frame.h (struct frame): Member `fontset_data' removed.
13539 (FRAME_FONTSET_DATA): Macro removed.
13540
13541 * frame.c (make_frame): Don't allocate f->fontset_data.
13542 (Fdelete_frame): Don't free f->fontset_data.
13543
6c4bfdc0
KH
13544 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13545
9111d4b5
KH
13546 * xdisp.c (charset_at_position): Function removed.
13547 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
13548 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13549 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
13550 Likewise.
13551 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13552 FACE_FOR_CHARSET.
52283633
SM
13553 (get_next_display_element, append_space)
13554 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
13555
13556 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13557 Variables removed.
13558 (clear_font_table, frame_update_line_height, load_face_font):
13559 Adjusted for the change of fontset implementation.
13560 (load_face_fontset_font): Function removed.
13561 (pixel_point_size): New function.
13562 (font_list): Argument type changed. Caller changed.
13563 (LFACE_FONT): New macro.
13564 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13565 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13566 Lisp_Object. Determine the font name by actually loading a font
13567 by the specified pattern. Set LFACE_FONT (lface) to the specified
13568 pattern. Even if a font is not found, don't try alternatives.
13569 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13570 (set_font_frame_param): If `font' is specified in lface, use it.
13571 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13572 (lface_same_font_attributes_p): Likewise.
13573 (make_realized_face): Arguent changed. Caller changed. Set
13574 face->ascii_face to face itself.
13575 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
13576 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13577 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
13578 (free_realized_multibyte_face): New function.
13579 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13580 changed. Caller changed.
13581 (try_font_list): Argument type changed.
13582 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13583 (choose_face_font): Argument changed. Handle fontset properly.
13584 (choose_face_fontset_font): Function removed.
13585 (realize_default_face, realize_named_face): Don't remove the
13586 former face here.
13587 (realize_face): Argument changed. Caller changed. Remove face
52283633 13588 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
13589 (realize_x_face): Argument changed. Caller changed. For a
13590 multibyte character, share fontset with base_face. For a single
52283633 13591 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
13592 (realize_tty_face): Argument changed. Caller changed.
13593 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13594 (face_at_buffer_position): Don't check multibyte_p for returning
13595 DEFAULT_FACE_ID.
13596 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13597 FACE_SUITABLE_FOR_CHARSET_P.
13598 (syms_of_xfaces): Remove code for Qx_charset_registry and
13599 Vface_default_registry.
13600
6c4bfdc0
KH
13601 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13602 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
13603 (x_per_char_metric): Don't try FONT->default_char. Even if
13604 pcm->width is zero, glyph bits may exist.
13605 (x_encode_char): Always initialize char2b->byte1.
13606 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 13607 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
13608 (x_append_glyph): Set glyph->glyph_not_available_p.
13609 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13610 it->charset. Handle the case that per char metric is not
13611 available. If it->multibyte_p is zero and it->c is a multibyte
13612 character, convert it to a unibyte character.
13613 (struct glyph_string): Delete member `charset'.
13614 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13615 the case that per char metric is not available correctly.
13616 (x_fill_glyph_string): Handle the case that the specific glyph is
13617 not available correctly.
13618 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13619 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13620 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13621 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13622 fontset. Don't call FS_LOAD_FONT.
13623
13624 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13625 (x_create_tip_frame): Likewise.
13626 (Fx_close_connection): Free full_name of font_info.
13627
13628 * fns.c (optimize_sub_char_table): New function.
13629 (Foptimize_char_table): New function.
13630 (syms_of_fns): Defsubr Soptimize_char_table.
13631
b33dd3b0
GM
136322000-03-20 Gerd Moellmann <gerd@gnu.org>
13633
13634 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13635 only if buffer is displayed in some window.
13636
13637 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13638 (try_window_reusing_current_matrix): Don't call scroll run
13639 function if run's current and desired position are the same;
13640 this prevents cursor flickering.
13641
4e8a9132
SM
136422000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13643
13644 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13645
13646 * regex.c (RE_STRING_CHAR): New macro.
13647 (GET_CHAR_AFER_2): Remove.
13648 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13649 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13650 (print_partial_compiled_pattern, re_compile_fastmap)
13651 (re_match_2_internal): Remove on_failure_jump_exclusive.
13652 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13653 optimization only need to work for * (ie. can use of_keep_string_jump).
13654 Remove the special case for .*\n since it is now covered by the general
13655 optimization.
13656 (re_search_2): Don't bother with `room'.
13657 (skip_one_char): New function.
13658 (skip_noops): Simplify since `memory' is not needed any more.
13659 (mutually_exclusive_p): Restructure slightly to use `switch' and
13660 add handling for "all" remaining cases.
13661 (re_match_2_internal): Change on_failure_jump_smart to use
13662 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13663 rather than on_failure_jump_exclusive.
13664
2136fdd4
GM
136652000-03-19 Gerd Moellmann <gerd@gnu.org>
13666
13667 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13668 number of bits per RGB because it's everywhere used as the depth
13669 of the visual.
13670
13671 * term.c (calculate_costs): Remove code dealing with X frames.
13672
18e21ce8 136732000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
13674
13675 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13676
d7b511c4
GM
136772000-03-18 Gerd Moellmann <gerd@gnu.org>
13678
13679 * lread.c (read_integer): Unread the last char not consumed.
13680
16b5d424
GM
136812000-03-17 Gerd Moellmann <gerd@gnu.org>
13682
13683 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 13684 which are in the process of being deleted.
16b5d424 13685
1fa28578
GM
136862000-03-16 Gerd Moellmann <gerd@gnu.org>
13687
83488cce
GM
13688 * Makefile.in (mostlyclean): Add `*.core'.
13689 (clean): Add `bootstrap-emacs'.
13690
1fa28578
GM
13691 * lread.c (read_integer): New function.
13692 (read1): Support read syntax #o, #x, #b, #r.
13693
99633e97
SM
136942000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13695
1fa28578
GM
13696 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13697 make sure POINTER_TO_OFFSET gives the same value before and after
13698 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
13699 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13700 (debug): Now only active if > 0 rather than if != 0.
13701 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
13702 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13703 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13704 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
13705 (store_op1, store_op2, insert_op1, insert_op2)
13706 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
13707 (group_in_compile_stack): Move to after its arg's types are
13708 declared and add a prototype.
99633e97 13709 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 13710 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 13711 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
13712 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13713 indentation of the greedy-op and shy-group code.
99633e97
SM
13714 (at_(beg|end)line_loc_p): Fix argument's types.
13715 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13716 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13717 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
13718 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13719 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13720 QUIT unconditionally.
99633e97 13721
699238d9
GM
137222000-03-15 Gerd Moellmann <gerd@gnu.org>
13723
13724 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13725 a sole completion.
13726
13727 * process.c (send_process): Add a hint that the function
13728 can call Lisp code to its comment.
13729
13730 * lread.c (load_dangerous_libraries): New variable.
13731 (Vbytecomp_version_regexp): New variable.
13732 (safe_to_load_p): New function.
13733 (Fload): Handle files not compiled with Emacs specially.
13734 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13735
34e23e5a
GM
137362000-03-14 Gerd Moellmann <gerd@gnu.org>
13737
9c763cca
GM
13738 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13739
13740 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13741 support functions only if HAVE_X11R6_XIM is defined.
13742 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13743
13744 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13745
13746 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 13747 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
13748 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13749
13750 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13751 (HAVE_X11R6_XIM): Define.
13752
13753 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13754
34e23e5a
GM
13755 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13756 If set, call XSynchronize.
13757
66f0296e
SM
137582000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13759
34e23e5a
GM
13760 * regex.c: Declare a new type `re_char' used throughout the code
13761 for the string char type. It's `const unsigned char' to match the
13762 rest of Emacs. Consistently make sure all pointers to strings use
52283633 13763 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 13764 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
13765 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13766 code duplication.
66f0296e
SM
13767
13768 * charset.h (GET_CHAR_AFTER_2): Remove.
13769 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13770
854a025c
KR
137712000-03-12 Ken Raeburn <raeburn@gnu.org>
13772
13773 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13774 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13775 of them try to use backquotes.
13776
b9d2c7e2
DL
137772000-03-12 Dave Love <fx@gnu.org>
13778
13779 * unexelf.c: Restore changes of 1999-10-19.
13780 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13781 fix its type and alignment; copy it from current process.
13782
5e5dff44
GM
137832000-03-12 Gerd Moellmann <gerd@gnu.org>
13784
9b2f3c38
GM
13785 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13786 has been found. Fix bug not computing timer's predecessor.
13787
427ec082 13788 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
13789 file name.
13790
e1cff360
GM
13791 * window.c (Fsave_window_excursion): Doc fix.
13792
52283633 13793 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 13794
e411ce4b
EZ
137952000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13796
13797 * msdos.c (vga_installed): New function, code moved from
13798 dos_set_window_size.
13799 (Qbar, Qcursor_type, outside_cursor): New variables.
13800 (syms_of_msdos): Intern and staticpro them.
13801 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13802 shape used outside Emacs when called for the first time.
13803 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13804 cursor shape used outside Emacs.
13805 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13806 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13807 type has changed.
13808 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13809 parameters specify the cursor. Make qreverse a global
13810 variable (renamed to Qreverse).
13811
80460654
GM
138122000-03-09 Gerd Moellmann <gerd@gnu.org>
13813
13814 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13815
95cd4c40
SM
138162000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13817
13818 This is a big redesign of failure-stack and register handling, prompted
13819 by bugs revealed when trying to add shy-groups. Overall, what happened
13820 is that loops are now structured a little differently, groups can be
13821 shy and the code is a little simpler.
13822
13823 * regex.h: Update the copyright.
13824 (RE_SHY_GROUPS): New value.
13825 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13826 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13827
80460654
GM
13828 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13829 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13830 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13831 for (start|stop)_memory since they now only take one argument (the
13832 second has becomes unnecessary).
52283633 13833 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
13834 (print_compiled_pattern): Use %ld to printf long ints and flush to
13835 make debugging a little easier.
95cd4c40
SM
13836 (union fail_stack_elt): Make the integer unsigned.
13837 (struct fail_stack_type): Add a `frame' element.
13838 (INIT_FAIL_STACK): Init `frame' as well.
13839 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13840 (DEBUG_PUSH, DEBUG_POP): Remove.
13841 (NUM_REG_ITEMS): Remove.
13842 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
13843 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
13844 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 13845 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
13846 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
13847 New macros.
80460654
GM
13848 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
13849 address pushed is not the destination of the jump but the source
13850 of it instead.
95cd4c40
SM
13851 (NUM_FAILURE_ITEMS): Remove.
13852 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
13853 registers before the actual failure point). Don't hardcode any
13854 meaning for str==NULL anymore.
95cd4c40 13855 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
13856 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
13857 Remove.
95cd4c40
SM
13858 (REG_UNSET_VALUE): Use NULL (why not?).
13859 (compile_range): Remove declaration since it doesn't exist.
13860 (struct compile_stack_elt_t): Remove inner_group_offset.
13861 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
13862 (regex_grow_registers): Remove dead code.
13863 (FIXUP_ALT_JUMP): New macro.
80460654
GM
13864 (regex_compile): Add shy-groups Change loops to use
13865 on_failure_jump_smart&jump instead of
13866 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
13867 initial (dummy_failure_)jump. Remove c1_base (looks like unused
13868 variable to me). Use `jump' instead of `jump_past_alt' and don't
13869 bother with push_dummy_failure in alternatives since it is now
13870 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
13871 emacs' for (re)allocating the stack.
13872 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
13873 from loop when bufp->can_be_null rather than jumping to `done'.
13874 Avoid jumping backwards so as to ensure termination. Use
13875 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
13876 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 13877 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
13878 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
13879 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
13880 (lowest_active_reg, highest_active_reg)
13881 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
13882 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
13883 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
13884 variables. Push register (in `start_memory') on the stack rather
13885 than storing it in old_reg(start|end). Remove the cycle detection
13886 from `stop_memory', replaced by the use of on_failure_jump_loop
13887 for greedy loops. Add code for the new on_failure_jump_<foo>.
13888 Remove ad-hoc code in `on_failure_jump' to push more registers in
13889 the case of a loop. Take out code from `maybe_pop_jump' into
13890 separate functions and adapt it to the semantics of
13891 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
13892 and push_dummy_failure. Remove dummy_failure handling and
13893 handling of `failures to jump to on_failure_jump' (this last one
13894 was already dead code, it seems).
13895 (group_match_null_string_p, alt_match_null_string_p)
13896 (common_op_match_null_string_p): Remove.
95cd4c40 13897
7397acc4
DL
138982000-03-08 Dave Love <fx@gnu.org>
13899
13900 * config.in: Don't depend on __STDC__ for volatile.
13901 Add POINTER_TYPE, PTR, PROTOTYPES.
13902
13903 * hftctl.c, strftime.c: Use PROTOTYPES.
13904 * eval.c (find_handler_clause): Likewise.
13905
13906 * mem-limits.h: Use POINTER_TYPE.
13907
13908 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
13909 (memory_warnings): Declare using POINTER_TYPE.
13910
5e91ff9e
GM
139112000-03-08 Gerd Moellmann <gerd@gnu.org>
13912
feab4fba
GM
13913 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
13914
52283633 13915 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 13916
5e91ff9e
GM
13917 * xfns.c: Remove obsolete code in #if 0.
13918 (Fx_focus_frame): New function.
13919
a735b7e1
KH
139202000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
13921
13922 * coding.c (coding_category_name): Add coding-category-utf-8,
13923 coding-category-utf-16-be, coding-category-utf-16-le.
13924 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
13925 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
13926 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
13927 (detect_coding_utf_8): New function.
13928 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
13929 UTF_16_LOW_SURROGATE_P): New macros.
13930 (detect_coding_utf_16): New function
13931 (detect_coding_mask): When priorities are specified, skip any
13932 categories that have `nil' coding-system. Fix bug of returning
13933 wrong mask when PRIORITIES is specified and detect_coding_XXX()
13934 returns a mask not set in PRIORITIES.
13935 (detect_eol_type_in_2_octet_form): New function.
13936 (detect_eol): selects detect_eol_type_XXX to call according to
13937 cooding->category_idx.
13938 (detect_coding_system): Remove `nil' coding-system in the result.
13939 (Fupdate_coding_systems_internal): Update all coding-categories.
13940
52283633
SM
13941 * coding.h (CODING_CATEGORY_IDX_UTF_8)
13942 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
13943 New macros.
13944 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
13945 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
13946 (CODING_CATEGORY_IDX_UTF_16_LE)
13947 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
13948 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
13949 (CODING_CATEGORY_MASK_ANY): Include the above macros.
13950 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
13951
9994cc69
GM
139522000-03-07 Gerd Moellmann <gerd@gnu.org>
13953
e9b4e5ff
GM
13954 * doc.c (Fdocumentation_property): If value is not a string,
13955 and doesn't refer to etc/DOC, evaluate it to obtain a string.
13956
f7daf1e1
GM
13957 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
13958 close the display with XtCloseDisplay. This caused a bus error
13959 on OpenWindows.
13960
9994cc69
GM
13961 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
13962 complete but not unique.
13963
4336c705
GM
139642000-03-06 Gerd Moellmann <gerd@gnu.org>
13965
18bb0684
GM
13966 * process.c (send_process): Remove local variable `procname' that
13967 might become invalid when a GC happens. Instead, access the
13968 process name slot directly.
13969
4336c705
GM
13970 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
13971 orig_height if set.
13972
13973 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
13974 orig_height if set.
13975
515d0d0e
EZ
139762000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
13977
13978 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
13979 glyph matrices have been freed.
13980
100b3cbb
GM
139812000-03-05 Gerd Moellmann <gerd@gnu.org>
13982
50df5e5a 13983 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 13984 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
13985
13986 * xfns.c (QCdata): Moved to xdisp.c.
13987
13988 * xdisp.c (QCdata): Moved here from xfns.c.
13989 (syms_of_xdisp): Initialize QCdata.
13990
13991 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
13992
13993 * window.c (coordinates_in_window): Use
13994 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
13995 FRAME_INTERNAL_BORDER_WIDTH.
13996
100b3cbb 13997 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 13998 it is obviously invalid.
100b3cbb
GM
13999
14000 * xterm.c (x_term_init): Create a colormap if not using the
14001 default visual.
14002
14003 * xterm.h (select_visual): Change prototype.
14004
14005 * xfns.c (select_visual): Rewritten. Recognize user-specified
14006 visual classes.
14007 (visual_classes): New variable.
14008
64d739c4
GM
140092000-03-04 Gerd Moellmann <gerd@gnu.org>
14010
14011 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14012 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14013 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 14014 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
14015 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14016 XtNcolormap resources.
14017 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14018 (Fx_create_frame): Initialize color members of x_output structure.
14019 (xpm_load): Pass colormap to XPM lib.
14020
14021 * xfaces.c (x_free_colors): Access colormap of frame using
14022 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14023 when default colormap is used.
14024
14025 * xterm.c (x_term_init): Set Colormap member of x_display_info
14026 structure. Copy colormap if resource `privateColormap' is
14027 specified (PseudoColor only).
14028 (x_setup_relief_color): Access colormap of frame using
14029 FRAME_X_COLORMAP.
14030
14031 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14032 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14033
c3cee013
JR
140342000-03-04 Jason Rumney <jasonr@gnu.org>
14035
14036 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14037 other non-platform-specific equivalents.
64d739c4 14038 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
14039 specific functions and macros as their w32 equivalents where
14040 non-platform-specifics are not available.
14041 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14042 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14043 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14044 (frame_update_line_height): Use macros to access f->output_data.
14045 (defined_color): Remove FIXME comments; fixed.
14046 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14047 into #ifdef blocks. Add WINDOWSNT blocks.
14048 (Fx_list_fonts): Use macros for accessing font data.
14049 (set_lface_from_font_name): Different default fonts for X and
14050 WINDOWSNT.
14051 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14052 scalable for backward compatibility.
64d739c4 14053 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
14054 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14055
64d739c4 14056 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
14057 syms_of_w32faces.
14058
14059 * makefile.nt (w32faces.obj): Remove.
14060 (xfaces.obj): Add.
14061
807cc41c
JR
140622000-03-03 Jason Rumney <jasonr@gnu.org>
14063
14064 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14065 correct parameters.
14066
0007072a
KR
140672000-03-03 Ken Raeburn <raeburn@gnu.org>
14068
14069 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14070 standard ELF definitions here if the system header does not.
14071
71a6ba55
GM
140722000-03-03 Gerd Moellmann <gerd@gnu.org>
14073
14074 * xterm.c (PER_CHAR_METRIC): Removed.
14075 (x_per_char_metric_1, x_default_char): New functions.
14076 (x_per_char_metric): If font's default char is invalid, return
14077 metrics of a suitably chosen usable default char.
14078 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
14079 char, replace occurrences of unprintable chars with a suitably
14080 chosen usable default char.
71a6ba55 14081
900fa1f1
GM
140822000-03-02 Gerd Moellmann <gerd@gnu.org>
14083
42f55fe0
GM
14084 * xterm.c (note_mouse_highlight): Return quickly if frame's
14085 glyph matrices have been freed.
14086
14087 * dispnew.c (free_glyphs): Block input while freeing matrices.
14088
900fa1f1
GM
14089 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14090
52283633
SM
14091 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14092 Use x_free_colors.
900fa1f1
GM
14093
14094 * dispextern.h (x_free_colors): Add prototype.
14095
14096 * xfaces.c (x_free_colors): New function.
14097 (unload_color, free_face_colors): Use it.
14098
2f950292
EZ
140992000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14100
14101 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14102
14103 * window.c [MSDOS]: Include msdos.h.
14104
54d04320
DL
141052000-03-02 Dave Love <fx@gnu.org>
14106
14107 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14108
14109 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14110 set C_OPTIMIZE_SWITCH for gcc.
14111
0ba93ac4
KH
141122000-03-02 Kenichi Handa <handa@etl.go.jp>
14113
14114 * coding.c (coding_save_composition): Be sure to allocate
14115 composition data area in coding even if there's no composition in
14116 the current run.
14117
a2bc11d4
JR
141182000-03-01 Jason Rumney <jasonr@gnu.org>
14119
14120 * w32term.c: Equivalent changes to those made to xterm.c on
14121 2000-02-25 and 2000-02-24.
14122
14123 * w32fns.c: Equivalent changes to those made to xfns.c on
14124 2000-02-25 and 2000-02-21.
14125
14126 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14127 correct line-end convention is followed.
14128
14129 * w32menu.c [HAVE_BOXES]: Remove #undef.
14130 (single_keymap_panes): Remove code for simulating checkmarks.
14131 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14132 Remove code for drawing simulated checkmarks.
14133 (w32_menu_show): make unibyte help string correctly.
14134 (add_menu_item): draw standard Windows checkmarks. Draw radio
14135 buttons as radio buttons if possible.
14136
72d19d75
GM
141372000-03-01 Gerd Moellmann <gerd@gnu.org>
14138
2df636f4
GM
14139 * sysdep.c (start_of_text): Don't define this function for NetBSD
14140 with ELF.
14141
427ec082 14142 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
14143 Don't define.
14144 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14145 (LINKER): Don't undef if __NetBSD__ is defined.
14146
14147 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14148
14149 * fileio.c [__NetBSD__]: Define `unix'.
14150
72d19d75
GM
14151 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14152
ed4d0512
GM
141532000-02-29 Gerd Moellmann <gerd@gnu.org>
14154
50b1039f
GM
14155 * atimer.c (start_atimer): Don't abort when timers are stopped.
14156 (append_atimer_lists): New function.
14157 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14158 arbitrary lists of stopped and running atimers.
14159
ed4d0512
GM
14160 * atimer.c (cancel_atimer): Handle canceling an atimer when
14161 some timers are stopped.
14162
14163 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14164 after canceling it.
14165
14166 * fns.c (maybe_resize_hash_table): Handle case of new size
14167 coming out as being the same as old size.
14168
387023ee
JR
141692000-02-27 Jason Rumney <jasonr@gnu.org>
14170
14171 * makefile.nt: Add atimer.h to dependencies.
14172 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14173 * w32console.c: Only disable window system features for dispextern.h
14174 (initialize_w32_display): Build a display info for the console.
14175 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14176 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14177 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14178 as 2 button mice.
14179 * w32gui.h (struct W32FontStruct): Revert last change after change
14180 to xdisp.c.
14181 * w32menu.c (single_submenu): Set up help string.
14182 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14183 (w32_dialog_show): Set up help string.
14184 * w32term.c (w32_display_info_for_display): Remove unused function.
14185 (w32_draw_bitmap): Use pre-built bitmaps.
14186 (w32_initialize_display_info): New function to initialize parts of
14187 display info that are common to both GUI and console frames.
14188 (w32_term_init): Use w32_initialize_display_info. Do not set
14189 Vw32_num_mouse_buttons here, as it is not called for console
14190 frames. Build bitmaps for indicating truncated lines etc.
14191 (x_delete_display): Destroy pre-built bitmaps.
14192 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14193 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14194
4516715a
DL
141952000-02-27 Dave Love <fx@gnu.org>
14196
14197 * lisp.h: Add a bunch of prototypes.
14198
171ca836
KH
141992000-02-26 Kenichi Handa <handa@etl.go.jp>
14200
14201 * keyboard.c (read_char): Set `usec' correctly.
14202
4013921d
KH
142032000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14204
14205 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14206 `lambda', set reg[RRR] to the map index.
14207 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14208 reg[RRR] to 0. Otherwise, set it to -1.
14209
9244a058
GM
142102000-02-25 Gerd Moellmann <gerd@gnu.org>
14211
2df636f4 14212 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 14213
18e21ce8 142142000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 14215
f43d79c1
GM
14216 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14217 and contains a `:', prepend `/:'.
14218
14219 * window.c (select_window_1): If selected_window is nil,
14220 don't "swap out" the buffer's point.
14221 (Fset_window_configuration): Set selected_window to nil
14222 before calling Fselect_window.
14223 (unshow_buffer): Don't set point in buffer from window's point
14224 if another more recently selected window also shows the buffer.
14225
bed0c171
GM
142262000-02-25 Gerd Moellmann <gerd@gnu.org>
14227
449c3c52
GM
14228 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14229
f5b58615
GM
14230 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14231 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
14232 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14233 New variables.
f5b58615
GM
14234 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14235 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14236 (hide_busy_cursor): New functions.
14237 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14238
14239 * minibuf.c (read_minibuf): Cancel busy-cursor.
14240
14241 * keyboard.c (command_loop_1): Call start_busy_cursor before
14242 Fcommand_execute and cancel_busy_cursor after it.
14243 (timer_check): Remove busy-cursor code.
14244 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14245 cursor timer.
14246
14247 * process.c (wait_reading_process_input): Remove busy-cursor code.
14248
14249 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14250 Fx_hide_busy_cursor.
14251
14252 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14253 Remove prototyoes.
14254 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14255
14256 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14257
14258 * xterm.c (XTread_socket): Remove busy-cursor code.
14259
4eb8436f
GM
14260 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14261 (build_frame_matrix_from_leaf_window): Put code handling
14262 glyph row's not being a slice of a frame row in #if 0.
14263 (sync_window_with_frame_matrix_rows): New function.
14264 (frame_row_to_window): New function.
14265 (mirror_line_dance): Handle copies between windows.
14266
3cb65b0e
GM
14267 * lread.c (Fload): Use `xfree' instead of `free'.
14268 (init_obarray): Use `xmalloc' instead of `malloc'.
14269
bed0c171
GM
14270 * window.c (Fset_window_buffer): Set WINDOW to the window
14271 after decoding.
2add4349
GM
14272 (coordinates_in_window): Take frame's internal border width
14273 into account.
bed0c171 14274
42088c12
GM
142752000-02-24 Gerd Moellmann <gerd@gnu.org>
14276
14277 * xterm.c (x_display_and_set_cursor): Display cursor of
14278 non-selected windows depending on the setting of
14279 cursor_in_non_selected_windows.
14280
14281 * xdisp.c (cursor_in_non_selected_windows): New variable.
14282 (syms_of_xdisp): DEFVAR_BOOL it.
14283
d1e103b2
GM
142842000-02-23 Gerd Moellmann <gerd@gnu.org>
14285
723e779c
GM
14286 * data.c (Fstring_to_number): If number is greater than what
14287 fits into an integer, return a float.
14288
d1e103b2
GM
14289 * eval.c (specbind): Remove references to
14290 keyword_symbols_constant_flag.
14291
14292 * data.c (keyword_symbols_constant_flag): Removed.
14293 (Fmakunbound, set_internal, syms_of_data): Remove references to
14294 keyword_symbols_constant_flag.
14295
14296 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14297
214f877f
KH
142982000-02-23 Kenichi Handa <handa@etl.go.jp>
14299
14300 * syntax.c (multibyte_syntax_as_symbol): New variable.
14301 (syms_of_syntax): Declare it as a Lisp variable.
14302 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14303 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14304 nonzero, treat all multibyte characters as symbol.
52283633 14305 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 14306
130adcb7
EZ
143072000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14308
3cb65b0e 14309 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 14310 a deleted frame.
130adcb7 14311
17cbbf95
GM
143122000-02-21 Gerd Moellmann <gerd@gnu.org>
14313
14314 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14315
14316 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14317 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14318
beb0bc36
DL
143192000-02-21 Dave Love <fx@gnu.org>
14320
14321 * frame.c (Vmouse_position_function): New variable.
14322 (Fmouse_position): Use it.
14323 (syms_of_frame): Install it.
14324
14325 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14326
1d92afcd
GM
143272000-02-20 Gerd Moellmann <gerd@gnu.org>
14328
14329 * fileio.c (Finsert_file_contents): Unbind the binding of
14330 standard-output done by temp_output_buffer_setup.
329eed9f
GM
14331
14332 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14333 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14334 (specbind, unbind_to): Handle most common case of non-constant
14335 symbol with trivial value specially.
14336
14337 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14338
18e21ce8 143392000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
14340
14341 * data.c (Fmake_variable_buffer_local): Doc fix.
14342 Init found_for_buffer to 0.
14343 (Fmake_variable_frame_local): If the variable has already
14344 been buffer-local, set the check_frame field.
14345
1d4311c3
EZ
143462000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14347
14348 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14349 produced for CODING_MODE_LAST_BLOCK requires.
14350
2dc95ddd
DL
143512000-02-18 Dave Love <fx@gnu.org>
14352
14353 * keyboard.c (echo_keystrokes): Remove declaration.
14354 (Vecho_keystrokes) New variable.
14355 (read_char, record_menu_key, read_key_sequence): Use it to allow
14356 use of float value.
14357 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14358
14359 * lread.c: Undef feature selection macros before defining.
14360
f0930f35
GM
143612000-02-18 Gerd Moellmann <gerd@gnu.org>
14362
14363 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14364 for symbols other than the symbol in question.
14365
e3d4de90
DL
143662000-02-17 Dave Love <fx@gnu.org>
14367
14368 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14369
0b378936
GM
143702000-02-17 Gerd Moellmann <gerd@gnu.org>
14371
d621caf7
GM
14372 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14373
0b378936
GM
14374 * alloc.c (enum mem_type): Compile unconditionally.
14375
3b451f74
EZ
143762000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14377
14378 * xfaces.c (tty_defined_color): Don't return faulire indication
14379 for unspecified-fg and unspecified-bg pseudo-colors.
14380
10689a01
GM
143812000-02-17 Gerd Moellmann <gerd@gnu.org>
14382
1216f5e4
GM
14383 * alloc.c (mark_object): Don't mark symbol names in pure space.
14384 (gc_sweep): Don't unmark symbol names in pure space.
14385
14386 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14387 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14388 [GC_MARK_STACK]: New defines.
427ec082 14389 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
14390 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14391
14392 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14393
14394 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14395 allocate_buffer instead of xmalloc.
14396
14397 * alloc.c (toplevel): Include setjmp.h.
14398 (PURE_POINTER_P): New define.
14399 (enum mem_type) [GC_MARK_STACK]: New enumeration.
14400 (Vdead) [GC_MARK_STACK]: New variable.
14401 (lisp_malloc): Add parameter TYPE, call mem_insert if
14402 GC_MARK_STACK is defined.
14403 (allocate_buffer): New function.
427ec082 14404 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
14405 (free_float) [GC_MARK_STACK]: Set type to Vdead.
14406 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
14407 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
14408 (MEM_NIL) [GC_MARK_STACK]: New define.
14409 (struct mem_node) [GC_MARK_STACK]: New structure.
14410 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
14411 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
14412 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
14413 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
14414 (mark_stack) [GC_MARK_STACK]: New functions.
14415 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
14416 (clear_marks): Removed.
14417 (gc_sweep): Set free conses' car, free floats' type, free
14418 symbols' function to Vdead. Use lisp_free to free buffers.
14419 (init_alloc_once): Initialize Vdead.
14420 (survives_gc_p): Return non-zero for pure objects.
14421
14422 * alloc.c: Add comments throughout the file.
14423
2503c8b1
GM
14424 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
14425 that unblocks alarms.
14426
8389e1e2
GM
14427 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
14428 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
14429 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
14430
10689a01 14431 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 14432
bfc17d18
KH
144332000-02-17 Kenichi Handa <handa@etl.go.jp>
14434
4a09dee0
KH
14435 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
14436 avoid infinite error signaling. Allocate sufficient memory for
14437 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 14438
2b927d02
SM
144392000-02-17 Stefan Monnier <monnier@cs.yale.edu>
14440
14441 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
14442 depends on the previous behavior.
14443
b49cb764
GM
144442000-02-16 Gerd Moellmann <gerd@gnu.org>
14445
14446 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
14447
99e95407
GM
144482000-02-15 Gerd Moellmann <gerd@gnu.org>
14449
14450 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
14451
14452 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 14453 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
14454 write(2).
14455
6ffd3cf7
RS
144562000-02-15 Richard M. Stallman <rms@gnu.org>
14457
14458 * data.c (set_internal): Don't make variable buffer-local
14459 if within a let-binding for the same buffer.
14460 (let_shadows_buffer_binding_p): New function.
14461
14462 * eval.c (specbind): For buffer-local value,
14463 record the current buffer also.
14464 (unbind_to): Cope with that change.
14465
cad53475
GM
144662000-02-15 Gerd Moellmann <gerd@gnu.org>
14467
14468 * window.c (Fsave_window_excursion): Doc fix.
14469
1aa963c8
SM
144702000-02-15 Stefan Monnier <monnier@cs.yale.edu>
14471
14472 * syntax.c (back_comment): Make sure we only consider comment-starters
14473 of the relevant style and return -1 in case of a failure to find the
14474 beginning of the comment.
14475 (Fforward_comment): If back_comment fails, go back to the position just
14476 after the comment-end.
14477 (scan_lists): Add comment describing a very minor bug.
14478
b9b84fd3
SM
144792000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14480
14481 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14482 `completion-regexp-list' in the docstring.
14483
3a28db80
DL
144842000-02-14 Dave Love <fx@gnu.org>
14485
14486 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14487
fb4a568d
SM
144882000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14489
14490 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14491 to Emacs' syntax. Also fix the comment about set/not-set meanings
14492 since Emacs syntax is not the value 0 any more.
14493 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14494 since it's now part of RE_SYNTAX_EMACS.
14495
1063ebb5
DL
144962000-02-12 Dave Love <fx@gnu.org>
14497
52283633 14498 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 14499
fb07a302
GM
145002000-02-12 Gerd Moellmann <gerd@gnu.org>
14501
14502 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14503
aaf2320c
DL
145042000-02-12 Dave Love <fx@gnu.org>
14505
14506 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14507
14508 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
14509 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14510 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
14511
14512 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14513
14514 * s/nextstep.h: Don't define HAVE_ALLOCA.
14515
14516 * config.in: Add vfork bits.
14517
eedf8bde
GM
145182000-02-12 Gerd Moellmann <gerd@gnu.org>
14519
14520 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14521 unwind function to undo the effect of stopping atimers.
14522
52283633 14523 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
14524
14525 * atimer.c (stopped_atimers): New variable.
14526 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14527 New functions.
14528
14529 * atimer.h (stop_other_atimers, run_all_atimers)
14530 (unwind_stop_other_atimers): Add function prototypes.
427ec082 14531
eedf8bde
GM
14532 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14533
8476c2f8
KR
145342000-02-11 Ken Raeburn <raeburn@gnu.org>
14535
14536 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14537 library may depend on jpeg.
14538 (atimer.o): Depends on atimer.c.
14539
0e85e4a3
KH
145402000-02-11 Kenichi Handa <handa@etl.go.jp>
14541
14542 * insdel.c (del_range_1): Call update_compositions.
14543 (del_range_both): Call update_compositions just once..
14544
97fa0cc8
DL
145452000-02-10 Dave Love <fx@gnu.org>
14546
14547 * xfns.c (create_frame_xic): Fix initialization of automatic
14548 aggregates for pcc.
14549
25566a3c
KH
145502000-02-09 Kenichi Handa <handa@etl.go.jp>
14551
14552 * ccl.c (CCL_MAKE_CHAR): New macro.
14553 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14554 registers by CCL_MAKE_CHAR before calling translate_char.
14555 <CCL_TranslateCharacterConstTbl> Likewise.
14556
69da54ba
DL
145572000-02-08 Dave Love <fx@gnu.org>
14558
14559 * lread.c (__EXTENSIONS__): Define.
14560
f7136ee8
GM
145612000-02-08 Gerd Moellmann <gerd@gnu.org>
14562
14563 * puresize.h (BASE_PURESIZE): Increase to 650000.
14564
7768790b
EZ
145652000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14566
14567 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14568 the help message.
14569
38fd211b
EZ
145702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14571
14572 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14573 md, mh, mb, mr, and me to the fake termcap entry.
14574
66e4690f
KR
145752000-02-06 Ken Raeburn <raeburn@gnu.org>
14576
14577 * sound.c (sound_cleanup): Don't call device close routine if the
14578 function pointer is null.
14579
a75dfea0
AI
145802000-02-06 Andrew Innes <andrewi@gnu.org>
14581
14582 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14583 around image definitions and prototypes.
14584 (gamma_correct) [WINDOWSNT]: New prototype.
14585
14586 * w32term.c (x_make_frame_visible): Replace call to
14587 input_poll_signal with poll_for_input.
14588
14589 * window.c [WINDOWSNT]: Include w32term.h.
14590
14591 * xdisp.c [WINDOWSNT]: Include w32term.h.
14592
14593 * makefile.nt: Add dependencies on w32gui.h.
14594 (OBJ1): Include atimer.obj.
14595 ($(BLD)\atimer.obj): New dependency rule.
14596
14597 * w32.c (sigmask): New function (does nothing).
14598 (sigunblock): Ditto.
14599
14600 * frame.c [WINDOWSNT]: Include w32term.h.
14601
14602 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14603
14604 * lread.c (syms_of_lread): Fix literal newlines.
14605
14606 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14607 the string constant limit (2048 bytes) in MSVC.
14608 (main): Ditto.
14609
59ddecde
GM
146102000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14611
52283633 14612 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
14613 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14614 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14615 dispatch the event.
14616
07590973
DL
146172000-02-04 Dave Love <fx@gnu.org>
14618
14619 * fileio.c: Remove some unused vars.
14620 (_GNU_SOURCE): Define (for euidaccess).
14621
14622 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14623
14624 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14625 gcpro1, gcpro2.
14626 (read_minibuf): Deal with allow_props correctly.
14627
649351f9
EZ
146282000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14629
14630 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14631
66e4690f 146322000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
14633
14634 * search.c (compile_pattern): If a cache entry has a nil regexp,
14635 fill in that entry instead of clobbering a previously cached
14636 string regexp.
14637
66e4690f 146382000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
14639
14640 * puresize.h (BASE_PURESIZE): Increase to 610000.
14641
d240a249
GM
146422000-02-02 Gerd Moellmann <gerd@gnu.org>
14643
14644 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14645 can GC.
14646
ca91fb26
KH
146472000-02-02 Kenichi Handa <handa@etl.go.jp>
14648
25660570
KH
14649 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14650 instead of incrementing ic directly.
14651 <CCL_WriteExprConst> Likewise.
14652 <ccl_set_expr>: Set ic to jump_address.
14653
ca91fb26
KH
14654 * fileio.c (e_write): Fix the handling of
14655 CODING_FINISH_INSUFFICIENT_SRC.
14656
2ede9689
DL
146572000-02-01 Dave Love <fx@gnu.org>
14658
14659 * editfns.c (Fpropertize): Doc fix.
14660
14661 * process.c (Fstart_process): Doc fix.
14662
14663 * eval.c: Fix various doc strings not to duplicate information
14664 from help-manyarg-func-alist.
14665
52283633 14666 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
14667
14668 * doc.c (Vhelp_manyarg_func_alist): New variable.
14669 (Fdocumentation): Use it.
14670 (syms_of_doc): Define it.
14671
b6680a0e
GM
146722000-01-31 Gerd Moellmann <gerd@gnu.org>
14673
2cb750ba
GM
14674 * xterm.c (xim_open_dpy): Remove unused local variable.
14675
52283633 14676 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
14677
14678 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14679 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14680
b6680a0e
GM
14681 * fns.c (sweep_weak_table): New function.
14682 (sweep_weak_hash_tables): Use it. Keep on marking until there
14683 is no more change.
14684
994c5afe
GM
146852000-01-30 Gerd Moellmann <gerd@gnu.org>
14686
14687 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14688 that XTread_socket does not crash by trying to call XNoOp on a
14689 closed display.
427ec082 14690
f00276e3
JR
146912000-01-30 Jason Rumney <jasonr@gnu.org>
14692
14693 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14694 Change selected_frame to SELECTED_FRAME ().
14695 (w32_console_mouse_position): Remove #ifndef MULE from around
14696 `insist' parameter.
14697
14698 * makefile.nt: Remove dosfns.obj.
14699
14700 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14701
14702 * w32fns.c (w32_defined_color): Check for valid frame before
14703 applying gamma correction. Eliminate dependency on frame elsewhere.
14704 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14705 (w32_to_x_font): Use resx and resy not height_in and width_in.
14706 (x_to_w32_font): Doc fix.
14707 (xlfd_strip_height): New function to strip and return font height.
14708 (w32_font_match): Compare height separately from rest of xlfd
14709 spec, using xlfd_strip_height.
14710
14711 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14712 width_in. Use w32_defined_color in place of defined_color.
14713
14714 * w32faces.c: Merge more of DOS and X specifics in preparation for
14715 merge with xfaces.c.
14716 (defined_color): Remove FIXME comment.
14717 (tty_color_name): Provide w32-specific function.
14718 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14719
14720 * w32console.c (turn_on_face, turn_off_face): Removed.
14721 (w32_face_attributes): New function.
14722 (Global_variables): Reduce scope where possible.
14723 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14724 fill attribute.
14725 (hl_mode): Don't modify text attributes.
14726 (write_glyphs): Don't do anything if len <= 0. Use
14727 w32_face_attributes to get attributes for drawing. Write
14728 terminating codes using char_attr_normal.
14729 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14730 (update_begin, update_end): Likewise.
14731 (vga_stdcolor_name): New function.
14732 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14733 (Fset_screen_color): Remove char_attr_reverse.
14734
b08e8bb2
GM
147352000-01-29 Gerd Moellmann <gerd@gnu.org>
14736
14737 * xfns.c (xic_set_preeditarea): Take window parameter and
14738 window-relative pixel-positions.
14739
14740 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14741 is its frame's selected window.
14742 (xim_instantiate_callback): Likewise.
14743
14744 * xfns.c (x_create_im): Removed.
14745 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14746 (supported_xim_styles): Renamed from supported_styles.
14747 (best_xim_style): Renamed from best_style.
14748 (create_frame_xic): Renamed from xic_create_frame.
14749 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 14750
b08e8bb2
GM
147512000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14752
14753 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14754 our frames, call XFilterEvent with 2nd parameter `None'.
14755 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14756 returning XBufferOverflow.
52283633 14757 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
14758 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14759 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14760 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14761 (xim_initialize, xim_close)
14762 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14763 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14764 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14765 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14766
14767 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14768 and `xim_styles'.
14769 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14770 `xic_style' and `xic_xfs'.
14771 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14772 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14773 (FRAME_XIM): Removed.
14774
14775 * xfns.c (supported_styles): New variable.
14776 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14777 (xic_create_xfontset, best_style, xic_create_frame)
14778 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14779 (xic_set_xfontset): New functions.
14780
142e109c
DL
147812000-01-28 Dave Love <fx@gnu.org>
14782
14783 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14784
14785 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14786
b02786f9
GM
147872000-01-28 Gerd Moellmann <gerd@gnu.org>
14788
d060bc9f
GM
14789 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14790 for *scratch* if it already existed.
14791
b02786f9
GM
14792 * emacs.c (USAGE): New macro.
14793 (main): Use it to display usage information.
14794
2c52d7e4
EZ
147952000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14796
14797 Support for the menu-help feature:
14798
52283633 14799 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
14800
14801 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14802 part of the line to the termscript file.
14803 (IT_clear_to_end): Clear the entire line, not just its beginning.
14804 (menu_help_message, prev_menu_help_message): New variables.
14805 (IT_menu_make_room): Make room for the help_text member.
14806 (IT_menu_display): New argument disp_help; all callers changed.
14807 If disp_help is non-zero, store the help text of the active menu
14808 item in menu_help_message.
14809 (XMenuAddPane): Initialize the help_text member to NULL.
14810 (XMenuAddSelection): New argument help_text. Store it in the
14811 XMenu structure.
14812 (XMenuActivate): New argument help_callback. If the value of
14813 menu_help_message has changed since the last time, display the
14814 menu help message text while waiting for the mouse to move. Clear
14815 the echo area before exiting.
14816 (XMenuDestroy): Free the help_text member.
14817
ffe0bcd1
GM
148182000-01-27 Gerd Moellmann <gerd@gnu.org>
14819
14820 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14821 XMenuAddSelection. Pass help callback to XMenuActivate.
14822 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14823
50dbd23f
EZ
148242000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14825
14826 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14827 and EMACS_SET_USECS.
14828
f5941bf8
GM
148292000-01-26 Dave Love <fx@gnu.org>
14830
6c67ddee
DL
14831 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14832
f5941bf8
GM
14833 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14834 an error may be signalled.
14835
9e49c990
GM
148362000-01-26 Gerd Moellmann <gerd@gnu.org>
14837
fc3cb460
GM
14838 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14839 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14840
9e49c990
GM
14841 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14842
d0c037d8
GM
148432000-01-25 Gerd Moellmann <gerd@gnu.org>
14844
14845 * charset.c (Fstring): If there is a multibyte char among
14846 the args, always return a multibyte string.
14847
e12489f9
GM
148482000-01-25 Gerd Moellmann <gerd@gnu.org>
14849
14850 * sysdep.c (sys_select): Turn atimers off and on instead of
14851 recording and restoring old alarm handler
14852
14853 * process.c (toplevel): Include atimer.h.
14854 (create_process_1): Rewritten.
14855 (create_process): Use atimers instead of alarm.
14856 (wait_reading_process_input) [hpux]: Turn atimers off instead
14857 of turning off SIGALRM.
14858 (wait_reading_process_input): Turn off atimers instead off
14859 calling stop_polling.
14860
14861 * emacs.c (main): Call init_atimer.
14862
14863 * keyboard.c (toplevel): Include systime.h and atimer.h.
14864 (polling_for_input): Removed because unused.
14865 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
14866 (poll_timer): New variable.
14867 (poll_for_input, poll_for_input_1): New functions.
14868 (start_polling, stop_polling): Rewritten.
14869
14870 * keyboard.h (polling_for_input): Removed.
427ec082 14871
e12489f9
GM
14872 * atimer.h, atimer.c: New files.
14873
14874 * Makefile.in (obj): Add atimer.o.
14875 (atimer.o): New target.
14876
14877 * blockinput.h (pending_atimers): Add extern declaration.
14878 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
14879
14880 * lisp.h (popup_activated_flag): Add extern declaration.
14881
14882 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 14883 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
14884 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
14885
14886 * xterm.c (toplevel): Include atimer.h.
14887 (toolkit_scroll_bar_interaction): New variable.
14888 (Fxt_process_timeouts): Removed.
14889 (x_process_timeouts): New function.
14890 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
14891 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
14892 (x_make_frame_visible): Call poll_for_input_1 instead of
14893 input_poll_signal. Don't call alarm.
14894 (x_initialize): Install timer calling x_process_timeouts.
427ec082 14895
1e5279b9
DL
148962000-01-24 Dave Love <fx@gnu.org>
14897
6c67ddee 14898 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
14899 Don't use -cckr -- apparently not now necessary.
14900
edf6aeb8
EZ
149012000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
14902
14903 * msdos.c (IT_menu_display): Truncate long menu lines at the right
14904 screen boundary.
14905
9badad41
JR
149062000-01-23 Jason Rumney <jasonr@gnu.org>
14907
14908 * w32fns.c (w32_defined_color): Apply gamma correction before
14909 trying to map to the palette.
14910 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
14911 to w32_clear_rect.
14912
14913 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
14914 here. Callers changed to always pass real device context.
14915 (w32_draw_bitmap): Likewise.
14916 (w32_get_glyph_overhangs): Likewise.
52283633 14917 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
14918 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
14919 pfnSetScrollInfo and SetScrollRange.
14920 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
14921 back into MULE characters after decoding them.
14922 (x_get_glyph_face_and_encoding): Likewise.
14923 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
14924 GetCharABCWidthsW fails, since this is defined on Windows 9x.
14925 (x_produce_glyphs): Calculate per char metrics for a character
14926 that we know exists in default font when font_not_found_p is true.
14927
63bd786b
JR
149282000-01-22 Jason Rumney <jasonr@gnu.org>
14929
14930 * makefile.nt (intervals.obj, composite.obj): New modules.
14931 (composite.h): Added as dependency where appropriate.
14932
14933 * w32gui.h (XGCValue): New struct for emulating X GCs.
14934
14935 * w32term.h (XCharStruct): New struct for emulating X.
14936
14937 * w32console.c (turn_on_face, turn_off_face): New functions.
14938 (change_line_highlight): New prototype for new redisplay.
14939 (write_glyphs): Support multibyte text. Support faces.
14940
52283633 14941 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
14942
14943 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
14944 throughout. struct frame * in place of FRAME_PTR.
14945 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 14946 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
14947 (w32_get_arg): Renamed from x_get_arg.
14948 (Fx_file_dialog): New function.
14949 (w32_list_fonts): Check cache before asking system.
14950 (Vw32_enable_synthesized_fonts): New variable.
14951 (Vw32_enable_italics): Obsolete, removed.
14952
14953 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14954 Use SELECTED_FRAME macro.
14955
14956 * w32menu.c: Add skeleton support for help strings on menus.
14957 (add_menu_item): Native checkbox and radio support added, but not
14958 yet enabled due to bugs.
14959 (push_menu_item): Add parameters type, selection and help.
14960 Callers updated.
14961 Formatting changes to reduce unnecessary diffs with xmenu.c.
14962
14963 * w32select.c (Fw32_set_clipboard_data): Update call to
14964 find_charset_in_str.
14965
14966 * w32term.c: Complete rewrite for new redisplay based on new
14967 xterm.c with necessary sections merged back in from old w32term.c.
14968
6ffd3cf7 149692000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
14970
14971 * data.c (set_internal): Further fix in same criterion.
14972
6ffd3cf7 149732000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
14974
14975 * data.c (set_internal): Fix the criteria for whether
14976 to swap out the old cached binding.
14977
60af03f1
DL
149782000-01-19 Dave Love <fx@gnu.org>
14979
14980 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
14981
f9be074f
KH
149822000-01-18 Kenichi Handa <handa@etl.go.jp>
14983
14984 * regex.c (re_compile_fastmap): While checking a range table for
14985 `charset', skip flag bits for a character class correctly.
14986
52b8dbf9
GM
149872000-01-17 Gerd Moellmann <gerd@gnu.org>
14988
d36100c9
GM
14989 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
14990
52283633 14991 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
14992
14993 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 14994 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
14995
14996 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
14997 MENU_ITEMS_ITEM_.*.
14998 (MENU_ITEMS_ITEM_HELP): New enumerator.
14999 (push_menu_item): Add parameter HELP. Record help in menu_items.
15000 (single_menu_item, single_submenu, list_of_items): Call
15001 push_menu_item with new parameter.
15002 (single_submenu): Set help string in widget value.
15003 (menu_highlight_callback): New function.
15004 (set_frame_menubar): Call lw_create_widget with new
15005 parameter list.
15006 (xmenu_show, xdialog_show): Ditto.
15007
3139018f
GM
150082000-01-13 Gerd Moellmann <gerd@gnu.org>
15009
15010 * sound.c (Fplay_sound): Improve doc string.
15011
83c8f461
RS
150122000-01-11 Richard M. Stallman <rms@gnu.org>
15013
15014 * lisp.h (set_internal): Enter the new arg.
15015
15016 * eval.c (specbind): Record buffer-local variables specially,
15017 indicating which buffer's binding was saved.
15018 (unbind_to): Restore buffer-local variables specially
15019 in the proper buffer.
15020
15021 * data.c (set_internal): New arg BUF.
427ec082 15022
83c8f461
RS
15023 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15024 * data.c (Fset): Pass new arg to set_internal.
15025 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 15026
1fab1775
GM
150272000-01-11 Gerd Moellmann <gerd@gnu.org>
15028
52283633 15029 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 15030
83c8f461 150312000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
15032
15033 * minibuf.c (Ftry_completion): Doc fix.
15034
7a85e4df
GM
150352000-01-11 Gerd Moellmann <gerd@gnu.org>
15036
15037 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15038 vector, too.
15039
a970dae4
AS
150402000-01-11 Andreas Schwab <schwab@suse.de>
15041
15042 * coding.c (code_convert_region): Initialize total_skip.
15043
c65d14ee
DL
150442000-01-08 Dave Love <fx@gnu.org>
15045
15046 * eval.c (Fuser_variable_p): Check customizability too.
15047
834938d2
GM
150482000-01-07 Gerd Moellmann <gerd@gnu.org>
15049
15050 * minibuf.c (Fcompleting_read): Doc fix.
15051
e0303cd6
GM
150522000-01-05 Gerd Moellmann <gerd@gnu.org>
15053
8a26744b
GM
15054 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15055 -L /usr/local/lib.
15056
e0303cd6
GM
15057 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15058 Check that input style is supported before trying to create an
15059 IC for it.
15060 (x_window): Call x_create_im.
427ec082 15061
2e471eb5
GM
150622000-01-04 Gerd Moellmann <gerd@gnu.org>
15063
560a7bd2
GM
15064 * xfns.c (current_gif_memory_src): New variable.
15065 (gif_load): Record the address of the current memory source
15066 in current_gif_memory_src.
15067 (gif_read_from_memory): Use current_gif_memory_src.
15068
f9ee84a3
GM
15069 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15070 macros statement form.
15071
d1299cde
GM
15072 * sound.c (struct sound): Renamed from struct sound_file.
15073 (struct sound): Add members `data' and `header_size'.
15074 (enum sound_attr): Add SOUND_DATA.
15075 (current_sound, current_sound_device): Variables renamed from
15076 sound_file and sound_device.
15077 (parse_sound): Parse :data.
15078 (parse_sound): Handle sound data in strings.
15079 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 15080 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
15081 needed header size.
15082 (wav_play, au_play): Play sounds from string data.
15083
2e471eb5
GM
15084 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15085
15086 * lisp.h: Add prototype for allocate_string_data.
15087
52283633 15088 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
15089
15090 * alloc.c (mark_buffer): Remove code in #if 0.
15091 (gc_sweep): Ditto.
15092 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15093 (strings_consed): New variable.
15094 (allocate_string): Set it.
15095 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15096 (Fmemory_use_counts): Return strings_consed. Use Flist.
15097
15098 * alloc.c: General cleanup in comments etc. Remove conditional
15099 compilation for `standalone'.
15100
15101 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15102
15103 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15104 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15105 (DONT_COPY_FLAG): Removed.
15106 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15107 (struct sdata, struct sblock): New
15108 (struct string_block): Rewritten.
15109 (STRINGS_IN_STRING_BLOCK): New macro.
15110 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15111 (large_sblocks, string_blocks, string_free_list): New variables.
15112 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15113 (init_strings): Rewritten.
15114 (allocate_string, allocate_string_data, compact_small_strings)
15115 (free_large_strings, sweep_strings): New functions.
15116 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15117 (struct string_block_head, current_string_block)
15118 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15119 (STRING_PAD): Removed.
15120 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15121 (Fgarbage_collect): Don't set mark bit in large strings.
15122 (mark_object): Mark strings differently. Mark symbol names
15123 differently.
15124 (survives_gc_p): Test marked strings differently.
427ec082 15125 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
15126 symbol names.
15127 (compact_strings): Removed.
15128
42608ba8
EZ
151292000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15130
15131 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15132 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15133
e0a09e1a
KH
151342000-01-04 Kenichi Handa <handa@etl.go.jp>
15135
dd9f0750 15136 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 15137 in a non-empty buffer.
dd9f0750 15138
3c0f3b15 15139 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 15140
44cd3ae5
GM
151412000-01-03 Gerd Moellmann <gerd@gnu.org>
15142
15143 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15144 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15145
15146 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15147
c182a70f
EZ
151482000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15149
15150 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15151 need to test for MSDOS frames.
15152
24480d5b
EZ
151532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15154
15155 * dosfns.c (unspecified_colors): Remove.
15156 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15157 unspecified_bg.
15158 (msdos_stdcolor_name): Return strings for unspecified fore- and
15159 back-ground colors.
15160
15161 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 15162 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
15163 (tty_color_name): Return Lisp strings for unspecified fore- and
15164 back-ground colors.
15165 (Finternal_set_lisp_face_attribute): Remove the special treatment
15166 for Qunspecified_{f,b}g.
52283633 15167 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 15168
047f434a
GM
151692000-01-03 Gerd Moellmann <gerd@gnu.org>
15170
15171 * xdisp.c (reseat_at_next_visible_line_start): Position before
15172 newline only if ending up on a newline.
15173 (next_element_from_ellipsis): Return success. Handle case of
52283633 15174 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
15175 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15176 returns 0.
15177
d684c676
EZ
151782000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15179
15180 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15181 (Fcolor_supported_p): Renamed from face-color-supported-p.
15182
5fe1d139
EZ
151832000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15184
15185 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15186 list of colors renamed to tty-defined-color-alist.
15187 (tty_color_name): Pass the frame to tty-color-by-index.
15188 (realize_tty_face): tty-color-alist is now a function which
15189 accepts the frame as argument.
15190
52283633 15191 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 15192
816be8b8
EZ
151932000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15194
15195 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15196 encode_terminal_code.
15197
b635321e
EZ
151982000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15199
15200 * dispnew.c (mode_line_string): Support termcap frames as well.
15201
9b784e96
GM
152022000-01-01 Gerd Moellmann <gerd@gnu.org>
15203
27189709
GM
15204 * syntax.c (Fforward_word): Undo previous change.
15205
15206 * editfns.c (Fconstrain_to_field): Don't constrain if
15207 inhibit-field-text-motion is non-nil.
15208 (Fline_beginning_position): Undo previous change.
15209 (Fline_end_position): Ditto.
15210
15211 * syntax.c (Fforward_word): Notice field boundaries only if
15212 inhibit-field-text-motion is nil.
15213
15214 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15215
15216 * editfns.c (Vinhibit_field_text_motion): New variable.
15217 (inhibit-field-text-motion): New DEFVAR_LISP.
15218 (Fline_beginning_position, Fline_end_position): Notice field
15219 boundaries only if inhibit-field-text-motion is nil.
15220
45158a91
GM
15221 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15222 All calls adjusted.
15223 (x_build_heuristic_mask): Likewise.
15224 (xbm_load_image_from_file): Change error output.
15225 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15226 (gif_load, gs_load, x_kill_gs_process): Ditto.
15227
9b784e96
GM
15228 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15229 color indices when accessing raster pixels.
63cec32f
GM
15230 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15231 one of :file or :data.
15232 (enum pbm_keyword_index): Add PBM_DATA.
15233 (pbm_format): Add :data.
15234 (pbm_image_p): Allow either :file or :data.
15235 (pbm_read_file): New function.
15236 (pbm_scan_number): Rewritten to read from string.
15237 (pbm_load): Support :data.
9b784e96 15238
2cb085db 15239See ChangeLog.8 for earlier changes.
6922b018
KH
15240
15241;; Local Variables:
49b3bd82 15242;; coding: iso-2022-7bit
6922b018 15243;; End:
2a34a036
GM
15244
15245 Copyright (C) 2001 Free Software Foundation, Inc.
15246 Copying and distribution of this file, with or without modification,
15247 are permitted provided the copyright notice and this notice are preserved.