(dired-do-query-replace-regexp): Add `-regexp'
[bpt/emacs.git] / src / ChangeLog
CommitLineData
cb613bb8
GM
12000-05-16 Gerd Moellmann <gerd@gnu.org>
2
835c1b36
GM
3 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
4 buffer list that wasn't selected in that frame.
5
cb613bb8
GM
6 * filelock.c (get_boot_time): To obtain an 8 char file name, which
7 is needed on mescaline, use a 2 char prefix, and call
8 make_temp_name with second arg non-zero.
9
10 * fileio.c (make_temp_name): New function, extracted from
11 Fmake_temp_name.
12 (Fmake_temp_name): Use it.
13
f685bea9
EZ
142000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
15
16 * window.c (coordinates_in_window): Subtract 1 when computing
17 right_x.
18
a1b8d58b
GM
192000-05-15 Gerd Moellmann <gerd@gnu.org>
20
21 * Makefile.in (lisp): Add env.elc.
22
23 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
24
a265079f
GM
252000-05-12 Gerd Moellmann <gerd@gnu.org>
26
27 * search.c (Freplace_match): Handle case of `\N' in the
28 replacement when there's no group N.
29
da4496b6
GM
302000-05-11 Gerd Moellmann <gerd@gnu.org>
31
0ace421a
GM
32 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
33 of the message to message_dolog.
34
1172eb8d
GM
35 * keyboard.c (read_char): Don't clear current message for help
36 events; let the code handling help events handle this. Change
37 code detecting help events that should be ignored.
38
da4496b6
GM
39 * xdisp.c (handle_single_display_prop): Don't try to set PT if
40 we're interating over a string.
41
0623e40f
DL
422000-05-09 Dave Love <fx@gnu.org>
43
44 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
45 that offset before writing. Move gcpro region past call of
46 Ffile_regular_p.
47
bae2503b
DL
482000-05-04 Dave Love <fx@gnu.org>
49
50 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
51
ec82fb2f
GM
522000-05-04 Gerd Moellmann <gerd@gnu.org>
53
54 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
55 of inserted characters when BUF equals the current buffer, and PT
56 is in front of or equal to FROM.
57
cbf18892
GM
582000-05-03 Gerd Moellmann <gerd@gnu.org>
59
4ff40dd0
GM
60 * xdisp.c (handle_single_display_prop): If display property value
61 is invalid, or something not supported on the frame, restore
62 iterator's position to what it was initially. Make sure to return
63 0 for invalid and unsupported property values.
64
cbf18892
GM
65 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
66 that x_per_char_metric returns null.
67
1b0672c3
GM
682000-05-02 Gerd Moellmann <gerd@gnu.org>
69
576da55d
GM
70 * xterm.h (struct face): Add forward declaration.
71 (struct image): Ditto.
72 (image_ascent): Add prototype.
73
74 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
75 (x_draw_image_relief, x_draw_image_foreground_1): Call function
76 image_ascent instead of using IMAGE_ASCENT.
77
78 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
79 (IMAGE_ASCENT): Removed.
80
81 * xfns.c (Qcenter): New variable.
82 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
83 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
84 (image_ascent): New function.
85 (lookup_image): Recognize `:ascent center'.
86 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
87 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
88 (xbm_load): Don't set image's ascent here.
89 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
90 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
91 check ascent values here.
92 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
93 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
94 (syms_of_xfns): Initialize Qcenter.
95
1b0672c3
GM
96 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
97 to the limits, increase the limits.
98
0d7811ed
KH
992000-05-01 Kenichi Handa <handa@etl.go.jp>
100
101 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
102 Check Vfont_encoding_alist against the full name of the opened
103 font.
104
a943a5ca
GM
1052000-04-28 Gerd Moellmann <gerd@gnu.org>
106
107 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
108 taller than the window.
109
5dba1e29
KH
1102000-04-28 Kenichi Handa <handa@etl.go.jp>
111
112 * xfaces.c (realize_x_face): Fix the argument of the second
113 xassert. BASE_FACE may not be a face for ASCII.
114
353964e3
GM
1152000-04-27 Gerd Moellmann <gerd@gnu.org>
116
c76e04a8
GM
117 * print.c (print_object): Treat print-length < 0 as nil.
118
119 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
120
121 * s/freebsd.h (TERMCAP_OBJ): Removed.
122 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
123
124 * lread.c (read1): Don't treat period followed by certain
125 characters as symbol start.
126
127 * xfns.c (slurp_file): New function.
128 (xbm_image_p): Handle case of in-memory XBM files.
129 (xbm_scan): Rewritten to work on memory buffers instead of files.
130 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
131 Work on memory buffers instead of files. If DATA is null test
132 if buffer looks like an in-memory XBM file.
133 (xbm_load_image): Renamed from xbm_load_image_file. Work on
134 memory buffers instead of files.
135 (xbm_file_p): New function.
136 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
137
353964e3
GM
138 * lread.c (end_of_file_error): New function.
139 (read1): Call it instead of signaling `end-of-file' directly.
140
141 * print.c (print_error_message): Print data of `end-of-file'
142 with Fprinc instead of Fprin1.
143
24d744ac
KR
1442000-04-26 Ken Raeburn <raeburn@gnu.org>
145
146 * window.c (freeze_window_start): Check that minibuffer scroll
147 window isn't nil before extracting the window structure pointer
148 from it.
149
150 * undo.c (record_delete): If we hit the end of the undo list, stop
151 picking elements apart.
152
7464346d
GM
1532000-04-26 Gerd Moellmann <gerd@gnu.org>
154
155 * xdisp.c (display_line): If lines are continued, restore
156 iterator's ascent/descent information to the values before the
157 first glyph not fitting on the line.
158
612839b6
GM
1592000-04-25 Gerd Moellmann <gerd@gnu.org>
160
161 * xdisp.c (try_window_id) <all changes above window start>: Adjust
162 positions in glyph matrix. Don't compute new window end
163 positions.
164
165 * dispnew.c (increment_matrix_positions): Renamed from
166 increment_glyph_matrix_buffer_positions.
167 (increment_row_positions): Renamed from
168 increment_glyph_row_buffer_positions.
169
170 * dispextern.h: Change names of renamed functions from dispnew.c
171 in prototypes.
172
cc181e95
GM
1732000-04-24 Gerd Moellmann <gerd@gnu.org>
174
abfcc168
GM
175 * fileio.c (Fdo_auto_save): Create directories for auto-save
176 list file if necessary.
177
cc181e95
GM
178 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
179 from buffer or frame.
180 (automatic_hscrolling_p): New variable.
181 (hscroll_windows): Scroll windows horizontally only if automatic
182 hscrolling is allowed.
183 (syms_of_xdisp): New variable `automatic-hscrolling'.
184
185 * frame.h (struct frame): Add member extra_line_spacing.
186
187 * xfns.c (x_set_line_spacing): New function.
188 (Fx_create_frame): Set line spacing from resources.
189 (Qline_spacing): New variable.
190 (syms_of_xfns): Initialize Qline_spacing.
191
192 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
193
194 * buffer.c (init_buffer_once): Handle extra_line_spacing.
195 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 196 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
197 extra_line_spacing from default value.
198 (init_buffer_once): Initialize default value of extra_line_spacing.
199
200 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
201 and extra3.
202
203 * xterm.c (x_produce_glyphs): Remove reference to struct it's
204 prompt_width. Add extra line spacing.
205
206 * term.c (produce_glyphs): Remove reference to struct it's
207 prompt_width.
208
209 * dispextern.h (struct it): Remove member prompt_width, add
210 extra_line_spacing.
211
58827478
GM
2122000-04-22 Gerd Moellmann <gerd@gnu.org>
213
214 * dispnew.c (update_frame_line): When writing a whole line, make
215 sure cursor is in the right row afterwards, otherwise a use of
216 capability `ch' in cmgoto might leave the cursor in the row below.
217
25a87f42
GM
2182000-04-21 Gerd Moellmann <gerd@gnu.org>
219
220 * lisp.h (struct Lisp_Buffer_Cons): Remove.
221
222 * keyboard.c (timer_check): Fix typo in comment.
223
54edf5c2
KH
2242000-04-21 Kenichi Handa <handa@etl.go.jp>
225
226 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
227 name change: ch -> character.
228
3a64eef5
GM
2292000-04-20 Gerd Moellmann <gerd@gnu.org>
230
231 * keyboard.c (echo_message_buffer): New variable.
232 (echo_now): Set echo_message_buffer to the echo area buffer used
233 to display the echo.
234 (cancel_echoing): Reset echo_message_buffer to nil.
235 (read_char): Code rewritten that handles canceling an echo or
236 echoing a dash, respectively.
237
238 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
239 directory doesn't exist.
240
6142fdcb
DL
2412000-04-19 Dave Love <fx@gnu.org>
242
243 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
244 (concat): Don't allow numeric args.
245 (Fconcat): Doc change.
6142fdcb 246
ac6b5352
SM
2472000-04-19 Stefan Monnier <monnier@cs.yale.edu>
248
249 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
250 instead define end_match(1|2) more carefully.
251 Use GET_CHAR_BEFORE_2 for `begline'.
252
cb9215e4
GM
2532000-04-19 Gerd Moellmann <gerd@gnu.org>
254
5e3dac3f
GM
255 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
256 on 64-bit systems where NULL is defined as `0'.
257
258 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
259 the `variable argument list' to make it work on Alpha.
260
cb9215e4
GM
261 * m/alpha.h (_LP64) [!_LP64]: Define.
262 (ORDINARY_LINK): Define for NetBSD.
263
264 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
265
f532dca0
DL
2662000-04-19 Dave Love <fx@gnu.org>
267
c750667e
DL
268 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
269 change.
270
271 * Makefile.in (LIBS): Don't use.
272 (GETLOADAVG_OBJ): Define again.
273 (otherobj): Add GETLOADAVG_OBJ.
274
f532dca0
DL
275 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
276
1c7e22fd
GM
2772000-04-18 Gerd Moellmann <gerd@gnu.org>
278
f6d3257b
GM
279 * lread.c (read_filtered_event): Cancel and start busy cursor.
280
1c7e22fd
GM
281 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
282 that the per-character metrics may be null.
283
e10f64e7
GM
2842000-04-17 Gerd Moellmann <gerd@gnu.org>
285
0daee095
GM
286 * buffer.c (clone_per_buffer_values): New function.
287 (Fmake_indirect_buffer): Add optional argument CLONE. Call
288 clone_per_buffer_values if CLONE is not nil.
289
e10f64e7
GM
290 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
291
38687d43
DL
2922000-04-16 Dave Love <fx@gnu.org>
293
294 * Makefile.in: Remove obsolete localcpp stuff.
295 (GETLOADAVG_OBJ): Don't define.
296 (obj): Move LIBOBJS...
297 (otherobj): ... to here.
298 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
299 whitespace-only lines after the continuation (Irix).
300
c21c7262
GM
3012000-04-14 Gerd Moellmann <gerd@gnu.org>
302
303 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
304
305 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
306
314767c0
DL
3072000-04-14 Dave Love <fx@gnu.org>
308
309 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
310 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
311 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
312 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
313 NLIST_STRUCT.
314
315 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
316 autoconfiscated HAVE_GETLOADAVG.
317
318 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
319 BROKEN_MKTIME.
320
a2522dca
GM
3212000-04-14 Gerd Moellmann <gerd@gnu.org>
322
323 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
324 (fill_in_lock_file_name): Avoid existing files that aren't
325 links.
326
33744b5d
DL
3272000-04-14 Dave Love <fx@gnu.org>
328
c21c7262 329 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
330 (INTERVAL_SRC): Convert to make variable.
331 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
332 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
333 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
334 add LIBOBJS.
335 (SOME_MACHINE_OBJECTS): Remove interval stuff.
336 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
337 (shortlisp): Add facemenu, float-sup, frame.
338 (SOME_MACHINE_LISP): Remove them from here.
339 (LIBES): Change unused LDLIBS to autoconf LIBS.
340
341 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
342
9d3d5916
KH
3432000-04-14 Kenichi Handa <handa@etl.go.jp>
344
345 * composite.c (update_compositions): If FROM and TO are not in a
346 valid range, do nothing.
347
198e3c7a
GM
3482000-04-13 Gerd Moellmann <gerd@gnu.org>
349
350 * tparam.c (tparam1): Abort when encountering an unknown
351 `%'-specifier.
352
353 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
354 terminfo.o.
355
356 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
357 as TERMCAP_OBJ.
358
055a28c9
EZ
3592000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
360
361 * fileio.c (a_write): Remove redundant semi-colons.
362 (e_write): Return -1 if failed to write all the data.
363 This fixes the changes made at 1999-12-15.
364
f5c75033
DL
3652000-04-12 Dave Love <fx@gnu.org>
366
367 * fns.c (mapcar1): Test for null vals to support mapc.
368 (Fmapc): New function.
369
0c3cfc51
EZ
3702000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
371
372 * msdos.c (NUM_MOUSE_BUTTONS): Define.
373 (IT_frame_up_to_date): Support the buffer local value of
374 cursor-type, if defined.
375
33465a31
DL
3762000-04-10 Dave Love <fx@gnu.org>
377
378 * editfns.c (preceding-char, following-char): Doc fix.
379
6ed56568
KR
3802000-04-10 Ken Raeburn <raeburn@gnu.org>
381
382 * Makefile.in (temacs): Revert 2000-03-12 change.
383
7cf80d4e
JR
3842000-04-10 Jason Rumney <jasonr@gnu.org>
385
386 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
387
34f3f342
GM
3882000-04-10 Gerd Moellmann <gerd@gnu.org>
389
1a1b1895
GM
390 * xdisp.c (setup_echo_area_for_printing): Choose an echo
391 area buffer, if it's not set up yet.
392
34f3f342
GM
393 * indent.c (compute_motion): Set immediate_quit.
394
be0dbdab
GM
3952000-04-09 Gerd Moellmann <gerd@gnu.org>
396
c45be9ac
GM
397 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
398 variable.
399 (realize_tty_face): Suppress boldness if colors are the inverse of
400 the default colors, and tty_suppress_bold_inverse_default_colors_p
401 is set.
402 (Ftty_suppress_bold_inverse_default_colors): New function.
403 (syms_of_xfaces): Defsubr it.
404
be0dbdab
GM
405 * buffer.c (Frestore_buffer_modified_p): New function.
406 (syms_of_buffer): Defsubr it.
407
e8413c3b
KR
4082000-04-08 Ken Raeburn <raeburn@gnu.org>
409
87f67317
KR
410 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
411 charset id (int) argument, not a charset (Lisp_Object).
412
e8413c3b
KR
413 * coding.h (code_convert_string): Declare.
414 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
415 object, as the fourth argument to code_convert_string.
416
417 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
418 value.
419 (Fset_fontset_font): Use EQ to compare lisp objects.
420
7c752c80
KR
4212000-04-05 Ken Raeburn <raeburn@gnu.org>
422
c0333abc
KR
423 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
424 a pointer that looks like a lisp object.
425 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
426 zero, instead see whether it's an integer object, since they can't
427 have intervals.
428 (GET_INTERVAL_OBJECT): Simply assign to the destination.
429
7c752c80
KR
430 * dispnew.c (allocate_matrices_for_frame_redisplay,
431 direct_output_forward_char): Use X(U)INT and make_number as needed
432 to convert between (unsigned) int values and lisp integers.
433 * keyboard.c (read_key_sequence): Likewise.
434 * lread.c (substitute_object_recurse): Likewise.
435 * fns.c (concat, hash_lookup, hash_remove): Likewise.
436 * minibuf.c (do_completion, Fminibuffer_complete_word,
437 Fminibuffer_completion_help): Likewise.
438 * term.c (produce_special_glyphs): Likewise.
439
440 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
441 * print.c (print_preprocess, print_object): Likewise.
442
443 * search.c (compile_pattern): Use NILP when checking for nil.
444
74e49b38
KR
445 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
446 __OPTIMIZE__]: Provide a GNU C macro version that handles
447 lisp-object unions.
448 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
449 field, to better cope with ENABLE_CHECKING and calls that modify a
450 Lisp_Object using its old value.
451
685e5ed2
GM
4522000-04-04 Gerd Moellmann <gerd@gnu.org>
453
c407c570
GM
454 * window.c (compare_window_configurations): Signal an error
455 if parameters C1 or C2 aren't window configurations.
456
685e5ed2
GM
457 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
458 AFTER_POTENTIAL_GC calls around calls to functions that can
459 signal an error and thus invoke the debugger.
460
587a49ab
GM
4612000-04-03 Gerd Moellmann <gerd@gnu.org>
462
62f20204
GM
463 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
464 an error if decoding fails.
465
587a49ab
GM
466 * keyboard.c (lispy_mouse_names): Variable removed.
467 (Vlispy_mouse_stem): New variable.
468 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
469 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
470 for any mouse button number. Increase size of mouse_syms and
471 button_down_location as needed. Call modify_event_symbol with
472 different arguments.
473 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
474 Call modify_event_symbol with different arguments.
475 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
476 for any button number. Call modify_event_symbol with different
477 arguments.
478 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
479 Accept a string for NAME_ALIST_OR_STEM.
480
481 * lisp.h (larger_vector): Add prototype.
482
483 * fns.c (larger_vector): Make externally visible.
484
485 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
486
2d1675e4
SM
4872000-04-02 Stefan Monnier <monnier@cs.yale.edu>
488
489 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
490 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
491 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
492 we are between str1 and str2.
493 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
494 (PATFETCH): Use `TRANSLATE'.
495 (PATFETCH_RAW): Fetch multibyte char if applicable.
496 (PATUNFETCH): Remove.
497 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
498 When writing a char, write it directly into the pattern buffer rather
499 than going needlessly through a temp char-array.
500 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
501 multibyte magic and remove the useless `#ifdef emacs'.
502 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
503 buffer.
504
505 * regex.h (struct re_pattern_buffer): Make field `multibyte'
506 conditional on `emacs'.
507
508 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
509
cc2d8c6b
KR
5102000-04-01 Ken Raeburn <raeburn@gnu.org>
511
512 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
513 non-union-type versions of XMARK and friends here, because XMARK
514 and friends won't work on an integer field if NO_UNION_TYPE is not
515 defined.
516 (make_number): Define as a function if it's not defined as a
517 macro.
518
09654086
KR
519 * composite.c (run_composite_function): Use NILP when checking for
520 nil.
521 (syms_of_composite): Delete local var NARGS, pass an int as first
522 argument to Fmake_hash_table.
523
2387b382
KR
524 * editfns.c (text_property_stickiness): Use NILP to test
525 Lisp_Object boolean value.
526 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
527 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
528 problems reading from and changing the same lisp value in an
529 XSETSTRING call.
530
27660e89
GM
5312000-04-01 Gerd Moellmann <gerd@gnu.org>
532
533 * term.c (TN_no_color_video): New variable.
534 (term_init): Intitialize TN_no_color_video.
535 (enum no_color_bit): New enumeration.
536 (MAY_USE_WITH_COLORS_P): New macro.
537 (turn_on_face): Use it to determine if attributes may be used
538 combined with colors.
539
3578db3c
KR
5402000-04-01 Ken Raeburn <raeburn@gnu.org>
541
542 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
543 with int lvalues via casts; instead, just yield lisp object
544 lvalues.
545 (enlarge_window): Variable sizep now points to Lisp_Object. Use
546 proper accessor macros.
547 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
548 (grow_mini_window): Fix typo getting int value of root->height.
549
6fc556fd
KR
550 * xdisp.c (compute_string_pos): Fix order of arguments to
551 string_pos_nchars_ahead.
552 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
553 count arg to variable-arg routines like Frun_hook_with_args and
554 Fformat.
587a49ab
GM
555 (back_to_previous_visible_line_start)
556 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
557 fixed-arg routines like Fget_char_property and Fmake_string.
558 (reconsider_clip_changes): Use XINT when comparing integer lisp
559 objects, or passing them as int arguments.
587a49ab
GM
560 (mark_window_display_accurate, insert_left_trunc_glyphs)
561 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
562 storing or passing integer values as lisp objects.
563 (set_cursor_from_row, highlight_trailing_whitespace): Use
564 INTEGERP, not implicit test against zero, for glyph object.
565 (try_window_id): Don't use make_number when we want an int value.
566
567 * xfaces.c (xlfd_symbolic_value): Make last argument a
568 Lisp_Object, to be consistent with callers.
569 (Fbitmap_spec_p): Use XINT to get numeric value of height.
570 (lface_hash): Apply XFASTINT to lisp values before folding in.
571
572 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
573 fill in window width and height. Pass an int, not a lisp object,
574 as first arg to Finsert.
575
6e7b2457
GM
5762000-04-01 Gerd Moellmann <gerd@gnu.org>
577
610d841e
GM
578 * xfaces.c (realize_basic_faces): Block input while realizing
579 the faces.
580
6e7b2457
GM
581 * keyboard.c (lispy_mouse_names): Add additional mouse names.
582
583 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
584
aa110c0c
GM
5852000-03-31 Gerd Moellmann <gerd@gnu.org>
586
587 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 588 or ASCII, handle case that per-char metric is null.
aa110c0c 589
8801a864
KR
5902000-03-30 Ken Raeburn <raeburn@gnu.org>
591
c6129d7e
KR
592 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
593
8801a864
KR
594 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
595 XSUBR, XBUFFER): Verify correct object type before returning
596 pointer, using eassert.
597 * frame.h (XFRAME): Likewise.
598
599 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
600 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
601 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
602 type.
603 * data.c (set_internal): Likewise.
604 * dispextern.h (WINDOW_WANTS_MODELINE_P,
605 WINDOW_WANTS_HEADER_LINE_P): Likewise.
606 * fileio.c (auto_save_1): Likewise.
607 * insdel.c (check_markers): Likewise.
608 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
609 * undo.c (record_insert): Likewise.
610 * vmsproc.c (child_sig): Likewise.
611 * window.c (unshow_buffer, window_loop): Likewise.
612 * xterm.c (x_erase_phys_cursor): Likewise.
613
8e7af858
GM
6142000-03-30 Gerd Moellmann <gerd@gnu.org>
615
616 * xfns.c (free_image_cache): Free the cache structure itself
617 last, after all its members have been freed.
618
619 * lisp.h (xstrdup): Add prototype.
620
621 * alloc.c (xstrdup): Moved here from xfaces.c.
622 (allocating_for_lisp): Variable removed.
623 (lisp_malloc): Block input around the calls to malloc and
624 mem_insert.
625
626 * xfaces.c (realize_tty_face): Use find_symbol_value instead
627 of Fsymbol_value.
628 (xstrdup): Moved to alloc.c.
629
e0b8c689
KR
6302000-03-29 Ken Raeburn <raeburn@gnu.org>
631
b96f9fb7
KR
632 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
633
634 * emacs.c (main): Fix sense of no-loadup test.
635
e0b8c689
KR
636 * config.in (ENABLE_CHECKING): Undef.
637
638 * lisp.h (struct interval): Replace "parent" field with a union of
639 interval pointer and Lisp_Object; add new bitfield to use as
640 discriminant. Change other flag fields to bitfields.
641 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
642 is defined and the supplied test fails, print a message and
643 abort.
644 (eassert): New macro. Use CHECK to provide an assert-like
645 facility.
646
647 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
648 pointers; abort if the value looks like a lisp object.
649 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
650 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
651 Modify for new interval parent definition.
652
653 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
654 UNMARK_BALANCE_INTERVALS): Update references that need an
655 addressable lisp object in the interval structure.
656 (die): New function.
657 (suppress_checking): New variable.
658
659 * intervals.c (interval_start_pos): Just return 0 if there's no
660 parent object.
661
f83c5440
GM
6622000-03-29 Gerd Moellmann <gerd@gnu.org>
663
664 * lread.c (read1): Accept `.' (period) as symbol start like in CL
665 and earlier Emacs versions.
666
667 * keyboard.c (Ftop_level): Cancel busy-cursor.
668
669 * eval.c (call_debugger): Cancel busy-cursor.
670
fdce64ff
KH
6712000-03-29 Kenichi Handa <handa@etl.go.jp>
672
673 * search.c (Freplace_match): Adjust multibyteness of the current
674 buffer and NEWTEXT. Free allocated memory before signaling an
675 error.
676
f6a3f532
SM
6772000-03-28 Stefan Monnier <monnier@cs.yale.edu>
678
679 * regex.c (analyse_first): New function obtained by ripping out most
680 of re_compile_fastmap and generalizing it a little bit so that it
681 can also just return whether a given (sub)pattern can match the empty
682 string or not.
683 (regex_compile): Use `analyse_first' to decide whether the loop-check
684 needs to be done or not for *, +, *? and +? (the loop check is costly
685 for non-greedy repetition).
686 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
687
e9b309ac
DL
6882000-03-28 Dave Love <fx@gnu.org>
689
bb15bd9a
DL
690 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
691 alpha.
692
e9b309ac
DL
693 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
694
ed0767d8
SM
6952000-03-27 Stefan Monnier <monnier@cs.yale.edu>
696
697 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
698 an expression.
699 (enum re_opcode_t): Update description of succeed_n.
700 (PATFETCH): Always define.
701 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
702 operators, char classes, shy-groups and intervals).
703 Optimize special cases of intervals so as to only use succeed_n and
704 jump_n when really needed.
705 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
706 that we don't have to handle the special cases any more.
707 Simplify on_failure_jump handling as well.
708
e11e7e46
JR
7092000-03-28 Jason Rumney <jasonr@gnu.org>
710
711 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
712
88faab89
GM
7132000-03-27 Gerd Moellmann <gerd@gnu.org>
714
182ff242
GM
715 * s/freebsd.h (GC_SETJMP_WORKS): Define.
716
717 * s/msdos.h (GC_SETJMP_WORKS): Define.
718
719 * alloc.c (mark_maybe_object): New function.
720 (mark_memory): Use it.
721 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
722 (setjmp_tested_p, longjmp_done): New variables.
723 (test_setjmp): New function.
724 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
725 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
726
c1005d06
GM
727 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
728 to DEC_TEXT_POS and INC_TEXT_POS.
729
730 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
731 with parameter MULTIBYTE_P.
732
733 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
734 MULTIBYTE_P.
735
7439e5b9 736 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
737 buffers because it looks for multibyte character byte sequences
738 which don't exist in unibyte text.
7439e5b9 739
d9c545da
GM
740 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
741
11fd416e 742 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
743 [DEBUG_X_COLORS]: New functions.
744 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
745
746 * xfns.c (x_set_cursor_color): Get color reference counts right.
747
748 * xterm.c (x_copy_color): New function.
749 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
750
751 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
752 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
753 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
754 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
755 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
756 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
757 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
758 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
759 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
760 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
761
11fd416e
GM
762 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
763 names for handling per-buffer variables.
d9c545da
GM
764
765 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
766 instead of MAX_BUFFER_LOCAL_VARS.
767 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
768
769 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
770
88faab89
GM
771 * xfns.c (x_specified_cursor_type): New function.
772 (x_set_cursor_type): Use it.
773
774 * buffer.h (struct buffer): Add cursor_type.
775
d80f42b7
SM
7762000-03-26 Stefan Monnier <monnier@cs.yale.edu>
777
778 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
88faab89
GM
779 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
780 opcode.
d80f42b7
SM
781 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
782 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
783 executing it as well as when popping it off the stack to find infinite
784 loops in non-greedy repetition operators.
785
89e80928
GM
7862000-03-26 Gerd Moellmann <gerd@gnu.org>
787
3d4ff2dd
GM
788 * doc.c (Qfunction_documentation): New variable.
789 (syms_of_doc): Initialize Qfunction_documentation.
790 (Fdocumentation): If FUNCTION is a symbol with non-nil
791 `function-documentation' property, return a documentation derived
792 from that.
793
bd96bd79
GM
794 * buffer.c (syms_of_buffer): Add default-cursor-type.
795 (init_buffer_once): Don't let cursor_type have a local value
796 in every buffer.
797
19d1bc27
GM
798 * xterm.c (x_display_and_set_cursor): Choose cursor depending
799 on buffer-local value of cursor_type.
800 (x_draw_bar_cursor): Add parameter WIDTH.
801
802 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
803 (init_buffer_once): Set default cursor_type value to t.
804 Mark cursor_type as local everywhere.
805 (syms_of_buffer): New per-buffer variable cursor-type.
806
89e80928
GM
807 * buffer.h (struct buffer): Remove member local_var_flags,
808 add local_flags.
809 (MAX_BUFFER_LOCAL_VARS): New macro.
810 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
811 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
812 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
813 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
814
815 * print.c (print_object): Use new macros for per-buffer
816 variables.
817
818 * category.c (Fset_category_table): Use new macros for per-buffer
819 variables.
820
821 * buffer.c (buffer_permanent_local_flags): Make a char array.
822 (max_buffer_local_idx): New variable.
823 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
824 for new handling of per-buffer variables.
825 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
826 (init_buffer_once): Initialize per-buffer vars differently.
827 Set max_buffer_local_idx.
828
829 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
830 variables.
831
832 * lread.c (defvar_per_buffer): Use new macros for per-buffer
833 variables.
834
835 * data.c (do_symval_forwarding, store_symval_forwarding)
836 (find_symbol_value, set_internal, default_value, Fset_default)
837 (Fkill_local_variable, Flocal_variable_p): Use new macros for
838 per-buffer variables.
839
840 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
841
9a0dd3dc
GM
8422000-03-24 Gerd Moellmann <gerd@gnu.org>
843
b68c375f
GM
844 * xterm.c (x_term_init): Unblock input around call1 of
845 Qvendor_specific_keysyms.
846
9a0dd3dc
GM
847 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
848 (find_defun_start): Consider an open parenthesis in column 0
849 a defun start only if open_paren_in_column_0_is_defun_start is set.
850 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
851
7973e637
SM
8522000-03-24 Stefan Monnier <monnier@cs.yale.edu>
853
854 * eval.c (Fautoload): Add entry in load-history (if after dump).
855 * lread.c (load-history): Update docstring.
856
39210e90
GM
8572000-03-24 Gerd Moellmann <gerd@gnu.org>
858
859 * indent.c (Fvertical_motion): Always use the current buffer.
860 Temporarily change the window's buffer, if necessary.
861
72db3ab5
GM
8622000-03-23 Gerd Moellmann <gerd@gnu.org>
863
864 * xterm.c (fast_find_position): Make sure not to consider rows
865 not visible in the window.
866
990b2375
SM
8672000-03-22 Stefan Monnier <monnier@cs.yale.edu>
868
869 * regex.c (enum syntaxcode): Provide default for non-Emacs.
870 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
871
ff4df011
JR
8722000-03-22 Jason Rumney <jasonr@gnu.org>
873
874 * w32menu.c (single_submenu): Set help string to NULL if none.
875 (w32_menu_show): Set help string correctly.
876 (add-menu-item): Set help string in MIIM_DATA for menu item.
877 Load SetMenuItemInfoA explicitly.
878 (w32_menu_display_help): New function.
879
880 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
881 (QCdata): Moved to xdisp.c.
882
883 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
884 (Vw32_charset_to_codepage_alist): Removed.
885 (Vw32_charset_info_alist): New variable.
886 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
887 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
888 greek, hebrew, thai, johab, mac, unicode]): New symbols.
889 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
890 with TODO comment.
891 (w32_codepage_for_font): Use Vw32_charset_info_alist.
892 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
893 Define Vw32_charset_info_alist and w32_charset symbols.
894
8952000-03-22 Jason Rumney <jasonr@gnu.org>
896
897 * makefile.nt (w32bdf.obj): Update dependencies.
898
899 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
900
901 * w32fns.c: Include fontset.h after dispextern.h.
902 (Fx_create_frame): Do not create fontset.
903 (w32_load_system_font): Doc fix.
904 (Fx_close_connection): Free full_name if it is not shared.
905
906 * w32term.c: Include fontset.h after dispextern.h.
907 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
908 updated.
909 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
910 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
911 (w32_font_is_double_byte): New function, needs body.
912 (x_append_glyph): Set glyph->glyph_not_available_p.
913 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
914 it->charset. If it->multibyte_p is zero and it->c is a multibyte
915 character, convert it to a unibyte character.
916 (struct glyph_string): Delete member `charset'.
917 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
918 calculating it is found.
919 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
920 the case that per char metric is not available correctly.
921 (x_fill_glyph_string): Handle the case that the specific glyph is
922 not available correctly.
923 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
924 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
925 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
926 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
927 fontset. Don't call FS_LOAD_FONT.
928
439d5cb4
KR
9292000-03-22 Ken Raeburn <raeburn@gnu.org>
930
931 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
932 (INT_LISPLIKE): New macro.
933 (NULL_INTERVAL_P): Use it.
934 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
935 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
936 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
937
938 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
939 explicit references to "parent" field of struct interval and
940 associated unclean type conversions.
941 * intervals.c (create_root_interval, root_interval, rotate_right,
942 rotate_left, balance_possible_root_interval, split_interval_right,
943 split_interval_left, interval_start_pos, find_interval,
944 next_interval, previous_interval, update_interval,
945 adjust_intervals_for_insertion, delete_node, delete_interval,
946 adjust_intervals_for_deletion, merge_interval_right,
947 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
948 copy_intervals_to_string): Likewise.
949 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
950 Likewise.
951 * syntax.c (update_syntax_table): Likewise.
952
953 * intervals.c (reproduce_tree_obj): New function, like
954 reproduce_tree but takes a Lisp_Object for the parent. Declare
955 with prototype.
956 (graft_intervals_into_buffer): Use it when appropriate.
957 (reproduce_tree): Declare with prototype.
958 (balance_possible_root_interval): Check that the parent is a lisp
959 object before trying to examine its type.
960
ee1c5b21
GM
9612000-03-22 Gerd Moellmann <gerd@gnu.org>
962
963 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
964 as strings only if both are known to be strings.
965
966 * s/openbsd.h (LIBS_TERMCAP): Undef.
967
1fb352e0
SM
9682000-03-21 Stefan Monnier <monnier@cs.yale.edu>
969
970 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
971 definitions for non-Emacs compilation.
972 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
973 outside of `#ifdef emacs'.
974 (print_partial_compiled_pattern): Update.
975 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
976 (re_compile_fastmap): Merge handling of charset and charset_not (for
977 emacs and non-emacs compilation as well).
978 Similarly for (not)categoryspec and (not)syntaxspec.
979 Don't use the fastmap when reaching `anychar' since the added
980 complexity is not justified.
981 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
982 and (not)syntaxspec. Merge (not)categoryspec.
983
fdaa1f77
KH
9842000-03-22 Kenichi Handa <handa@etl.go.jp>
985
ff1a0d8e
KH
986 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
987 FACE_FOR_CHAR): Define them differently for the configuration of
988 --without-x.
fdaa1f77 989
d152fb46
DL
9902000-03-21 Dave Love <fx@gnu.org>
991
992 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
993 doc string.
994
d2cafc8c
GM
9952000-03-21 Gerd Moellmann <gerd@gnu.org>
996
997 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
998 (lface_fully_specified_p): Don't check contents of
999 LFACE_FONT_INDEX because that attribute is optional.
1000 (realize_x_face): Remove now unwarranted xassert.
1001
9111d4b5
KH
10022000-03-21 Kenichi HANDA <handa@etl.go.jp>
1003
1004 The following changes are to make font selection based on
1005 characters, not charset. In addition, they recover fontset
1006 facilities while utilizing the new font selection mechanism.
1007
6c4bfdc0
KH
1008 * Makefile.in (fontset.o): Depend on dispextern.h.
1009
1010 * alloc.c (mark_face_cache): Don't mark face->registry.
1011
9111d4b5
KH
1012 * dispextern.h (struct glyph): New member glyph_not_available_p.
1013 Use 22 bits for face_id.
1014 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
1015 (struct face): Delete member registry, new member ascii_face.
1016 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
1017 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
1018 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
1019 (struct it): Delete member charset, new member
1020 glyph_not_available_p.
1021
1022 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
1023 (struct fontset_info, struct fontset_data): Structs removed.
1024 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
1025 Vglobale_fontset_alist, font_idx_temp): Externs removed.
1026 (fs_load_font, fs_query_fontset): Adjusted for new argument.
1027 (fs_free_face_fontset, fontset_font_pattern,
1028 face_suitable_for_char_p, face_for_char,
1029 make_fontset_for_ascii_face): Extern them.
1030 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
1031 (FS_LOAD_FACE_FONT): New macro.
1032
1033 * fontset.c: All codes rewritten or adjusted for the change of
1034 fontset implementation. Now fontset is represented by char table.
1035 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
1036 removed.
1037 (my_strcasecmp): Function removed.
1038 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
1039 variables.
1040 (AREF, ASIZE): New macros.
1041 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
1042 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
1043 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
1044 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
1045 fontset_id_valid_p, font_family_registry, fontset_name,
1046 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
1047 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
1048 New functions.
1049 (fs_load_font): New arg FACE. Caller changed.
1050 (fs_query_fontset): Argument changed. Caller changed.
1051 (Fquery_fontset): call fs_query_fontset.
1052 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
1053 Functions removed.
1054 (clear_fontset_elements, check_registry_encoding,
1055 check_fontset_name): New functions.
1056 (syms_of_fontset): Set char-table-extra-slots property of fontset
1057 to 3. Staticpro and initialize Vfontset_table and
1058 Vdefault_fontset. Defsubr fontset_font and fontset_list.
1059
1060 * frame.h (struct frame): Member `fontset_data' removed.
1061 (FRAME_FONTSET_DATA): Macro removed.
1062
1063 * frame.c (make_frame): Don't allocate f->fontset_data.
1064 (Fdelete_frame): Don't free f->fontset_data.
1065
6c4bfdc0
KH
1066 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
1067
9111d4b5
KH
1068 * xdisp.c (charset_at_position): Function removed.
1069 (init_iterator): Don't set member charset of struct `it'.
1070 (handle_face_prop, reseat_to_string, set_iterator_to_next,
1071 next_element_from_display_vector, insert_left_trunc_glyphs):
1072 Likewise.
1073 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
1074 FACE_FOR_CHARSET.
1075 (get_next_display_element, append_space,
1076 extend_face_to_end_of_line): Likewise.
1077
1078 * xfaces.c (Qx_charset_registry, Vface_default_registry):
1079 Variables removed.
1080 (clear_font_table, frame_update_line_height, load_face_font):
1081 Adjusted for the change of fontset implementation.
1082 (load_face_fontset_font): Function removed.
1083 (pixel_point_size): New function.
1084 (font_list): Argument type changed. Caller changed.
1085 (LFACE_FONT): New macro.
1086 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
1087 (set_lface_from_font_name): Type of arg FONTNAME is changed to
1088 Lisp_Object. Determine the font name by actually loading a font
1089 by the specified pattern. Set LFACE_FONT (lface) to the specified
1090 pattern. Even if a font is not found, don't try alternatives.
1091 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
1092 (set_font_frame_param): If `font' is specified in lface, use it.
1093 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
1094 (lface_same_font_attributes_p): Likewise.
1095 (make_realized_face): Arguent changed. Caller changed. Set
1096 face->ascii_face to face itself.
1097 (free_realized_face): Free face->fontset if face is for ASCII.
1098 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
1099 deduce_unibyte_registry, x_charset_registry): Functions removed.
1100 (free_realized_multibyte_face): New function.
1101 (lookup_face, lookup_named_face, lookup_derived_face): Argument
1102 changed. Caller changed.
1103 (try_font_list): Argument type changed.
1104 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
1105 (choose_face_font): Argument changed. Handle fontset properly.
1106 (choose_face_fontset_font): Function removed.
1107 (realize_default_face, realize_named_face): Don't remove the
1108 former face here.
1109 (realize_face): Argument changed. Caller changed. Remove face
1110 with the arg former_face_id in advance. Load font for the new
1111 face.
1112 (realize_x_face): Argument changed. Caller changed. For a
1113 multibyte character, share fontset with base_face. For a single
1114 byte character, make a new realized fontset. Don't load a font
1115 here.
1116 (realize_tty_face): Argument changed. Caller changed.
1117 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
1118 (face_at_buffer_position): Don't check multibyte_p for returning
1119 DEFAULT_FACE_ID.
1120 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
1121 FACE_SUITABLE_FOR_CHARSET_P.
1122 (syms_of_xfaces): Remove code for Qx_charset_registry and
1123 Vface_default_registry.
1124
6c4bfdc0
KH
1125 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
1126 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
1127 (x_per_char_metric): Don't try FONT->default_char. Even if
1128 pcm->width is zero, glyph bits may exist.
1129 (x_encode_char): Always initialize char2b->byte1.
1130 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
1131 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
1132 changed.
1133 (x_append_glyph): Set glyph->glyph_not_available_p.
1134 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
1135 it->charset. Handle the case that per char metric is not
1136 available. If it->multibyte_p is zero and it->c is a multibyte
1137 character, convert it to a unibyte character.
1138 (struct glyph_string): Delete member `charset'.
1139 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
1140 the case that per char metric is not available correctly.
1141 (x_fill_glyph_string): Handle the case that the specific glyph is
1142 not available correctly.
1143 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
1144 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
1145 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
1146 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
1147 fontset. Don't call FS_LOAD_FONT.
1148
1149 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
1150 (x_create_tip_frame): Likewise.
1151 (Fx_close_connection): Free full_name of font_info.
1152
1153 * fns.c (optimize_sub_char_table): New function.
1154 (Foptimize_char_table): New function.
1155 (syms_of_fns): Defsubr Soptimize_char_table.
1156
b33dd3b0
GM
11572000-03-20 Gerd Moellmann <gerd@gnu.org>
1158
1159 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
1160 only if buffer is displayed in some window.
1161
1162 * xdisp.c (handle_single_display_prop): Initialize local `value'.
1163 (try_window_reusing_current_matrix): Don't call scroll run
1164 function if run's current and desired position are the same;
1165 this prevents cursor flickering.
1166
4e8a9132
SM
11672000-03-19 Stefan Monnier <monnier@cs.yale.edu>
1168
1169 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
1170
1171 * regex.c (RE_STRING_CHAR): New macro.
1172 (GET_CHAR_AFER_2): Remove.
1173 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
1174 (enum re_opcode_t): Remove on_failure_jump_exclusive.
1175 (print_partial_compiled_pattern, re_compile_fastmap)
1176 (re_match_2_internal): Remove on_failure_jump_exclusive.
1177 (regex_compile): Turn optimizable P+ loops into PP*, so that the
1178 optimization only need to work for * (ie. can use of_keep_string_jump).
1179 Remove the special case for .*\n since it is now covered by the general
1180 optimization.
1181 (re_search_2): Don't bother with `room'.
1182 (skip_one_char): New function.
1183 (skip_noops): Simplify since `memory' is not needed any more.
1184 (mutually_exclusive_p): Restructure slightly to use `switch' and
1185 add handling for "all" remaining cases.
1186 (re_match_2_internal): Change on_failure_jump_smart to use
1187 on_failure_keep_string_jump (and redirect the end-of-loop jump)
1188 rather than on_failure_jump_exclusive.
1189
2136fdd4
GM
11902000-03-19 Gerd Moellmann <gerd@gnu.org>
1191
1192 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
1193 number of bits per RGB because it's everywhere used as the depth
1194 of the visual.
1195
1196 * term.c (calculate_costs): Remove code dealing with X frames.
1197
e53ae11c
RS
11982000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1199
1200 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
1201
d7b511c4
GM
12022000-03-18 Gerd Moellmann <gerd@gnu.org>
1203
1204 * lread.c (read_integer): Unread the last char not consumed.
1205
16b5d424
GM
12062000-03-17 Gerd Moellmann <gerd@gnu.org>
1207
1208 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 1209 which are in the process of being deleted.
16b5d424 1210
1fa28578
GM
12112000-03-16 Gerd Moellmann <gerd@gnu.org>
1212
83488cce
GM
1213 * Makefile.in (mostlyclean): Add `*.core'.
1214 (clean): Add `bootstrap-emacs'.
1215
1fa28578
GM
1216 * lread.c (read_integer): New function.
1217 (read1): Support read syntax #o, #x, #b, #r.
1218
99633e97
SM
12192000-03-15 Stefan Monnier <monnier@cs.yale.edu>
1220
1fa28578
GM
1221 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
1222 make sure POINTER_TO_OFFSET gives the same value before and after
1223 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
1224 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
1225 (debug): Now only active if > 0 rather than if != 0.
1226 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
1227 (print_partial_compiled_pattern): Add missing `succeed' case. Use
1228 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
1229 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
1230 (store_op1, store_op2, insert_op1, insert_op2)
1231 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
1232 (group_in_compile_stack): Move to after its arg's types are
1233 declared and add a prototype.
99633e97 1234 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
1235 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
1236 wrapper.
99633e97 1237 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
1238 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
1239 indentation of the greedy-op and shy-group code.
99633e97
SM
1240 (at_(beg|end)line_loc_p): Fix argument's types.
1241 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
1242 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
1243 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
1244 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
1245 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
1246 QUIT unconditionally.
99633e97 1247
699238d9
GM
12482000-03-15 Gerd Moellmann <gerd@gnu.org>
1249
1250 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
1251 a sole completion.
1252
1253 * process.c (send_process): Add a hint that the function
1254 can call Lisp code to its comment.
1255
1256 * lread.c (load_dangerous_libraries): New variable.
1257 (Vbytecomp_version_regexp): New variable.
1258 (safe_to_load_p): New function.
1259 (Fload): Handle files not compiled with Emacs specially.
1260 (syms_of_lread): New Lisp variable load-dangerous-libraries.
1261
34e23e5a
GM
12622000-03-14 Gerd Moellmann <gerd@gnu.org>
1263
9c763cca
GM
1264 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
1265
1266 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
1267 support functions only if HAVE_X11R6_XIM is defined.
1268 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
1269
1270 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
1271
1272 * xfns.c (X_I18N_INHIBITED): Don't define.
1273 (create_frame_xic): Remove conditional compilation on
1274 X_I18N_INHIBITED.
1275 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
1276
1277 * config.in (HAVE_X_I18N): Moved here from xterm.h.
1278 (HAVE_X11R6_XIM): Define.
1279
1280 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
1281
34e23e5a
GM
1282 * xterm.c (x_term_init): Add support for X resource `synchronous'.
1283 If set, call XSynchronize.
1284
66f0296e
SM
12852000-03-13 Stefan Monnier <monnier@cs.yale.edu>
1286
34e23e5a
GM
1287 * regex.c: Declare a new type `re_char' used throughout the code
1288 for the string char type. It's `const unsigned char' to match the
1289 rest of Emacs. Consistently make sure all pointers to strings use
1290 it and make sure all pointers into the pattern use `unsigned
1291 char'.
66f0296e 1292 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
1293 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
1294 code duplication.
66f0296e
SM
1295
1296 * charset.h (GET_CHAR_AFTER_2): Remove.
1297 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
1298
854a025c
KR
12992000-03-12 Ken Raeburn <raeburn@gnu.org>
1300
1301 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
1302 variable before the invocation of YMF_PASS_LDFLAGS, in case both
1303 of them try to use backquotes.
1304
b9d2c7e2
DL
13052000-03-12 Dave Love <fx@gnu.org>
1306
1307 * unexelf.c: Restore changes of 1999-10-19.
1308 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
1309 fix its type and alignment; copy it from current process.
1310
5e5dff44
GM
13112000-03-12 Gerd Moellmann <gerd@gnu.org>
1312
9b2f3c38
GM
1313 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
1314 has been found. Fix bug not computing timer's predecessor.
1315
9172b88d
GM
1316 * fileio.c (Fread_file_name): Handle case that DIR contains a
1317 file name.
1318
e1cff360
GM
1319 * window.c (Fsave_window_excursion): Doc fix.
1320
5e5dff44
GM
1321 * xfns.c (x_defined_color): Rewritten to use
1322 x_allocate_nearest_color.
1323
e411ce4b
EZ
13242000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1325
1326 * msdos.c (vga_installed): New function, code moved from
1327 dos_set_window_size.
1328 (Qbar, Qcursor_type, outside_cursor): New variables.
1329 (syms_of_msdos): Intern and staticpro them.
1330 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
1331 shape used outside Emacs when called for the first time.
1332 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
1333 cursor shape used outside Emacs.
1334 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
1335 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
1336 type has changed.
1337 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
1338 parameters specify the cursor. Make qreverse a global
1339 variable (renamed to Qreverse).
1340
80460654
GM
13412000-03-09 Gerd Moellmann <gerd@gnu.org>
1342
1343 * fns.c (Fy_or_n_p): Cancel busy-cursor.
1344
95cd4c40
SM
13452000-03-08 Stefan Monnier <monnier@cs.yale.edu>
1346
1347 This is a big redesign of failure-stack and register handling, prompted
1348 by bugs revealed when trying to add shy-groups. Overall, what happened
1349 is that loops are now structured a little differently, groups can be
1350 shy and the code is a little simpler.
1351
1352 * regex.h: Update the copyright.
1353 (RE_SHY_GROUPS): New value.
1354 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
1355 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
1356
80460654
GM
1357 * regex.c (enum re_opcode_t): Remove jump_past_alt,
1358 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
1359 on_failure_jump_(exclusive, loop and smart). Also fix the comment
1360 for (start|stop)_memory since they now only take one argument (the
1361 second has becomes unnecessary).
1362 (print_partial_compiled_pattern): Adjust for changes in
1363 re_opcode_t.
1364 (print_compiled_pattern): Use %ld to printf long ints and flush to
1365 make debugging a little easier.
95cd4c40
SM
1366 (union fail_stack_elt): Make the integer unsigned.
1367 (struct fail_stack_type): Add a `frame' element.
1368 (INIT_FAIL_STACK): Init `frame' as well.
1369 (POP_PATTERN_OP): New macro for re_compile_fastmap.
1370 (DEBUG_PUSH, DEBUG_POP): Remove.
1371 (NUM_REG_ITEMS): Remove.
1372 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
1373 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
1374 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 1375 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
1376 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
1377 macros.
1378 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
1379 address pushed is not the destination of the jump but the source
1380 of it instead.
95cd4c40
SM
1381 (NUM_FAILURE_ITEMS): Remove.
1382 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
1383 registers before the actual failure point). Don't hardcode any
1384 meaning for str==NULL anymore.
95cd4c40 1385 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
1386 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
1387 Remove.
95cd4c40
SM
1388 (REG_UNSET_VALUE): Use NULL (why not?).
1389 (compile_range): Remove declaration since it doesn't exist.
1390 (struct compile_stack_elt_t): Remove inner_group_offset.
1391 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
1392 (regex_grow_registers): Remove dead code.
1393 (FIXUP_ALT_JUMP): New macro.
80460654
GM
1394 (regex_compile): Add shy-groups Change loops to use
1395 on_failure_jump_smart&jump instead of
1396 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
1397 initial (dummy_failure_)jump. Remove c1_base (looks like unused
1398 variable to me). Use `jump' instead of `jump_past_alt' and don't
1399 bother with push_dummy_failure in alternatives since it is now
1400 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
1401 emacs' for (re)allocating the stack.
1402 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
1403 from loop when bufp->can_be_null rather than jumping to `done'.
1404 Avoid jumping backwards so as to ensure termination. Use
1405 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
1406 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 1407 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
1408 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
1409 improve mutually_exclusive_p to handle ".+\n".
1410 (lowest_active_reg, highest_active_reg,
1411 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
1412 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
1413 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
1414 variables. Push register (in `start_memory') on the stack rather
1415 than storing it in old_reg(start|end). Remove the cycle detection
1416 from `stop_memory', replaced by the use of on_failure_jump_loop
1417 for greedy loops. Add code for the new on_failure_jump_<foo>.
1418 Remove ad-hoc code in `on_failure_jump' to push more registers in
1419 the case of a loop. Take out code from `maybe_pop_jump' into
1420 separate functions and adapt it to the semantics of
1421 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
1422 and push_dummy_failure. Remove dummy_failure handling and
1423 handling of `failures to jump to on_failure_jump' (this last one
1424 was already dead code, it seems).
1425 (group_match_null_string_p, alt_match_null_string_p)
1426 (common_op_match_null_string_p): Remove.
95cd4c40 1427
7397acc4
DL
14282000-03-08 Dave Love <fx@gnu.org>
1429
1430 * config.in: Don't depend on __STDC__ for volatile.
1431 Add POINTER_TYPE, PTR, PROTOTYPES.
1432
1433 * hftctl.c, strftime.c: Use PROTOTYPES.
1434 * eval.c (find_handler_clause): Likewise.
1435
1436 * mem-limits.h: Use POINTER_TYPE.
1437
1438 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
1439 (memory_warnings): Declare using POINTER_TYPE.
1440
5e91ff9e
GM
14412000-03-08 Gerd Moellmann <gerd@gnu.org>
1442
feab4fba
GM
1443 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
1444
25edb08f
GM
1445 * xdisp.c (display_echo_area): Temporarily inhibit garbage
1446 collection.
1447
5e91ff9e
GM
1448 * xfns.c: Remove obsolete code in #if 0.
1449 (Fx_focus_frame): New function.
1450
a735b7e1
KH
14512000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
1452
1453 * coding.c (coding_category_name): Add coding-category-utf-8,
1454 coding-category-utf-16-be, coding-category-utf-16-le.
1455 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
1456 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
1457 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
1458 (detect_coding_utf_8): New function.
1459 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
1460 UTF_16_LOW_SURROGATE_P): New macros.
1461 (detect_coding_utf_16): New function
1462 (detect_coding_mask): When priorities are specified, skip any
1463 categories that have `nil' coding-system. Fix bug of returning
1464 wrong mask when PRIORITIES is specified and detect_coding_XXX()
1465 returns a mask not set in PRIORITIES.
1466 (detect_eol_type_in_2_octet_form): New function.
1467 (detect_eol): selects detect_eol_type_XXX to call according to
1468 cooding->category_idx.
1469 (detect_coding_system): Remove `nil' coding-system in the result.
1470 (Fupdate_coding_systems_internal): Update all coding-categories.
1471
1472 * coding.h (CODING_CATEGORY_IDX_UTF_8,
1473 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
1474 macros.
1475 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
1476 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
1477 CODING_CATEGORY_IDX_UTF_16_LE.
1478 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
1479 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
1480 (CODING_CATEGORY_MASK_ANY): Include the above macros.
1481 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
1482
9994cc69
GM
14832000-03-07 Gerd Moellmann <gerd@gnu.org>
1484
e9b4e5ff
GM
1485 * doc.c (Fdocumentation_property): If value is not a string,
1486 and doesn't refer to etc/DOC, evaluate it to obtain a string.
1487
f7daf1e1
GM
1488 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
1489 close the display with XtCloseDisplay. This caused a bus error
1490 on OpenWindows.
1491
9994cc69
GM
1492 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
1493 complete but not unique.
1494
4336c705
GM
14952000-03-06 Gerd Moellmann <gerd@gnu.org>
1496
18bb0684
GM
1497 * process.c (send_process): Remove local variable `procname' that
1498 might become invalid when a GC happens. Instead, access the
1499 process name slot directly.
1500
4336c705
GM
1501 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
1502 orig_height if set.
1503
1504 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
1505 orig_height if set.
1506
515d0d0e
EZ
15072000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1508
1509 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
1510 glyph matrices have been freed.
1511
100b3cbb
GM
15122000-03-05 Gerd Moellmann <gerd@gnu.org>
1513
50df5e5a 1514 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 1515 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
1516
1517 * xfns.c (QCdata): Moved to xdisp.c.
1518
1519 * xdisp.c (QCdata): Moved here from xfns.c.
1520 (syms_of_xdisp): Initialize QCdata.
1521
1522 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
1523
1524 * window.c (coordinates_in_window): Use
1525 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
1526 FRAME_INTERNAL_BORDER_WIDTH.
1527
100b3cbb 1528 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 1529 it is obviously invalid.
100b3cbb
GM
1530
1531 * xterm.c (x_term_init): Create a colormap if not using the
1532 default visual.
1533
1534 * xterm.h (select_visual): Change prototype.
1535
1536 * xfns.c (select_visual): Rewritten. Recognize user-specified
1537 visual classes.
1538 (visual_classes): New variable.
1539
64d739c4
GM
15402000-03-04 Gerd Moellmann <gerd@gnu.org>
1541
1542 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
1543 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
1544 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
1545 (x_decode_color): Don't handle allocation of white and black
1546 specially.
1547 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
1548 XtNcolormap resources.
1549 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
1550 (Fx_create_frame): Initialize color members of x_output structure.
1551 (xpm_load): Pass colormap to XPM lib.
1552
1553 * xfaces.c (x_free_colors): Access colormap of frame using
1554 FRAME_X_COLORMAP. Be paranoid about freeing black and white
1555 when default colormap is used.
1556
1557 * xterm.c (x_term_init): Set Colormap member of x_display_info
1558 structure. Copy colormap if resource `privateColormap' is
1559 specified (PseudoColor only).
1560 (x_setup_relief_color): Access colormap of frame using
1561 FRAME_X_COLORMAP.
1562
1563 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
1564 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
1565
c3cee013
JR
15662000-03-04 Jason Rumney <jasonr@gnu.org>
1567
1568 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
1569 other non-platform-specific equivalents.
64d739c4 1570 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
1571 specific functions and macros as their w32 equivalents where
1572 non-platform-specifics are not available.
1573 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
1574 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
1575 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
1576 (frame_update_line_height): Use macros to access f->output_data.
1577 (defined_color): Remove FIXME comments; fixed.
1578 (x_face_list_fonts, prepare_face_for_display): Put X specifics
1579 into #ifdef blocks. Add WINDOWSNT blocks.
1580 (Fx_list_fonts): Use macros for accessing font data.
1581 (set_lface_from_font_name): Different default fonts for X and
1582 WINDOWSNT.
1583 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
1584 scalable for backward compatibility.
64d739c4 1585 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
1586 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
1587
64d739c4 1588 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
1589 syms_of_w32faces.
1590
1591 * makefile.nt (w32faces.obj): Remove.
1592 (xfaces.obj): Add.
1593
807cc41c
JR
15942000-03-03 Jason Rumney <jasonr@gnu.org>
1595
1596 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
1597 correct parameters.
1598
0007072a
KR
15992000-03-03 Ken Raeburn <raeburn@gnu.org>
1600
1601 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
1602 standard ELF definitions here if the system header does not.
1603
71a6ba55
GM
16042000-03-03 Gerd Moellmann <gerd@gnu.org>
1605
1606 * xterm.c (PER_CHAR_METRIC): Removed.
1607 (x_per_char_metric_1, x_default_char): New functions.
1608 (x_per_char_metric): If font's default char is invalid, return
1609 metrics of a suitably chosen usable default char.
1610 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
1611 char, replace occurrences of unprintable chars with a suitably
1612 chosen usable default char.
71a6ba55 1613
900fa1f1
GM
16142000-03-02 Gerd Moellmann <gerd@gnu.org>
1615
42f55fe0
GM
1616 * xterm.c (note_mouse_highlight): Return quickly if frame's
1617 glyph matrices have been freed.
1618
1619 * dispnew.c (free_glyphs): Block input while freeing matrices.
1620
900fa1f1
GM
1621 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
1622
1623 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
1624 x_free_colors.
1625
1626 * dispextern.h (x_free_colors): Add prototype.
1627
1628 * xfaces.c (x_free_colors): New function.
1629 (unload_color, free_face_colors): Use it.
1630
2f950292
EZ
16312000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1632
1633 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
1634
1635 * window.c [MSDOS]: Include msdos.h.
1636
54d04320
DL
16372000-03-02 Dave Love <fx@gnu.org>
1638
1639 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
1640
1641 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
1642 set C_OPTIMIZE_SWITCH for gcc.
1643
0ba93ac4
KH
16442000-03-02 Kenichi Handa <handa@etl.go.jp>
1645
1646 * coding.c (coding_save_composition): Be sure to allocate
1647 composition data area in coding even if there's no composition in
1648 the current run.
1649
a2bc11d4
JR
16502000-03-01 Jason Rumney <jasonr@gnu.org>
1651
1652 * w32term.c: Equivalent changes to those made to xterm.c on
1653 2000-02-25 and 2000-02-24.
1654
1655 * w32fns.c: Equivalent changes to those made to xfns.c on
1656 2000-02-25 and 2000-02-21.
1657
1658 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
1659 correct line-end convention is followed.
1660
1661 * w32menu.c [HAVE_BOXES]: Remove #undef.
1662 (single_keymap_panes): Remove code for simulating checkmarks.
1663 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
1664 Remove code for drawing simulated checkmarks.
1665 (w32_menu_show): make unibyte help string correctly.
1666 (add_menu_item): draw standard Windows checkmarks. Draw radio
1667 buttons as radio buttons if possible.
1668
72d19d75
GM
16692000-03-01 Gerd Moellmann <gerd@gnu.org>
1670
2df636f4
GM
1671 * sysdep.c (start_of_text): Don't define this function for NetBSD
1672 with ELF.
1673
1674 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
1675 Don't define.
1676 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
1677 (LINKER): Don't undef if __NetBSD__ is defined.
1678
1679 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
1680
1681 * fileio.c [__NetBSD__]: Define `unix'.
1682
72d19d75
GM
1683 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
1684
ed4d0512
GM
16852000-02-29 Gerd Moellmann <gerd@gnu.org>
1686
50b1039f
GM
1687 * atimer.c (start_atimer): Don't abort when timers are stopped.
1688 (append_atimer_lists): New function.
1689 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
1690 arbitrary lists of stopped and running atimers.
1691
ed4d0512
GM
1692 * atimer.c (cancel_atimer): Handle canceling an atimer when
1693 some timers are stopped.
1694
1695 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
1696 after canceling it.
1697
1698 * fns.c (maybe_resize_hash_table): Handle case of new size
1699 coming out as being the same as old size.
1700
387023ee
JR
17012000-02-27 Jason Rumney <jasonr@gnu.org>
1702
1703 * makefile.nt: Add atimer.h to dependencies.
1704 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
1705 * w32console.c: Only disable window system features for dispextern.h
1706 (initialize_w32_display): Build a display info for the console.
1707 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
1708 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
1709 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
1710 as 2 button mice.
1711 * w32gui.h (struct W32FontStruct): Revert last change after change
1712 to xdisp.c.
1713 * w32menu.c (single_submenu): Set up help string.
1714 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
1715 (w32_dialog_show): Set up help string.
1716 * w32term.c (w32_display_info_for_display): Remove unused function.
1717 (w32_draw_bitmap): Use pre-built bitmaps.
1718 (w32_initialize_display_info): New function to initialize parts of
1719 display info that are common to both GUI and console frames.
1720 (w32_term_init): Use w32_initialize_display_info. Do not set
1721 Vw32_num_mouse_buttons here, as it is not called for console
1722 frames. Build bitmaps for indicating truncated lines etc.
1723 (x_delete_display): Destroy pre-built bitmaps.
1724 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
1725 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
1726
4516715a
DL
17272000-02-27 Dave Love <fx@gnu.org>
1728
1729 * lisp.h: Add a bunch of prototypes.
1730
171ca836
KH
17312000-02-26 Kenichi Handa <handa@etl.go.jp>
1732
1733 * keyboard.c (read_char): Set `usec' correctly.
1734
4013921d
KH
17352000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
1736
1737 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
1738 `lambda', set reg[RRR] to the map index.
1739 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
1740 reg[RRR] to 0. Otherwise, set it to -1.
1741
9244a058
GM
17422000-02-25 Gerd Moellmann <gerd@gnu.org>
1743
2df636f4 1744 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 1745
f43d79c1
GM
17462000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1747
1748 * fileio.c (Ffile_symlink_p): If result starts with a `/'
1749 and contains a `:', prepend `/:'.
1750
1751 * window.c (select_window_1): If selected_window is nil,
1752 don't "swap out" the buffer's point.
1753 (Fset_window_configuration): Set selected_window to nil
1754 before calling Fselect_window.
1755 (unshow_buffer): Don't set point in buffer from window's point
1756 if another more recently selected window also shows the buffer.
1757
bed0c171
GM
17582000-02-25 Gerd Moellmann <gerd@gnu.org>
1759
449c3c52
GM
1760 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
1761
f5b58615
GM
1762 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
1763 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
1764 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
1765 variables.
1766 (DEFAULT_BUSY_CURSOR_DELAY): New define.
1767 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
1768 (hide_busy_cursor): New functions.
1769 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
1770
1771 * minibuf.c (read_minibuf): Cancel busy-cursor.
1772
1773 * keyboard.c (command_loop_1): Call start_busy_cursor before
1774 Fcommand_execute and cancel_busy_cursor after it.
1775 (timer_check): Remove busy-cursor code.
1776 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
1777 cursor timer.
1778
1779 * process.c (wait_reading_process_input): Remove busy-cursor code.
1780
1781 * eval.c (Fsignal): Call cancel_busy_cursor instead of
1782 Fx_hide_busy_cursor.
1783
1784 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
1785 Remove prototyoes.
1786 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
1787
1788 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
1789
1790 * xterm.c (XTread_socket): Remove busy-cursor code.
1791
4eb8436f
GM
1792 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
1793 (build_frame_matrix_from_leaf_window): Put code handling
1794 glyph row's not being a slice of a frame row in #if 0.
1795 (sync_window_with_frame_matrix_rows): New function.
1796 (frame_row_to_window): New function.
1797 (mirror_line_dance): Handle copies between windows.
1798
3cb65b0e
GM
1799 * lread.c (Fload): Use `xfree' instead of `free'.
1800 (init_obarray): Use `xmalloc' instead of `malloc'.
1801
bed0c171
GM
1802 * window.c (Fset_window_buffer): Set WINDOW to the window
1803 after decoding.
2add4349
GM
1804 (coordinates_in_window): Take frame's internal border width
1805 into account.
bed0c171 1806
42088c12
GM
18072000-02-24 Gerd Moellmann <gerd@gnu.org>
1808
1809 * xterm.c (x_display_and_set_cursor): Display cursor of
1810 non-selected windows depending on the setting of
1811 cursor_in_non_selected_windows.
1812
1813 * xdisp.c (cursor_in_non_selected_windows): New variable.
1814 (syms_of_xdisp): DEFVAR_BOOL it.
1815
d1e103b2
GM
18162000-02-23 Gerd Moellmann <gerd@gnu.org>
1817
723e779c
GM
1818 * data.c (Fstring_to_number): If number is greater than what
1819 fits into an integer, return a float.
1820
d1e103b2
GM
1821 * eval.c (specbind): Remove references to
1822 keyword_symbols_constant_flag.
1823
1824 * data.c (keyword_symbols_constant_flag): Removed.
1825 (Fmakunbound, set_internal, syms_of_data): Remove references to
1826 keyword_symbols_constant_flag.
1827
1828 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
1829
214f877f
KH
18302000-02-23 Kenichi Handa <handa@etl.go.jp>
1831
1832 * syntax.c (multibyte_syntax_as_symbol): New variable.
1833 (syms_of_syntax): Declare it as a Lisp variable.
1834 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
1835 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
1836 nonzero, treat all multibyte characters as symbol.
42088c12 1837 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
1838 characters.
1839
130adcb7
EZ
18402000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1841
3cb65b0e 1842 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
1843 a deleted frame.
1844
17cbbf95
GM
18452000-02-21 Gerd Moellmann <gerd@gnu.org>
1846
1847 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
1848
1849 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1850 (x_non_menubar_window_to_frame): Check the busy-cursor window.
1851
beb0bc36
DL
18522000-02-21 Dave Love <fx@gnu.org>
1853
1854 * frame.c (Vmouse_position_function): New variable.
1855 (Fmouse_position): Use it.
1856 (syms_of_frame): Install it.
1857
1858 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
1859
1d92afcd
GM
18602000-02-20 Gerd Moellmann <gerd@gnu.org>
1861
1862 * fileio.c (Finsert_file_contents): Unbind the binding of
1863 standard-output done by temp_output_buffer_setup.
329eed9f
GM
1864
1865 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
1866 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
1867 (specbind, unbind_to): Handle most common case of non-constant
1868 symbol with trivial value specially.
1869
1870 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
1871
2d06696f
RS
18722000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1873
1874 * data.c (Fmake_variable_buffer_local): Doc fix.
1875 Init found_for_buffer to 0.
1876 (Fmake_variable_frame_local): If the variable has already
1877 been buffer-local, set the check_frame field.
1878
1d4311c3
EZ
18792000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
1880
1881 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
1882 produced for CODING_MODE_LAST_BLOCK requires.
1883
2dc95ddd
DL
18842000-02-18 Dave Love <fx@gnu.org>
1885
1886 * keyboard.c (echo_keystrokes): Remove declaration.
1887 (Vecho_keystrokes) New variable.
1888 (read_char, record_menu_key, read_key_sequence): Use it to allow
1889 use of float value.
1890 (syms_of_keyboard): Change Vecho_keystrokes declaration.
1891
1892 * lread.c: Undef feature selection macros before defining.
1893
f0930f35
GM
18942000-02-18 Gerd Moellmann <gerd@gnu.org>
1895
1896 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
1897 for symbols other than the symbol in question.
1898
e3d4de90
DL
18992000-02-17 Dave Love <fx@gnu.org>
1900
1901 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
1902
0b378936
GM
19032000-02-17 Gerd Moellmann <gerd@gnu.org>
1904
d621caf7
GM
1905 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
1906
0b378936
GM
1907 * alloc.c (enum mem_type): Compile unconditionally.
1908
3b451f74
EZ
19092000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
1910
1911 * xfaces.c (tty_defined_color): Don't return faulire indication
1912 for unspecified-fg and unspecified-bg pseudo-colors.
1913
10689a01
GM
19142000-02-17 Gerd Moellmann <gerd@gnu.org>
1915
1216f5e4
GM
1916 * alloc.c (mark_object): Don't mark symbol names in pure space.
1917 (gc_sweep): Don't unmark symbol names in pure space.
1918
1919 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
1920 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
1921 [GC_MARK_STACK]: New defines.
1922 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1923 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
1924
1925 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
1926
1927 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
1928 allocate_buffer instead of xmalloc.
1929
1930 * alloc.c (toplevel): Include setjmp.h.
1931 (PURE_POINTER_P): New define.
1932 (enum mem_type) [GC_MARK_STACK]: New enumeration.
1933 (Vdead) [GC_MARK_STACK]: New variable.
1934 (lisp_malloc): Add parameter TYPE, call mem_insert if
1935 GC_MARK_STACK is defined.
1936 (allocate_buffer): New function.
1937 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1938 (free_float) [GC_MARK_STACK]: Set type to Vdead.
1939 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
1940 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
1941 (MEM_NIL) [GC_MARK_STACK]: New define.
1942 (struct mem_node) [GC_MARK_STACK]: New structure.
1943 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
1944 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
1945 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1946 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
1947 (mark_stack) [GC_MARK_STACK]: New functions.
1948 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
1949 (clear_marks): Removed.
1950 (gc_sweep): Set free conses' car, free floats' type, free
1951 symbols' function to Vdead. Use lisp_free to free buffers.
1952 (init_alloc_once): Initialize Vdead.
1953 (survives_gc_p): Return non-zero for pure objects.
1954
1955 * alloc.c: Add comments throughout the file.
1956
2503c8b1
GM
1957 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
1958 that unblocks alarms.
1959
8389e1e2
GM
1960 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
1961 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
1962 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
1963
10689a01
GM
1964 * frame.c (make_frame): Set frame initiallly to `garbaged'.
1965
bfc17d18
KH
19662000-02-17 Kenichi Handa <handa@etl.go.jp>
1967
4a09dee0
KH
1968 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
1969 avoid infinite error signaling. Allocate sufficient memory for
1970 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 1971
2b927d02
SM
19722000-02-17 Stefan Monnier <monnier@cs.yale.edu>
1973
1974 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
1975 depends on the previous behavior.
1976
b49cb764
GM
19772000-02-16 Gerd Moellmann <gerd@gnu.org>
1978
1979 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
1980
99e95407
GM
19812000-02-15 Gerd Moellmann <gerd@gnu.org>
1982
1983 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
1984
1985 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 1986 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
1987 write(2).
1988
6ffd3cf7
RS
19892000-02-15 Richard M. Stallman <rms@gnu.org>
1990
1991 * data.c (set_internal): Don't make variable buffer-local
1992 if within a let-binding for the same buffer.
1993 (let_shadows_buffer_binding_p): New function.
1994
1995 * eval.c (specbind): For buffer-local value,
1996 record the current buffer also.
1997 (unbind_to): Cope with that change.
1998
cad53475
GM
19992000-02-15 Gerd Moellmann <gerd@gnu.org>
2000
2001 * window.c (Fsave_window_excursion): Doc fix.
2002
1aa963c8
SM
20032000-02-15 Stefan Monnier <monnier@cs.yale.edu>
2004
2005 * syntax.c (back_comment): Make sure we only consider comment-starters
2006 of the relevant style and return -1 in case of a failure to find the
2007 beginning of the comment.
2008 (Fforward_comment): If back_comment fails, go back to the position just
2009 after the comment-end.
2010 (scan_lists): Add comment describing a very minor bug.
2011
b9b84fd3
SM
20122000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2013
2014 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
2015 `completion-regexp-list' in the docstring.
2016
3a28db80
DL
20172000-02-14 Dave Love <fx@gnu.org>
2018
2019 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
2020
fb4a568d
SM
20212000-02-14 Stefan Monnier <monnier@cs.yale.edu>
2022
2023 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
2024 to Emacs' syntax. Also fix the comment about set/not-set meanings
2025 since Emacs syntax is not the value 0 any more.
2026 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
2027 since it's now part of RE_SYNTAX_EMACS.
2028
1063ebb5
DL
20292000-02-12 Dave Love <fx@gnu.org>
2030
2031 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
2032 Alpha.
2033
fb07a302
GM
20342000-02-12 Gerd Moellmann <gerd@gnu.org>
2035
2036 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
2037
aaf2320c
DL
20382000-02-12 Dave Love <fx@gnu.org>
2039
2040 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
2041
2042 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
2043 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
2044 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
2045
2046 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
2047
2048 * s/nextstep.h: Don't define HAVE_ALLOCA.
2049
2050 * config.in: Add vfork bits.
2051
eedf8bde
GM
20522000-02-12 Gerd Moellmann <gerd@gnu.org>
2053
2054 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
2055 unwind function to undo the effect of stopping atimers.
2056
2057 * keyboard.c (bind_polling_period): Stop all timers except
2058 poll_timer.
2059
2060 * atimer.c (stopped_atimers): New variable.
2061 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
2062 New functions.
2063
2064 * atimer.h (stop_other_atimers, run_all_atimers)
2065 (unwind_stop_other_atimers): Add function prototypes.
2066
2067 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
2068
8476c2f8
KR
20692000-02-11 Ken Raeburn <raeburn@gnu.org>
2070
2071 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
2072 library may depend on jpeg.
2073 (atimer.o): Depends on atimer.c.
2074
0e85e4a3
KH
20752000-02-11 Kenichi Handa <handa@etl.go.jp>
2076
2077 * insdel.c (del_range_1): Call update_compositions.
2078 (del_range_both): Call update_compositions just once..
2079
97fa0cc8
DL
20802000-02-10 Dave Love <fx@gnu.org>
2081
2082 * xfns.c (create_frame_xic): Fix initialization of automatic
2083 aggregates for pcc.
2084
25566a3c
KH
20852000-02-09 Kenichi Handa <handa@etl.go.jp>
2086
2087 * ccl.c (CCL_MAKE_CHAR): New macro.
2088 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
2089 registers by CCL_MAKE_CHAR before calling translate_char.
2090 <CCL_TranslateCharacterConstTbl> Likewise.
2091
69da54ba
DL
20922000-02-08 Dave Love <fx@gnu.org>
2093
2094 * lread.c (__EXTENSIONS__): Define.
2095
f7136ee8
GM
20962000-02-08 Gerd Moellmann <gerd@gnu.org>
2097
2098 * puresize.h (BASE_PURESIZE): Increase to 650000.
2099
7768790b
EZ
21002000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
2101
2102 * msdos.c (XMenuActivate): Turn off the cursor after displaying
2103 the help message.
2104
38fd211b
EZ
21052000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
2106
2107 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
2108 md, mh, mb, mr, and me to the fake termcap entry.
2109
66e4690f
KR
21102000-02-06 Ken Raeburn <raeburn@gnu.org>
2111
2112 * sound.c (sound_cleanup): Don't call device close routine if the
2113 function pointer is null.
2114
a75dfea0
AI
21152000-02-06 Andrew Innes <andrewi@gnu.org>
2116
2117 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
2118 around image definitions and prototypes.
2119 (gamma_correct) [WINDOWSNT]: New prototype.
2120
2121 * w32term.c (x_make_frame_visible): Replace call to
2122 input_poll_signal with poll_for_input.
2123
2124 * window.c [WINDOWSNT]: Include w32term.h.
2125
2126 * xdisp.c [WINDOWSNT]: Include w32term.h.
2127
2128 * makefile.nt: Add dependencies on w32gui.h.
2129 (OBJ1): Include atimer.obj.
2130 ($(BLD)\atimer.obj): New dependency rule.
2131
2132 * w32.c (sigmask): New function (does nothing).
2133 (sigunblock): Ditto.
2134
2135 * frame.c [WINDOWSNT]: Include w32term.h.
2136
2137 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
2138
2139 * lread.c (syms_of_lread): Fix literal newlines.
2140
2141 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
2142 the string constant limit (2048 bytes) in MSVC.
2143 (main): Ditto.
2144
59ddecde
GM
21452000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
2146
2147 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
2148 area.
2149 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
2150 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
2151 dispatch the event.
2152
07590973
DL
21532000-02-04 Dave Love <fx@gnu.org>
2154
2155 * fileio.c: Remove some unused vars.
2156 (_GNU_SOURCE): Define (for euidaccess).
2157
2158 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
2159
2160 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
2161 gcpro1, gcpro2.
2162 (read_minibuf): Deal with allow_props correctly.
2163
649351f9
EZ
21642000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
2165
2166 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
2167
66e4690f 21682000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
2169
2170 * search.c (compile_pattern): If a cache entry has a nil regexp,
2171 fill in that entry instead of clobbering a previously cached
2172 string regexp.
2173
66e4690f 21742000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
2175
2176 * puresize.h (BASE_PURESIZE): Increase to 610000.
2177
d240a249
GM
21782000-02-02 Gerd Moellmann <gerd@gnu.org>
2179
2180 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
2181 can GC.
2182
ca91fb26
KH
21832000-02-02 Kenichi Handa <handa@etl.go.jp>
2184
25660570
KH
2185 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
2186 instead of incrementing ic directly.
2187 <CCL_WriteExprConst> Likewise.
2188 <ccl_set_expr>: Set ic to jump_address.
2189
ca91fb26
KH
2190 * fileio.c (e_write): Fix the handling of
2191 CODING_FINISH_INSUFFICIENT_SRC.
2192
2ede9689
DL
21932000-02-01 Dave Love <fx@gnu.org>
2194
2195 * editfns.c (Fpropertize): Doc fix.
2196
2197 * process.c (Fstart_process): Doc fix.
2198
2199 * eval.c: Fix various doc strings not to duplicate information
2200 from help-manyarg-func-alist.
2201
2202 * window.c (Fset_window_margins): Don't make interactive. Doc
2203 fix.
2204
2205 * doc.c (Vhelp_manyarg_func_alist): New variable.
2206 (Fdocumentation): Use it.
2207 (syms_of_doc): Define it.
2208
b6680a0e
GM
22092000-01-31 Gerd Moellmann <gerd@gnu.org>
2210
2cb750ba
GM
2211 * xterm.c (xim_open_dpy): Remove unused local variable.
2212
74e9213b
GM
2213 * emacs.c (USAGE): Use term `display options' instead of `X
2214 options'.
2215
2216 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
2217 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
2218
b6680a0e
GM
2219 * fns.c (sweep_weak_table): New function.
2220 (sweep_weak_hash_tables): Use it. Keep on marking until there
2221 is no more change.
2222
994c5afe
GM
22232000-01-30 Gerd Moellmann <gerd@gnu.org>
2224
2225 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
2226 that XTread_socket does not crash by trying to call XNoOp on a
2227 closed display.
2228
f00276e3
JR
22292000-01-30 Jason Rumney <jasonr@gnu.org>
2230
2231 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
2232 Change selected_frame to SELECTED_FRAME ().
2233 (w32_console_mouse_position): Remove #ifndef MULE from around
2234 `insist' parameter.
2235
2236 * makefile.nt: Remove dosfns.obj.
2237
2238 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
2239
2240 * w32fns.c (w32_defined_color): Check for valid frame before
2241 applying gamma correction. Eliminate dependency on frame elsewhere.
2242 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
2243 (w32_to_x_font): Use resx and resy not height_in and width_in.
2244 (x_to_w32_font): Doc fix.
2245 (xlfd_strip_height): New function to strip and return font height.
2246 (w32_font_match): Compare height separately from rest of xlfd
2247 spec, using xlfd_strip_height.
2248
2249 * w32term.c (w32_term_init): Swap resx and height_in, resy and
2250 width_in. Use w32_defined_color in place of defined_color.
2251
2252 * w32faces.c: Merge more of DOS and X specifics in preparation for
2253 merge with xfaces.c.
2254 (defined_color): Remove FIXME comment.
2255 (tty_color_name): Provide w32-specific function.
2256 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
2257
2258 * w32console.c (turn_on_face, turn_off_face): Removed.
2259 (w32_face_attributes): New function.
2260 (Global_variables): Reduce scope where possible.
2261 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
2262 fill attribute.
2263 (hl_mode): Don't modify text attributes.
2264 (write_glyphs): Don't do anything if len <= 0. Use
2265 w32_face_attributes to get attributes for drawing. Write
2266 terminating codes using char_attr_normal.
2267 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
2268 (update_begin, update_end): Likewise.
2269 (vga_stdcolor_name): New function.
2270 (initialize_w32_display): Remove char_attr_reverse and char_attr.
2271 (Fset_screen_color): Remove char_attr_reverse.
2272
b08e8bb2
GM
22732000-01-29 Gerd Moellmann <gerd@gnu.org>
2274
2275 * xfns.c (xic_set_preeditarea): Take window parameter and
2276 window-relative pixel-positions.
2277
2278 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
2279 is its frame's selected window.
2280 (xim_instantiate_callback): Likewise.
2281
2282 * xfns.c (x_create_im): Removed.
2283 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
2284 (supported_xim_styles): Renamed from supported_styles.
2285 (best_xim_style): Renamed from best_style.
2286 (create_frame_xic): Renamed from xic_create_frame.
2287 (free_frame_xic): Renamed from xic_destroy_frame.
2288
22892000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
2290
2291 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
2292 our frames, call XFilterEvent with 2nd parameter `None'.
2293 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
2294 returning XBufferOverflow.
2295 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
2296 area.
2297 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
2298 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
2299 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
2300 (xim_initialize, xim_close)
2301 [HAVE_X_I18N && HAVE_X11R6]: New functions.
2302 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
2303 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
2304 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
2305
2306 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
2307 and `xim_styles'.
2308 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
2309 `xic_style' and `xic_xfs'.
2310 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
2311 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
2312 (FRAME_XIM): Removed.
2313
2314 * xfns.c (supported_styles): New variable.
2315 (DEFAULT_STYLE, DEFAULT_FONT): New macros
2316 (xic_create_xfontset, best_style, xic_create_frame)
2317 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
2318 (xic_set_xfontset): New functions.
2319
142e109c
DL
23202000-01-28 Dave Love <fx@gnu.org>
2321
2322 * s/irix6-5.h: Revert last change after change to irix5-0.h.
2323
2324 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
2325
b02786f9
GM
23262000-01-28 Gerd Moellmann <gerd@gnu.org>
2327
d060bc9f
GM
2328 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
2329 for *scratch* if it already existed.
2330
b02786f9
GM
2331 * emacs.c (USAGE): New macro.
2332 (main): Use it to display usage information.
2333
2c52d7e4
EZ
23342000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
2335
2336 Support for the menu-help feature:
2337
2338 * msdos.h: Change prototypes of XMenuAddSelection and
2339 XMenuActivate.
2340
2341 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
2342 part of the line to the termscript file.
2343 (IT_clear_to_end): Clear the entire line, not just its beginning.
2344 (menu_help_message, prev_menu_help_message): New variables.
2345 (IT_menu_make_room): Make room for the help_text member.
2346 (IT_menu_display): New argument disp_help; all callers changed.
2347 If disp_help is non-zero, store the help text of the active menu
2348 item in menu_help_message.
2349 (XMenuAddPane): Initialize the help_text member to NULL.
2350 (XMenuAddSelection): New argument help_text. Store it in the
2351 XMenu structure.
2352 (XMenuActivate): New argument help_callback. If the value of
2353 menu_help_message has changed since the last time, display the
2354 menu help message text while waiting for the mouse to move. Clear
2355 the echo area before exiting.
2356 (XMenuDestroy): Free the help_text member.
2357
ffe0bcd1
GM
23582000-01-27 Gerd Moellmann <gerd@gnu.org>
2359
2360 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
2361 XMenuAddSelection. Pass help callback to XMenuActivate.
2362 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
2363
50dbd23f
EZ
23642000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
2365
2366 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
2367 and EMACS_SET_USECS.
2368
f5941bf8
GM
23692000-01-26 Dave Love <fx@gnu.org>
2370
6c67ddee
DL
2371 * editfns.c (Fchar_after, Fchar_before): Doc fix.
2372
f5941bf8
GM
2373 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
2374 an error may be signalled.
2375
9e49c990
GM
23762000-01-26 Gerd Moellmann <gerd@gnu.org>
2377
fc3cb460
GM
2378 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
2379 LD_SWITCH_SYSTEM inherited from irix5-0.h.
2380
9e49c990
GM
2381 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
2382
d0c037d8
GM
23832000-01-25 Gerd Moellmann <gerd@gnu.org>
2384
2385 * charset.c (Fstring): If there is a multibyte char among
2386 the args, always return a multibyte string.
2387
e12489f9
GM
23882000-01-25 Gerd Moellmann <gerd@gnu.org>
2389
2390 * sysdep.c (sys_select): Turn atimers off and on instead of
2391 recording and restoring old alarm handler
2392
2393 * process.c (toplevel): Include atimer.h.
2394 (create_process_1): Rewritten.
2395 (create_process): Use atimers instead of alarm.
2396 (wait_reading_process_input) [hpux]: Turn atimers off instead
2397 of turning off SIGALRM.
2398 (wait_reading_process_input): Turn off atimers instead off
2399 calling stop_polling.
2400
2401 * emacs.c (main): Call init_atimer.
2402
2403 * keyboard.c (toplevel): Include systime.h and atimer.h.
2404 (polling_for_input): Removed because unused.
2405 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
2406 (poll_timer): New variable.
2407 (poll_for_input, poll_for_input_1): New functions.
2408 (start_polling, stop_polling): Rewritten.
2409
2410 * keyboard.h (polling_for_input): Removed.
2411
2412 * atimer.h, atimer.c: New files.
2413
2414 * Makefile.in (obj): Add atimer.o.
2415 (atimer.o): New target.
2416
2417 * blockinput.h (pending_atimers): Add extern declaration.
2418 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
2419
2420 * lisp.h (popup_activated_flag): Add extern declaration.
2421
2422 * xmenu.c (popup_activated_flag): Make externally visible.
2423 (popup_activate_callback) [USE_MOTIF]: Increment
2424 popup_activated_flag.
2425 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
2426
2427 * xterm.c (toplevel): Include atimer.h.
2428 (toolkit_scroll_bar_interaction): New variable.
2429 (Fxt_process_timeouts): Removed.
2430 (x_process_timeouts): New function.
2431 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
2432 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
2433 (x_make_frame_visible): Call poll_for_input_1 instead of
2434 input_poll_signal. Don't call alarm.
2435 (x_initialize): Install timer calling x_process_timeouts.
2436
1e5279b9
DL
24372000-01-24 Dave Love <fx@gnu.org>
2438
6c67ddee 2439 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
2440 Don't use -cckr -- apparently not now necessary.
2441
edf6aeb8
EZ
24422000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2443
2444 * msdos.c (IT_menu_display): Truncate long menu lines at the right
2445 screen boundary.
2446
9badad41
JR
24472000-01-23 Jason Rumney <jasonr@gnu.org>
2448
2449 * w32fns.c (w32_defined_color): Apply gamma correction before
2450 trying to map to the palette.
2451 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
2452 to w32_clear_rect.
2453
2454 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
2455 here. Callers changed to always pass real device context.
2456 (w32_draw_bitmap): Likewise.
2457 (w32_get_glyph_overhangs): Likewise.
2458 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
2459 one.
2460 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
2461 pfnSetScrollInfo and SetScrollRange.
2462 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
2463 back into MULE characters after decoding them.
2464 (x_get_glyph_face_and_encoding): Likewise.
2465 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
2466 GetCharABCWidthsW fails, since this is defined on Windows 9x.
2467 (x_produce_glyphs): Calculate per char metrics for a character
2468 that we know exists in default font when font_not_found_p is true.
2469
63bd786b
JR
24702000-01-22 Jason Rumney <jasonr@gnu.org>
2471
2472 * makefile.nt (intervals.obj, composite.obj): New modules.
2473 (composite.h): Added as dependency where appropriate.
2474
2475 * w32gui.h (XGCValue): New struct for emulating X GCs.
2476
2477 * w32term.h (XCharStruct): New struct for emulating X.
2478
2479 * w32console.c (turn_on_face, turn_off_face): New functions.
2480 (change_line_highlight): New prototype for new redisplay.
2481 (write_glyphs): Support multibyte text. Support faces.
2482
2483 * w32faces.c: Complete rewrite for new redisplay based on new
2484 xfaces.c.
2485
2486 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
2487 throughout. struct frame * in place of FRAME_PTR.
2488 Skeleton support for images, toolbars, tooltips from xfns.c.
2489 (Fx_create_frame): Use system default for default scroll bar
2490 width.
2491 (w32_get_arg): Renamed from x_get_arg.
2492 (Fx_file_dialog): New function.
2493 (w32_list_fonts): Check cache before asking system.
2494 (Vw32_enable_synthesized_fonts): New variable.
2495 (Vw32_enable_italics): Obsolete, removed.
2496
2497 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
2498 Use SELECTED_FRAME macro.
2499
2500 * w32menu.c: Add skeleton support for help strings on menus.
2501 (add_menu_item): Native checkbox and radio support added, but not
2502 yet enabled due to bugs.
2503 (push_menu_item): Add parameters type, selection and help.
2504 Callers updated.
2505 Formatting changes to reduce unnecessary diffs with xmenu.c.
2506
2507 * w32select.c (Fw32_set_clipboard_data): Update call to
2508 find_charset_in_str.
2509
2510 * w32term.c: Complete rewrite for new redisplay based on new
2511 xterm.c with necessary sections merged back in from old w32term.c.
2512
6ffd3cf7 25132000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
2514
2515 * data.c (set_internal): Further fix in same criterion.
2516
6ffd3cf7 25172000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
2518
2519 * data.c (set_internal): Fix the criteria for whether
2520 to swap out the old cached binding.
2521
60af03f1
DL
25222000-01-19 Dave Love <fx@gnu.org>
2523
2524 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
2525
f9be074f
KH
25262000-01-18 Kenichi Handa <handa@etl.go.jp>
2527
2528 * regex.c (re_compile_fastmap): While checking a range table for
2529 `charset', skip flag bits for a character class correctly.
2530
52b8dbf9
GM
25312000-01-17 Gerd Moellmann <gerd@gnu.org>
2532
d36100c9
GM
2533 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
2534
52b8dbf9
GM
2535 * xfns.c (x_window): Call lw_create_widget with new parameter
2536 list.
2537
2538 * widget.c (EmacsFrameSetCharSize): Change size of children first
2539 because of problems with main window geometry management under
2540 Lesstif.
2541
2542 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
2543 MENU_ITEMS_ITEM_.*.
2544 (MENU_ITEMS_ITEM_HELP): New enumerator.
2545 (push_menu_item): Add parameter HELP. Record help in menu_items.
2546 (single_menu_item, single_submenu, list_of_items): Call
2547 push_menu_item with new parameter.
2548 (single_submenu): Set help string in widget value.
2549 (menu_highlight_callback): New function.
2550 (set_frame_menubar): Call lw_create_widget with new
2551 parameter list.
2552 (xmenu_show, xdialog_show): Ditto.
2553
3139018f
GM
25542000-01-13 Gerd Moellmann <gerd@gnu.org>
2555
2556 * sound.c (Fplay_sound): Improve doc string.
2557
83c8f461
RS
25582000-01-11 Richard M. Stallman <rms@gnu.org>
2559
2560 * lisp.h (set_internal): Enter the new arg.
2561
2562 * eval.c (specbind): Record buffer-local variables specially,
2563 indicating which buffer's binding was saved.
2564 (unbind_to): Restore buffer-local variables specially
2565 in the proper buffer.
2566
2567 * data.c (set_internal): New arg BUF.
2568
2569 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
2570 * data.c (Fset): Pass new arg to set_internal.
2571 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
2572
1fab1775
GM
25732000-01-11 Gerd Moellmann <gerd@gnu.org>
2574
2575 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
2576 xprintsym.
2577
83c8f461 25782000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
2579
2580 * minibuf.c (Ftry_completion): Doc fix.
2581
7a85e4df
GM
25822000-01-11 Gerd Moellmann <gerd@gnu.org>
2583
2584 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
2585 vector, too.
2586
a970dae4
AS
25872000-01-11 Andreas Schwab <schwab@suse.de>
2588
2589 * coding.c (code_convert_region): Initialize total_skip.
2590
c65d14ee
DL
25912000-01-08 Dave Love <fx@gnu.org>
2592
2593 * eval.c (Fuser_variable_p): Check customizability too.
2594
834938d2
GM
25952000-01-07 Gerd Moellmann <gerd@gnu.org>
2596
2597 * minibuf.c (Fcompleting_read): Doc fix.
2598
e0303cd6
GM
25992000-01-05 Gerd Moellmann <gerd@gnu.org>
2600
8a26744b
GM
2601 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
2602 -L /usr/local/lib.
2603
e0303cd6
GM
2604 * xfns.c (x_create_im): New function to set IM and IC of a frame.
2605 Check that input style is supported before trying to create an
2606 IC for it.
2607 (x_window): Call x_create_im.
2608
2e471eb5
GM
26092000-01-04 Gerd Moellmann <gerd@gnu.org>
2610
560a7bd2
GM
2611 * xfns.c (current_gif_memory_src): New variable.
2612 (gif_load): Record the address of the current memory source
2613 in current_gif_memory_src.
2614 (gif_read_from_memory): Use current_gif_memory_src.
2615
f9ee84a3
GM
2616 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
2617 macros statement form.
2618
d1299cde
GM
2619 * sound.c (struct sound): Renamed from struct sound_file.
2620 (struct sound): Add members `data' and `header_size'.
2621 (enum sound_attr): Add SOUND_DATA.
2622 (current_sound, current_sound_device): Variables renamed from
2623 sound_file and sound_device.
2624 (parse_sound): Parse :data.
2625 (parse_sound): Handle sound data in strings.
2626 (find_sound_type): Function renamed from find_sound_file_type.
2627 (wav_init, au_init): Fail if sound's header_size is smaller than
2628 needed header size.
2629 (wav_play, au_play): Play sounds from string data.
2630
2e471eb5
GM
2631 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
2632
2633 * lisp.h: Add prototype for allocate_string_data.
2634
2635 * alloc.c (Fgarbage_collect): Return number of live and free
2636 strings.
2637
2638 * alloc.c (mark_buffer): Remove code in #if 0.
2639 (gc_sweep): Ditto.
2640 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
2641 (strings_consed): New variable.
2642 (allocate_string): Set it.
2643 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
2644 (Fmemory_use_counts): Return strings_consed. Use Flist.
2645
2646 * alloc.c: General cleanup in comments etc. Remove conditional
2647 compilation for `standalone'.
2648
2649 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
2650
2651 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
2652 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
2653 (DONT_COPY_FLAG): Removed.
2654 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
2655 (struct sdata, struct sblock): New
2656 (struct string_block): Rewritten.
2657 (STRINGS_IN_STRING_BLOCK): New macro.
2658 (oldest_sblock, current_sblock, total_strings, total_free_strings)
2659 (large_sblocks, string_blocks, string_free_list): New variables.
2660 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
2661 (init_strings): Rewritten.
2662 (allocate_string, allocate_string_data, compact_small_strings)
2663 (free_large_strings, sweep_strings): New functions.
2664 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
2665 (struct string_block_head, current_string_block)
2666 (first_string_block, large_string_blocks, STRING_FULLSIZE)
2667 (STRING_PAD): Removed.
2668 (make_uninit_multibyte_string, make_pure_string): Rewritten.
2669 (Fgarbage_collect): Don't set mark bit in large strings.
2670 (mark_object): Mark strings differently. Mark symbol names
2671 differently.
2672 (survives_gc_p): Test marked strings differently.
2673 (gc_sweep): Sweep strings differently, unmark strings in
2674 symbol names.
2675 (compact_strings): Removed.
2676
42608ba8
EZ
26772000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
2678
2679 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
2680 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
2681
e0a09e1a
KH
26822000-01-04 Kenichi Handa <handa@etl.go.jp>
2683
dd9f0750
KH
2684 * fileio.c (Finsert_file_contents): Signal error if visiting file
2685 in a non-empty buffer.
2686
3c0f3b15 2687 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 2688
44cd3ae5
GM
26892000-01-03 Gerd Moellmann <gerd@gnu.org>
2690
2691 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
2692 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
2693
2694 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
2695
c182a70f
EZ
26962000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
2697
2698 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
2699 need to test for MSDOS frames.
2700
24480d5b
EZ
27012000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
2702
2703 * dosfns.c (unspecified_colors): Remove.
2704 (msdos_stdcolor_idx): Use global variables unspecified_fg and
2705 unspecified_bg.
2706 (msdos_stdcolor_name): Return strings for unspecified fore- and
2707 back-ground colors.
2708
2709 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 2710 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
2711 (tty_color_name): Return Lisp strings for unspecified fore- and
2712 back-ground colors.
2713 (Finternal_set_lisp_face_attribute): Remove the special treatment
2714 for Qunspecified_{f,b}g.
2715 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
2716 string.
2717
047f434a
GM
27182000-01-03 Gerd Moellmann <gerd@gnu.org>
2719
2720 * xdisp.c (reseat_at_next_visible_line_start): Position before
2721 newline only if ending up on a newline.
2722 (next_element_from_ellipsis): Return success. Handle case of
2723 displaying no ellipsis. Fix case of ellipsis defined in display
2724 table.
2725 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
2726 returns 0.
2727
d684c676
EZ
27282000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
2729
2730 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
2731 (Fcolor_supported_p): Renamed from face-color-supported-p.
2732
5fe1d139
EZ
27332000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2734
2735 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
2736 list of colors renamed to tty-defined-color-alist.
2737 (tty_color_name): Pass the frame to tty-color-by-index.
2738 (realize_tty_face): tty-color-alist is now a function which
2739 accepts the frame as argument.
2740
2741 * term.c (Ftty_display_color_p): Accept an optional argument
2742 FRAME.
2743
816be8b8
EZ
27442000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2745
2746 * term.c (insert_glyphs): Pass glyph, not &glyph, to
2747 encode_terminal_code.
2748
b635321e
EZ
27492000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2750
2751 * dispnew.c (mode_line_string): Support termcap frames as well.
2752
9b784e96
GM
27532000-01-01 Gerd Moellmann <gerd@gnu.org>
2754
27189709
GM
2755 * syntax.c (Fforward_word): Undo previous change.
2756
2757 * editfns.c (Fconstrain_to_field): Don't constrain if
2758 inhibit-field-text-motion is non-nil.
2759 (Fline_beginning_position): Undo previous change.
2760 (Fline_end_position): Ditto.
2761
2762 * syntax.c (Fforward_word): Notice field boundaries only if
2763 inhibit-field-text-motion is nil.
2764
2765 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
2766
2767 * editfns.c (Vinhibit_field_text_motion): New variable.
2768 (inhibit-field-text-motion): New DEFVAR_LISP.
2769 (Fline_beginning_position, Fline_end_position): Notice field
2770 boundaries only if inhibit-field-text-motion is nil.
2771
45158a91
GM
2772 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
2773 All calls adjusted.
2774 (x_build_heuristic_mask): Likewise.
2775 (xbm_load_image_from_file): Change error output.
2776 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
2777 (gif_load, gs_load, x_kill_gs_process): Ditto.
2778
9b784e96
GM
2779 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
2780 color indices when accessing raster pixels.
63cec32f
GM
2781 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
2782 one of :file or :data.
2783 (enum pbm_keyword_index): Add PBM_DATA.
2784 (pbm_format): Add :data.
2785 (pbm_image_p): Allow either :file or :data.
2786 (pbm_read_file): New function.
2787 (pbm_scan_number): Rewritten to read from string.
2788 (pbm_load): Support :data.
9b784e96 2789
5ad6a5fb
GM
27901999-12-31 Gerd Moellmann <gerd@gnu.org>
2791
2792 * xfns.c: New image functions adapted to Emacs conventions.
2793 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
2794 variable `file'.
2795
63448a4d
WP
27961999-12-31 William M. Perry <wmperry@aventail.com>
2797
2798 * xfns.c (jpeg_format): Added the :data keyword
2799 (jpeg_image_p): JPEG is valid with :file _or_ :data
2800 (jpeg_memory_src): Defined new JPEG image source to read from a
2801 memory buffer.
2802 (jpeg_load): Pay attention to the :data keyword if specified.
2803 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
2804 found.
2805 (png_format): Added the :data keyword
2806 (png_image_p): PNG is valid with :file _or_ :data
2807 (png_read_from_memory): New PNG read function to read from a
2808 memory buffer.
2809 (png_load): Pay attention to the :data keyword if specified. Uses
2810 png_set_read_fn() instead of png_init_io() if specified.
2811 (tiff_format): Added the :data keyword for TIFF images.
2812 (tiff_image_p): TIFF is valid with :file _or_ :data
2813 (tiff_read_from_memory): Defined new TIFF I/O functions to read
2814 from a memory buffer.
2815 (tiff_load): Pay attention to the :data keyword if specified.
2816 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
2817 (gif_format): Added the :data keyword
2818 (gif_image_p): GIF is valid with :file _or_ :data
2819 (gif_read_from_memory): New GIF input function to read from a
2820 memory buffer.
c65d14ee 2821 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
2822 instead of DGifOpenFileName() if specified.
2823
c880678e
GM
28241999-12-31 Gerd Moellmann <gerd@gnu.org>
2825
2826 * xdisp.c (next_element_from_buffer): Change assertion at the end
2827 because it doesn't hold when there's an overlay string at the end
2828 from which we deliver an image.
2829
8ccb9a54
EZ
28301999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2831
2832 * msdos.c (IT_update_begin): Don't dereference members of struct
2833 window for deleted windows.
2834
12ce2351
GM
28351999-12-30 Gerd Moellmann <gerd@gnu.org>
2836
a915c648
GM
2837 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
2838 a hook, and the hook has a non-nil `no-self-insert' property, let
2839 the return value of the hook specify whether an expansion took
2840 place. If it returns nil, no expansion has been performed.
2841
12ce2351
GM
2842 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
2843 differently.
2844
04ee4f45
EZ
28451999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2846
2847 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
2848
7f4bc0c3
EZ
28491999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
2850
2851 * dispnew.c (mode_line_string): Support MS-DOS frames.
2852
dac204bc
GM
28531999-12-29 Gerd Moellmann <gerd@gnu.org>
2854
2855 * eval.c (syms_of_eval): Initialize debugger_may_continue.
2856
7b712ad8
KH
28571999-12-29 Kenichi Handa <handa@etl.go.jp>
2858
2859 * process.c (read_process_output): Fix the args CHARPOS and LENINS
2860 to signal_after_change.
2861
adb9900f
EZ
28621999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
2863
41ad069b
EZ
2864 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
2865 dimensions changed, invalidate the mouse highlight info.
2866 (disable_mouse_highlight, help_echo, previous_help_echo): New
2867 variables.
2868 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
2869 (fast_find_position, IT_note_mode_line_highlight)
2870 (IT_note_mouse_highlight): New functions.
2871 (IT_update_begin): If the redisplay affects the window where the
2872 mouse highlight is, clear the highlight. If the frame where the
2873 highlight was displayed was killed, invalidate the highlight
2874 info.
2875 (IT_update_end): Reset the highlight flag. Reset the mouse
2876 highlight-defer flag.
2877 (IT_frame_up_to_date): New function, if mouse highlight was
2878 deferred due to GC, do it now.
2879 (internal_terminal_init): Initialize mouse-highlight related
2880 members of the_only_x_display. Assign IT_frame_up_to_date to
2881 frame_up_to_date_hook.
2882 (dos_rawgetc): If the mouse moved, update mouse highlight. If
2883 help_echo changed value, generate a HELP_EVENT event.
2884 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
2885
adb9900f
EZ
2886 * msdos.h (struct display_info): New.
2887 (struct x_output): Add the display_info member.
2888 (FRAME_X_DISPLAY_INFO): New macro.
2889
481b5054
GM
28901999-12-28 Gerd Moellmann <gerd@gnu.org>
2891
2892 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
2893 if MODIFF > 1.
6448a6b3 2894 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
2895
2896 * buffer.c (modify_overlay): Always compute unchanged info.
2897
a2882b0d
KH
28981999-12-27 Kenichi Handa <handa@etl.go.jp>
2899
2900 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
2901
89ba5b5f
KH
29021999-12-27 Kenichi Handa <handa@etl.go.jp>
2903
2904 The following changes are to use more bits for face IDs.
2905
2906 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
2907 lowest 8 bits are single byte character code, the bits above are
2908 face ID.
481b5054 2909 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 2910 above.
481b5054
GM
2911 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
2912 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
2913
2914 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
2915 of GLYPH_MASK_CHAR.
2916
2917 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
2918 of GLYPH_MASK_CHAR.
2919
2920 * dispextern.h (struct glyph): Make face_id and padding_p the top
2921 level members. Change members in union `u'.
2922 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
2923 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
2924 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
2925 (CHAR_GLYPH_PADDING_P): Likewise.
2926 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
2927 characters.
2928
481b5054 2929 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
2930 for the change of struct glyph.
2931 (line_draw_cost): Adjusted for the change of
2932 GLYPH_FROM_CHAR_GLYPH.
2933 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
2934
2935 * term.c (encode_terminal_code): Adjusted for the change of struct
2936 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 2937 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
2938 change of struct glyph.
2939
2940 * xdisp.c: All codes adjusted for the change of struct glyph.
2941
2942 * xterm.c: All codes adjusted for the change of struct glyph.
2943
5bcd116c
KH
29441999-12-27 Kenichi Handa <handa@etl.go.jp>
2945
2946 * composite.h (struct composition): Change the order of declaring
2947 members to reduce the byte size of the structure.
2948
f21b06b7
GM
29491999-12-25 Gerd Moellmann <gerd@gnu.org>
2950
2951 * search.c (looking_at_1): Reset immediate_quit before modifying
2952 global data.
2953
e36557c9
KH
29541999-12-24 Kenichi Handa <handa@etl.go.jp>
2955
2956 * process.c (read_process_output): Fix the arg FROM to
2957 update_compositions.
2958
83c8f461 29591999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
2960
2961 * search.c (Freplace_match): For nonliteral replacement in buffer,
2962 construct all the new text first, then insert all at once.
2963
0b863bd9
DL
29641999-12-22 Dave Love <fx@gnu.org>
2965
2966 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
2967
6d8e8ef3
GM
29681999-12-22 Gerd Moellmann <gerd@gnu.org>
2969
28d7281d
GM
2970 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
2971 lead to size changes to after the X window has been created.
2972
e22ef6eb 2973 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
2974 variable in xassert.
2975
8affcced
KH
29761999-12-22 Kenichi Handa <handa@etl.go.jp>
2977
2978 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 2979 only when the frame is not for a window system.
8affcced 2980
f2be1146
GM
29811999-12-22 Gerd Moellmann <gerd@gnu.org>
2982
deca1348
GM
2983 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
2984 redisplay after changing the multibyteness of a buffer.
2985
f2be1146
GM
2986 * xterm.c (XTread_socket): At the beginning of the loop, pass the
2987 frame's X window to XFilterEvent instead of None because that's
2988 the X window for which the IC was created. This makes dead
2989 accents work when the pointer is not in Emacs' frame.
2990 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
2991
a744a2ec
DL
29921999-12-20 Dave Love <fx@gnu.org>
2993
2994 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
2995
9e6985ed
GM
29961999-12-19 Gerd Moellmann <gerd@gnu.org>
2997
2998 * eval.c (debugger_may_continue): New variable.
2999 (syms_of_eval): Add a DEFVAR_BOOL for it.
3000 (call_debugger): Bind it.
3001
3b620731
EZ
30021999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3003
3004 * msdos.c (IT_set_face): Don't swap face colors when highlight or
3005 fp->tty_reverse_p is set, unless the computed colors are identical
3006 to frame colors. Print both original and computed colors to
3007 termscript file.
3008 (IT_write_glyphs): Track the changes in handling of composite
3009 characters.
3010 (IT_set_frame_parameters): Don't set frame colors from
3011 unspecified-fg and unspecified-bg pseudo-colors.
3012
0f9a51c4
DL
30131999-12-17 Dave Love <fx@gnu.org>
3014
3015 * data.c (Fkeywordp): New function.
3016 (syms_of_data): Install it.
3017
363e4e42
EZ
30181999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3019
3020 * xfaces.c (tty_defined_color): Fix last change.
3021
cfad01b4
GM
30221999-12-15 Gerd Moellmann <gerd@gnu.org>
3023
3024 * xdisp.c (redisplay_window) <optional new window start>: Check
3025 that window start is in [BEGV..ZV].
3026
f9d2fdc4
EZ
30271999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
3028
3029 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
3030 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
3031
3032 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
3033 (syms_of_xfaces): Initialize and staticpro them.
3034 (tty_defined_color): If the color name is unspecified-fg or
3035 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
3036 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
3037 (tty_color_name): If the color pixel value is either
3038 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
3039 Qunspecified_fg or Qunspecified_bg, respectively.
3040 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
3041 and Qunspecified_bg for foreground and background colors.
3042 (realize_default_face): If the foreground and background colors
3043 are not specified, default to Qunspecified_fg and Qunspecified_bg.
3044 (realize_tty_face): By default, set the face colors to
3045 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
3046 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
3047 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
3048 Reverse the colors if the default colors were reversed.
3049
3050 * dispnew.c (init_display): Initialize the frame pixels of the
3051 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
3052 FACE_TTY_DEFAULT_BG_COLOR.
3053
3054 * term.c (turn_on_face): If the default fore- and background
3055 colors are reversed, enter inverse video mode. Don't send color
3056 escape sequences for unspecified foreground and background colors.
3057 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
3058
3059 * dosfns.c (unspecified_colors): New variable.
3060 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
3061 color names, return FACE_TTY_DEFAULT_FG_COLOR and
3062 FACE_TTY_DEFAULT_BG_COLOR, respectively.
3063 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
3064 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
3065 Qunspecified_bg, respectively.
3066
3067 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
3068 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
3069
e19539f1
KH
30701999-12-15 Kenichi Handa <handa@etl.go.jp>
3071
3072 * coding.c (code_convert_region): Fix the secoding arg to
3073 update_compositions.
3074
5ec14d3c
KH
30751999-12-15 Kenichi Handa <handa@etl.go.jp>
3076
3077 The following changes are for the new composition mechanism. We
3078 have deleted `composition' charset and composite characters,
3079 instead introduced a special text property `composition'.
3080
3081 * Makefile.in (INTERVAL_SRC): Include composite.h.
3082 (INTERVAL_OBJ): Include composite.o.
3083 (SOME_MACHINE_OBJECTS): Include composite.o.
3084 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
3085 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
3086 Depend on composite.h.
3087 (doc.o): Depend on charset.h.
3088 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
3089 (composite.o): New target.
3090
3091 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
3092
3093 * callproc.c (Fcall_process): Call code_convert_string to encode
3094 arguments. Use CODING_REQUIRE_DECODING to check if the process
3095 output should be decoded.
3096
3097 * casefiddle.c: Include composite.h.
3098 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
3099 multibyte character. Adjusted for the change of CHAR_STRING.
3100 (casify_region): Likewise. Call update_compositions.
3101
3102 * category.h (CATEGORY_SET): Delete codes for a composite
3103 character.
3104
3105 * category.c (word_boundary_p): Delete codes for a composite
3106 character.
3107 (Fmake_category_table): New function.
3108 (syms_of_category): Defsubr it.
3109
3110 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
3111 (ccl_driver): Delete codes for a composite character.
3112
3113 * charset.h: In this entry, just `Modified' means that codes for a
3114 composite character is deleted.
3115 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
3116 (charset_composition) (MIN_CHAR_COMPOSITION)
3117 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
3118 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
3119 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
3120 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
3121 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
3122 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
3123 Modified.
3124 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
3125 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
3126 non_ascii_char_to_string.
3127 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
3128 (STRING_CHAR_AND_LENGTH): Likewise.
3129 (FETCH_CHAR_ADVANCE): New macro.
3130 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
3131 (MAX_MULTIBYTE_LENGTH): New macro.
3132 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
3133 (find_charset_in_str): Argument adjusted.
3134 (CHAR_LEN): Modified.
3135
3136 * charset.c: In this entry, just `Modified' means that codes for a
3137 composite character is deleted.
3138 (Qcomposition) (leading_code_composition)
3139 (charset_composition) (min_composite_char) (cmpchar_table)
3140 (cmpchar_table_size) (n_cmpchars): Deleted.
3141 (SPLIT_COMPOSITE_SEQ): Deleted.
3142 (SPLIT_MULTIBYTE_SEQ): Modified.
3143 (char_to_string): Renamed from non_ascii_char_to_string.
3144 Modified.
3145 (string_to_char): Renamed from string_to_non_ascii_char.
3146 (split_string): Renamed from split_non_ascii_string.
3147 (char_printable_p) (Fsplit_char)
3148 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
3149 (char_bytes) (Fchar_width) (strwidth): Modified.
3150 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
3151 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
3152 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
3153 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
3154 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
3155 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
3156 (Fcmpchar_cmp_count): Deleted.
3157 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
3158 (init_charset_once): Modified.
3159 (syms_of_charset): Modified.
3160
3161 * cmds.c (internal_self_insert): Adjusted for the change of
3162 CHAR_STRING.
3163
3164 * coding.h (emacs_code_class_type): Delete the member
3165 EMACS_leading_code_composition.
3166 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
3167 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
3168 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
3169 (COMPOSING_WITH_RULE_P): Macros deleted.
3170 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
3171 macros.
3172 (struct composition_data): New structure.
3173 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
3174 (struct coding_system): New members composition_rule_follows,
3175 cmp_data, cmp_data_start, cmp_data_index.
3176 (coding_save_composition) (coding_free_composition_data)
3177 (coding_adjust_composition_offset): Extern them.
3178
3179 * coding.c: Include composite.h.
3180 (DECODE_CHARACTER_ASCII): Don't handle composition here.
3181 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
3182 of multibyte code here.
3183 (DECODE_CHARACTER_DIMENSION2): Likewise.
3184 (detect_coding_emacs_mule): Change the case label from
3185 EMACS_leading_code_composition to 0x80.
3186 (detect_coding_iso2022): Handle new composition sequence.
3187 (DECODE_ISO_CHARACTER): Likewise.
3188 (check_composing_code): Deleted.
3189 (coding_allocate_composition_data): New function.
3190 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
3191 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
3192 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
3193 (decode_coding_iso2022): Handle new composition sequence.
3194 (ENCODE_ISO_CHARACTER): Don't check composition here.
3195 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
3196 (ENCODE_COMPOSITION_NO_RULE_START)
3197 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
3198 (ENCODE_COMPOSITION_END): Handle new composition sequence.
3199 (ENCODE_COMPOSITION_FAKE_START): New macro.
3200 (encode_coding_iso2022): Handle new composition sequence.
3201 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
3202 (encode_coding_sjis_big5): Ignore composition.
3203 (setup_coding_system): Initialize new members of struct
3204 coding_system. Enable composition only when the coding system has
3205 `composition' property t.
3206 (coding_free_composition_data) (coding_adjust_composition_offset)
3207 (coding_save_composition) (coding_restore_composition): New
3208 functions.
3209 (code_convert_region): Call coding_save_composition for encoding
3210 and coding_allocate_composition_data for decoding. Don't skip
3211 ASCII characters if we handle composition on encoding. Call
3212 signal_after_change with Check_BORDER.
3213 (code_convert_string): Call coding_save_composition for encoding
3214 and coding_allocate_composition_data for decoding. Don't skip
3215 ASCII characters if we handle composition on encoding.
3216 (code_convert_string1): Set Vlast_coding_system_used after calling
3217 code_convert_string.
3218 (code_convert_string_norecord): Disable composition.
3219 (Fset_terminal_coding_system_internal): Likewise.
3220 (Fset_safe_terminal_coding_system_internal): Likewise.
3221 (Fset_keyboard_coding_system_internal): Likewise.
3222 (init_coding_once): Set emacs_code_class[0x80] to
3223 EMACS_invalid_code.
3224
3225 * composite.h: New file.
3226
3227 * composite.c: New file.
3228
3229 * data.c (Faref): Delete codes for a composite character..
3230 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
3231
3232 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
3233 (struct glyph): Add new sub-structure cmp to the union `u'.
3234 (enum display_element_type): New member IT_COMPOSITION.
3235 (enum prop_idx): New member COMPOSITION_PROP_IDX.
3236 (struct it): New members cmp_id, cmp_len.
3237
3238 * dispnew.c (direct_output_forward_char): Check point moving into
3239 or out of a composition. If so, give up direct method.
3240
3241 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
3242
3243 * editfns.c (Fchar_to_string): Adjusted for the change of
3244 CHAR_STRING.
3245 (general_insert_function): Likewise.
3246 (Finsert_char): Likewise.
3247 (Fsubst_char_in_region): Likewise. Call update_compositions.
3248 (Ftranslate_region): Call update_compositions.
3249 (Ftranspose_regions): Call update_compositions.
3250
3251 * emacs.c (main): Call syms_of_composite.
3252
3253 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
3254 CHAR_STRING.
3255 (Finsert_file_contents): Set Vlast_coding_system_used before
3256 calling signal_after_change. Call update_compositions if some
3257 texts are inserted..
3258 (Fwrite_region): Adjusted for the change of a_write and e_write.
3259 (a_write): Argument changed. Work based on character position,
3260 not byte position.
3261 (e_write): Argument changed. Handle new way of composition.
3262
3263 * fns.c (Flength): The length of char-table is MAX_CHAR.
3264 (concat): Adjusted for the change of CHAR_STRING.
3265 (Ffillarray): Adjusted for the change of CHAR_STRING.
3266 (Fset_char_table_default): Delete codes for a composite character.
3267 (hash_put): Return hash index.
3268
3269 * fontset.h (struct font_info): New member vertical_centering.
3270 (Vvertical_centering_font_regexp): Extern it.
3271
3272 * fontset.c (Vvertical_centering_font_regexp): New variable.
3273 (syms_of_fontset): Declare it as a Lisp variable and initialize.
3274 Set Vignore_relative_composition to nil.
3275 (fs_load_font): Initialize `vertical_centering' of struct
3276 font_info.
3277
3278 * indent.c (check_composition): New function.
3279 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
3280 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
3281 (current_column_1): Handle new way of composition.
3282 (Fmove_to_column): Likewise.
3283 (compute_motion): Likewise.
3284
3285 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
3286 (insert_char): Likewise.
3287 (insert): Call update_compositions.
3288 (insert_and_inherit): Likewise.
3289 (insert_before_markers): Likewise.
3290 (insert_before_markers_and_inherit): Likewise.
3291 (insert_from_string): Likewise.
3292 (insert_from_string_before_markers): Likewise.
3293 (insert_from_buffer): Likewise.
3294 (replace_range): Likewise.
3295 (count_combining_composition): Deleted.
3296 (count_combining_before): Delete codes for a composite character.
3297 (count_combining_after): Likewise.
3298 (del_range_1): Call update_compositions.
3299 (del_range_byte): Likewise.
3300 (del_range_both): Likewise.
3301 (Fcombine_after_change_execute): Likewise.
3302
3303 * intervals.h: Include composite.h.
3304 (get_property_and_range): Extern it.
3305 (Vtext_property_default_nonsticky): Extern it.
3306
3307 * intervals.c (adjust_intervals_for_insertion): To check stickines
3308 of properties, pay attention to text-property-default-nonsticky.
3309 (merge_properties_sticky): Likewise.
3310 (get_property_and_range): New function.
3311
3312 * keyboard.c (Vdisable_point_adjustment): New variable.
3313 (Vglobal_disable_point_adjustment): New variable.
3314 (syms_of_keyboard): Declare them as Lisp variables.
3315 (command_loop_1): Check them and call adjust_point_for_property if
3316 necessary.
3317 (adjust_point_for_property): New function.
3318
3319 * keymap.c (push_key_description): Adjusted for the change of
3320 CHAR_STRING.
3321 (Ftext_char_description): Likewise.
3322
3323 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
3324 (hash_put): Adjusted for the change of the definition.
3325 (signal_after_change): Likewise.
3326 (check_point_in_composition): Extern it.
3327
3328 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
3329 Delete a code that handles an invalid too-long multibyte sequence
3330 because we are now sure that we never encounter with such a
3331 sequence.
3332 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
3333 MAX_LENGTH_OF_MULTI_BYTE_FORM.
3334 (init_obarray): Likewise.
3335 (read1): Likewise. Adjusted for the change of CHAR_STRING.
3336
3337 * print.c (printchar): Adjusted for the change of CHAR_STRING.
3338
3339 * process.c: Include composite.h.
3340 (read_process_output): Call update_compositions.
3341
3342 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
3343
3344 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
3345
3346 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
3347 character.
3348
3349 * term.c (encode_terminal_code): Delete codes for a composite
3350 character. Adjusted for the change of CHAR_STRING.
3351 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
3352 Delete codes for a composite character.
3353
3354 * textprop.c (Vtext_property_default_nonsticky): New variable
3355 (syms_of_textprop): Declare it as a Lisp variable.
3356
3357 * window.c (Frecenter): Clear all caches of compositions.
3358
3359 * xdisp.c (it_props): Add an entry for composition.
3360 (face_before_or_after_it_pos): For composition, check face of a
3361 character after the composition.
3362 (handle_composition_prop): New function.
3363 (get_next_display_element): Adjusted for the change of
3364 CHAR_STRING.
3365 (set_iterator_to_next): Handle the case that it->method ==
3366 next_element_from_composition.
3367 (next_element_from_composition): New function.
3368 (message_dolog): Adjusted for the change of CHAR_STRING.
3369 (set_message_1): Likewise.
3370 (check_point_in_composition): New function.
3371 (reconsider_clip_changes): If point moved into or out of
3372 composition, set b->clip_changed to 1 to force updating of the
3373 screen.
3374 (disp_char_vector): Delete codes for a composite character.
3375 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
3376
3377 * xfaces.c (choose_face_fontset_font): Delete codes for a
3378 composite character.
3379 (realize_x_face): Likewise. Change a place to set local variable
3380 `f' to avoid a bug of GCC 2.8.1 on Solaris.
3381
3382 * xfns.c: Include intervals.h.
3383 (syms_of_xfns): Make `display' property nonsticky by default.
3384
3385 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
3386 for find_charset_in_str.
3387
3388 * xterm.h (struct x_output): Change member font_baseline to
3389 baseline_offset.
3390
3391 * xterm.c (x_append_glyph): Setup members of struct glyph properly
3392 for composition.
3393 (x_append_composite_glyph): New function.
3394 (VCENTER_BASELINE_OFFSET): New macro.
3395 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
3396 of struct it for the composition. Cache pixel offsets in the
3397 struct composition. Delete codes for a composite character.
3398 Handle Vignore_relative_composition in composition code.
3399 (struct glyph_string): Delete member cmpcharp, add new member cmp.
3400 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
3401 (x_compute_glyph_string_overhangs): Likewise.
3402 (x_get_glyph_overhangs): Delete codes for a composite character.
3403 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
3404 (x_draw_glyph_string_background): Likewise. Delete codes for
3405 checking s->gidx for a composition.
3406 (x_draw_glyph_string_foreground): Delete code for a composite
3407 character.
3408 (x_draw_composite_glyph_string_foreground): New function.
3409 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
3410 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
3411 (struct work): Deleted.
3412 (x_fill_composite_glyph_string): Argument changed. Mostly
3413 rewritten for that.
3414 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
3415 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
3416 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
3417 (BUILD_GLYPH_STRINGS): For composition, call
3418 BUILD_COMPOSITE_GLYPH_STRING.
3419 (x_new_font): Initialize f->output_data.x->baseline_offset, not
3420 f->output_data.x->font_baseline.
3421
c3c60f13
GM
34221999-12-14 Gerd Moellmann <gerd@gnu.org>
3423
3424 * xterm.c (show_mouse_face): Don't use updated_area, use
3425 TEXT_AREA.
3426
83c8f461 34271999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
3428
3429 * minibuf.c (Fall_completions): Doc fix.
3430
83c8f461 34311999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
3432
3433 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
3434 has been changed by the Lisp code.
3435
d8eccf12
GM
34361999-12-12 Gerd Moellmann <gerd@gnu.org>
3437
3438 * xfns.c: Indentation fixes.
3439
ae56feae
SM
34401999-12-10 Stefan Monnier <monnier@cs.yale.edu>
3441
3442 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
3443
dfa1c6ae
GM
34441999-12-10 Gerd Moellmann <gerd@gnu.org>
3445
3446 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
3447 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
3448
3449 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
3450 to frame.h.
3451
ec18280f
SM
34521999-12-09 Stefan Monnier <monnier@cs.yale.edu>
3453
3454 * keyboard.c (Qratio): New symbol.
3455 (scroll_bar_parts): Add `Qratio' to it.
3456 (syms_of_keyboard): Init `Qratio'.
3457 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
3458 * xterm.c (#includes): Allow compilation with only Xaw.
3459 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
3460 (xt_action_hook): Replace XAW3D by XAW.
3461 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
3462 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
3463 Determine epsilon dynamically and don't try to be too clever.
3464 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
3465 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
3466 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
3467 scrollbar (using `ratio').
3468 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
3469 scrollbar we have so as to set it up more optimally and to fix
3470 xaw3d_arrow_scroll and xaw3d_pick_top.
3471 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
3472 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
3473 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
3474 is not ignored, using a major gross hack.
3475 (x_initialize): Init default values for xaw3d_arrow_scroll and
3476 xaw3d_pick_top.
3477
83b6d970
DL
34781999-12-09 Dave Love <fx@gnu.org>
3479
3480 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
3481
3648c842
GM
34821999-12-08 Gerd Moellmann <gerd@gnu.org>
3483
3484 * eval.c: Remove conditional compilation on `standalone'.
3485 (call_debugger): When entering the debugger while redisplaying,
3486 reset redisplaying_p, and go back to the top-level if the debugger
3487 returns.
3488
05e71564
GM
34891999-12-07 Gerd Moellmann <gerd@gnu.org>
3490
3491 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
3492 basic faces are realized before trying to use face `menu'.
3493
3494 * window.c (delete_window): Block input for the time window
3495 matrices are being changed.
3496
b46cd536
DL
34971999-12-07 Dave Love <fx@gnu.org>
3498
3499 * lread.c (Fintern_soft): Fix newlines in doc string.
3500
96acb1f7
GM
35011999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
3502
3503 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
3504 duplicate definition of ElfW.
3505 (find_section): Copied from unexsgi.c.
3506 (unexec): Use find_section. Adjust whitespace. Initialize
3507 new_data2_offset based on old_data, not sbss (this fixes a bug on
3508 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
3509 Adjust test for presence of .mdebug section to the new return
3510 value of find_section.
3511
35121999-12-07 Gerd Moellmann <gerd@gnu.org>
3513
3514 * unexelf.c: Merge changes from 20.5.
3515 (unexec): Handle .lit4 and .lit8 unconditionally.
3516
3517 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
3518 unexsgi.o again.
3519
3520 * m/iris5d.h (UNEXEC): Likewise.
3521
7dae4502
SM
35221999-12-06 Stefan Monnier <monnier@cs.yale.edu>
3523
3524 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
3525 (syms_of_editfns): Register it.
3526 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
3527 (del_range_1, del_range_2): Add a ret_string argument to
3528 request that the deleted text be returned.
3529 (del_range_byte, del_range_both): Update del_range_2 call.
05e71564 3530 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
3531 * casefiddle.c (casify_region): Update del_range_1 call.
3532 * coding.c (code_convert_region): Update del_range_2 call.
3533 * fileio.c (Finsert_file_contents): Update del_range_2 call.
3534
397e4fae
GM
35351999-12-06 Gerd Moellmann <gerd@gnu.org>
3536
3537 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
3538
3d973f71
GM
35391999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
3540
3541 * lread.c (Fintern_soft): Accept a symbol argument.
3542
740e985f
EZ
35431999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
3544
3545 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
3546
3547 * insdel.c (adjust_markers_for_delete): Fix last change.
3548
2d764c78
EZ
35491999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
3550
3551 Changes for automatic remapping of X colors on terminal frames:
3552
3553 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
3554 frames.
3555 (Vface_tty_color_alist): Remove.
3556 (tty_defined_color): New function.
3557 (defined_color): Rewrite to support any type of frame.
3558 (tty_color_name): New function.
3559 (face_color_supported_p, Fface_color_gray_p,
3560 Fface_color_supported_p): Support non-X frames.
3561 (load_color): Enclose the color name in quotes, in the log
3562 messages. Remove DOS-specific version of load_color.
3563 (realize_tty_face): Take the supported colors from
3564 tty-color-alist. Support translation of X colors to the closest
3565 tty color, for both MSDOS and tty frames.
3566 [MSDOS]: Don't invert face colors if they were taken from the
3567 frame colors.
3568 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
3569
3570 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
3571 Define a mostly empty surrogate.
3572 (tty_display): Declare.
3573
3574 * frame.c (make_terminal_frame) [!macintosh]: Don't use
3575 tty_display.
3576 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
3577 frames when the frame's param_alist includes 'reverse.
3578 (tty_display): Define.
3579 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
3580 output_data.x member.
3581 (Fframe_parameters): Return foreground and background color names
3582 on tty frames as well, in addition to MSDOS frames.
3583
3584 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
3585 selected_frame.
3586 (struct x_output): Remove unused members; document who uses each
3587 member.
3588 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
3589 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
3590 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
3591 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
3592 unused macro definintions.
3593
3594 * msdos.c (IT_set_frame_parameters): Don't call
3595 recompute_basic_faces, the next redisplay will, anyway.
3596 (x_current_display): Remove unused variable.
3597 Many functions: changes for Lisp_object selected_frame.
3598 (IT_set_face): If the tty_reverse_p flag is set for the face,
3599 reverse the foreground and background colors.
3600 (Fmsdos_remember_default_colors): New function.
3601 (syms_of_msdos): Defsubr it.
3602 (IT_set_frame_parameters): Use initial_screen_colors[] when
3603 creating a new frame. If the frame parameters include 'reverse,
3604 swap the foreground and background colors.
3605 (internal_terminal_init): Initialize initial_screen_colors to -1.
3606 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
3607 cus-start.el.
3608
3609 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
3610
3611 * xfns.c (x_defined_color): Rename from defined_color. All
3612 callers changed.
3613 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
3614 all callers changed.
3615 (Fxw_color_values): Renamed from Fx_color_values; all callers
3616 changed.
3617 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
3618 callers changed.
3619 (x_window_to_frame, x_any_window_to_frame,
3620 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
3621 x_top_window_to_frame): Use !FRAME_X_P instead of
3622 f->output_data.nothing.
3623 * xterm.h (x_defined_color): Rename from defined_color.
3624
3625 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
3626 f->output_data.nothing.
3627 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
3628 all callers changed.
3629 (Fxw_color_values): Renamed from Fx_color_values; all callers
3630 changed.
3631 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
3632 callers changed.
3633
3634 * dispextern.h (tty_color_name): Add prototype.
3635
3636 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
3637 f->output_data.nothing.
3638 * w32menu.c (menubar_id_to_frame): Likewise.
3639 * w32term.h (w32_output): Declare.
3640
3641 * dosfns.c (Qmsdos_color_translate): Remove.
3642 (msdos_stdcolor_name): Now returns a Lisp_Object.
3643 * dosfns.h (Qmsdos_color_translate): Remove.
3644
3645 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
3646
b3e5232e
KH
36471999-12-06 Kenichi Handa <handa@etl.go.jp>
3648
3649 * fileio.c (decide_coding_unwind): Renamed from
3650 set_auto_coding_unwind.
3651 (Finsert_file_contents): Make single unwind protect to call both
3652 Vset_auto_coding_function and Ffind_operation_coding_system.
3653
3654 * insdel.c (adjust_markers_for_delete): Make it non-static.
3655
db0e466c
SM
36561999-12-04 Stefan Monnier <monnier@cs.yale.edu>
3657
3658 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
3659 operators and handle them properly.
3660 * regex.h (RE_ALL_GREEDY): New option.
3661 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
3662 sorting would put it.
3663 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
3664 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
3665
22afa6e8
DL
36661999-12-04 Dave Love <d.love@dl.ac.uk>
3667
3668 * m/arm.h: New file.
3669
40afb967
DL
36701999-12-03 Dave Love <fx@gnu.org>
3671
3672 * editfns.c (Fmessage_or_box): Use use_dialog_box.
3673
ddf8eff5
GM
36741999-12-02 Gerd Moellmann <gerd@gnu.org>
3675
3676 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
3677 for building with Motif.
3678
3679 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
3680 unexelf.o.
3681
3682 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
3683
fa09a82d
DL
36841999-12-01 Dave Love <fx@gnu.org>
3685
3686 * emacs.c (main): Set LANG=C iff AX3_2 defined.
3687
ddf8eff5
GM
36881999-11-28 Gerd Moellmann <gerd@gnu.org>
3689
3690 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
3691 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
3692 macros.
3693
3694 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
3695
fa09a82d
DL
36961999-11-28 eliz <eliz@dlpx1>
3697
3698 * emacs.c (synchronize_locale): Avoid compiler warnings about
3699 pointer type mismatch.
3700
f9632fc8
GM
37011999-11-28 Gerd Moellmann <gerd@gnu.org>
3702
717d0121
GM
3703 * window.c (Fwindow_end): Don't call temp_set_pt_both with
3704 out of range position.
3705
f9632fc8
GM
3706 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
3707 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
3708
59c65f1e
EZ
37091999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
3710
613a8346
EZ
3711 * charset.c (Fmake_char_internal): Print the charset ID when
3712 signalling an error.
3713
59c65f1e
EZ
3714 * emacs.c (synchronize_locale): Avoid compiler warnings about
3715 pointer type mismatch.
3716
83c8f461 37171999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
3718
3719 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
3720
18df9369
GM
37211999-11-26 Gerd Moellmann <gerd@gnu.org>
3722
65a3ccf7
GM
3723 * puresize.h (BASE_PURESIZE): Increase to 550000.
3724
b3b98592
GM
3725 * textprop.c (set_text_properties): New function. Like
3726 Fset_text_properties, but with additional parameter
3727 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
3728 changes.
3729 (Fset_text_properties): Use it.
3730
3731 * insdel.c (insert_1_both): Call set_text_properties with last
3732 parameter nil so that no after changes will be signaled.
3733
3734 * lisp.h: Add prototype for set_text_properties.
3735
18df9369
GM
3736 * xfaces.c (set_lface_from_font_name): Fix previous change.
3737 (recompute_basic_faces): Change assert to abort.
3738
71a8e74b
DL
37391999-11-25 Dave Love <fx@gnu.org>
3740
3741 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
3742 (Fmember, Fdelq, Fdelete): Inline car.
3743 (Fy_or_n_p): Doc fix.
3744
bc6a5782
GM
37451999-11-25 Gerd Moellmann <gerd@gnu.org>
3746
3221576b 3747 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 3748 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
3749 is not set, try to use a reasonable default.
3750
bc6a5782
GM
3751 * dispnew.c (direct_output_for_insert): Set glyph row's
3752 displays_text_p flag. Correct window's window_end_vpos if
3753 necessary.
3754
0c8559bb
PE
37551999-11-25 Paul Eggert <eggert@twinsun.com>
3756
3757 * emacs.c (fixup_locale): Don't bother to record initial locale.
3758 (synchronize_locale): If the desired locale is nil,
3759 treat it as if it were the empty string,
3760 so that we set the locale from the environment.
3761
35737351
KH
37621999-11-25 Kenichi Handa <handa@etl.go.jp>
3763
3764 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
3765 of the current buffer via Fset.
3766
5562b47f
DL
37671999-11-24 Dave Love <fx@gnu.org>
3768
3769 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
3770
3771 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
3772
3773 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
3774
00da0e4a
GM
37751999-11-24 Gerd Moellmann <gerd@gnu.org>
3776
3777 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
3778
3779 * emacs.c (PVEC_FLAG): New variable.
3780
b1775dc1
GM
37811999-11-23 Gerd Moellmann <gerd@gnu.org>
3782
3783 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
3784 that fails on IBM PowerPC, AIX 4.2.
3785
08de6200
EZ
37861999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
3787
3788 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
3789 string of mode-line-format. Remove the obsolete %t.
3790
02fda8ff
GM
37911999-11-22 Gerd Moellmann <gerd@gnu.org>
3792
f2fa858f
GM
3793 * dispnew.c (direct_output_for_insert): Increment glyph positions
3794 for glyphs from buffer text only.
3795
02fda8ff
GM
3796 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
3797 (gdb_data_seg_bits): New variables.
3798
3799 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
3800 work on systems not allowing enumerators > INT_MAX, and it
3801 won't work if EMACS_INT is long long.
3802
1b0d24e7
PE
38031999-11-22 Paul Eggert <eggert@twinsun.com>
3804
3805 Port to SunOS 4.1.x again. Help out with Alpha port.
3806 Rename messages-locale to system-messages-locale,
3807 and likewise for time-locale.
3808
3809 * callproc.c (strerror): Remove decl.
3810 * fileio.c (strerror): Likewise.
3811 * process.c (strerror): Likewise.
3812 * emacs.c (strerror): Likewise.
3813 (Vsystem_messages_locale): Renamed from Vmessages_locale.
3814 All uses changed.
3815 (Vprevious_system_messages_locale): Likewise, from
3816 Vprevious_messages_locale.
3817 (Vsystem_time_locale): Likewise, from Vtime_locale.
3818 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
3819 (ABORT_RETURN_TYPE): New macro.
3820 (abort): Return type is now ABORT_RETURN_TYPE.
3821 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
3822 defined.
3823 (syms_of_emacs): messages-locale -> system-messages-locale,
3824 previous-messages-locale -> previous-system-messages-locale,
3825 time-locale -> system-time-locale,
3826 previous-time-locale -> previous-system-time-locale.
3827
3828 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
3829 (const): Do not define; that's config.h's job.
3830 (<limits.h>): Include if HAVE_LIMITS_H is defined.
3831 (CHAR_BIT): Move test for definedness outside of limits.h condition.
3832 (<stddef.h>): Include if STDC_HEADERS is defined.
3833 (FREE_RETURN_TYPE): New macro.
3834 (free): Return type is now FREE_RETURN_TYPE.
3835
3836 * lisp.h (synchronize_system_time_locale): Renamed from
3837 synchronize_time_locale. All uses changed.
3838 (synchronize_system_messages_locale): Likewise, from
3839 synchronize_messages_locale.
3840
3841 * m/alpha.h (malloc, realloc, calloc): Remove decls;
3842 stdlib.h now does this.
3843
3844 * process.c (sys_siglist): Remove.
3845
3846 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
3847 New macros.
3848
3849 * syntax.c (scan_sexps_forward): Use abort, not assert.
3850
3851 * sysdep.c (my_sys_siglist): New var.
3852 (sys_siglist): New macro. Remove old initialized vars of same name.
3853 (init_signals): Initialize sys_siglist.
3854
3855 * xfns.c (abort): Remove decl; stdlib.h now does this.
3856
0dcd5b54
DL
38571999-11-18 Dave Love <fx@gnu.org>
3858
946173ad
DL
3859 * filelock.c: Add forward declaration for get_boot_time_1.
3860
0dcd5b54
DL
3861 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
3862
71447e8f
GM
38631999-11-18 Gerd Moellmann <gerd@gnu.org>
3864
3865 * buffer.h (struct buffer_text): Add comment about moving
3866 buffer text if REL_ALLOC is defined.
3867
eeedff63
KH
38681999-11-18 Kenichi Handa <handa@etl.go.jp>
3869
3870 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
3871
3872 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
3873 memory for push_key_description.
3874
3875 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
3876 allocate memory for push_key_description.
3877 (describe_buffer_bindings): Likewise.
3878
5d7e4a2c
GM
38791999-11-17 Gerd Moellmann <gerd@gnu.org>
3880
3881 * xfns.c (Fx_show_busy_cursor): Doc-fix.
3882 (Fx_hide_busy_cursor): Ditto.
3883
38841999-11-17 Marco Walther <walther@siemens-pyramid.com>
3885
3886 * unexsni.c (unexec): Handle .rel.dyn section.
3887
b5b41e02
DL
38881999-11-16 Dave Love <fx@gnu.org>
3889
3890 * doc.c (Fdocumentation): Remove gcpro here too.
3891
e35b6123
GM
38921999-11-16 Gerd Moellmann <gerd@gnu.org>
3893
3894 * keyboard.c (command_loop_1): Remove no_redisplay.
3895
83c8f461 38961999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
3897
3898 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
3899 in noninteractive.
3900
b05d3bee
GM
39011999-11-14 Gerd Moellmann <gerd@gnu.org>
3902
5bcfeb49
GM
3903 * xdisp.c (ensure_echo_area_buffers): New.
3904 (with_echo_area_buffer): Use it.
3905 (setup_echo_area_for_printing): Ditto.
3906
b05d3bee
GM
3907 * buffer.c (indicate-empty-lines): Doc-fix.
3908
9b2e6e4c
GM
39091999-11-12 Gerd Moellmann <gerd@gnu.org>
3910
e7f90eab
GM
3911 * term.c (term_init): If "op" isn't available, don't support color
3912 because we can't switch back to the default foreground and
3913 background.
3914
9b2e6e4c
GM
3915 * doc.c (Fdocumentation_property): Remove GCPRO because
3916 Fsubstitute_command_keys gcpro's the string.
3917
1bf21027
KH
39181999-11-12 Kenichi Handa <handa@etl.go.jp>
3919
3920 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
3921
3bc6df53
GM
39221999-11-11 Gerd Moellmann <gerd@gnu.org>
3923
3924 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
3925 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
3926 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
3927
35a5514b
GM
39281999-11-10 Gerd Moellmann <gerd@gnu.org>
3929
3930 * xfns.c (QCuser_data): Removed.
3931 (syms_of_xfns): Initialization of QCuser_data removed.
3932 (parse_image_spec): Don't handle :user-data specially. Allow
3933 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
3934 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
3935 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
3936 parse_image_spec accordingly.
3937
83c8f461 39381999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3939
3940 * cmds.c (Fbeginning_of_line): Doc fix.
3941 (Fend_of_line): Doc fix.
3942
3943 * editfns.c (Fline_beginning_position): If N is not 1,
3944 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
3945
3946 * syntax.c (Fforward_word): Handle fields even if would have hit
3947 an edge of the buffer. Return nil if affected by fields.
3948
83c8f461 39491999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3950
3951 * editfns.c (preceding_pos): Function deleted.
3952 (text_property_stickiness): Decrement POS directly.
3953 Fix a confusion that used PT instead of POS.
3954
3955 * editfns.c (find_field): Properly handle the case
3956 of a field boundary where `field' inherits from neither side.
3957
3958 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
3959 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
3960
fa9aabf6
GM
39611999-11-08 Gerd Moellmann <gerd@gnu.org>
3962
3963 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
3964 BEFORE_POTENTIAL_GC before DISCARD.
3965
4015b3c0
GM
39661999-11-07 Gerd Moellmann <gerd@gnu.org>
3967
033a5fa3
GM
3968 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
3969
3970 * lisp.h: Add prototype for unmark_byte_stack.
3971
3972 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
3973 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
3974 XUNMARK.
3975
55b064bd
GM
3976 * xdisp.c (resize_mini_window): Fix computation of needed
3977 mini-window height.
3978
3979 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
3980 compilation on USE_TEXT_PROPERTIES.
01e9b9df 3981
4015b3c0 3982 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 3983 locally there. Rearrange case statements so that those most
4015b3c0
GM
3984 frequently executed come first. Avoid goto's in frequently
3985 executed cases.
3986
fe512f27
GM
39871999-11-05 Gerd Moellmann <gerd@gnu.org>
3988
dd59e217
GM
3989 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
3990 AFTER_POTENTIAL_GC around internal_catch.
3991
bcf28080
GM
3992 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
3993 relocate_byte_pcs.
3994 (init_alloc_once, init_alloc): Set byte_stack_list to null.
3995
3996 * eval.c (struct catchtag): Add member byte_stack.
3997 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 3998 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
3999 catchtag.
4000 (unwind_to_catch): Restore byte_stack_list from catchtag.
4001
4002 * lisp.h: Add prototypes for new functions in bytecode.c.
4003 Add extern declaration for byte_stack_list.
4004
4005 * bytecode.c (struct byte_stack): New.
4006 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
4007 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
4008 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
4009 (HANDLE_RELOCATION): Removed.
4010 (Fbyte_code): Use byte_stack structures.
4011
4d59c34c
GM
4012 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
4013
fe512f27
GM
4014 * buffer.c (syms_of_buffer): Extend documentation of
4015 mode-line-format.
4016
60b64cd6
GM
40171999-11-04 Gerd Moellmann <gerd@gnu.org>
4018
4019 * editfns.c (Fdelete_field): Renamed from Ferase_field.
4020
4021 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
4022 Ferase_field instead of Fdelete_field.
4023
b51b619b
GM
40241999-11-03 Gerd Moellmann <gerd@gnu.org>
4025
4026 * dispnew.c (Finternal_show_cursor): Change it to set the
4027 cursor on/off, not toggle its state.
4028 (Finternal_show_cursor_p): New.
4029 (syms_of_display): Defsubr Sinternal_show_cursor_p.
4030
5865af0d
DL
40311999-11-03 Dave Love <fx@gnu.org>
4032
4033 * charset.c (split_non_ascii_string): Define return value.
4034
82a700f3
GM
40351999-11-03 Gerd Moellmann <gerd@gnu.org>
4036
edfef199
GM
4037 * minibuf.c (string_to_object): New.
4038 (read_minibuf_noninteractive): New.
4039 (read_minibuf): Call read_minibuf_noninteractive if
4040 noninteractive. Use string_to_object.
4041
82a700f3
GM
4042 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
4043
b5540f0d
DL
40441999-11-02 Dave Love <fx@gnu.org>
4045
e69dcd60
DL
4046 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
4047
827a1788
DL
4048 * process.c: Define _GNU_SOURCE before config.h to get strsignal
4049 declared with glibc2.
b5540f0d 4050
a69a6e61
GM
40511999-11-02 Gerd Moellmann <gerd@gnu.org>
4052
4053 * lisp.h (QUIT): Give it statement form.
4054
87e21fbd
DL
40551999-11-02 Dave Love <fx@gnu.org>
4056
4057 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
4058
1b335865
GM
40591999-11-02 Gerd Moellmann <gerd@gnu.org>
4060
9fb5e03d
GM
4061 * xfns.c (QCuser_data): New.
4062 (syms_of_xfns): Initialize QCuser_data.
4063 (parse_image_spec): Ignore :user-data DATA properties.
4064
1b335865
GM
4065 * xdisp.c (display_line): Set charpos of first glyph in blank
4066 lines not corresponding to any text to -1, even if no glyphs are
4067 filled in in that line.
4068
e76f1c44
GM
40691999-11-01 Gerd Moellmann <gerd@gnu.org>
4070
36fcd3d9
GM
4071 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
4072 png_get_sRGB in #ifdef.
4073
111259b4
GM
4074 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
4075 (syms_of_display): Use the new name.
4076
dd5c96e8
GM
4077 * textprop.c (verify_interval_modification): Signal text-read-only
4078 instead of calling error.
4079
db8878fb
GM
4080 * data.c (Qtext_read_only): New built-in error.
4081 (syms_of_data): Initialize it.
4082
4083 * lisp.h: Add extern declaration for Qtext_read_only.
4084
e76f1c44
GM
4085 * syntax.c: Remove whitespace after open or in front of closing
4086 parentheses.
4087
83c8f461 40881999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
4089
4090 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
4091
7843e09c
GM
40921999-10-31 Gerd Moellmann <gerd@gnu.org>
4093
575ed805
GM
4094 * xdisp.c (resize_mini_window): Compute needed height differently.
4095
7843e09c
GM
4096 * fns.c (Flength): Unroll loop over lists.
4097
4098 * xdisp.c (append_space): Return non-zero if space was appended.
4099 (display_line): Set charpos of first glyph to -1 only if that
4100 glyph is the space added by append_glyph.
4101
83c8f461 41021999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
4103
4104 * print.c (strout): Consider `noninteractive' and use stdout
4105 only when PRINTCHARFUN is t.
4106
4107 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
4108 (gcpro_level): Declare it extern.
4109 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
4110 Alternate definitions that set `level' and increment `gcpro_level'.
4111 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
4112
4113 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
4114 (init_eval) [DEBUG_GCPRO]: Initialize it.
4115 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
4116 from remaining gcprolist.
4117
3636f7a3
KH
41181999-10-29 Kenichi Handa <handa@etl.go.jp>
4119
4120 * coding.c (code_convert_region): Update `dst' correctly.
4121
a2ad7096
GM
41221999-10-28 Gerd Moellmann <gerd@gnu.org>
4123
4124 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
4125 (Frassoc): Rewritten.
4126
1e3196e8
GM
41271999-10-27 Noah Friedman <friedman@splode.com>
4128
4129 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
4130 Define PTY_NAME_SPRINTF.
4131 Redefine PTY_TTY_NAME_SPRINTF.
4132 * config.in: Add undef for HAVE_DEV_PTMX.
4133
83c8f461 41341999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
4135
4136 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
4137 as arg to DEBUG_POP and DEBUG_PRINT.
4138
83c8f461 41391999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
4140
4141 * data.c (Qad_activate_internal): Renamed from Qad_activate.
4142 (Ffset): Call Qad_activate_internal.
4143 (syms_of_data): Initialize Qad_activate_internal.
4144
26922151
GM
41451999-10-27 Gerd Moellmann <gerd@gnu.org>
4146
4147 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
4148 Vterminal_frame is selected and Vwindow_system is non-nil.
4149
67a5596f
GM
41501999-10-26 Gerd Moellmann <gerd@gnu.org>
4151
2bea706b
GM
4152 * xdisp.c (echo_area_display): Put previous change in #if 0.
4153
67a5596f
GM
4154 * emacs.c (standard_args): Add `file' as synonym for `visit',
4155 `execute' as synonym for `eval'.
4156 (main): Add new options to usage message.
4157
81dc5de5
GM
41581999-10-25 Gerd Moellmann <gerd@gnu.org>
4159
4160 * data.c (Qhash_table): New.
4161 (Ftype_of): Return it for hash tables.
4162 (syms_of_data): Initialize Qhash_table.
4163
83c8f461 41641999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
4165
4166 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
4167
66e4690f 41681999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 4169
7539e11f
KR
4170 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
4171 lisp.h.
4172
4173 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
4174 Fbuffer_local_variables, Fother_buffer, record_buffer,
4175 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
4176 swap_out_buffer_local_variables, overlays_at, overlays_in,
4177 overlay_touches_p, overlay_strings, recenter_overlay_lists,
4178 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
4179 Foverlay_put, report_overlay_modification, evaporate_overlays):
4180 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
4181 references.
4182 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
4183 swap_in_symval_forwarding, set_internal, default_value,
4184 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
4185 Fmake_variable_frame_local, Flocal_variable_p,
4186 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
4187 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
4188 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
4189 * emacs.c (main): Likewise.
4190 * fontset.c (fs_load_font, fs_register_fontset,
4191 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
4192 Fnew_fontset, Fset_fontset_font): Likewise.
4193 * frame.c (do_switch_frame, next_frame, prev_frame,
4194 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
4195 Likewise.
4196 * keyboard.c (read_char, help_char_p, event_to_kboard,
4197 kbd_buffer_get_event, timer_start_idle, timer_check,
4198 make_lispy_event, apply_modifiers, reorder_modifiers,
4199 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
4200 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
4201 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
4202 Fcommand_execute, Fexecute_extended_command): Likewise.
4203 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
4204 Fall_completions): Likewise.
4205 * window.c (Fset_window_margins): Likewise.
4206
4207 * callint.c (quotify_args): Don't explicitly use struct
4208 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
4209
3a7093d8
KR
4210 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
4211 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
4212 if __ELF__ is defined.
4213
2a3d7146
GM
42141999-10-24 Gerd Moellmann <gerd@gnu.org>
4215
4216 * window.c (Fnext_window): Add a QUIT in the loop.
4217
8ac52782
GM
42181999-10-23 Gerd Moellmann <gerd@gnu.org>
4219
4220 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
4221 New targets.
4222
05f0d15a
DL
42231999-10-22 Dave Love <fx@gnu.org>
4224
4225 * emacs.c (main): Enable profiling conditional on __linux also.
4226
882fb0e6
GM
42271999-10-20 Gerd Moellmann <gerd@gnu.org>
4228
4229 * xrdb.c (x_load_resources): Set default resources for resource
4230 classes instead of for the specific Emacs.
4231
b5f5bc31
GM
42321999-10-19 Gerd Moellmann <gerd@gnu.org>
4233
66f4dd69
GM
4234 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
4235 defines it that way.
4236
b5f5bc31
GM
4237 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
4238 if selected_frame is equal to Vterminal_frame.
4239
68c45bf0
PE
42401999-10-19 Paul Eggert <eggert@twinsun.com>
4241
4242 Add support for large files, 64-bit Solaris, system locale codings.
4243
4244 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
4245 when dumping, so that the dumped Emacs doesn't have stray locale info.
4246 (dired.o): Depend on systime.h.
4247 (editfns.o): Depend on coding.h.
4248
4249 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
4250 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
4251 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
4252 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
4253 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
4254 Include <config.h> before any system include files.
4255
4256 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
4257 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
4258 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
4259 xmenu.c, xterm.c:
4260 Do not include <stdlib.h>, as <config.h> does this now.
4261
4262 * callproc.c (Fcall_process):
4263 Synchronize messages locale before invoking strerror.
4264 Decode resulting string with locale-coding-system.
4265
4266 * coding.c (Vlocale_coding_system): New var.
4267 (syms_of_coding): Adjust to above change.
4268 (emacs_strerror): New function.
4269
4270 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
4271
4272 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
4273 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
4274 HAVE_STRSIGNAL): New macros.
4275 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
4276 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
4277
4278 * dired.c: Include "systime.h".
4279 (Ffile_attributes): Do not cast s.st_size to int; this loses
4280 information if int is 32 bits but st_size and EMACS_INT are larger.
4281 Treat large device numbers like large inode numbers.
4282
4283 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
4284
4285 * editfns.c: Include coding.h.
4286 (emacs_strftime): Remove decl.
4287 (emacs_strftimeu): New decl.
4288 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
4289 Use emacs_strftimeu instead of emacs_strftime.
4290 (Fformat_time_string): Convert format string using
4291 Vlocale_coding_system, and convert result back. Synchronize time
4292 locale before invoking lower level function. Invoke
4293 emacs_memftimeu, passing ut, instead of emacs_memftime.
4294
4295 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
4296 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
4297 Vprevious_time_locale): New variables.
4298 (main): Invoke setlocale early, so that initial error messages are
4299 localized properly. But skip locale-setting if LC_ALL is "C".
4300 Fix up locale when it's safe to do so.
4301 (fixup_locale): Moved here from xterm.c.
4302 (synchronize_locale, synchronize_time_locale,
4303 synchronize_messages_locale): New functions.
4304 (syms_of_emacs): Accommodate above changes.
4305
4306 * fileio.c (report_file_error): Convert strerror output according
4307 to Vlocale_coding_system.
4308 (Finsert_file_contents): Check for arithmetic overflow in
4309 computations that depend on file size. Report IO errors
4310 with emacs_strerror, not strerror.
4311
4312 * fns.c (Fgethash): Declare dflt parameter.
4313
4314 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
4315 is defined; that's config.h's job.
4316
4317 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
4318 default these values to long, BITS_PER_LONG, and unsigned long.
4319 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
4320 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
4321 (code_convert_string_norecord, fixup_locale,
4322 synchronize_messages_locale, synchronize_time_locale,
4323 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
4324 All Emacs callers of open, close, read, write changed to use
4325 emacs_open, emacs_close, emacs_read, emacs_write.
4326
4327 * lread.c (file_offset, file_tell): New macros. All uses of ftell
4328 changed to file_tell.
4329 (saved_doc_string_position, prev_saved_doc_string_position): Now
4330 of type file_offset.
4331 (init_lread): Do not fix locale here; fixup_locale now does this.
4332
4333 * m/amdahl.h, s/usg5-4.h:
4334 (NSIG): Remove.
4335 (NSIG_MINIMUM): New macro.
4336
4337 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
4338 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
4339 s/umips.h, s/usg5-4.h:
4340 (SIGIO): Do not undef.
4341 (BROKEN_SIGIO): New macro.
4342
4343 * m/ustation.h:
4344 (SIGTSTP): Do not undef.
4345 (BROKEN_SIGTSTP): New macro.
4346
4347 * s/gnu-linux.h:
4348 (SIGPOLL, SIGURG): Do not undef.
4349 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
4350
4351 * s/ptx4.h:
4352 (SIGINFO): Do not undef.
4353 (BROKEN_SIGINFO): New macros.
4354
4355 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
4356
4357 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
4358 some Emacs-related changes merged.
4359
4360 * print.c (float_to_string): Prepend "-" to representation of a
4361 NaN if the NaN is negative.
4362
4363 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
4364 (wait_reading_process_input): Use emacs_strerror, not strerror.
4365
4366 * process.c (status_message, sigchld_handler): Synchronize locale,
4367 then use strsignal istead of sys_siglist.
4368 * w32proc.c (sys_wait): Likewise.
4369
4370 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
4371 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
4372 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
4373 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
4374 (open, close, read, write, INTERRUPTIBLE_OPEN,
4375 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
4376
4377 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
4378
4379 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
4380 sys_open, open): Remove.
4381 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
4382 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
4383 macros are no longer used.
4384 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
4385 (emacs_close): Renamed from sys_close.
4386 (emacs_read): Renamed from sys_read.
4387 (emacs_write): Renamed from sys_write.
4388 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
4389 (dup2): Do not print error on failure; the real dup2 doesn't.
4390 (strsignal): New function, defined if !HAVE_STRSIGNAL.
4391
4392 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
4393 is defined.
4394 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
4395 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
4396 (strsignal): Declare if !HAVE_STRSIGNAL.
4397
4398 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
4399 (ElfW): Define in terms of ElfExpandBitsW.
4400
4401 * w32proc.c (sys_siglist): Remove decl.
4402
4403 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
4404 with ANSI C.
4405 (display_string): Declare face_string_pos arg.
4406
4407 * xfns.c (Fx_show_tip): Declare timeout param.
4408
4409 * xterm.c: No need to include locale.h.
4410 (x_alloc_lighter_color, x_setup_relief_color):
4411 Pass arg as double, not float, for compatibility with ANSI C.
4412 (fixup_locale): Move to emacs.c.
4413 (x_term_init): Do not setlocale or fixup locale; the main program
4414 does this now.
4415
2f0b74ea
DL
44161999-10-18 Dave Love <fx@gnu.org>
4417
4418 * doc.c (Fdocumentation_property): Gcpro `tem'.
4419
471aa4a0
KH
44201999-10-18 Kenichi Handa <handa@etl.go.jp>
4421
4422 * lread.c (Fload): Calculate bytes of filename correctly.
4423 (openp): Likewise.
4424
aca2020b
KH
44251999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
4426
4427 * print.c (print_preprocess): In case print-circle is nil,
4428 add OBJ to Vprint_number_table only when OBJ is a symbol.
4429
1f5fe392 44301999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
4431
4432 * coding.c (code_convert_string): Add record_unwind_protect to
4433 assure setting inhibit_pre_post_conversion back to zero. Take
4434 care of the multibyteness of the working buffer.
4435
4436 * coding.c (inhibit_pre_post_conversion): New variable.
4437 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
4438 ignore post-read-conversion and pre-write-conversion property of
4439 the coding system.
4440 (code_convert_region_unwind): New function.
4441 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
4442 running pre-write-conversion and post-read-conversion.
4443 (code_convert_string): Likewise.
4444
cd876a91
GM
44451999-10-17 Miles Bader <miles@gnu.org>
4446
4447 * editfns.c: Doc fix.
4448
44491999-10-17 Miles Bader <miles@gnu.org>
4450
4451 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
4452 argument preconditions of find_before_next_newline in the case
4453 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
4454 was indeed at the edge.
4455
44561999-10-17 Miles Bader <miles@gnu.org>
4457
4458 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
4459 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
4460
4461 * editfns.c (text_property_eq, text_property_stickiness): Don't
4462 use initializers for auto variables of type Lisp_Object.
4463 (find_field): Likewise. Use braces around nested ifs.
4464 (Fline_end_position): Store the raw eol in a variable, so that the
4465 final expression doesn't look so ugly.
4466 (Fconstrain_to_field): Doc fix.
4467 (preceding_pos): Renamed from `preceeding_pos'.
4468 (text_property_stickiness, find_field): Call preceding_pos,
4469 not preceeding_pos.
4470
44711999-10-17 Miles Bader <miles@gnu.org>
4472
4473 * editfns.c (Ffield_string_no_properties): New function.
4474 (text_property_stickiness, preceeding_pos): New functions.
4475 (Ffield_string): Remove PROPS parameter.
4476 (find_field): Add MERGE_AT_BOUNDARY parameter.
4477 Rewrite to use stickiness of `field' property to resolve
4478 ambiguous cases.
4479 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
4480 (Fconstrain_to_field): Likewise.
4481 (syms_of_editfns): Init Sfield_string_no_properties.
4482 (Ffield_string, Ferase_field, Ffield_end):
4483 Supply new MERGE_AT_BOUNDARY argument to find_field.
4484 (Fline_beginning_position, Fline_end_position): Supply new
4485 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
4486 Pass a value of Qt for the ONLY_IN_LINE argument to
4487 Fconstrain_to_field (only matters if N != 1).
4488 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
4489 to Fconstrain_to_field.
4490
4491 * minibuf.c (Fminibuffer_complete_word): Use
4492 Ffield_beginning to find the prompt end.
4493
44941999-10-17 Miles Bader <miles@gnu.org>
4495
4496 * editfns.c (Fconstrain_to_field): Add get/set-current-point
4497 behavior when NEW_POS is nil.
4498 (find_field): Use XSETFASTINT instead of make_number.
4499 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
4500 input string by seeing where the field begins, instead of
4501 looking at text-properties.
4502
45031999-10-17 Miles Bader <miles@gnu.org>
4504
4505 * editfns.c (Qfield): New variable.
4506 (find_field, Ferase_field, Ffield_string,
4507 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
4508 (Fline_beginning_position, Fline_end_position): Constrain to any field.
4509 (make_buffer_string_both): Remove minibuffer-prompt hack.
4510 (syms_of_editfns): Initialize Qfield, and subr entries for
4511 field functions above.
4512 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
4513 minibuf_save_list.
4514 Don't initialize minibuffer prompt length.
4515 Wrap prompt text-properties around the entire prompt.
4516 Add 'prompt text-property to prompt.
4517 Get final value with Ffield_string instead of make_buffer_string.
4518 (read_minibuf_unwind): Don't restore minibuffer prompt length from
4519 minibuf_save_list.
4520 (do_completion): Get minibuffer input with Ffield_string
4521 instead of Fbuffer_string.
4522 Erase minibuffer input with Ferase_field instead of erase_buffer.
4523 (Fminibuffer_complete_and_exit): Likewise.
4524 Test whether buffer is empty by looking for the 'prompt text
4525 property at the end.
4526 Set prompt length by looking for the end of the prompt text property,
4527 and save prompt length for later use (since there is no longer a
4528 buffer variable to get it from).
4529 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
4530 (syms_of_minibuf): Remove initializations of
4531 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
4532 * buffer.h (struct buffer): Remove prompt_end_charpos field.
4533 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
4534 Don't initialize prompt_end_charpos field.
4535 * syntax.c (Fforward_word): Likewise.
4536 Constrain to any field.
4537
3f6f7508
GM
45381999-10-16 Gerd Moellmann <gerd@gnu.org>
4539
4540 * window.c (enum save_restore_action): New.
4541 (save_restore_orig_size): Change parameter list. Add
4542 functionality to check for valid orig_top and orig_height members
4543 in a window tree.
4544 (grow_mini_window): Call save_restore_orig_size with new parameter
4545 list.
4546 (shrink_mini_window): Restore old window sizes only if old
4547 size information is valid in all windows in a window tree.
4548
06482119
GM
45491999-10-15 Gerd Moellmann <gerd@gnu.org>
4550
2710454d
GM
4551 * xmenu.c (set_frame_menubar): Don't call
4552 x_set_menu_resources_from_menu_face here.
4553 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
4554
06482119
GM
4555 * xfns.c (gif_load): Fix handling of interlaced GIFs.
4556
17fa2837
DL
45571999-10-14 Dave Love <fx@gnu.org>
4558
4559 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
4560
45f93416
GM
45611999-10-14 Gerd Moellmann <gerd@gnu.org>
4562
4563 * process.c (Fopen_network_stream): Don't loop if gethostbyname
4564 fails and h_errno is TRY_AGAIN.
4565
c765b723
DL
45661999-10-13 Dave Love <fx@gnu.org>
4567
4568 * filelock.c (lock_file): Move gcpro of `fn'.
4569
dace7f4e
GM
45701999-10-10 Gerd Moellmann <gerd@gnu.org>
4571
4572 * keyboard.c (auto-save-interval): Fix documentation.
4573
83c8f461 45741999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
4575
4576 * print.c (print): When removing objects from Vprint_number_table,
4577 only scan the newly added objects.
4578 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
4579 unconditionally force it to stay in the table.
4580
85177c86
GM
45811999-10-09 Gerd Moellmann <gerd@gnu.org>
4582
4583 * xfns.c (prepare_image_for_display): Don't try to load image if
4584 loading it failed before.
4585 (lookup_image, prepare_image_for_display): Remember if loading the
4586 image failed.
4587 (xpm_load): Add missing UNBLOCK_INPUT.
4588
4589 * dispextern.h (struct image): New member load_failed_p.
4590
11e4de5d
SM
45911999-10-08 Stefan Monnier <monnier@cs.yale.edu>
4592
f28eba7b 4593 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
4594 in the docstring.
4595
f1da8f06
GM
45961999-10-08 Gerd Moellmann <gerd@gnu.org>
4597
4598 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
4599 Don't call XSetInputFocus because that can generate additional
4600 FocusIn events.
4601
c37bbd4f
GM
46021999-10-07 Jeffrey C Honig <jch@bsdi.com>
4603
4604 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
4605
83c8f461 46061999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
4607
4608 * process.c (wait_reading_process_input): When trying to suck
4609 input from one process, for accept-process-output,
4610 exit that loop if we get EAGAIN or EWOULDBLOCK.
4611
577d9e2f
GM
46121999-10-07 Gerd Moellmann <gerd@gnu.org>
4613
4614 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
4615 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
4616 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
4617 Fpixmap_spec_p and Qpixmap_spec_p.
4618 (load_face_colors, check_lface_attrs,
4619 merge_face_vector_with_property,
4620 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
4621 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
4622 Fbitmap_spec_p.
4623
f5737ad2
GM
46241999-10-07 Gerd Moellmann <gerd@gnu.org>
4625
4626 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
4627 MODE_LINE_FACE_ID.
4628
4629 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
4630 (struct x_resources) [USE_X_TOOLKIT]: New.
4631 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
4632 [USE_MOTIF]: New.
4633 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
4634 [USE_LUCID]: New.
4635 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
4636 (Qmenu): New.
4637 (syms_of_xfaces): Initialize Qmenu.
4638 (realize_basic_faces): Realize face `menu'.
4639 (resolve_face_name): New.
4640 (lface_from_face_name): Use it.
4641 (Finternal_set_lisp_face_attribute): Ditto.
4642 (Fpixmap_spec_p): Rewritten. Extend doc string.
4643
4644 * xmenu.c (set_frame_menubar, xmenu_show): Call
4645 x_set_menu_resources_from_menu_face.
4646
4647 * dispextern.h (enum face_id): Add MENU_FACE_ID.
4648 (toplevel): Include X11/Intrinsic.h.
4649
6a1aa823
DL
46501999-10-03 Ken'ichi Handa <handa@gnu.org>
4651
4652 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
4653 correctly.
4654
26901792
DL
46551999-09-30 Kenichi Handa <handa@etl.go.jp>
4656
4657 * category.c (modify_lower_category_set): Set default value of
4658 TABLE correctly.
4659
4660 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
4661 size correctly.
4662
46631999-09-29 Gerd Moellmann <gerd@gnu.org>
4664
4665 * editfns.c (Fpropertize): Renamed from Fproperties.
4666
46671999-09-29 Gerd Moellmann <gerd@gnu.org>
4668
4669 * xdisp.c (resize_mini_window): Do nothing if frame is an X
4670 frame that hasn't been initialized yet.
4671
83c8f461 46721999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
4673
4674 * keymap.c (Fsingle_key_description): Make tem big enough.
4675 (describe_buffer_bindings): Make buf big enough.
4676
83c8f461 46771999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
4678
4679 * intervals.c (get_local_map): Use indirect_function,
4680 not Findirect_function.
4681
26901792
DL
46821999-09-27 Dave Love <fx@gnu.org>
4683
4684 * cm.h: Remove unneeded declaration of ospeed.
4685
46861999-09-26 Gerd Moellmann <gerd@gnu.org>
4687
4688 * lisp.h (toplevel): Add prototype for
4689 next_single_char_property_change.
4690
4691 * textprop.c (next_single_char_property_change): New.
4692
4693 * xdisp.c (display_prop_end, invisible_text_between_p): Use
4694 next_single_char_property_change.
4695
46961999-09-25 Gerd Moellmann <gerd@gnu.org>
4697
4698 * editfns.c (Fproperties): New.
4699 (syms_of_editfns): Defsubr it.
4700
4701 * xfns.c (lookup_image): Set image's timestamp because it's
4702 used when we look it up.
4703
47041999-09-23 Gerd Moellmann <gerd@gnu.org>
4705
4706 * window.c (enlarge_window): Add window parameter instead of using
4707 selected_window.
4708 (Fdisplay_buffer): Call it with window parameter instead of
4709 setting selected_window.
4710 (Fenlarge_window, Fshrink_window): Ditto.
4711 (shrink_mini_window): If there is no recorded height and position
4712 info, resize mini-window to height 1.
4713
4714 * xfns.c (image_error): Use add_to_log.
4715
4716 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
4717 (load_face_font_or_fontset, load_color,
4718 merge_face_vector_with_property): Ditto.
4719
4720 * dispextern.h: Add prototype for add_to_log.
4721
4722 * xfaces.c (add_to_log): Move to xdisp.c.
4723
4724 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
4725 parameter.
4726
47271999-09-23 Gerd Moellmann <gerd@gnu.org>
4728
4729 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
4730 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
4731
4732 * xdisp.c (resize_mini_window): Use grow_mini_window and
4733 shrink_mini_window.
4734
4735 * window.c (window_min_size): Add parameter ignore_fixed_p.
4736 (change_window_height): Call window_min_size with new parameter.
4737 (shrink_window_lowest_first, save_restore_orig_size,
4738 grow_mini_window, shrink_mini_window): New.
4739 (make_window, replace_window): Initialize orig_top and
4740 orig_height.
4741 (enlarge_window): Renamed from change_window_height. Make it
4742 static.
4743 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
4744 enlarge_window instead of change_window_height.
4745
4746 * window.h (struct window): New members orig_top, orig_height.
4747 (toplevel): Add prototypes for grow_mini_window and
4748 shrink_mini_window. Remove prototype for change_window_height.
4749
47501999-09-21 Eli Zaretskii <eliz@gnu.org>
4751
4752 * frame.c (frame_name_fnn_p): Fix previous change.
4753
47541999-09-20 Gerd Moellmann <gerd@gnu.org>
4755
4756 * minibuf.c (toplevel): Move include of stdio.h to other includes.
4757
4758 * dispnew.c (direct_output_for_insert): Cast arguments to
4759 safe_bcopy to char *.
4760
4761 * lread.c (readchar): Remove unused variables.
4762 (read_filtered_event, read1, Fmapatoms): Ditto.
4763 (toplevel): Include intervals.h.
4764
4765 * eval.c (Fsignal): Remove unused variables.
4766 (Fcommandp, do_autoload): Ditto.
4767
4768 * lisp.h: Add prototype for safe_bcopy, fatal.
4769
4770 * editfns.c (init_editfns): Remove unused variables.
4771 (Fgoto_char, Fchar_after, Fformat): Ditto.
4772 (message_text, message_length): Put in #ifndef HAVE_MENUS.
4773
4774 * data.c (find_symbol_value): Remove unused variables.
4775 (Faref, Fstring_to_number): Ditto.
4776 (toplevel): Include stdio.h.
4777 (Fnumber_to_string): Cast XINT to long for %ld.
4778
4779 * casefiddle.c (casify_object): Remove unused variables.
4780 (casify_region): Ditto.
4781
4782 * filelock.c (get_boot_time): Put local variable used in
4783 conditinally compiled section in #ifdef.
4784 (toplevel): Include stdio.h.
4785
4786 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
4787 keys_of_keymap, syms_of_keymap): Remove unused variables.
4788
47891999-09-20 Gerd Moellmann <gerd@gnu.org>
4790
4791 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
4792 whose corresponding window rows have been disabled in
4793 try_window_id.
4794
47951999-09-20 Gerd Moellmann <gerd@gnu.org>
4796
4797 * xdisp.c (compute_window_start_on_continuation_line): Handle case
4798 that window start is out of range.
4799 (handle_display_prop, handle_single_display_prop): Replace
4800 marginal area specifications like `left-margin' with `(margin
4801 left-margin)'.
4802 (Qmargin): New.
4803 (syms_of_xdisp): Initialize Qmargin.
4804
48051999-09-19 Gerd Moellmann <gerd@gnu.org>
4806
4807 * syntax.c (update_syntax_table, find_defun_start, back_comment,
4808 describe_syntax, skip_chars): Remove unused variables.
4809 (back_comment, forw_comment): Add braces to if-statement with
4810 if-else as dependent statement.
4811
4812 * process.c (list_processes_1): Remove unused variables.
4813 (Fopen_network_stream, create_process): Add parentheses to
4814 conditional expressions.
4815 (create_process): Put declaration of sigchld in #if 0.
4816 (Fopen_network_stream): Removed unused variables.
4817 (Fopen_network_stream, wait_reading_process_input,
4818 wait_reading_process_input, send_process, send_process): Ditto.
4819 (toplevel): Add prototypes for set_waiting_for_input and
4820 keyboard_bit_set.
4821
4822 * abbrev.c (Fexpand_abbrev): Remove unused variables.
4823
4824 * textprop.c (Fset_text_properties): Remove unused variables.
4825 (text_property_list, verify_interval_modification,
4826 interval_has_all_properties): Ditto.
4827
4828 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4829 (Fcall_process): Remove unused variable.
4830
4831 * keyboard.c (Frecursive_edit): Remove unused variable.
4832 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
4833 timer_check, make_lispy_event, menu_bar_items,
4834 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
4835 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
4836 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
4837 read_key_sequence): Ditto. Fread_key_sequence,
4838 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
4839 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
4840 used when GOBBLE_FIRST_EVENT is defined in #ifdef
4841 (Fexecute_extended_command): Cast XINT to long for %ld.
4842 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4843 (toplevel): Include sys/types.h.
4844
4845 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
4846 (toplevel): Add prototypes for stuff_char, and
4847 code_convert_string_norecord.
4848
48491999-09-19 Gerd Moellmann <gerd@gnu.org>
4850
4851 * buffer.h: Add prototype for r_re_alloc.
4852
4853 * insdel.c (copy_text): Removed unused variables.
4854 (count_combining_after, count_combining_after, insert_1_both,
4855 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
4856 (adjust_after_replace, replace_range): Add parentheses to logical
4857 expressions. Remove unused variables.
4858 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
4859 expression.
4860
4861 * alloc.c (Fgarbage_collect): Remove unused variable.
4862 (compact_strings): Add parentheses around assignments in
4863 conditional context.
4864 (toplevel): Put declaration of unused function clear_marks
4865 in #if 0 like its definition.
4866
4867 * lisp.h: Add prototype for shrink_regexp_cache,
4868 sweep_weak_hash_tables.
4869
48701999-09-19 Dave Love <fx@gnu.org>
4871
4872 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
4873
4874 * doc.c (read_bytecode_char): Declare arg.
4875
4876 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
4877 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
4878
48791999-09-18 Richard Stallman <rms@gnu.org>
4880
4881 * xdisp.c (echo_area_display): Turn off code that returned
4882 without doing anything when using a terminal frame.
4883
83c8f461 48841999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
4885
4886 * unexelf.c (unexec): Don't get confused by a short section
4887 just before the bss section.
4888
26901792
DL
48891999-09-16 Gerd Moellmann <gerd@gnu.org>
4890
4891 * emacs.c (main): Remove unused variables.
4892 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
4893
4894 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
4895 init_fileio_once, syms_of_sound, init_xfns, init_fns
4896 init_sound, check_message_stack.
4897
4898 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4899
4900 * intervals.c (rotate_right, rotate_left): Add braces to avoid
4901 ambiguous else warning.
4902 (split_interval_left): Remove unused variables.
4903 (previous_interval, adjust_intervals_for_deletion,
4904 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
4905 (icount, idepth, zero_length): Move into #if 0 section below
4906 original position where these are used.
4907
4908 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
4909
4910 * buffer.c (Fkill_buffer): Remove unused variables.
4911 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
4912 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
4913 init_buffer_once, (syms_of_buffer): Ditto.
4914
4915 * xrdb.c (get_fallback): Remove unused variable.
4916 (x_load_resources): Ditto. Put local variable used for Motif only
4917 in #ifdef USE_MOTIF.
4918
49191999-09-16 Gerd Moellmann <gerd@gnu.org>
4920
4921 * minibuf.c (read_minibuf): Remove unused variables.
4922 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
4923 (do_completion): Move assignment out of conditional context.
4924 (Fdisplay_completion_list): Add parentheses to conditional expression.
4925
4926 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
4927
4928 * lisp.h: Add prototype for no_switch_window.
4929
4930 * window.c (Fset_window_buffer): Remove unused variables.
4931 (Fset_window_margins): Ditto.
4932
4933 * xdisp.c (resize_mini_window): Temporarily set the selected
4934 window's or Vminibuf_scroll_window's height to "fixed" around
4935 the call the change_window_height.
4936
4937 * window.c (window_fixed_size_p): Check window's height_fixed_p
4938 flag.
4939
4940 * window.h (struct window): New member height_fixed_p.
4941
4942 * dispnew.c (direct_output_forward_char): Don't use this method
4943 if showing a message or a message was just cleared because we
4944 might need to resize the mini-window.
4945
49461999-09-16 Gerd Moellmann <gerd@gnu.org>
4947
4948 * frame.c (Fdelete_frame): Correct local variable pointing to
4949 selected frame after selecting new frame.
4950
49511999-09-15 Richard Stallman <rms@gnu.org>
4952
4953 * puresize.h (BASE_PURESIZE): Increase to 525000.
4954
4955 * filelock.c (Vtemporary_file_directory): New variable.
4956 (syms_of_filelock): Set up Lisp variable.
4957
49581999-09-15 Gerd Moellmann <gerd@gnu.org>
4959
4960 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
4961 (encode_terminal_code): Remove unused variables.
4962 (turn_off_face): Ditto.
4963 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
4964
4965 * dispnew.c (update_frame_line): If writing whole desired line,
4966 don't clear to end of line if already at the end.
4967
49681999-09-15 Gerd Moellmann <gerd@gnu.org>
4969
4970 * xdisp.c (resize_mini_window): Don't report changed window
4971 height if it actually hasn't changed.
4972
4973 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
4974 unused variables.
4975 (mark_shell_size_user_specified): Put in #if 0 because not used.
4976 (create_frame_gcs): Put in #if 0 because currently unused.
4977 (first_frame_p): Ditto.
4978
4979 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
4980 single_submenu, update_frame_menubar, set_frame_menubar,
4981 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
4982 variables.
4983
4984 * print.c (PRINTFULLP): Removed because it is no longer used and
4985 is misleading.
4986 (Ferror_message_string): Remove unused variables.
4987 (print_object): Cast argument of sprintf to long for `%ld'
4988 specifier. Remove unused variable.
4989
49901999-09-14 Gerd Moellmann <gerd@gnu.org>
4991
4992 * sound.c (Fplay_sound): Remove usused variables.
4993 (be2hs): Put in #if 0 because it's currently not used.
4994
49951999-09-14 Ken Raeburn <raeburn@gnu.org>
4996
4997 * print.c (Ferror_message_string, print_error_message,
4998 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
4999 member access.
5000
50011999-09-14 Gerd Moellmann <gerd@gnu.org>
5002
5003 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
5004
5005 * frame.c (Fnext_frame): Remove unused variable(s).
5006 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
5007 (store_frame_param): Add parentheses to conditional expression.
5008 (Fmodify_frame_parameters): Remove unused variables.
5009 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
5010 Ditto.
5011
5012 * xfns.c (x_set_background_color): Remove unused variable(s).
5013 (x_set_border_pixel): Ditto.
5014 (x_set_menu_bar_lines): Put local variable used only for
5015 non-toolkit case in #ifdef/#endif.
5016 (x_figure_window_size): Remove unused variable(s).
5017 (x_figure_window_size, x_window, lookup_image,
5018 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
5019 png_load, jpeg_load, gif_load, x_create_tip_frame,
5020 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
5021
5022 * xterm.c (x_scroll_bar_handle_click): Compile only if
5023 not USE_TOOLKIT_SCROLL_BARS.
5024 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
5025
5026 * dispextern.h: Add prototypes for gamma_correct and
5027 x_kill_gs_process.
5028
5029 * xterm.c (x_produce_glyphs): Remove unused variable(s).
5030 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
5031 x_set_toolkit_scroll_bar_thumb): Ditto.
5032 (x_scroll_bar_create): Move local variable to the
5033 conditionally compiled section of code where it is used.
5034 (x_scroll_bar_create): Remove unused variable(s).
5035 (x_scroll_bar_remove, XTread_socket): Ditto.
5036 (XTread_socket) <ConfigureNotify>: Move variables used for
5037 non-toolkit case into conditionally compiled section of code.
5038
5039 * window.h (freeze_window_starts): Fix typo in prototype.
5040
5041 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
5042 variable(s).
5043
5044 * lisp.h: Add prototype for debug_print.
5045
5046 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
5047 to use do-while.
5048
5049 * fns.c (SXHASH_COMBINE): Add missing parentheses.
5050 (Fchar_table_range, Fset_char_table_default, mapcar1,
5051 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
5052
5053 * lisp.h: Add prototype for getloadavg.
5054
50551999-09-14 Andreas Schwab <schwab@gnu.org>
5056
5057 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
5058
5059 * lisp.h: Declare close_file_unwind.
5060
50611999-09-14 Richard Stallman <rms@gnu.org>
5062
5063 * filelock.c (get_boot_time): Make the temp name in the proper dir.
5064
50651999-09-13 Gerd Moellmann <gerd@gnu.org>
5066
5067 * xdisp.c (redisplay_window): Make sure start_at_line_beg
5068 is always set correctly.
5069
50701999-09-13 Dave Love <fx@gnu.org>
5071
5072 * xdisp.c (move_it_in_display_line_to): Make type consistent with
5073 declaration.
5074
50751999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
5076
5077 * xdisp.c (QCfile): Move here from xfns.c.
5078 (syms_of_xdisp): Initialize it.
5079 (message2_nolog): Change for Lisp_Object selected_frame.
5080 (message3_nolog, message_with_string, message,
5081 setup_echo_area_for_printing, truncate_echo_area,
5082 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
5083
50841999-09-13 Dave Love <fx@gnu.org>
5085
5086 * xterm.c: Don't continue #define args for benefit of old cc.
5087 (xt_action_hook): Indent #error for benefit of K&R cc.
5088
50891999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
5090
5091 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
5092 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
5093 (XRINGBELL): Removed.
5094
50951999-09-13 Dave Love <fx@gnu.org>
5096
5097 * xfns.c (x_put_x_image): Make type consistent with declaration.
5098
5099 * fns.c (Fmake_hash_table): Fix string continuation.
5100
51011999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
5102
5103 * xfns.c (QCfile): Moved to xdisp.c.
5104 (syms_of_xfns): Don't initialize QCfile.
5105 (check_x_frame): Change for Lisp_Object selected_frame.
5106 (check_x_display_info, x_get_resource_string): Ditto.
5107
51081999-09-13 Gerd Moellmann <gerd@gnu.org>
5109
5110 * minibuf.c (choose_minibuf_frame): Don't try to set the
5111 mini-buffer window's buffer, if the buffer is invalid.
5112
5113 * xfns.c (QCfile): Moved to xdisp.c.
5114 (syms_of_xfns): Don't initialize QCfile.
5115
5116 * xdisp.c (QCfile): Move here from xfns.c.
5117 (syms_of_xdisp): Initialize it.
5118
5119 * lisp.h (selected_frame): Add external declaration.
5120
5121 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
5122 (Fx_store_cut_buffer_internal): Ditto.
5123 (Fx_rotate_cut_buffers_internal): Ditto.
5124
5125 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
5126 selected_frame.
5127 (Finternal_set_lisp_face_attribute): Ditto.
5128 (Finternal_get_lisp_face_attribute): Ditto.
5129 (Finternal_lisp_face_empty_p): Ditto.
5130 (Fdump_face): Ditto.
5131
5132 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
5133 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
5134 set_terminal_window, set_scroll_region, reassert_line_highlight,
5135 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
5136 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
5137 encode_terminal_code, write_glyphs, term_init): Ditto.
5138
5139 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
5140 (kbd_input_ast, read_input_waiting): Ditto.
5141
5142 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
5143 selected_frame.
5144 (read_minibuf): Ditto.
5145
5146 * keyboard.c (command_loop_1): Change for Lisp_Object
5147 selected_frame.
5148 (cmd_error_internal, command_loop_1, read_char,
5149 kbd_buffer_get_event, read_avail_input,
5150 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
5151 interrupt_signal, quit_throw_to_read_char): Ditto.
5152
5153 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
5154 (Ffontset_info): DItto.
5155
5156 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
5157
5158 * dispnew.c (selected_frame): Make it a Lisp_Object.
5159 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
5160 (direct_output_for_insert, direct_output_forward_char,
5161 init_display): Ditto.
5162
5163 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
5164 selected_frame.
5165 (set_internal): Ditto.
5166
5167 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
5168 (record_buffer): Ditto.
5169
5170 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
5171 (do_switch_frame): Change for Lisp_Object selected_frame.
5172 (Fselected_frame): Ditto.
5173 (Fframe_first_window): Use SELECTED_FRAME.
5174 (Fframe_root_window): Change for Lisp_Object selected_frame.
5175 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
5176 Fprevious_frame, other_visible_frames, Fdelete_frame,
5177 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
5178 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
5179 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
5180 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
5181 Fset_frame_height, Fset_frame_width): Ditto.
5182
51831999-09-13 Gerd Moellmann <gerd@gnu.org>
5184
5185 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
5186 (message3_nolog, message_with_string, message,
5187 setup_echo_area_for_printing, truncate_echo_area,
5188 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
5189
5190 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
5191 (Fx_popup_dialog): Ditto.
5192
5193 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
5194 (check_x_display_info, x_get_resource_string): Ditto.
5195
5196 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
5197 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
5198 (XRINGBELL): Removed.
5199
5200 * window.c (Fminibuffer_window): Change for Lisp_Object
5201 selected_frame.
5202 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
5203 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
5204 Fcurrent_window_configuration, init_window_once): Ditto.
5205
5206 * frame.h (SELECTED_FRAME): New.
5207
52081999-09-12 Ken Raeburn <raeburn@gnu.org>
5209
5210 * category.c (word_boundary_p): Use XCAR and XCDR.
5211 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
5212 Fregister_code_conversion_map): Likewise.
5213 * coding.c (setup_coding_system, detect_coding_system,
5214 Ffind_operation_coding_system, Fset_coding_priority_internal):
5215 Likewise.
5216 * doc.c (get_doc_string, Fdocumentation,
5217 store_function_docstring): Likewise.
5218 * editfns.c (save_restriction_restore): Likewise.
5219 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
5220 skip_debugger, find_handler_clause, Fautoload, Fapply,
5221 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
5222 Likewise.
5223 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
5224 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
5225 Fread_file_name): Likewise.
5226 * filelock.c (unlock_all_files): Likewise.
5227 * insdel.c (Fcombine_after_change_execute): Likewise.
5228 * intervals.c (adjust_intervals_for_insertion): Likewise.
5229 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
5230 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
5231 store_in_keymap, Fcopy_keymap, define_as_prefix,
5232 current_minor_maps, Faccessible_keymaps,
5233 accessible_keymaps_char_table, Fkey_description,
5234 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
5235 describe_buffer_bindings, describe_map_tree, shadow_lookup,
5236 describe_map): Likewise.
5237 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
5238 read_list, init_lread): Likewise.
5239 * search.c (Fmatch_data): Likewise.
5240 * sunfns.c (Fsun_menu_internal): Likewise.
5241 * syntax.c (describe_syntax): Likewise.
5242 * undo.c (record_insert, record_delete, Fundo_boundary,
5243 truncate_undo_list): Likewise.
5244 * vmsproc.c (child_sig): Likewise.
5245
5246 * editfns.c (Fformat): Use XFLOAT_DATA.
5247
52481999-09-12 Gerd Moellmann <gerd@gnu.org>
5249
5250 * keyboard.c (command_loop_1): Resize mini-window to the
5251 exact size of a message displayed, if any.
5252
5253 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
5254 to exact size if exact_p is non-zero.
5255 (display_echo_area_1): Call resize_mini_window with
5256 new parameter.
5257 (redisplay_internal): Ditto.
5258 (resize_echo_area_axactly): New.
5259
5260 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
5261 new parameter.
5262
5263 * dispextern.h: Change prototype of resize_mini_window.
5264 Add prototype for resize_echo_area_axactly.
5265
5266 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
5267 (syms_of_xfaces): Defsubr accordingly.
5268
5269 * xdisp.c (hscroll_window_tree): Choose cursor row from
5270 desired or current matrix.
5271 (redisplay_internal): Hscroll before updating.
5272
52731999-09-12 Gerd Moellmann <gerd@gnu.org>
5274
5275 * syntax.c (Fforward_word): Use prompt_end_charpos instead
5276 of minibuffer_prompt_length.
5277
5278 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
5279 of minibuffer_prompt_length.
5280 (read_minibuf_unwind): Ditto.
5281 (Fminibuffer_complete_and_exit): Ditto.
5282 (Fminibuffer_complete_word): Ditto.
5283 (Fminibuffer_prompt_end): Ditto.
5284
5285 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
5286 of minibuffer_prompt_length.
5287 (Fline_beginning_position): Ditto.
5288
5289 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
5290 of minibuffer_prompt_length.
5291 (Fmake_indirect_buffer): Ditto.
5292 (Fkill_buffer): Ditto.
5293 (Ferase_buffer): Ditto.
5294
5295 * buffer.h (prompt_end_charpos): Replaces
5296 minibuffer_prompt_length.
5297
5298 * minibuf.c (read_minibuf): Return mini-buffer contents
5299 without the prompt.
5300
5301 * editfns.c (make_buffer_string_both): Take out the code
5302 to handle mini-buffer prompts.
5303 (Fbuffer_string): Handle the prompt here, instead.
5304
5305 * xfaces.c (lface_from_face_name): Resolve face aliases.
5306 (Qmode_line): Replaces Qmodeline.
5307 (realize_basic_faces): Use Qmode_line.
5308 (syms_of_xfaces): Initialize Qmode_line.
5309
53101999-09-12 Gerd Moellmann <gerd@gnu.org>
5311
5312 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
5313 current column after inserting prompt.
5314 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
5315
5316 * xfaces.c (Qframe_update_face_colors): New.
5317 (syms_of_xfaces): Initialize call.
5318 (update_face_from_frame_parameter): Call that function when
5319 the frame's background changes.
5320
53211999-09-12 Richard Stallman <rms@gnu.org>
5322
5323 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
5324
53251999-09-12 Ken Raeburn <raeburn@gnu.org>
5326
5327 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
5328 mark_object, mark_buffer): Use XCAR and XCDR.
5329 * bytecode.c (Fbyte_code): Likewise.
5330 * callint.c (Fcall_interactively, Fprefix_numeric_value):
5331 Likewise.
5332 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
5333 getenv_internal): Likewise.
5334 * dired.c (file_name_completion): Likewise.
5335 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
5336 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
5337 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
5338 * indent.c (Fcompute_motion): Likewise.
5339 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
5340 list_processes_1, Fstart_process, Fopen_network_stream,
5341 wait_reading_process_input, read_process_output_call,
5342 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
5343 status_notify, wait_reading_process_input): Likewise.
5344 * textprop.c (PLIST_ELT_P, property_value, set_properties,
5345 extend_property_ranges): Likewise.
5346 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
5347 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
5348 x_report_frame_params, x_set_cursor_type, x_icon_type,
5349 x_figure_window_size, Fx_create_frame, w32_load_system_font,
5350 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
5351 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
5352 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
5353 x_display_info_for_name, Fx_display_list): Likewise.
5354 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
5355 Fx_popup_menu, Fx_popup_dialog): Likewise.
5356 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
5357 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
5358 w32_term_init, x_delete_display): Likewise.
5359 * xfns.c (x_window_to_frame, x_any_window_to_frame,
5360 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
5361 x_top_window_to_frame, x_set_frame_parameters,
5362 x_report_frame_params, x_set_cursor_type, x_icon_type,
5363 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
5364 Fx_display_list, x_create_tip_frame): Likewise.
5365 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
5366 Fx_popup_menu, Fx_popup_dialog): Likewise.
5367 * xselect.c (x_own_selection, x_get_local_selection,
5368 x_handle_selection_request, x_handle_selection_clear,
5369 x_clear_frame_selections, wait_for_property_change_unwind,
5370 wait_for_property_change, x_handle_property_notify,
5371 copy_multiple_data, x_get_foreign_selection,
5372 lisp_data_to_selection_data, clean_local_selection_data,
5373 x_handle_selection_notify, Fx_get_selection_internal,
5374 x_disown_buffer_selections): Likewise.
5375 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
5376 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
5377 Likewise.
5378
5379 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
5380 XFLOAT_DATA.
5381 * bytecode.c (Fbyte_code): Likewise.
5382 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
5383 fmod_float): Likewise.
5384
53851999-09-11 Richard Stallman <rms@gnu.org>
5386
5387 * xdisp.c (run_window_scroll_functions): If hook functions switch
5388 buffers, switch back after.
5389
53901999-09-11 Ken Raeburn <raeburn@gnu.org>
5391
5392 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
5393 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
5394 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
5395 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
5396 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
5397 XCDR.
5398 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
5399 XCDR.
5400
54011999-09-10 Richard Stallman <rms@gnu.org>
5402
5403 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
5404 not RevertToPointerRoot.
5405 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5406 Fix the code to clear around the scroll bar.
5407
54081999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
5409
5410 * print.c: Support print-circle and related features.
5411 (Vprint_gensym_alist): Removed.
5412 (Vprint_circle, Vprint_continuous_numbering, print_number_index
5413 Vprint_number_table): New variables.
5414 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
5415 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
5416 (print, print_preprocess, print_preprocess_string, print_object):
5417 New/modified functions with print-circle feature. Use
5418 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
5419 (syms_of_print): Defined new Lisp variables `print-circle',
5420 `print-continuous-numbering', `print-number-table'.
5421
54221999-09-10 Gerd Moellmann <gerd@gnu.org>
5423
5424 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
5425 as background color specification instead of an integer.
5426 (image-cache-eviction-delay): Replaces image-eviction-seconds.
5427 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
5428 (clear_image_cache, syms_of_xfns): Use it.
5429 (Qpostscript): Replaces Qghostscript.
5430 (gs_type): Use it.
5431 (gs_image_p): Ditto.
5432 (syms_of_xfns): Initialize Qpostscript.
5433
54341999-09-10 Richard Stallman <rms@gnu.org>
5435
5436 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
5437
54381999-09-09 Richard Stallman <rms@gnu.org>
5439
5440 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
5441
5442 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
5443
54441999-09-09 Gerd Moellmann <gerd@gnu.org>
5445
5446 * fns.c (Fmakehash): Accept just one optional argument TEST.
5447
5448 * xfns.c (QCindex): New.
5449 (syms_of_xfns): Initialize QCindex.
5450 (gif_load): Use it instead of `:image'.
5451
54521999-09-09 Richard Stallman <rms@gnu.org>
5453
5454 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
5455 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
5456
54571999-09-08 Gerd Moellmann <gerd@gnu.org>
5458
5459 * xdisp.c (Qwhen): Replaces QCwhen.
5460 (syms_of_xdisp): Initialized it instead of QCwhen.
5461 (handle_single_display_prop): Use it instead of QCwhen.
5462
54631999-09-08 Ken'ichi Handa <handa@gnu.org>
5464
5465 * charset.c (translate_char): Reset MSBs of arguments of
5466 MAKE_CHAR.
5467 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
5468
54691999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5470
5471 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
5472
5473 * fns.c (Fbase64_decode_region): Don't place point outside of the
5474 current accessible portion.
5475
54761999-09-07 Richard Stallman <rms@gnu.org>
5477
5478 * keymap.c (fix_submap_inheritance): Do nothing if the proper
5479 parent is an ancestor of SUBMAP; otherwise, add it as the
5480 ultimate ancestor.
5481
54821999-09-07 Gerd Moellmann <gerd@gnu.org>
5483
5484 * xdisp.c (handle_single_display_prop): Change conditional
5485 display property to `:when FORM . VALUE'.
5486
54871999-09-07 Richard Stallman <rms@gnu.org>
5488
5489 * fileio.c (Fwrite_region): Doc fix.
5490
54911999-09-07 Stefan Monnier <monnier@cs.yale.edu>
5492
5493 * fileio.c (Qexcl): New variable.
5494 (report_file_error): Handle EEXIST specially.
5495 (Fwrite_region): Special handling for CONFIRM = `excl'.
5496 (syms_of_fileio): Initialize Qexcl.
5497
54981999-09-07 Gerd Moellmann <gerd@gnu.org>
5499
5500 * xfns.c (x_set_foreground_color): Call
5501 update_face_from_frame_parameter.
5502 (x_set_background_color): Ditto.
5503 (x_set_mouse_color): Ditto.
5504 (x_set_cursor_color): Ditto.
5505 (x_set_border_color): Ditto.
5506 (x_set_scroll_bar_foreground): Ditto.
5507 (x_set_scroll_bar_background): Ditto.
5508
5509 * xfaces.c (recompute_basic_faces): Clear face cache.
5510 (Finternal_set_lisp_face_attribute): Modify frame parameters
5511 if attributes of certain faces are changed.
5512 (update_face_from_frame_parameter): New.
5513
5514 * xfaces.c (realize_basic_faces): Realize new basic faces.
5515
5516 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
5517 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
5518
5519 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
5520 (syms_of_xfaces): Intialize new symbols.
5521
5522 * fns.c (Fmakehash): Take one argument, test, make all the
5523 rest keyword arguments.
5524
5525 * window.c (Fset_window_margins): Make window the first argument.
5526 (set_window_buffer): Call Fset_window_margins with window as first
5527 argument.
5528
55291999-09-07 Gerd Moellmann <gerd@gnu.org>
5530
5531 * xfaces.c (Qfringe): Replaces Qmargin.
5532
55331999-09-07 Kenichi Handa <handa@etl.go.jp>
5534
5535 * charset.h: Lots of comments fixed.
5536 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
5537 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
5538
5539 * charset.c : Lots of comments fixed.
5540 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
5541 (CHAR_COMPONENTS_VALID_P): Name changed from
5542 CHAR_COMPONENT_VALID_P. Caller changed.
5543
55441999-09-06 Richard Stallman <rms@gnu.org>
5545
5546 * insdel.c (syms_of_insdel): Define Lisp variable
5547 inhibit-modification-hooks.
5548
55491999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
5550
5551 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
5552 unexaix.c.
5553
5554 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
5555
55561999-09-06 Dave Love <fx@gnu.org>
5557
5558 * unexaix.c: New version incorporating Michael Sperber's changes
5559 from XEmacs. Should solve problems on AIX 4.3.
5560
5561 * lread.c (Vbyte_boolean_vars): New variable.
5562 (defvar_bool, syms_of_lread): Use it.
5563
55641999-09-05 Richard Stallman <rms@gnu.org>
5565
5566 * minibuf.c (read_minibuf): Put all three properties on the
5567 same range, the whole prompt.
5568
55691999-09-05 Gerd Moellmann <gerd@gnu.org>
5570
5571 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
5572 (Fplay_sound, syms_of_sound): Use it.
5573 (parse_sound): Allow float volume values in the range [0, 1].
5574 (Fplay_sound): Ditto.
5575
5576 * window.c (Fset_window_vscroll): Make window the first argument,
5577 amount to scroll the second. Take non-negative vscroll as
5578 argument.
5579 (Fwindow_vscroll): Return non-negative vscroll.
5580
5581 * xfns.c (Fx_show_tip): Improve documentation.
5582
55831999-09-05 Gerd Moellmann <gerd@gnu.org>
5584
5585 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
5586 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
5587 `top-line' and `top_line' to `header-line' and `header_line'.
5588 Likewise for similar spellings.
5589
55901999-09-05 Gerd Moellmann <gerd@gnu.org>
5591
5592 * xdisp.c (row_containing_pos): New.
5593 (try_window_id): Use it.
5594
5595 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
5596 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
5597 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
5598 Likewise for upper-case etc.
5599
56001999-09-05 Gerd Moellmann <gerd@gnu.org>
5601
5602 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5603 Fix reference to renamed variable.
5604
56051999-09-04 Gerd Moellmann <gerd@gnu.org>
5606
5607 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
5608 (window_fixed_size_p): Use Qwindow_size_fixed instead of
5609 Qfixed_window_size.
5610 (syms_of_window): Ditto.
5611
5612 * fns.c (Fmakehash): Exchange optional test and size arguments.
5613
56141999-09-03 Gerd Moellmann <gerd@gnu.org>
5615
5616 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
5617 under newly created scroll bar.
5618 (expose_window): If window is not yet fully initialized, do
5619 nothing. This can happen when toolkit scroll bars are used and a
5620 window is split. Reconfiguring the scroll bars will generate an
5621 expose for a newly created window.
5622
5623 * frame.h (struct frame): New member `gamma'.
5624
5625 * xfns.c: Include math.h. Add extern declaration for atof in case
5626 we don't see one.
5627 (Qscreen_gamma): New.
5628 (struct x_frame_parm_table): Add prototypes, add
5629 x_set_screen_gamma.
5630 (gamma_correct): New function.
5631 (defined_color): Call it.
5632 (x_set_screen_gamma): New.
5633 (x_set_title): Add parameter old_value.
5634 (RES_TYPE_FLOAT): New.
5635 (x_get_arg): Handle RES_TYPE_FLOAT.
5636 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
5637 (lookup_pixel_color): Change call to x_alloc_nearest_color to
5638 new prototype.
5639 (lookup_rgb_color): Ditto.
5640 (syms_of_xfns): Initialize Qscreen_gamma.
5641
5642 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
5643 New. Allocate color for lwlib widgets.
5644 (x_alloc_nearest_color): Change parameter list include the
5645 frame on which to allocate colors. Gamma-correct colors.
5646 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
5647 parameter list.
5648
5649 * xterm.h: Change protorype of x_alloc_nearest_color.
5650
56511999-09-03 Richard Stallman <rms@gnu.org>
5652
5653 * callproc.c: Delete the system-independent include of stdlib.h
5654 (leaving only the one in the WINDOWSNT conditional).
5655
56561999-09-03 Andrew Choi <choi@cs.hku.hk>
5657
5658 * callproc.c (call-process) [macintosh]: Call mac_run_command in
5659 sysdep.c. The Mac code is modeled after the DOS code.
5660
5661 * dispextern.h [macintosh]: Include macterm.h to define substitute X
5662 Window types and macros.
5663
5664 * frame.h: Do nothing if included a second time.
5665 (enum output_method): Add mac_output frame type.
5666 (union output_data): Add new alternative `mac'.
5667 (FRAME_MAC_P): New macro.
5668
5669 * frame.c (Fframep) [macintosh]: Handle mac frame type.
5670 (syms_of_frame_1): Initialize Qmac.
5671 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
5672 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
5673 (Fmodify_frame_parameters) [macintosh]: Call
5674 mac_set_frame_parameter in macterm.c.
5675
5676 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
5677 (512) because Mac compilers limit local data of a function to 32K.
5678
5679 * make-docfiles.c: Correctly handle input files with Mac-style
5680 eol's.
5681
5682 * sysdep.c: Define numerous routines to emulate Unix system calls.
5683
5684 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
5685 file of an X Window environment.
5686
5687 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
5688 x-display-grayscale, x-color-defined-p, and x-color-values.
5689
5690 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
5691 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
5692 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
5693 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
5694 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
5695 New functions, replacing POSIX features.
5696
5697 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
5698 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
5699 (InitEmacsPasswdDir, run_mac_command): New subroutines.
5700
5701 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
5702 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
5703 (myPasswdDir, TempDirName, sys_siglist): New variables.
5704
5705 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
5706 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
5707 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
5708 Define empty stubs so Emacs will link.
5709
57101999-09-03 Gerd Moellmann <gerd@gnu.org>
5711
5712 * xdisp.c: Use XCAR and XCDR instead of XCONS.
5713
5714 * window.h: New member frozen_window_start_p.
5715
5716 * window.c (foreach_window, foreach_window_1): New.
5717 (freeze_window_start, freeze_window_starts): New.
5718 (make_window): Initialize frozen_window_start_p.
5719 (replace_window): Ditto.
5720 (Fset_window_point): Remove references to deleted variables.
5721 (Fset_window_start): Ditto.
5722
5723 * xdisp.c (Vresize_mini_config, resize_mini_frame,
5724 resize_mini_initial_height): Removed.
5725 (syms_of_xdisp): Remove references to these variables.
5726 (resize_mini_window): Don't save window configuration, freeze
5727 window starts instead. Enlarge window until displaying an empty
5728 buffer, then shrink it. Make the function externally visible.
5729 (redisplay_window): Treat frozen window start like forced start,
5730 but accept point outside of the window.
5731
5732 * dispextern.h: Add function prototype for resize_mini_window.
5733
5734 * minibuf.c (read_minibuf_unwind): Resize mini-window when
5735 reaching minibuf_level 0.
5736
5737 * lisp.h: Remove extern declarations for variables deleted from
5738 xdisp.c.
5739
5740 * dispnew.c (adjust_frame_glyphs): Remove reference to
5741 Vresize_mini_config.
5742
57431999-09-03 Gerd Moellmann <gerd@gnu.org>
5744
5745 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
5746 to USE_TOOLKIT_SCROLL_BARS.
5747
5748 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
5749 here.
5750 (XTset_vertical_scroll_bar): Clarify position computations. Clear
5751 under newly created scroll bar. Put toolkit scroll bars in the
5752 middle of the area reserved for the scroll bar.
5753
57541999-09-03 Kenichi Handa <handa@etl.go.jp>
5755
5756 The following changes are for the new handling of mulitbyte
5757 sequence. Now, except for a composite character, no multibyte
5758 character in string/buffer has trailing garbage bytes. For
5759 instance, the length of string "\201\300\300" is now 2, the first
5760 character is Latin-1 A-grave, the second is raw \300.
5761
5762 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
5763 are negative.
5764 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
5765 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
5766 (PARSE_COMPOSITE_SEQ): New macro.
5767 (PARSE_CHARACTER_SEQ): New macro.
5768 (PARSE_MULTIBYTE_SEQ): New macro.
5769 (CHAR_PRINTABLE_P): New macro.
5770 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
5771 (STRING_CHAR_AND_LENGTH): Likewise.
5772 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
5773 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
5774 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
5775
5776 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
5777 (SPLIT_CHARACTER_SEQ): New macro.
5778 (SPLIT_MULTIBYTE_SEQ): New macro.
5779 (CHAR_COMPONENT_VALID_P): New macro.
5780 (non_ascii_char_to_string): Generate a multibyte sequence as far
5781 as possible.
5782 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
5783 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
5784 (split_non_ascii_string): Likewise.
5785 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
5786 (char_printable_p): New function.
5787 (translate_char): Check character by NATNUMP instead of INTEGERP.
5788 (unibyte_char_to_multibyte): Call char_valid_p instead of
5789 VALID_MULTIBYTE_CHAR_P.
5790 (Fmake_char_internal): Check the arguments more rigidly.
5791 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
5792 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
5793 (Fmultibyte_char_to_unibyte): Check the validity of character by
5794 CHAR_VALID_P.
5795 (chars_in_text): Call multibyte_chars_in_text.
5796 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
5797 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
5798 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
5799
5800 * data.c (Faset): Adjust the way to check byte-combining
5801 possibility for the new handling of multibyte sequence.
5802
5803 * editfns.c (Fsubst_char_in_region): Likewise.
5804
5805 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
5806 (string_char_to_byte): Likewise.
5807 (string_byte_to_char): Likewise.
5808
5809 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
5810 macro STRING_CHAR_AND_LENGTH. Caller changed.
5811
5812 * insdel.c (count_combining_composition): New function.
5813 (count_combining_before): Adjust the way to check byte-combining
5814 possibility for the new handling of multibyte sequence. Call
5815 count_combining_composition for a composite character.
5816 (count_combining_after): Likewise.
5817
5818 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
5819 (print): Likewise.
5820
5821 * dispextern.h (struct it): Change the size of the member
5822 `ctl_chars'.
5823
5824 * xdisp.c (get_next_display_element): Display incomplete multibyte
5825 sequence (e.g. \222\300) by octal form.
5826
58271999-09-02 Gerd Moellmann <gerd@gnu.org>
5828
5829 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
5830
5831 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
5832 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
5833
58341999-09-02 Gerd Moellmann <gerd@gnu.org>
5835
5836 * buffer.c (set_buffer_internal): Never set
5837 windows_or_buffers_changed.
5838
5839 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
5840 if we have displayed to the bottom of the window.
5841
5842 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
5843 in both directions. Extend documentation.
5844
58451999-09-01 Gerd Moellmann <gerd@gnu.org>
5846
5847 * minibuf.c (read_minibuf): Flush display after setting cursor to
5848 column 0.
5849
58501999-08-31 Gerd Moellmann <gerd@gnu.org>
5851
5852 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
5853 already defined. This avoids a warning from buffer.c.
5854
58551999-08-30 Gerd Moellmann <gerd@gnu.org>
5856
5857 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
5858 of both margins.
5859 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
5860 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
5861 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
5862
5863 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
5864 once instead of twice.
5865 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
5866
5867 * xterm.c: Remove unused bitmaps.
5868 (continued_bits, continuation_bits, overlay_bits): Change images.
5869 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
5870 instead of FRAME_X_FLAGS_AREA_WIDTH.
5871 (x_after_update_window_line): Ditto.
5872 (x_draw_bitmap): Likewise.
5873 (x_draw_row_bitmaps): Likewise.
5874 (x_draw_glyph_string_box): Likewise.
5875 (x_draw_glyphs): Likewise.
5876 (x_scroll_run): Likewise.
5877 (expose_window_tree): Likewise.
5878 (note_mode_line_highlight): Likewise.
5879 (XTset_vertical_scroll_bar): Likewise.
5880 (x_clip_to_row): Likewise.
5881 (x_set_window_size): Likewise.
5882
5883 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
5884 of 2 * that value.
5885
5886 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
5887 2 * that value.
5888 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
5889 FRAME_FLAGS_AREA_WIDTH.
5890
5891 * window.c (coordinates_in_window): Use
5892 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5893 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
5894 instead of twice.
5895
5896 * widget.c (set_frame_size): Set flags_area_extra to
5897 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
5898 (EmacsFrameSetCharSize): Ditto.
5899
5900 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
5901 instead of FRAME_FLAGS_AREA_WIDTH.
5902
5903 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
5904 FRAME_FLAGS_AREA_COLS once.
5905 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
5906 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5907
59081999-08-30 Gerd Moellmann <gerd@gnu.org>
5909
5910 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
5911 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
5912
59131999-08-30 Gerd Moellmann <gerd@gnu.org>
5914
5915 * fns.c (QCweakness): Replaces QCweak.
5916 (Fmake_hash_table): Ditto.
5917 (Fmakehash): Ditto.
5918 (syms_of_fns): Ditto.
5919
59201999-08-29 Richard Stallman <rms@gnu.org>
5921
5922 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
5923
5924 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
5925
5926 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
5927 Add support for nested comments.
5928
863476d1
SM
5929 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
5930 Consolidate the forward comment code into the new `forw_comment'.
5931 (forw_comment): New subroutine. Added support for nested comments.
5932 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
5933 (Fparse_partial_sexp): Add support for nested comments.
26901792
DL
5934
59351999-08-28 Ken Raeburn <raeburn@gnu.org>
5936
5937 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
5938 names of structure elements if HIDE_LISP_IMPLEMENTATION is
5939 defined, to help detect code that uses knowledge of the Lisp
5940 internals that it shouldn't have.
5941 (XFLOAT_DATA): New macro.
5942
59431999-08-25 Gerd Moellmann <gerd@gnu.org>
5944
5945 * syntax.c (Fforward_word): If in a mini-buffer and moving
5946 backwards, stop in front of the prompt to prevent accidentially
5947 moving into the read-only prompt.
5948
5949 * window.c (Frecenter): Clear frame if called with nil or no arg.
5950
5951 * xdisp.c (resize_mini_window): Don't resize if
5952 Vmax_mini_window_height is nil. Otherwise, use a default if
5953 Vmax_mini_window_height is not ot a number.
5954 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
5955
59561999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
5957
5958 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
5959 * m/iris4d.h: Use unexelf for IRIX 5.*.
5960 * m/iris5d.h: Use unexelf for IRIX 6.*.
5961 * unexsgi.c: Deleted.
5962
5963 * unexelf.c: Auto-detect .sbss section.
5964 (round_up): Make it static.
5965 (unexec): Declare alignment as Elf Word. Skip ``Program
5966 segment above .bss'' test on MIPS without .sbss.
5967 Copy sections .got and .sdata1 sections. Adjust offsets in
5968 sections .sdata, .lit4, .lit8, .got and .sdata1.
5969
59701999-08-25 Gerd Moellmann <gerd@gnu.org>
5971
5972 * xdisp.c (try_window_id): Remove typo.
5973
59741999-08-24 Gerd Moellmann <gerd@gnu.org>
5975
5976 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
5977 unchanged text at the bottom when computing the cursor position.
5978 (message3_nolog): Raise frame only if minibuffer_auto_raise is
5979 set.
5980
5981 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
5982
59831999-08-24 Gerd Moellmann <gerd@gnu.org>
5984
5985 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
5986 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
5987 (syms_of_xfaces): Ditto.
5988
5989 * window.c (Fset_window_point): Reset Vresize_mini_config.
5990 (Fset_window_start): Ditto.
5991 (set_window_buffer): Ditto.
5992
5993 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
5994
5995 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
5996 before calling try_window.
5997 (echo_area_display): If height has changed, update other windows.
5998 (resize_mini_frame, resize_mini_initial_height): New.
5999 (resize_mini_window): Save/restore window configuration
6000 differently.
6001
6002 * lisp.h (Vresize_mini_config, resize_mini_frame,
6003 resize_mini_initial_height): Add extern declarations.
6004
6005 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
6006 CANON_X_UNIT.
6007
6008 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
6009 being redefined in jconfig.h.
6010
60111999-08-23 Ken'ichi Handa <handa@gnu.org>
6012
6013 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
6014
60151999-08-22 Gerd Moellmann <gerd@gnu.org>
6016
6017 * alloc.c (mark_glyph_matrix): Mark strings only.
6018
6019 * xdisp.c (redisplay_internal): Clear garbaged frames after
6020 resizing mini-window.
6021
60221999-08-22 Gerd Moellmann <gerd@gnu.org>
6023
6024 * xdisp.c (unwind_with_echo_area_buffer): Use
6025 set_buffer_internal_1 instead of set_buffer_internal.
6026 (with_echo_area_buffer): Ditto.
6027
6028 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
6029 only if buffer is displayed somewhere.
6030
6031 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
6032
6033 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
6034 (gap_right): Ditto.
6035 (modify_region): Ditto.
6036
6037 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
6038
6039 * xdisp.c (Vresize_mini_config): New.
6040 (resize_mini_window): Use it to save restore original window
6041 configuration
6042 (syms_of_xdisp): Initialize it.
6043
6044 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
6045
6046 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
6047
6048 * xdisp.c (reconsider_clip_changes): New.
6049 (redisplay_internal, redisplay_window): Call it.
6050 (mark_window_display_accurate, redisplay_internal): Set current
6051 matrix' buffer, begv, zv.
6052
6053 * window.c (Fset_window_hscroll): Set
6054 prevent_redisplay_optimizations_p instead of clip_changed.
6055 (Fset_window_hscroll): Ditto.
6056 (temp_output_buffer_show): Ditto.
6057 (Fset_window_vscroll): Ditto.
6058
6059 * buffer.c (reset_buffer): Set clip_changed to 0 and
6060 prevent_redisplay_optimizations_p to 1.
6061 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
6062
6063 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
6064 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
6065 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
6066 END_UNCHANGED): New.
6067 (struct buffer_text): Add beg_unchanged, end_unchanged,
6068 unchanged_modified, overlay_unchanged_modified.
6069
6070 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
6071 overlay_unchanged_modified): Removed.
6072 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
6073 (unwind_with_echo_area_buffer): Don't restore them.
6074 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
6075 (text_outside_line_unchanged_p, redisplay_internal,
6076 try_scrolling): Use/set buffer-specific beg/end_unchanged.
6077 (redisplay_window): Let try_window_id be called if more than one
6078 window is displayed. Use/set buffer-specific beg/end_unchanged.
6079 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
6080 try_window_id):
6081 Use buffer-specific beg/end_unchanged.
6082
6083 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
6084 overlay_unchanged_modified): Remove extern declarations.
6085
6086 * keyboard.c (command_loop_1): Set beg/end_unchanged per
6087 buffer.
6088
6089 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
6090 (gap_right): Ditto.
6091 (adjust_after_replace): Likewise.
6092 (replace_range, del_range_2, modify_region): Likewise.
6093
6094 * dispnew.c (direct_output_for_insert): Set beg_unchanged
6095 and unchanged_modified per buffer.
6096
6097 * coding.c (code_convert_region): Compute beg/end_unchanged per
6098 buffer.
6099
6100 * buffer.c (modify_overlay): Compute beg/end_unchanged
6101 per buffer.
6102 (Fget_buffer_create): Initialize new members of the buffer
6103 structure.
6104
61051999-08-22 Gerd Moellmann <gerd@gnu.org>
6106
6107 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
6108
6109 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
6110 (Qkey_value_weak): Removed.
6111 (make_hash_table): Use nil, `key', `value', t for weakness.
6112 (Fmake_hash_table): Ditto.
6113 (copy_hash_table): New.
6114 (Fcopy_hash_table): New.
6115
61161999-08-22 Gerd Moellmann <gerd@gnu.org>
6117
6118 * xfns.c: Call change_frame_size and do_pending_window_change with
6119 new parameter.
6120
61211999-08-21 Gerd Moellmann <gerd@gnu.org>
6122
6123 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
6124 well.
6125 (redisplay_internal): Resize mini-window only if text might
6126 have changed.
6127 (display_echo_area): Reset displayed echo_area_buffer to nil
6128 at the end if we're displaying a nil message.
6129
61301999-08-21 Gerd Moellmann <gerd@gnu.org>
6131
6132 * fns.c (hash_lookup): Test with EQ before calling key comparion
6133 function.
6134 (hash_remove): Ditto.
6135 (cmpfn_eq): Removed.
6136 (cmpfn_eql): Don't test with EQ.
6137 (cmpfn_equal): Ditto.
6138 (make_hash_table): Set comparison function for `eq' to null.
6139
6140 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
6141 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
6142
6143 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
6144
6145 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
6146 xterm.c: Call change_frame_size and do_pending_window_change with
6147 new parameter.
6148
6149 * dispnew.c (do_pending_window_change): Add parameter `safe'.
6150 (change_frame_size): Ditto.
6151 (change_frame_size_1): Ditto. Deley size changes if redisplaying
6152 and not called from a safe place.
6153 (window_change_signal): Call change_frame_size with new parameter.
6154
6155 * dispextern.h: Change prototypes for do_pending_window_change
6156 and change_frame_size.
6157
6158 * xfaces.c (face_at_buffer_position): Don't xassert that
6159 window's buffers equals current_buffer; this is not the
6160 case during echo area display.
6161
61621999-08-21 Gerd Moellmann <gerd@gnu.org>
6163
6164 * xdisp.c, minibuf.c: Remove conditional compilation on
6165 NO_PROMPT_IN_BUFFER.
6166
6167 * minibuf.c (Fminibuffer_prompt_end): New.
6168 (syms_of_minibuf): Defsubr it. Remove
6169 minibuffer-prompt-in-buffer.
6170 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
6171 Extend documentation.
6172
6173 * xdisp.c (get_next_display_element): Display \r as ^M.
6174
6175 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
6176 under scroll bar widget.
6177
61781999-08-21 Gerd Moellmann <gerd@gnu.org>
6179
6180 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
6181 anywhere.
6182 (unwind_redisplay): Return nil.
6183 (clear_garbaged_frames): New.
6184 (redisplay_internal): Use it.
6185 (echo_area_display): Ditto.
6186 (resize_mini_window): Mew.
6187 (display_echo_area_1): Use it to resize echo area window.
6188 (redisplay_internal): Use it to resize active mini-window.
6189
6190 * dispextern.h, lisp.h: Add function prototypes.
6191
6192 * dispnew.c (set_window_cursor_after_update): Do the
6193 cursor_in_echo_area case only for a mini-window showing
6194 a message. Don't let cursor end up after the end of a row.
6195
6196 * xdisp.c (echo_area_glyphs, echo_area_message,
6197 echo_area_glyphs_length, previous_echo_glyphs,
6198 previous_echo_area_message, previous_echo_area_glyphs_length):
6199 Removed.
6200 (Vmessage_stack, echo_area_buffer, echo_buffer,
6201 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
6202 (message2_nolog): Use set_message and clear_message.
6203 (message3): Rename parameter len to nbytes to make clear what
6204 it is.
6205 (message3_nolog): Ditto. Use set_message and clear_message.
6206 (update_echo_area): Rewritten.
6207 (with_echo_area_buffer): New.
6208 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
6209 (setup_echo_area_for_printing): New.
6210 (display_echo_area, display_echo_area_1): New.
6211
6212 (current_message, current_message_1): New.
6213 (push_message, restore_message, pop_message,
6214 check_message_stack): New.
6215 (truncate_echo_area): Rewritten.
6216 (truncate_message_1): New.
6217 (set_message, set_message_1, clear_message): New.
6218 (echo_area_display): Rewritten.
6219 (redisplay_internal): Check for needed echo area update
6220 differently.
6221 (redisplay_preserve_echo_area): Rewritten.
6222 (redisplay_window): Check for mini-window displaying echo area
6223 message differently.
6224 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
6225 Remove initialzation of removed variables.
6226 (init_xdisp): Remove references to removed variables.
6227
6228 * dispnew.c (adjust_frame_message_buffer): Removed references
6229 to echo_area_glyphs and previous_echo_glyphs.
6230 (direct_output_for_insert): Check for mini-window displaying
6231 echo area message differently.
6232 (update_frame): Likewise.
6233 (set_window_cursor_after_update): Likewise. In echo area,
6234 don't try to set cursor on rows that aren't enabled.
6235
6236 * print.c: Remove conditional compilation on `standalone'.
6237 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
6238 glyph_to_str_cpy): Remove that section because GLYPHs are no
6239 longer used in that way.
6240 (PRINTDECLARE): Add multibyte.
6241 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
6242 (printbufidx): Removed.
6243 (printchar, strout): Rewritten.
6244
6245 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
6246 a struct kboard.
6247 (echo_kboard): New.
6248 (echo_now): Set echo_kboard to the current kboard.
6249 (cancel_echoing): Set echo_kboard to null.
6250 (cmd_error_internal): Use clear_message, remove references
6251 to echo_area_glyphs and echo_area_message.
6252 (command_loop_1): Check for echo area messages differently.
6253 (read_char): Likewise.
6254 (record_menu_key): Use clear_message.
6255 (Fexecute_extended_command): Check for echo area messages
6256 differently. Use push_message, restore_message, pop_message.
6257
6258 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
6259 pop_message.
6260
6261 * emacs.c (shut_down_emacs): Call check_message_stack.
6262
6263 * lisp.h: Add function prototypes and extern declarations for
6264 new functions and variables.
6265
6266 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
6267 pop_message.
6268
6269 * minibuf.c (read_minibuf): Use clear_message instead of
6270 setting echo_area_glyphs.
6271 (Fminibuffer_completion_help): Ditto.
6272
6273 * editfns.c (Fcurrent_message): Rewritten.
6274
6275 * frame.c, window.h: Remove references to echo_area_glyphs
6276 and previous_echo_glyphs.
6277
62781999-08-21 Dave Love <fx@gnu.org>
6279
6280 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
6281 * aix4-1.h: Likewise.
6282
6283 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
6284
62851999-08-20 Gerd Moellmann <gerd@gnu.org>
6286
6287 * xfns.c: Remove tiff34 prefix from include.
6288
62891999-08-20 Dave Love <fx@gnu.org>
6290
6291 * cm.c: Revert previous change.
6292
62931999-08-19 Gerd Moellmann <gerd@gnu.org>
6294
6295 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
6296 under scroll bar with width FRAME_SCROLL_BAR_COLS.
6297
62981999-08-18 Dave Love <fx@gnu.org>
6299
6300 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
6301 stdlib.h.
6302
6303 * doprnt.c: Use stdlib.h, unistd.h.
6304
6305 * config.in: Add HAVE_TERMCAP_H.
6306
6307 * cm.c: Use termcap.h.
6308
63091999-08-18 Gerd Moellmann <gerd@gnu.org>
6310
6311 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
6312 FRAME_X_WINDOW (f) being null at the of the function. If widgets
6313 cannot be created we will already have crashed earlier. Call
6314 lw_set_main_areas with a null menu-bar widget, so that we have
6315 a reasonable default.
6316 (Fx_create_frame): Rearranged so that Lisp errors during frame
6317 initialization cause less damage. Initialize menu bar widget
6318 here.
6319
63201999-08-18 Gerd Moellmann <gerd@gnu.org>
6321
6322 * dispnew.c (update_frame_line): Fix previous change. If writing
6323 whole line clear to end of frame.
6324
63251999-08-17 Gerd Moellmann <gerd@gnu.org>
6326
6327 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
6328 and `right-bitmap-area' if position is in the bitmap areas. This
6329 avoids an error when clicking on the bitmap areas. Instead, they
6330 are currently treated like clicks inside the window.
6331 (coordinates_in_window): Return 5 and 6 for bitmap areas.
6332 (Qleft_bitmap_area, Qright_bitmap_area): New.
6333 (syms_of_window): Initialize new symbols.
6334
6335 * dispnew.c (update_frame_line): If writing whole line,
6336 don't write trailing spaces unless we must.
6337
6338 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
6339 (redisplay_internal): Register unwind_redisplay with
6340 register_unwind_protect.
6341 (try_window_reusing_current_matrix): If new start > old start,
6342 give up if start pos of first reusable row is not equal to new
6343 start.
6344
6345 * eval.c (Fsignal): Don't reset redisplaying_p here.
6346
6347 * xterm.c (expose_area): If row extends face to end of line,
6348 write the whole line.
6349
63501999-08-16 Gerd Moellmann <gerd@gnu.org>
6351
6352 * dispextern.h (struct it): Remove member
6353 show_trailing_whitespace_p.
6354
6355 * dispnew.c (direct_output_for_insert): Use
6356 Vshow_trailing_whitespace instead of former iterator member
6357 show_trailing_whitespace_p.
6358 (direct_output_forward_char): Don't do it if hightlighting
6359 trailing whitespace.
6360
6361 * xdisp.c (Qshow_trailing_whitespace): Removed.
6362 (Vshow_trailing_whitespace): Added.
6363 (init_iterator): Remove initialization code for
6364 show_trailing_whitespace_p.
6365 (redisplay_internal): Don't try cursor movement in this_line
6366 if showing trailing whitespace.
6367 (redisplay_window): Likewise for cursor movement in current
6368 matrix and try_window_id.
6369 (try_window_reusing_current_matrix): Likewise.
6370 (trailing_whitespace_p): Return 0 if trailing whitespace is
6371 in front of point.
6372 (display_line): Use Vshow_trailing_whitespace instead of
6373 former iterator member show_trailing_whitespace_p.
6374 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
6375
63761999-08-16 Gerd Moellmann <gerd@gnu.org>
6377
6378 * window.c (Fpos_visible_in_window_p): Rewritten.
6379
6380 * xfaces.c (add_to_log): Renamed from display_message.
6381 Don't display messages in echo area.
6382
6383 * xterm.c (x_draw_glyph_string_box): Use the background width
6384 of the glyph string for the width of the box.
6385
63861999-08-16 Stefan Monnier <monnier@cs.yale.edu>
6387
6388 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
6389
63901999-08-16 Geoff Voelker <voelker@cs.washington.edu>
6391
6392 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
6393 background first, and then set other parameters that might
6394 depend upon their new values.
6395
63961999-08-15 Gerd Moellmann <gerd@gnu.org>
6397
6398 * xfaces.c (Vfont_list_limit): New.
6399 (syms_of_xfaces): Make it a user-variable.
6400 (DEFAULT_FONT_LIST_LIMIT): New.
6401 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
6402 maximally that number of fonts, otherwise use
6403 DEFAULT_FONT_LIST_LIMIT.
6404 (Fx_font_family_list): Bind `font-list-limit' to higher values
6405 until we have all fonts.
6406 (Fxfont_list): Additionally return the full names of fonts and
6407 their registry and encoding.
6408
6409 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
6410 Simplify clearing "under" scroll bar.
6411
6412 * window.c (Qfixed_window_size): New.
6413 (syms_of_window): Initialiaze it.
6414 (check_all_windows): Add return type void.
6415 (window_fixed_size_p): New. Return non-zero if window
6416 is fixed-size.
6417 (window_min_size_1): New.
6418 (window_min_size): Handle fixed-size windows.
6419 (size_window): New. Rewritten combination of set_window_height and
6420 set_window_width that handles fixed-size windows.
6421 (set_window_height): Call it.
6422 (set_window_width): Call it.
6423 (Fsplit_window): Give an error on attempt to split a fixed-size
6424 window.
6425 (change_window_height): Partly rewritten to handle fixed-size
6426 windows.
6427
64281999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
6429
6430 * process.c (Fopen_network_stream): Fix previous change.
6431
64321999-08-13 Karl Heuer <kwzh@gnu.org>
6433
6434 * xdisp.c (line_number_display_limit_width): New var.
6435 (decode_mode_spec): Use it instead of hardcoded value.
6436 (syms_of_xdisp): Defvar it.
6437
64381999-08-13 Richard M. Stallman <rms@gnu.org>
6439
6440 * eval.c (run_hook_list_with_args): Gcpro `globals'.
6441 (run_hook_with_args): Likewise.
6442
6443 * window.h (struct window): New field too_small_ok.
6444
6445 * window.c (set_window_height, set_window_width):
6446 If window starts out "too small", set its too_small_ok flag.
6447 If window's too_small_ok flag is set, don't delete it
6448 unless it is so small it would cause a crash.
6449
64501999-08-13 Gerd Moellmann <gerd@gnu.org>
6451
6452 * window.c (MINSIZE): Removed.
6453 (window_min_size): New.
6454 (set_window_height): Use window_min_size.
6455 (change_window_height): Ditto.
6456
64571999-08-12 Gerd Moellmann <gerd@gnu.org>
6458
6459 * indent.c (vmotion): Don't add in mini-buffer prompt width
6460 if prompts are inserted into mini-buffer.
6461
64621999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
6463
6464 * config.in: Add HAVE_GETADDRINFO.
6465 * process.c (Fopen_network_stream): Use getaddrinfo.
6466
64671999-08-11 Gerd Moellmann <gerd@gnu.org>
6468
6469 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
6470 glyphs to -1.
6471
6472 * xdisp.c (face_before_or_after_it_pos): If position after
6473 or before iterator's current position in the buffer is out
6474 of bounds, return the iterator's original face id.
6475
6476 * dispnew.c (mirror_make_current): If desired row isn't enabled,
6477 just swap glyphs pointers between current and desired row.
6478 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
6479 desired matrix method string to current matrix.
6480
64811999-08-11 Kenichi Handa <handa@etl.go.jp>
6482
6483 * lisp.h (CHAR_MODIFIER_MASK): New macro.
6484
6485 * lread.c (read_escape): For Control modifier, pay attention to
6486 multibyte character.
6487 (read1): Likewise. Singal error or a multibyte character which
6488 has a modifer bit. Check validity of Shift modifer.
6489
6490 * charset.c (non_ascii_char_to_string): Handle modifier bits as
6491 the same as Lisp reader.
6492
64931999-08-10 Richard M. Stallman <rms@gnu.org>
6494
6495 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
6496
64971999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
6498
6499 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
6500
65011999-08-10 Eli Zaretskii <eliz@gnu.org>
6502
6503 * msdos.c (IT_set_face): Abort if the default face is not realized
6504 and cached.
6505 (IT_write_glyphs): Reset the screen face to the default face
6506 before writing glyphs.
6507
6508 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
6509 colors from the frame here.
6510 (realize_tty_face) [MSDOS]: Do it here. Update the face
6511 attributes with the actual name of the color taken from the
6512 frame.
6513
6514 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
6515 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
6516
6517 * frame.c (Fframe_parameters): Swap foreground and background
6518 colors returned in frame parameters if the frame has reverse in
6519 its parameter alist.
6520 (Fmake_terminal_frame): Make a unique copy of face_alist for
6521 each frame.
6522
65231999-08-07 Richard Stallman <rms@gnu.org>
6524
6525 * buffer.c (Fprevious_overlay_change): Just return
6526 the answer obtained from overlays_at.
6527
6528 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
6529 Use XpmCloseness and attrs.closeness instead.
6530
65311999-08-06 Richard Stallman <rms@gnu.org>
6532
6533 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
6534
65351999-08-06 Geoff Voelker <voelker@cs.washington.edu>
6536
6537 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
6538 Ffile_attributes_lessp): New functions.
6539 (Fdirectory_files): Use directory_files_internal.
6540 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
6541 Ffile_attributes_lessp.
6542
6543 * w32.c (stat): Check for directory ending in separator when
6544 doing readdir fast path.
6545
6546 * w32fns.c (x_set_icon_type): Support setting frame icons.
6547 * w32term.c (x_bitmap_icon): New function.
6548 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
6549
65501999-08-06 Gerd Moellmann <gerd@gnu.org>
6551
6552 * xdisp.c (set_iterator_to_next): After delivering a character
6553 from a display vector, restore face and charset to what they were
6554 before the display vector was processed.
6555
65561999-08-06 Gerd Moellmann <gerd@gnu.org>
6557
6558 * xdisp.c (reseat_at_next_visible_line_start): New parameter
6559 on_newline_p.
6560 (set_iterator_to_next): After delivering last char
6561 from display vector, reseat on next visible line start if
6562 dpvec_char_len < 0.
6563 (next_element_from_buffer): Set dpvec_char_len to -1 for
6564 selective display.
6565
65661999-08-06 Gerd Moellmann <gerd@gnu.org>
6567
6568 * xdisp.c (compute_line_metrics): If first line's physical ascent
6569 is larger than its logical ascent, use the physical ascent, and
6570 make the row taller. Set row's overlapping_p flag.
6571
6572 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
6573 (direct_output_for_insert): Ditto.
6574
6575 * dispextern.h (struct glyph_row): Add overlapping_p.
6576
6577 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
6578
6579 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
6580 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
6581
6582 * dispnew.c (direct_output_for_insert): Don't use this method if
6583 row is overlapped by others.
6584 (update_text_area): Write full line if current line is overlapped.
6585 (redraw_overlapped_rows): New.
6586 (update_window): Call it.
6587 (redraw_overlapping_rows): New.
6588 (update_window): Call it.
6589 (scrolling_window): Make sure overlapped_p flag in current rows is
6590 unchanged.
6591 (row_equal_p): Take rows overlapped_p flag into account.
6592
6593 * dispextern.h (struct glyph_row): Add flag overlapped_p.
6594
6595 * xterm.c (x_fix_overlapping_area): New.
6596 (x_redisplay_interface): Add x_fix_overlapping_area.
6597
6598 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
6599
66001999-08-06 Gerd Moellmann <gerd@gnu.org>
6601
6602 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
6603 (struct glyph_string): Add member for_overlaps_p.
6604 (x_get_glyph_string_clip_rect): If glyph string draws foreground
6605 of overlapping rows, clip to window bottom.
6606 (x_fill_glyph_string): Add parameter overlaps_p.
6607 (x_fill_composite_glyph_string): Ditto.
6608 (BUILD_GLYPH_STRINGS): Ditto.
6609 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
6610 (x_draw_glyph_string): Don't draw anything but the foreground
6611 if glyph string draws row overlaps.
6612
6613 * dispnew.c (direct_output_for_insert): Don't use this
6614 optimization for rows that overlap others.
6615 (update_window_line): Return non-zero if display has changed.
6616 (update_text_area): Ditto.
6617 (update_window): Record if display has been changed.
6618
6619 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
6620
6621 * dispextern.h (struct redisplay_interface): Add
6622 fix_overlapping_area.
6623
6624 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
6625
6626 * dispextern.h (struct glyph): Add overlaps_vertically_p.
6627
6628 * xterm.c (x_produce_image_glyph): Compute iterator's physical
6629 ascent and descent.
6630 (x_produce_stretch_glyph): Ditto.
6631 (x_produce_glyphs): Ditto.
6632
6633 * xdisp.c (init_iterator): Reset physical line height info
6634 after producing special glyphs.
6635 (display_toolbar_line): Set physical line height info.
6636 (compute_line_metrics): Ditto.
6637 (display_line): Ditto.
6638 (display_string): Ditto.
6639
6640 * term.c (produce_glyphs): Set iterator's physical height
6641 information.
6642
6643 * dispnew.c (blank_row): Compute glyph row's physical height.
6644 (row_equal_p): Take physical row heights into account.
6645 (direct_output_for_insert): Ditto.
6646 (update_text_area): Ditto.
6647
6648 * dispextern.h (struct glyph_row): Add phys_ascent and
6649 phys_height.
6650 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
6651 max_phys_descent.
6652
66531999-08-04 Stefan Monnier <monnier@cs.yale.edu>
6654
6655 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
6656 Fswitch_to_buffer.
6657 (no_switch_buffer): New function.
6658 (Fswitch_to_buffer): Call them. Don't get confused
6659 by "same-window" buffers in a dedicated frame.
6660
6661 * window.c (display-buffer): Don't get confused
6662 by "same-window" buffers in a dedicated frame.
6663
66641999-08-04 Andreas Schwab <schwab@gnu.org>
6665
6666 * insdel.c (insert_from_string_1): Check gap size against number
6667 of outgoing bytes, not incoming bytes.
6668
66691999-08-03 Tom Breton <tob@world.std.com>
6670
6671 * lread.c (read1): Added circular reading code to #N=.
6672 (SUBSTITUTE): New macro.
6673 (seen_list): New variable.
6674 (substitute_object_in_subtree): New function.
6675 (substitute_object_recurse): New function.
6676 (substitute_in_interval): New function.
6677
66781999-08-02 Eli Zaretskii <eliz@gnu.org>
6679
6680 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
6681
6682 * frame.c (make_terminal_frame): Don't call init_frame_faces if
6683 noninteractive, for termcap frames as well.
6684
6685 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
6686 frames.
6687
66881999-08-01 Richard Stallman <rms@gnu.org>
6689
6690 * fns.c (internal_equal): Correct overlay comparison.
6691
83c8f461 66921999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
6693
6694 * xfns.c (x_set_internal_border_width):
6695 Call do_pending_window_change. Don't block input, don't call XFlush.
6696 (x_set_vertical_scroll_bars): Call do_pending_window_change.
6697 (x_set_scroll_bar_width, x_set_font): Likewise.
6698
6699 * frame.c (Fset_frame_height): Call do_pending_window_change.
6700 (Fset_frame_width, Fset_frame_size): Likewise.
6701
6702 * xterm.c (x_set_window_size): When calling change_frame_size,
6703 specify 1 for DELAY.
6704
6705 * widget.c (EmacsFrameSetCharSize): Don't call
6706 do_pending_window_change here.
6707
67081999-07-30 Dave Love <fx@gnu.org>
6709
6710 * config.in: Add HAVE_STDLIB_H.
6711
67121999-07-30 Richard M. Stallman <rms@gnu.org>
6713
6714 * process.c (create_process): Detect failure of `pipe'.
6715
67161999-07-30 Keisuke Nishida <kei@psn.net>
6717
6718 * alloc.c (allocate_vectorlike): Add missing increment.
6719
6720 * data.c (Fdefalias): Call Ffset instead of duplicating code.
6721
6722 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
6723 before calling indirect_function.
6724
67251999-07-30 Eli Zaretskii <eliz@gnu.org>
6726
6727 * dispextern.h (load_color, lookup_derived_face): Declare
6728 prototypes.
6729
6730 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
6731 it will be done later.
6732
6733 * frame.c (make_terminal_frame) [MSDOS]: Don't call
6734 init_frame_faces if non-interactive.
6735 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
6736 array with a call to msdos_stdcolor_name. The font name is now
6737 "ms-dos", consistent with realize_tty_face.
6738
6739 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
6740 MSDOS frame.
6741
6742 * window.c (Fset_window_configuration) [MSDOS]: Don't call
6743 x_set_toolbar_lines.
6744
6745 * xfaces.c (load_color): Remove static from definition and remove
6746 prototype.
6747 [MSDOS]: Add a DOS-specific version of load_color.
6748 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
6749 (lookup_derived_face): New function.
6750 (realize_default_face): Support MSDOS frames.
6751 [MSDOS]: If fore/background colors are unspecified, inherit them
6752 from the frame.
6753 (realize_face): Support MSDOS frames.
6754 (realize_tty_face): Support MSDOS frames.
6755 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
6756 load_color to try to find a suitable approximation. If the face
6757 is inverse-video, swap the foreground and background colors.
6758
6759 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
6760 functions.
6761
6762 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
6763
6764 * msdos.h: Remove redundant declarations (most of them are now in
6765 dispextern.h).
6766
6767 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
6768 Use default frame colors if the face doesn't specify them; invert
6769 the colors if highlight is ON.
6770 (IT_write_glyphs): Rewritten for the new redisplay engine.
6771 (IT_change_line_highlight): Add (unused) parameter Y, since that's
6772 how the hook is called by term.c.
6773 (IT_copy_glyphs): New function, copies an area of the display in
6774 video RAM.
6775 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
6776 redisplay now calls it even if char_ins_del_ok is zero.
6777 (IT_set_frame_parameters): Prototype changed. Calls the new
6778 load_color. Puts the new fore/background colors into the default
6779 face on current frame.
6780 (IT_menu_display): Rewritten to handle the new struct glyph
6781 instead of a char array.
6782 (XMenuActivate): Call lookup_derived_face to create and use
6783 special faces for the pop-up and drop-down menus.
6784
67851999-07-29 Gerd Moellmann <gerd@gnu.org>
6786
6787 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
6788 XawScrollbarSetThumb if thumb parameters haven't changed because
6789 that function apparently isn't optimized for this case.
6790
67911999-07-29 Eli Zaretskii <eliz@gnu.org>
6792
6793 * msdos.c (getdefdir): Don't return failure indication when
6794 _fixpath sets errno to ENOSYS.
6795
67961999-07-28 Gerd Moellmann <gerd@gnu.org>
6797
6798 * xdisp.c (string_char_and_length): New. Use it everywhere
6799 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
6800
68011999-07-28 Kenichi Handa <handa@etl.go.jp>
6802
6803 * fns.c (count_combining): New function.
6804 (struct textprop_rec): New structure.
6805 (concat): Copy text properties correctly when byte combining
6806 occurs.
6807
68081999-07-28 Gerd Moellmann <gerd@gnu.org>
6809
6810 * xterm.c (x_setup_relief_color): Don't try smart color allocation
6811 if display is mono.
6812 (x_draw_row_bitmaps): If face has stipple, don't switch
6813 to foreground color for clearing areas, and set the fill style.
6814
6815 * xfaces.c (load_face_colors): Load background color if setting
6816 stipple, too.
6817 (prepare_face_for_display): Use FillOpaqueStippled instead of
6818 FillStippled.
6819
68201999-07-26 Ken'ichi Handa <handa@gnu.org>
6821
6822 * xterm.c (x_find_ccl_program): Add casting.
6823
6824 * w32fns.c (w32_find_ccl_program): Add casting.
6825
68261999-07-27 Gerd Moellmann <gerd@gnu.org>
6827
6828 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
6829
6830 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
6831 because this will try to access a nonexisting widget.
6832
68331999-07-26 Markus Rost <rost@gnu.org>
6834
6835 * fns.c (Fgethash): Fix order of variables (patch by gerd).
6836 (Fputhash): Ditto.
6837 (Fremhash): Ditto.
6838
68391999-07-26 Gerd Moellmann <gerd@gnu.org>
6840
6841 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
6842 value to frame width and height.
6843
6844 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
6845 into account for full-width windows. Don't add scroll bar width
6846 to width of clip rect.
6847 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
6848 (x_set_glyph_string_background_width): Add 1 to background width.
6849 (x_draw_glyphs): Take internal border into account for full-width
6850 lines.
6851
68521999-07-26 Richard M. Stallman <rms@gnu.org>
6853
6854 * xfns.c (x_set_mouse_color): Always unload the old color.
6855 Don't allow nil as color value.
6856 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
6857 Always unload the old color.
6858
6859 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
6860
68611999-07-26 Karl Heuer <kwzh@gnu.org>
6862
6863 * fns.c (Fy_or_n_p): Doc fix.
6864
68651999-07-26 Kenichi Handa <handa@etl.go.jp>
6866
6867 * ccl.h (setup_ccl_program): The type is changed to `int'.
6868
6869 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
6870 stored in the following CCL code. Adjusted for the change of
6871 Vccl_program_table.
6872 (resolve_symbol_ccl_program): Adjusted for the new style of
6873 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
6874 is resolving failed.
6875 (ccl_get_compiled_code): New function.
6876 (setup_ccl_program): Function type changed from `void' to `int'.
6877 Resolve symbols in CCL_PROG.
6878 (Fccl_program_p): New function.
6879 (Fccl_execute): Get compiled CCL code by just calling
6880 setup_ccl_program.
6881 (Fccl_execute_on_string): Likewise.
6882 (Fregister_ccl_program): Adjusted for the change of
6883 Vccl_program_table.
6884
6885 * coding.c (setup_coding_system): Get compiled CCL code by just
6886 calling setup_ccl_program.
6887
6888 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
6889 calling setup_ccl_program.
6890
6891 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
6892 calling setup_ccl_program.
6893
68941999-07-23 Gerd Moellmann <gerd@gnu.org>
6895
6896 * xfaces.c (frame_update_line_height): Just use the height of the
6897 frame's fontset or font, instead of taking face fonts into
6898 account.
6899
6900 * xdisp.c (get_next_display_element): Display DEL as `^?'.
6901
69021999-07-23 Richard M. Stallman <rms@gnu.org>
6903
6904 * window.c (Fsplit_window): For default size, round up for left window.
6905
69061999-07-21 Joe Ramey <ramey@ti.com>
6907
6908 * filelock.c (lock_if_free): Return -1 if check_lock_owner
6909 has returned -1 (lockfile exists but is not a symlink?).
6910
69111999-07-20 Gerd Moellmann <gerd@gnu.org>
6912
6913 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
6914 because of a change in cursor_gc made in 20.4.
6915
69161999-07-19 Gerd Moellmann <gerd@gnu.org>
6917
6918 * xterm.c (x_calc_absolute_position): Subtract menu bar height
6919 for YNegative, if using X toolkit.
6920
6921 * xfns.c (x_real_positions): Don't subtract window borders
6922 from positions returned.
6923
69241999-07-17 Gerd Moellmann <gerd@gnu.org>
6925
6926 * xrdb.c (x_load_resources): Set double-click time defaults
6927 for Motif list boxes from double-click-time.
6928
6929 * fns.c (Vhash_table_tests): Remvoed.
6930 (Qhash_table_test): New.
6931 (syms_of_fns): Initialize Qhash_table_test.
6932 (Fmake_hash_table): Look up user-defined tests in symbol prop
6933 `hash-table-test'.
6934 (Fdefine_hash_table_test): Store test and hash function as
6935 symbol prop `hash-table-test'.
6936 (make_hash_table): Add parameters user_test and user_hash.
6937
6938 * window.c (set_window_buffer): Set window margins for tty
6939 frames, too.
6940 (Fset_window_margins): Ditto.
6941
6942 * term.c (append_glyph): Use glyph area of iterator instead of
6943 always TEXT_AREA.
6944
6945 * dispnew.c (update_frame_1): Add left margin width to cursor
6946 hpos.
6947 (direct_output_for_insert): Ditto.
6948 (direct_output_forward_char): Ditto.
6949
6950 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
6951
6952 * dispextern.h (struct glyph_matrix): Add top_line_p.
6953
69541999-07-16 Gerd Moellmann <gerd@gnu.org>
6955
6956 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
6957 instead.
6958
6959 * fns.c (cmpfn_eq): Add hash code parameters.
6960 (cmpfn_eql): Ditto.
6961 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
6962 (cmpfn_user_defined): Likewise.
6963
69641999-07-15 Gerd Moellmann <gerd@gnu.org>
6965
6966 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
6967
6968 * fns.c (maybe_resize_hash_table): Correct computation of
6969 index vector size.
6970 (make_hash_table): Ditto.
6971 (Fmakehash): New.
6972
6973 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
6974
6975 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
6976 (survives_gc_p): Make it externally visible.
6977 (mark_object): Ditto.
6978
6979 * fns.c (remove_hash_entry): Removed.
6980 (sweep_weak_hash_tables): New.
6981
6982 * print.c (print): Print more information about hash tables.
6983
6984 * xfns.c (image_spec_hash): Removed.
6985 (lookup_image): Use sxhash instead of image_spec_hash.
6986 (image_spec_equal_p): Removed.
6987 (lookup_image): Use Fequal instead of image_spec_equal_p.
6988
69891999-07-14 Gerd Moellmann <gerd@gnu.org>
6990
6991 * lisp.h (P_): Moved to top of file.
6992
6993 * fns.c (make_hash_table): Set new members.
6994
6995 * alloc.c (mark_object): Mark hash table's user_hash_function.
6996 Mark index vector for weak hash tables.
6997
6998 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
6999 user_hash_function, cmpfn, and hashfn.
7000
7001 * fns.c (build_hash): Removed.
7002 (hash_test): Removed.
7003 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
7004 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
7005
70061999-07-13 Gerd Moellmann <gerd@gnu.org>
7007
7008 * alloc.c (survives_gc_p): New.
7009
7010 * print.c (print): Add hash table handling.
7011
7012 * alloc.c (mark_object): Add code to mark hash tables.
7013
7014 * lisp.h (GC_HASH_TABLE_P): New.
7015
7016 * emacs.c (main): Call init_fns.
7017
7018 * fns.c (init_fns): New.
7019
7020 * fns.c: Add hash table implementation.
7021
7022 * lisp.h (PVEC_HASH_TABLE): New.
7023 (struct Lisp_Hash_Table): New.
7024 (XHASH_TABLE): New.
7025 (XSET_HASH_TABLE): New.
7026 (HASH_TABLE_P): New.
7027 (CHECK_HASH_TABLE): New.
7028 (DEFAULT_HASH_SIZE): New.
7029 (DEFAULT_REHASH_THRESHOLD): New.
7030 (DEFAULT_REHASH_SIZE): New.
7031
7032 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
7033 (x_write_glyphs): Compute overwritten cursor using real start
7034 and end positions of display.
7035 (x_insert_glyphs): Ditto.
7036
70371999-07-10 Gerd Moellmann <gerd@gnu.org>
7038
7039 * keyboard.c (read_char): Use message3_nolog to show help-echo.
7040
7041 * dispnew.c (blank_row): Add y-position as parameter. Compute
7042 visible height.
7043
7044 * xdisp.c (next_element_from_string): Give padding spaces
7045 a position of -1.
7046
7047 * dispnew.c (adjust_glyph_matrix): Some work to support
7048 marginals areas on tty frames in a future version.
7049 (allocate_matrices_for_frame_redisplay): Ditto.
7050
7051 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
7052 to zero if number of glyphs in the row is <= 1.
7053
70541999-07-09 Gerd Moellmann <gerd@gnu.org>
7055
7056 * dispnew.c (buffer_posn_from_coords): Take left marginal area
7057 into account.
7058
7059 * xdisp.c (handle_display_prop): Don't reset area if handing
7060 a property from a string that came from a `display' property.
7061 (handle_single_display_prop): Don't handle recursive `display'
7062 properties.
7063 (handle_single_display_prop): Handle some display property
7064 forms for terminal frames.
7065 (Qimage): Moved here from xfns.c.
7066
7067 * dispextern.h (struct it): New field string_from_display_prop_p.
7068
7069 * xterm.c (x_clip_to_row): Don't let clip_rect include top
7070 line.
7071
70721999-07-08 Gerd Moellmann <gerd@gnu.org>
7073
7074 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
7075
7076 * window.c (set_window_buffer): Set window's vscroll to zero.
7077
7078 * xdisp.c (QCwhen): New.
7079 (display_prop_end): New.
7080 (handle_single_display_prop): Use it.
7081 (debug_method_add): Print buffer name if tracing.
7082 (try_window_reusing_current_matrix): Compute visible height
7083 of reused rows. Fix cursor position calculation in case of
7084 top-line.
7085
7086 * dispextern.h (struct redisplay_interface): Add parameter
7087 cursor_on_p to update_window_end_hook.
7088
7089 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
7090
70911999-07-07 Gerd Moellmann <gerd@gnu.org>
7092
7093 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
7094 doesn't become negative when decrementing it.
7095
7096 * eval.c (Fsignal): Reset redisplaying_p to zero.
7097
7098 * xdisp.c (try_window_reusing_current_matrix): Call hooks
7099 for window update.
7100 (try_window_id): Ditto.
7101
7102 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
7103 (x_scroll_run): Ditto.
7104 (any_help_event_p): New.
7105 (x_initialize): Set it to zero.
7106 (XTread_socket): Clear help echo only if any_help_event_p.
7107
7108 * xdisp.c (init_iterator): Set top_line_p.
7109 (start_display): Use correct initial y if top-line is present.
7110 (make_cursor_line_fully_visible): Bug fixes for top-line.
7111 (try_scrolling): Ditto.
7112 (try_window_reusing_current_matrix): Ditto.
7113
7114 * dispextern.h (struct it): Add top_line_p.
7115
7116 * dispnew.c (shift_glyph_matrix): Move some computations out
7117 of the loop.
7118
7119 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
7120 XFLOATINT.
7121
71221999-07-06 Gerd Moellmann <gerd@gnu.org>
7123
7124 * dispnew.c (update_frame_1): When setting cursor in echo area,
7125 skip only over padding spaces at the end.
7126
7127 * xfaces.c (realize_tty_face): Set face's font_name field to
7128 "tty".
7129
7130 * term.c (update_end): Turn cursor on only if selected window's
7131 cursor_off_p flag is not set.
7132
71331999-07-05 Gerd Moellmann <gerd@gnu.org>
7134
7135 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
7136 (TS_cursor_normal): Renamed from TS_end_visual_mode.
7137 (TS_cursor_invisible): New.
7138 (term_init): Initialize TS_cursor_invisible.
7139 (tty_hide_cursor): New.
7140 (tty_show_cursor): New.
7141 (update_end): Show tty cursor.
7142 (update_begin): Hide tty cursor to prevent cursor flickering
7143 during redisplays triggered by timers (stealth fontification).
7144
7145 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
7146
7147 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
7148 in scroll bars.
7149 (x_handle_toolbar_click): Set modifier bits.
7150
71511999-07-04 Gerd Moellmann <gerd@gnu.org>
7152
7153 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
7154 instead of a pointer to a volatile input_event.
7155 (kbd_buffer_store_event): Remove volatile modifier from
7156 declaration of local variable `sp'.
7157 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
7158 to kbd_fetch_ptr.
7159
71601999-07-03 Gerd Moellmann <gerd@gnu.org>
7161
7162 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
7163 only if buffer is modified. Return quickly if changes are
7164 above window start.
7165
71661999-07-02 Gerd Moellmann <gerd@gnu.org>
7167
7168 * dispextern.h (HSCROLL_WINDOWS): Removed.
7169
7170 * xdisp.c (mark_window_display_accurate): Don't set
7171 w->region_showing.
7172 (redisplay_internal): Don't call redraw_garbaged_frames.
7173
71741999-07-01 Gerd Moellmann <gerd@gnu.org>
7175
7176 * xdisp.c (echo_area_display): Don't display truncation marks
7177 for messages because 20.4 doesn't do it either.
7178 (redisplay_window): Case same window start. Instead of giving
7179 up when cursor is partially visible, make it fully visible.
7180 (mark_window_display_accurate): Some cleanup. Record window's
7181 last cursor information.
7182 (debug_method_add): Improved.
7183 (redisplay_internal): Record last cursor info only if not
7184 consider_all_windows_p.
7185
7186 * dispnew.c (update_window): Update top line after scrolling.
7187 (blank_row): Renamed from make_empty_enabled_row.
7188 (increment_glyph_row_buffer_positions): Increment positions
7189 in buffers, only.
7190
7191 * window.c (Fcoordinates_in_window_p): Add top-line to doc
7192 string.
7193
71941999-06-30 Gerd Moellmann <gerd@gnu.org>
7195
7196 * dispnew.c (update_window): Check that updated row is visible.
7197
7198 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
7199 top of window differently.
7200
7201 * xdisp.c (try_window_reusing_current_matrix): Don't do it
7202 if region is showing.
7203
7204 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
7205 avoiding matrix reallocation. Set window_vscroll in matrix.
7206
7207 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
7208
26901792
DL
7209 * xdisp.c (debug_method_add): New.
7210 (debug_redisplay_method): Removed.
7211 (try_window_reusing_current_matrix): Handle case where old
7212 window start is the same as new window start.
7213
7214 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
7215 an array instead of a pointer.
7216
26901792
DL
7217 * xfns.c (Fx_show_tip): Undo previous change.
7218
7219 * xterm.c (x_append_glyph): Clear glyph->u.val.
7220
7221 * dispextern.h (struct glyph): Increase size of face_id bit-field
7222 for CHAR_GLYPH to 12.
7223
72241999-06-29 Gerd Moellmann <gerd@gnu.org>
7225
7226 * xfaces.c (x_charset_registry): Make it externally visible.
7227
72281999-06-28 Gerd Moellmann <gerd@gnu.org>
7229
7230 * dispnew.c (update_window): Use mode_line_p flag of rows
7231 instead of WINDOW_WANTS_MODELINE_P.
7232
7233 * xterm.c (clear_mouse_face): Make externally visible.
7234
7235 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
7236
7237 * xterm.c (expose_line): Handle exposure of top-lines.
7238
7239 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
7240 if mouse_face_mouse_frame is null.
7241
7242 * xdisp.c (redisplay_window): If window is echo_area_window,
7243 and update_mode_line is set, update menubar and toolbar.
7244
7245 * dispnew.c (space_glyph): Set its charpos to -1.
7246 (update_frame_1): Ignore trailing padding spaces.
7247
7248 * xdisp.c (next_element_from_c_string): Set position of padding
7249 glyphs to -1.
7250
72511999-06-27 Gerd Moellmann <gerd@gnu.org>
7252
7253 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
7254 XQueryColor.
7255
7256 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
7257 (set_cursor_from_row): Skip over glyphs having a null object at
7258 the start of rows.
7259 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
7260 glyphs.
7261 (handle_invisible_prop): Compute next change only when needed.
7262 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
7263 line.
7264
72651999-06-26 Gerd Moellmann <gerd@gnu.org>
7266
7267 * xrdb.c (x_load_resources): Don't set resource for double-click
7268 time.
7269
7270 * xdisp.c (try_window_id): Return quickly if all changes are
7271 below the window's current matrix end.
7272
7273 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
7274 parameter.
7275
7276 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
7277 in desired not in current matrix.
7278 (try_window_reusing_current_matrix): Rotate matrices starting
7279 at start_vpos instead of 0.
7280
7281 * xterm.c (expose_window): Use window_text_bottom_y.
7282 (fast_find_position): Ditto.
7283
7284 * xdisp.c (redisplay_window): Use window_text_bottom_y.
7285 (try_window_reusing_current_matrix): Ditto.
7286 (get_last_unchanged_at_beg_row): Ditto.
7287 (init_iterator): Ditto.
7288
7289 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
7290 more row.
7291 (check_matrix_invariants): Use window_text_bottom_y.
7292 (update_window): Ditto.
7293 (scrolling_window): Ditto.
7294
7295 * xdisp.c (window_text_bottom_y): New.
7296
72971999-06-25 Gerd Moellmann <gerd@gnu.org>
7298
7299 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
7300 clearing mouse face.
7301 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
7302 event.xcrossing.focus is not set, and focus is in the menu bar,
7303 set focus frame as if event.xcrossing.focus were set.
7304
73051999-06-24 Gerd Moellmann <gerd@gnu.org>
7306
7307 * keyboard.c (make_lispy_event): Handle mouse on top lines.
7308 * keyboard.c (make_lispy_movement): Ditto.
7309
7310 * window.c (coordinates_in_window): Return 4 if on top line.
7311 (Fcoordinates_in_window_p): Return `top-line' if on top line.
7312
7313 * xdisp.c (window_box_height): Subtract top line height.
7314 (window_box): Add top line height to top y position if top line
7315 exists.
7316 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
7317 the top line row of the window. Set initial y-position to
7318 window's top line height plus delta.
7319 (start_display): Choose start glyph row depending on whether
7320 window has a top line.
7321 (try_scrolling): Take top line height into account for aggressive
7322 scrolling.
7323 (compute_window_start_on_continuation_line): Take top line into
7324 account.
7325 (redisplay_window): Ditto. If top line height has changed,
7326 trigger a new redisplay.
7327 (try_window_reusing_current_matrix): Take top line into account.
7328 (find_last_row_displaying_text): Ditto.
7329 (get_last_unchanged_at_beg_row): DItto.
7330 (try_window_id): Ditto.
7331 (compute_line_metrics): Ditto.
7332
7333 * dispnew.c (shift_glyph_matrix): Compute visible row height
7334 taking top line of window into account.
7335 (update_window): Update top line. If scrolling_window detects
7336 that all rows are equal, only set cursor.
7337 (update_window_line): Call after_update_window_line_hook if
7338 mode_line_p flag of rows has changed.
7339 (scrolling_window): Add parameter top_line_p. Return -1 if
7340 all rows are equal.
7341 (mode_line_string): Add parameter mode_line_p. Handle strings
7342 in top lines.
7343
7344 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
7345 (MATRIX_FIRST_TEXT_ROW): New.
7346 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
7347 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
7348 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
7349 (MATRIX_TOP_LINE_HEIGHT): New.
7350 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
7351 (CURRENT_TOP_LINE_HEIGHT): New.
7352 (DESIRED_TOP_LINE_HEIGHT): New.
7353 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
7354 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
7355 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
7356 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
7357
7358 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
7359 lines.
7360 (x_draw_row_bitmaps): Take top line into account when clearing
7361 bitmap area.
7362 (x_estimate_mode_line_height): Replacement for
7363 x_frame_mode_line_height.
7364 (x_get_glyph_string_clip_rect): Take top line into account.
7365 (x_clear_end_of_line): Ditto.
7366 (note_mode_line_highlight): Add parameter mode_line_p. Handle
7367 top lines.
7368 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
7369 (x_erase_phys_cursor): Take top line into account.
7370
7371 * xdisp.c (window_box_height): Subtract top line height if
7372 window wants a top line.
7373 (display_mode_lines): New.
7374 (redisplay_window): Call it.
7375 (display_mode_line): Add parameters face_id and format.
7376
7377 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
7378 (MATRIX_TOP_LINE_HEIGHT): New.
7379
7380 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
7381
7382 * term.c (estimate_mode_line_height): Renamed from
7383 frame_mode_line_height. Add parameter face_id.
7384 (estimate_mode_line_height_hook): Renamed from
7385 frame_mode_line_height_hook.
7386 (produce_special_glyphs_hook): Removed.
7387 (produce_glyphs_hook): Removed.
7388
73891999-06-23 Gerd Moellmann <gerd@gnu.org>
7390
7391 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
7392 (struct glyph_row): Add mode_line_p.
7393
7394 * xfaces.c (realize_basic_faces): Realize face `top-line'.
7395 (Qtop_line): New.
7396 (syms_of_xfaces): Initialize Qtop_line.
7397
7398 * dispextern.h (TOP_LINE_FACE_ID): New.
7399
7400 * buffer.c (init_buffer_once): Set default for
7401 top_line_format to nil.
7402 (init_buffer_once): Init top_line_format.
7403 (default-top-line-format): New.
7404 (top-line-format): New buffer-local variable.
7405
7406 * buffer.h: Add top_line_format.
7407
7408 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
7409
74101999-06-17 Dave Love <fx@gnu.org>
7411
7412 * xfns.c: Move the PNG section before the JPEG one to avoid
7413 problems surrounding setjmp.h/png.h on GNU/Linux.
7414
74151999-06-17 Gerd Moellmann <gerd@gnu.org>
7416
7417 * xfns.c (x_kill_gs_process): Don't free colors.
7418
74191999-06-17 Dave Love <fx@gnu.org>
7420
7421 * s/gnu-linux.h: Zap spurious ~.
7422
74231999-06-16 Gerd Moellmann <gerd@gnu.org>
7424
7425 * xfns.c (gif_load): Improve multi-image support.
7426
74271999-06-15 Gerd Moellmann <gerd@gnu.org>
7428
7429 * xfns.c (gif_load): Support multi-image files.
7430
7431 * Makefile.in (LIBGIF): Use libungif.
7432
7433 * configure.in (HAVE_GIF): Use libungif instead of libgif
7434 because the former doesn't contain patented compression code.
7435
7436 * xdisp.c (compute_window_start_on_continuation_line): Don't
7437 do it if line start is too far away from window start.
7438
74391999-06-14 Gerd Moellmann <gerd@gnu.org>
7440
7441 * buffer.c (init_buffer_once): Set buffer_local_flags for
7442 scroll_*_aggressively.
7443 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
7444 (init_buffer_once): Set defaults for these variables.
7445 (syms_of_buffer): Add default-scroll-*-aggressively.
7446
7447 * buffer.h (scroll_up_aggressively): New.
7448 (scroll_down_aggressively): New.
7449
7450 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
7451 a static PNG library.
7452
7453 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
7454 in case it's a static library.
7455
7456 * Makefile.in (ctagsfiles): Split so that files starting
7457 with an `x' are found before files starting with `w32'.
7458 (ctagsfiles1): New.
7459 (ctagsfiles2): New.
7460 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
7461
7462 * xdisp.c (compute_window_start_on_continuation_line): New.
7463 (redisplay_window): Use it.
7464 (INFINITY): New.
7465 (reseat_to_string): Use it.
7466 (hscroll_window_tree): Ditto.
7467 (compute_window_start_on_continuation_line): Ditto.
7468 (redisplay_window): Don't force display with a new window start.
7469
74701999-06-06 Gerd Moellmann <gerd@gnu.org>
7471
7472 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
7473 if widget not present.
7474
7475 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
7476
74771999-06-04 Gerd Moellmann <gerd@gnu.org>
7478
7479 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
7480 value of realize_basic_faces.
7481 (load_face_font_or_fontset): Store full font name in face.
7482 (realize_default_face): Use full font name.
7483
26901792
DL
7484 * xterm.c (x_produce_glyphs): Set member char_to_display.
7485 (x_append_glyph): Store char_to_display in glyphs.
7486
7487 * dispextern.h (struct it): Add char_to_display.
7488
7489 * xfns.c (x_set_font): Don't call face-set-after-frame-default
7490 if faces haven't been initialized.
7491 (Fx_create_frame): Call face-set-after-frame-default after
7492 faces have been initialized, and widget has been created.
7493
7494 * puresize.h (BASE_PURESIZE): Increased.
7495
74961999-06-01 Gerd Moellmann <gerd@gnu.org>
7497
7498 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
7499 (Finternal_set_lisp_face_attribute): If frame is t when
7500 :font attribute is set, use the selected frame.
7501 (clear_face_cache): Add parameter clear_fonts_p.
7502 (Fclear_face_cache): Add optional parameter thorougly.
7503
7504 * xfaces.c (face_numeric_value): Return -1 if symbol is not
7505 in table.
7506 (Fclear_face_cache): New.
7507 (choose_face_fontset_font): If fontset doesn't contain font
7508 pattern for the given charset, use CHARSET_ASCII.
7509 (Finternal_set_lisp_face_attribute): Fix handling of nil
7510 stipple attribute.
7511 (Finternal_set_lisp_face_attribute): Fix handling of changing
7512 font-related face attributes of the default face.
7513 (set_lface_from_font_name): Set only attributes that aren't
7514 specified.
7515
75161999-05-31 Gerd Moellmann <gerd@gnu.org>
7517
7518 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
7519 font support.
7520 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
7521 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
7522 scalable fonts depending on the setting of SCALABLE_FONTS.
7523 (first_font_matching): List more than one font to find the
7524 first non-scalable matching font.
7525 (sorted_font_list): Let x_face_list_fonts return scalable fonts
7526 depending on SCALABLE_FONTS.
7527 (better_font_p): New parameter compare_pt_p. If zero, don't
7528 compare point sizes of fonts.
7529 (exact_face_match_p) [SCALABLE_FONTS]: New.
7530 (build_scalable_font_name) [SCALABLE_FONTS]: New.
7531 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
7532 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
7533 (syms_of_xfaces): Add scalable-fonts-allowed.
7534
75351999-05-26 Gerd Moellmann <gerd@gnu.org>
7536
7537 * xfns.c (png_load): Let PNG lib handle gamma. Construct
7538 mask only if image contains simple transparency information.
7539 Otherwise, combine image with frame background color.
7540
7541 * configure.in (--with-png, HAVE_PNG): New.
7542
7543 * config.in (HAVE_PNG): New.
7544
7545 * Makefile.in: Add PNG library.
7546
7547 * xfns.c: Add PNG support.
7548
75491999-05-25 Gerd Moellmann <gerd@gnu.org>
7550
7551 * xdisp.c (init_xdisp): Initialize echo_area_message and
7552 previous_echo_area_message to nil.
7553
7554 * keyboard.c (read_char): Rename local variable echo_area_message
7555 because it shadows the global one.
7556
75571999-05-05 Gerd Moellmann <gerd@gnu.org>
7558
7559 * xterm.c (note_mode_line_highlight): Restructured.
7560
7561 * window.c (coordinates_in_window): Handle windows that don't have
7562 a mode line because their buffer's mode-line-format is nil.
7563 Recognize the mode line under x positions that correspond to
7564 flags areas and left scroll bar.
7565
75661999-05-02 Dave Love <fx@gnu.org>
7567
7568 * xterm.c (note_mouse_highlight): Separate help-echo processing
7569 from check on mouse-face so that it works generally.
7570
75711999-04-21 Gerd Moellmann <gerd@gnu.org>
7572
7573 * sound.c (Fplay_sound): Run hook play-sound-hook.
7574 (Qplay_sound_hook): New.
7575
75761999-04-20 Gerd Moellmann <gerd@gnu.org>
7577
7578 * xdisp.c (update_echo_area): Handle echo_area_message.
7579
75801999-04-19 Gerd Moellmann <gerd@gnu.org>
7581
7582 * editfns.c (Fmessage): Use message3.
7583
7584 * print.c (printchar): Set echo_area_message to nil.
7585 (strout): Ditto.
7586
7587 * minibuf.c (read_minibuf): Reset echo message strings to nil.
7588 (Fminibuffer_completion_help): Ditto.
7589
7590 * keyboard.c (cmd_error_internal): Set echo_areA_message.
7591 (command_loop_1): Test echo_areA_message.
7592 (read_char): Ditto.
7593 (record_menu_key): Set echo_area_message to nil.
7594 (Fexecute_extended_command): Test echo_area_message.
7595 (Fexecute_extended_command): Handle echo_area_message.
7596
7597 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
7598 is set.
7599
7600 * editfns.c (Fcurrent_message): If echo_area_message is set,
7601 return a substring of that string.
7602
7603 * dispnew.c (direct_output_for_insert): Test echo_area_message
7604 in addition to echo_area_glyphs.
7605 (set_window_cursor_after_update): Ditto.
7606 (update_frame_1): Ditto.
7607
7608 * alloc.c (Fgarbage_collect): Use message3_nolog to display
7609 old Lisp message string.
7610
7611 * xdisp.c (echo_area_message): New.
7612 (previous_echo_area_message): New.
7613 (syms_of_xdisp): Initialize and staticpro new variables.
7614 (echo_area_display): Display echo_area_message if set.
7615 (message2_nolog): Set echo_area_message and
7616 previous_echo_area_message.
7617 (echo_area_display): Set previous_echo_area_message.
7618 (redisplay_internal): Display echo area if echo_area_message
7619 or previous_echo_area_message are set.
7620 (redisplay_preserve_echo_area): Test/set echo_area_message and
7621 previous_echo_area_message.
7622 (redisplay_window): Test echo_area_message.
7623 (message3_nolog): New.
7624 (message3): New.
7625
7626 * editfns.c (Fformat): Add text properties to the result string
7627 from properties of the format string and properties of string
7628 arguments.
7629
7630 * textprop.c (text_property_list): New.
7631 (add_text_properties_from_list): New.
7632 (extend_property_ranges): New.
7633
76341999-03-29 Gerd Moellmann <gerd@gnu.org>
7635
7636 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
7637 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
7638 Use these symbols for the box face attribute instead of the
7639 removed ones.
7640
76411999-03-12 Gerd Moellmann <gerd@gnu.org>
7642
7643 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
7644 Correct wrong test for slant.
7645
76461999-03-10 Gerd Moellmann <gerd@gnu.org>
7647
7648 * xfaces.c: Use `unspecified' for unspecified face attributes,
7649 use t and nil for on/off.
7650
76511999-03-06 Gerd Moellmann <gerd@gnu.org>
7652
7653 * buffer.c (syms_of_buffer): Extend doc string of
7654 mode-line-format.
7655
7656 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
7657 (first_font_matching): New.
7658 (set_lface_from_font_name): Use it if font name is a pattern.
7659 (font_field_wildcard_p): Removed.
7660
7661 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
7662 Recompute visible height of rows.
7663
7664 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
7665 Don't accept non-strings for help-echo from overlays.
7666
76671999-03-04 Dave Love <fx@gnu.org>
7668
7669 * xterm.c (note_mouse_highlight): Check overlays for help-text
7670 property.
7671 (XTread_socket): Fix compiler warning.
7672
76731999-03-05 Gerd Moellmann <gerd@gnu.org>
7674
7675 * xterm.c (note_mouse_highlight): Don't restrict number of
7676 overlay to 10. Call overlays_at so that it doesn't try to
7677 extend the vector.
7678
7679 * xdisp.c (compute_line_metrics): Compute glyph row's visible
7680 height.
7681
7682 * dispnew.c (row_equal_p): Compare visible row height, only.
7683 (update_text_area): Draw whole line if visible heights of
7684 rows differ.
7685 (update_window_line): Call after_update_window_line_hook
7686 if visible row height has changed.
7687
7688 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
7689 (struct glyph_row): New member visible_height.
7690
7691 * xfaces.c (font_field_wildcard_p): New.
7692 (set_lface_from_font_name): Remove parameter force_p. Accept
7693 font names containing wildcards.
7694
76951999-03-04 Gerd Moellmann <gerd@gnu.org>
7696
7697 * xterm.c (x_after_update_window_line): Clear internal border
7698 when windows_or_buffers_changed.
7699
7700 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
7701 buffer has a nil mode_line_format.
7702
77031999-03-03 Gerd Moellmann <gerd@gnu.org>
7704
7705 * xterm.c (x_setup_relief_colors): Use either background color
7706 or specified color.
7707
7708 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
7709
7710 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
7711
7712 * xterm.c (x_draw_box_rect): New.
7713 (x_draw_glyph_string_box): Renamed from
7714 x_draw_glyph_string_relief. Call x_draw_box_rect.
7715
7716 * xfns.c (QCrelief): New.
7717 (syms_of_xfns): Initialize it.
7718
7719 * dispextern.h (struct glyph): Rename left_shadow_p to
7720 left_box_line_p, right_shadow_p to right_box_line_p.
7721 (MAX_RELIEF_THICKNESS): Removed.
7722 (struct it): Rename members having `relief' in their names
7723 to contain `box' instead.
7724
7725 * xfaces.c (realize_x_face): Handle new box attribute values.
7726 (QCrelief, Qbox): Removed.
7727 (QCshadow, QCcolor, Qraised, Qsunken): New.
7728 (syms_of_xfaces): Initialize new symbols.
7729
77301999-03-02 Gerd Moellmann <gerd@gnu.org>
7731
7732 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
7733
7734 * xfaces.c (LFACE_RELIEF): Removed.
7735 (merge_face_vector_with_property): Remove handling of `:relief'.
7736 (Finternal_set_lisp_face_attribute): Ditto.
7737 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7738 (Finternal_get_lisp_face_attribute): Ditto.
7739 (realize_default_face): Ditto.
7740 (lface_hash): Don't compute hash from relief.
7741
7742 * dispextern.h (struct face): Replace member `relief' by
7743 `box_line_width'. Add member `box'.
7744 (face_box_type): New.
7745
7746 * xterm.c (x_produce_glyphs): If face has overline, add overline
7747 thickness + 1 to ascent.
7748
77491999-03-01 Gerd Moellmann <gerd@gnu.org>
7750
7751 * xterm.c (x_draw_glyph_string): Draw underline, overline,
7752 strike-through, and boxes.
7753 (x_draw_glyph_string_underline): Removed.
7754
7755 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
7756 (Qoverline, Qstrike_through, Qbox): New.
7757 (syms_of_xfaces): Define these symbols.
7758 (check_lface_attrs): Add checks for overline, strike-through,
7759 and box.
7760 (Finternal_set_lisp_face_attribute): Set new attributes.
7761 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
7762 (load_color): Handle new attributes.
7763 (realize_x_face): Ditto.
7764 (merge_face_vector_with_property): Ditto.
7765 (free_face_colors): Ditto.
7766 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
7767 (Finternal_get_lisp_face_attribute): Ditto.
7768 (Finternal_lisp_face_attribute_values): Ditto.
7769
7770 * dispextern.h (lface_attribute_index): Add enumerators for
7771 overstrike, strike-through, and box.
7772 (struct face): Add members for overline, strike-through, and
7773 box.
7774
77751999-02-17 Dave Love <fx@gnu.org>
7776
7777 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
7778 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
7779 files.
7780
77811999-02-16 Gerd Moellmann <gerd@gnu.org>
7782
7783 * keyboard.c (toolbar_items): Call access_keymap with third
7784 parameter 1, so that we don't get inherited toolbar item
7785 definitions.
7786
7787 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
7788 the window end vpos when in empty first line of window.
7789
77901999-02-15 Gerd Moellmann <gerd@gnu.org>
7791
7792 * xfaces.c (set_font_frame_param): New.
7793 (Finternal_set_lisp_face_attribute): Call it.
7794
7795Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7796
7797 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7798 Accept specifications of color for underline.
7799
78001999-02-13 Gerd Moellmann <gerd@gnu.org>
7801
7802 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
7803 `frame' is t, operate on face defaults for new frames. If it
7804 is nil, operate on the selected frame.
7805
78061999-02-12 Gerd Moellmann <gerd@gnu.org>
7807
7808 * dispnew.c (check_matrix_invariants): Put it in #if 0.
7809 (update_window): Put the call to check_matrix_invariants in #if 0.
7810
7811Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7812
7813 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
7814 Remove definition of UNDERLINE_COLOR.
7815
7816Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7817
7818 * xfaces.c (free_face_colors): Free the color for underline.
7819
7820 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
7821 to the GC.
7822
7823Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7824
7825 * dispextern.h (UNDERLINE_COLOR): Defined.
7826 (struct face): Added two new members.
7827 underline_color, underline_defaulted_p.
7828
7829 * xfaces.c (merge_face_vector_with_property):
7830 (check_lface_attrs): Accept the string value for underline.
7831 (Finternal_set_lisp_face_attribute): Likewise.
7832
7833 * xfaces.c (load_color): Change the last argument type to enum
7834 lface_attribute_index from int. And addec code for underling coloring.
7835 (load_face_colors): Pass LFACE_*_INDEX to load_color.
7836
78371999-02-12 Gerd Moellmann <gerd@gnu.org>
7838
7839 * xfns.c (Fx_image_header): Removed.
7840
78411999-02-07 Gerd Moellmann <gerd@gnu.org>
7842
7843 * xterm.c: Don't include <bitmaps/gray>.
7844 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
7845
7846 * xfns.c (Fx_image_header): Add missing `\n\'.
7847 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
7848
78491999-02-01 Gerd Moellmann <gerd@gnu.org>
7850
7851 * xterm.c (x_scroll_bar_create): Set background pixel from
7852 specified scroll bar color.
7853 (x_scroll_bar_set_handle): Use scroll bar foreground color.
7854
7855 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
7856 (x_set_scroll_bar_background): Ditto.
7857
7858 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
7859
7860 * xfns.c (x_default_scroll_bar_color_parameter): New.
7861 (Fx_create_frame): Call it.
7862
78631999-01-31 Gerd Moellmann <gerd@gnu.org>
7864
7865 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
7866 values in x_output structure.
7867 (Qscroll_bar_foreground, Qscroll_bar_background): New.
7868 (syms_of_xfns): Initialize these symbols.
7869
7870 * xterm.h (struct x_output): Add scroll bar pixel colors.
7871
7872 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
7873 (x_set_scroll_bar_foreground): New.
7874 (x_set_scroll_bar_background): New.
7875
26901792
DL
78761999-01-12 Gerd Moellmann <gerd@gnu.org>
7877
7878 * xdisp.c (handle_single_display_prop): New.
7879 (handle_display_prop): Call it.
7880 (handle_raise_prop): Removed.
7881 (handle_height_prop): Removed.
7882 (handle_space_width_prop): Removed.
7883 (handle_face_prop): Remove handling of raised text.
7884 (handle_display_prop): Do it here.
7885
7886 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
7887 (RAISE_PROP_IDX): Removed.
7888 (HEIGHT_PROP_IDX): Removed.
7889 (SPACE_WIDTH_PROP_IDX): Removed.
7890
7891 * xdisp.c (Qdisplay): Replaces Qglyph.
7892 (handle_display_prop): Formerly handle_glyph_prop.
7893
78941999-01-11 Gerd Moellmann <gerd@gnu.org>
7895
7896 * xdisp.c (reseat_to_string): Set position in display vector to -1.
7897 (handle_stop): Set position in display vector to -1. Don't
7898 check overlay strings when set up to deliver characters from a
7899 display vector.
7900 (set_iterator_to_next): At the end of a run of characters from a
7901 display vector, check whether the display vector display replaces
7902 the display of a character.
7903
79041999-01-05 Gerd Moellmann <gerd@gnu.org>
7905
7906 * xfaces.c (init_frame_faces): Don't realize faces if frame's
7907 X window hasn't been created yet.
7908
79091998-12-06 Gerd Moellmann <gerd@gnu.org>
7910
7911 * sound.c: New.
7912
79131998-12-04 Gerd Moellmann <gerd@gnu.org>
7914
7915 * config.in (HAVE_SOUND): New.
7916
7917 * emacs.c (main): Call syms_of_sound and init_sound.
7918
7919 * Makefile.in (obj): Add sound.o.
7920
7921 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
7922
7923 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
7924 (HAVE_SYS_SOUNDCARD_H): New.
7925
79261998-12-03 Gerd Moellmann <gerd@gnu.org>
7927
7928 * buffer.h (struct buffer): indicate_empty_lines renamed from
7929 indicate_zv_lines.
7930
7931 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
7932 (default-indicate-zv-lines): Likewise.
7933
7934 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
7935 to indicate_empty_line_p.
7936
7937 * xdisp.c (reseat_at_next_visible_line_start): Reset method
7938 to next_element_from_buffer.
7939
7940 * frame.c (make_frame): Set n_current_toolbar_items to 0.
7941
7942 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
7943 and `N-'.
7944
7945 * xfns.c (xbm_scan): New.
7946 (xbm_read_hexint): Removed.
7947 (xbm_read_bitmap_file_data): Use xbm_scan.
7948
7949 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
7950
79511998-12-02 Gerd Moellmann <gerd@gnu.org>
7952
7953 * xfns.c (xbm_read_hexint): New.
7954 (xbm_read_bitmap_file_data): New.
7955 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
7956 instead of XReadBitmapFileData.
7957
7958 * xdisp.c (handle_raise_prop): Compute voffset from current font.
7959
7960 * xfaces.c (face_with_height): New.
7961
7962 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
7963 (eval_form): Renamed from eval_mode_element.
7964 (handle_face_prop): Use it.
7965 (Qheight): Replaces Qsmaller.
7966 (handle_height_prop): Replaces handle_smaller_prop.
7967 (handle_face_prop): If iterator's font_height is not an
7968 integer, evaluate it to get the font height to use.
7969
7970 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
7971 (struct it): Use `font_height' instead of `smaller'.
7972
79731998-12-01 Gerd Moellmann <gerd@gnu.org>
7974
7975 * xdisp.c (reseat_1): New.
7976 (reseat): Call it.
7977 (move_it_vertically_backward): Ditto.
7978 (redisplay_window): Don't abort when cursor not found in recenter.
7979
79801998-11-30 Gerd Moellmann <gerd@gnu.org>
7981
7982 * xdisp.c (reseat_at_next_visible_line_start): When not
7983 currently delivering display elements from the current buffer,
7984 restore buffer position first.
7985 (init_from_display_pos): Don't set IT's position from the
7986 position passed to this function.
7987
79881998-11-28 Gerd Moellmann <gerd@gnu.org>
7989
7990 * config.in (PROTO): Removed.
7991
7992 * xterm.h: Change PROTO to P_.
7993
79941998-11-26 Gerd Moellmann <gerd@gnu.org>
7995
7996 * xterm.c (take_vertical_position_into_account): New.
7997 (x_produce_image_glyph): Call it.
7998 (x_produce_stretch_glyph): Ditto.
7999 (x_produce_glyphs): Ditto.
8000 (x_fill_glyph_string): Adjust base line for glyph's voffset.
8001 (x_fill_composite_glyph_string): Ditto.
8002 (x_fill_image_glyph_string): Ditto.
8003 (x_fill_stretch_glyph_string): Ditto.
8004
8005 * xdisp.c (display_line): Always compute row height from
8006 max_ascent and max_descent.
8007
8008 * dispextern.h (struct glyph): Add voffset.
8009 (struct it): Replace height by descent, max_height by max_descent.
8010
8011 * xterm.c (x_append_glyph): Set voffset
8012 (x_append_stretch_glyph): Ditto.
8013 (x_produce_image_glyph): Ditto.
8014 (x_produce_glyphs): Take voffset into account.
8015 (x_produce_image_glyph): Ditto.
8016 (x_produce_stretch_glyph): Ditto.
8017
8018 * dispextern.h (struct it): Add voffset.
8019 * xdisp.c (push_it): Save voffset.
8020 (pop_it): Restore it.
8021
8022 * xdisp.c (it_props): Add entry for `raise'.
8023 (handle_raise_prop): New.
8024
8025 * dispextern.h (RAISE_PROP_IDX): New.
8026
8027 * xdisp.c (Qraise): New.
8028 (syms_of_xdisp): Define Qraised.
8029
8030 * xterm.c (x_scroll_bar_move): Clear to the left and right
8031 of toolkit scroll bars differently.
8032 (x_scroll_bar_move): Removed.
8033 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
8034
8035 * dispextern.h: Make it compilable --with-x=no.
8036 * alloc.c: Ditto.
8037 * emacs.c: Ditto.
8038 * dispnew.c: Ditto.
8039 * keyboard.c: Ditto.
8040 * term.c: Ditto.
8041 * xdisp.c: Ditto.
8042 * xfaces.c: Ditto.
8043 * xfns.c: Ditto.
8044 * xmenu.c: Ditto.
8045
80461998-11-25 Gerd Moellmann <gerd@gnu.org>
8047
8048 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
8049
80501998-11-24 Gerd Moellmann <gerd@gnu.org>
8051
8052 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
8053 update slider size, only.
8054 (xm_scroll_callback): Set dragging member of the scroll bar.
8055 (xt_action_hook): Reset last_scroll_bar_part.
8056 (XTredeem_scroll_bar): Reset bar->dragging to nil.
8057
26901792
DL
8058 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
8059 window on newly created frames that don't have one.
8060
80611998-11-23 Gerd Moellmann <gerd@gnu.org>
8062
8063 * xdisp.c (restore_overlay_strings): Removed.
8064 (restore_dpvec): Removed.
8065 (init_from_display_pos): Inline both functions above.
8066
8067 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
8068 (parse_image_spec): Handle it.
8069 (xbm_format): Use it.
8070 (xpm_format): Ditto.
8071 (pbm_format): Ditto.
8072 (jpeg_format): Ditto.
8073 (tiff_format): Ditto.
8074 (gif_format): Ditto.
8075 (gs_format): Ditto.
8076
8077 * xdisp.c (set_window_cursor): Removed.
8078 (redisplay_internal): Case cursor motion in cursor line of
8079 selected window; use set_cursor_from_row.
8080
80811998-11-22 Gerd Moellmann <gerd@gnu.org>
8082
8083 * widget.c (EmacsFrameSetCharSize): Take widget's border width
8084 into account.
8085
80861998-11-21 Gerd Moellmann <gerd@gnu.org>
8087
8088 * xterm.c (expose_frame): Redraw menu bar window.
8089
8090 * xdisp.c (display_menu_bar): Record hpos instead of x-position
8091 in menu item.
8092
8093 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
8094 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
8095
8096 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
8097 to determine vertical_scroll_bar_extra.
8098 (EmacsFrameSetCharSize): Ditto.
8099 * xfns.c (x_figure_window_size): Ditto.
8100
8101 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
8102 (x_draw_bitmap): Ditto.
8103
8104 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
8105 * xfaces.c (realize_basic_faces): Realize it.
8106
81071998-11-20 Gerd Moellmann <gerd@gnu.org>
8108
8109 * xmenu.c (xmenu_show): Add workaround for remaining button grab
8110 under LessTif Use the widget of the frame as parent for the
8111 menu, again.
8112
81131998-11-19 Gerd Moellmann <gerd@gnu.org>
8114
8115 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
8116 When EnterNotify, don't generate a mouse movement event if
8117 notification is from a busy-cursor child window.
8118
8119 * xterm.h (struct x_output): Add busy_window, remove cursor.
8120
8121 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
8122 Use a transparent window to display the busy-cursor.
8123 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
8124
81251998-11-17 Gerd Moellmann <gerd@gnu.org>
8126
8127 * xdisp.c (check_window_end): New, for debugging.
8128 (CHECK_WINDOW_END): New.
8129 (try_window_id): Use it.
8130
8131 * xterm.c (process_expose_from_menu): Return int.
8132
8133 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
8134 TOOLBAR_EVENT events in last_nonmenu_event.
8135
81361998-11-16 Gerd Moellmann <gerd@gnu.org>
8137
8138 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
8139 window end isn't reliable, so set window_end_valid to nil.
8140 (redisplay_internal): If overlay arrow has changed, set
8141 windows_or_buffers_changed to redisplay thoroughly.
8142
8143 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
8144 necessary.
8145
8146 * xfns.c (file_dialog_cb): New.
8147 (Fx_file_dialog): New.
8148 * fileio.c (Fread_file_name): Call it.
8149
8150 * xrdb.c (x_load_resources): Add default resoures for file
8151 selection dialog.
8152
81531998-11-14 Gerd Moellmann <gerd@gnu.org>
8154
8155 * xterm.c (note_mouse_highlight): Don't highlight when popup
8156 is active.
8157
26901792
DL
8158 * keyboard.c (timer_check): Inhibit busy cursor around calls to
8159 timer-event-handler. This busy cursor tends to be anoying if
8160 fontifying stealthily.
8161
8162 * dispnew.c (direct_output_for_insert): Give up if current row
8163 contains trailing whitespace.
8164
81651998-11-13 Gerd Moellmann <gerd@gnu.org>
8166
8167 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
8168
8169 * xdisp.c (handle_fontified_prop): New.
8170 (Vfontification_functions): New.
8171 (Qfontification_functions): New.
8172 (it_props): Add handle_fontified_prop.
8173
81741998-11-12 Gerd Moellmann <gerd@gnu.org>
8175
8176 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
8177 Otherwise, under LessTif, after the popup has gone, all button
8178 press events come in for the frame's widget, and release events
8179 come in for the edit_widget.
8180 * xterm.c (XTread_socket): Remove workaround for that problem.
8181 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
8182 XmScrollBarSetValues.
8183 (SET_SAVED_MENU_EVENT): Give it statement form.
8184
26901792
DL
8185 * xfaces.c (display_message): If waiting_for_input, don't display
8186 the message.
8187
8188 * window.c (scroll_command): If not acting on current_buffer,
8189 make redisplay consider all windows.
8190
8191 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
8192
8193 * xdisp.c (handle_glyph_prop): Set it->object for images to
8194 the object having the glyph property.
8195
8196 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
8197 invisible.
8198
81991998-11-11 Gerd Moellmann <gerd@gnu.org>
8200
8201 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
8202 (x_term_init): Create the gray pixmap.
8203 (x_setup_relief_color): Use it.
8204 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
8205 internal border at the top of a frame.
8206 (x_init_glyph_string): Likewise.
8207 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
8208 full-width lines.
8209 (XTflash): Don't flash the toolbar window.
8210
8211 * xterm.c (XTread_socket): Workaround for LessTif popup menus
8212 in case of ButtonPress events.
8213
82141998-11-10 Gerd Moellmann <gerd@gnu.org>
8215
8216 * xrdb.c (x_load_resources): Add grey background colors as
8217 defaults for menus, scroll bars, and dialogs.
8218
8219 * insdel.c (prepare_to_modify_buffer): Move setting
8220 windows_or_buffers_changed from modify_region here.
8221
8222 * xfns.c (Fx_show_tip): Inhibit redisplay.
8223 (Fx_hide_tip): Ditto.
8224 (Fx_image_header): New.
8225
82261998-11-09 Gerd Moellmann <gerd@gnu.org>
8227
8228 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
8229 when clearing current window matrices.
8230
82311998-11-08 Gerd Moellmann <gerd@gnu.org>
8232
8233 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
8234 position from a string position. Use the right end position
8235 if the property spans a whole overlay string.
8236
82371998-11-07 Gerd Moellmann <gerd@gnu.org>
8238
8239 * xmenu.c (menubar_selection_callback): Remove workaround for
8240 Lesstif not calling XmNpopdownCallback because it doesn't
8241 handle the case where users don't select any menu item.
8242
26901792
DL
8243 * insdel.c (modify_region): Set windows_or_buffers_changed.
8244
8245 * buffer.c (set_buffer_internal): Don't set
8246 windows_or_buffers_changed.
8247
26901792
DL
8248 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
8249
26901792
DL
8250 * xmenu.c (menubar_selection_callback): Add workaround for
8251 Lesstif not calling XmNpopdownCallback.
8252
8253 * xdisp.c (eval_mode_element): New.
8254 (eval_mode_handler): New.
8255 (display_mode_element): Use eval_mode_element.
8256
8257 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
8258 Remove code looking at text props of default value.
8259
8260 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
8261
26901792
DL
82621998-11-06 Gerd Moellmann <gerd@gnu.org>
8263
8264 * xmenu.c (single_submenu): Set button_type of menu to
8265 BUTTON_TYPE_NONE.
8266 (single_submenu): Likewise for panes and menu items.
8267 (set_frame_menubar): Set button_type of menu bar to none.
8268 (xmenu_show): Likewise.
8269 (single_submenu): Set widget values selected slot.
8270 (xmenu_show): Likewise.
8271
26901792
DL
8272 * xmenu.c (push_menu_item): Add parameters `type' and
8273 `selected'. Store it in menu_items.
8274 (MENU_ITEMS_ITEM_TYPE): New.
8275 (MENU_ITEMS_ITEM_SELECTED): New.
8276 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
8277
8278 * xfns.c (clear_image_cache): Get the current time, before
8279 doing anything.
8280 (cache_image): Set prev pointer of next image.
8281 (clear_image_cache): Clear current matrices if any image was
8282 freed.
8283
8284 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
8285
8286 * xfns.c (x_set_cursor): New.
8287 (Fx_display_busy_cursor): New.
8288 (Fx_undisplay_busy_cursor): New.
8289
8290 * xterm.h (struct x_output): Add busy_cursor.
8291
8292 * xfns.c (Vx_busy_pointer_shape): New.
8293 (x_set_mouse_color): Create busy cursor.
8294
8295 * process.c (wait_reading_process_input): Show and hide busy
8296 cursor.
8297
8298 * keyboard.c (command_loop_1): Display busy cursor.
8299
8300 * eval.c (Fsignal): Hide busy cursor.
8301
8302 * buffer.c (set_buffer_internal): Don't set
8303 windows_or_buffers_changed.
8304
8305 * xterm.c (redo_mouse_highlight): New.
8306
83071998-11-04 Gerd Moellmann <gerd@gnu.org>
8308
26901792
DL
8309 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
8310 (x_build_heuritic_mask): New.
8311 (lookup_image): Call it.
8312
8313 * xterm.c (note_toolbar_highlight): Always set up help_echo.
8314 (previous_help_echo): New.
8315 (XTread_socket): Generate help event with nil message when
8316 leaving a region with help-echo.
8317 (note_mouse_highlight): Handle `help-echo' over text.
8318 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
8319 CirculateRequest.
8320 (clear_mouse_face): Don't clear if tooltip is shown.
8321 (XTread_socket): Redo mouse-highlight after tooltip is gone.
8322 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
8323
8324 * keyboard.c (Vshow_help_function): New.
8325 (read_char): Use it.
8326
83271998-11-03 Gerd Moellmann <gerd@gnu.org>
8328
8329 * xfns.c (x_create_tip_frame): New.
8330 (Fx_show_tip): New.
8331 (Fx_hide_tip): New.
8332
8333 * xterm.c (x_destroy_window): Handle case that we don't have
8334 a widget.
8335
8336 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
8337 to full_width_p. Add internal_border_p.
8338
83391998-11-02 Gerd Moellmann <gerd@gnu.org>
8340
8341 * xterm.c (note_mode_line_highlight): Check the charpos of
8342 the glyph under the mouse pointer before accessing text
8343 properties at that position.
8344
83451998-11-01 Gerd Moellmann <gerd@gnu.org>
8346
8347 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
8348
8349 * xdisp.c (auto-raise-toolbar-buttons): New.
8350 (build_desired_toolbar_string): Handle the flag.
8351 (toolbar-button-margin): New.
8352 (toolbar-button-relief): New.
8353 (build_desired_toolbar_string): Use margin and relief.
8354
8355 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
8356 for FreeBSD.
8357 (note_mode_line_highlight): New.
8358 (note_mouse_highlight): Call it.
8359
83601998-10-31 Gerd Moellmann <gerd@gnu.org>
8361
8362 * s/freebsd.h (NARROWPROTO): New.
8363
8364 * xdisp.c (display_string): New parameter face_string.
8365 (display_mode_element): When displaying a symbol with a string
8366 value, use text properties from the symbol's default value, maybe.
8367
8368 * xrdb.c (x_load_resources): Add font defaults for menus and
8369 dialogs.
8370
83711998-10-30 Gerd Moellmann <gerd@gnu.org>
8372
8373 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
8374
83751998-10-29 Gerd Moellmann <gerd@gnu.org>
8376
8377 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
8378 produced for characters with codes < 32 under certain
8379 circumstances.
8380
8381 * xdisp.c (redisplay_window): Handle values of PT in front
8382 of invisible, intangible text.
8383 (try_window_id): Set overlay_arrow_seen to zero before
8384 displaying lines.
8385 (display_mode_element): Assign to glyphs written for a mode
8386 line spec `%x' as object the Lisp format string, as position
8387 the position of the `%' in that string.
8388 (display_string): If displaying a C string, optionally get
8389 the face to use from a Lisp string.
8390
8391 * xterm.c (expose_window_tree): Include mode line height.
8392
8393 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
8394
83951998-10-27 Gerd Moellmann <gerd@gnu.org>
8396
8397 * xterm.c (note_mouse_highlight): Change mouse pointer shape
8398 over mode line.
8399
84001998-10-26 Gerd Moellmann <gerd@gnu.org>
8401
8402 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
8403
8404 * xdisp.c (redisplay_window): If mode line height has changed,
8405 arrange for a thorough immediate redisplay using the correct mode
8406 line height.
8407 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
8408
8409 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
8410 (CURRENT_MODE_LINE_HEIGHT): New.
8411 (DESIRED_MODE_LINE_HEIGHT): New.
8412
8413 * keyboard.c (make_lispy_event): Add string and string position
8414 info to mouse-click events.
8415 (read_key_sequence): Handle `local-map' property of mode line
8416 strings.
8417
8418 * keyboard.h (POSN_STRING): New.
8419
84201998-10-25 Gerd Moellmann <gerd@gnu.org>
8421
8422 * dispnew.c (mode_line_string): Mew.
8423
8424 * xterm.c (xt_action_hook): New.
8425 (x_create_toolkit_scroll_bar): Add action hook.
8426 (xm_scroll_callback): Implement dragging.
8427
8428 * keyboard.c (Qend_scroll): New.
8429 (scroll_bar_parts): Add it.
8430
8431 * termhooks.h (scroll_bar_end_scroll): New.
8432
8433 * xterm.c (XTread_socket): Bug fix.
8434
84351998-10-24 Gerd Moellmann <gerd@gnu.org>
8436
8437 * xdisp.c (redisplay_window): Finish scroll bars after
8438 redisplaying toolbar.
8439
8440 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
8441 (syms_of_keyboard): Add Qbottom.
8442
8443 * termhooks.h (scroll_bar_to_top): New.
8444 (scroll_bar_to_bottom): New.
8445
8446 * xdisp.c (redisplay_window): Always resize toolbar window if
8447 auto_resize_toolbar_p is non-zero.
8448 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
8449 (window_box): New.
8450 (window_box_height): New.
8451 (window_box_width): New.
8452 (window_box_left): New.
8453 (window_box_right): New.
8454 (window_box_edges): New.
8455
84561998-10-23 Gerd Moellmann <gerd@gnu.org>
8457
8458 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
8459 XawScrollbarSetThumb in FreeBSD.
8460 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
8461 to true.
8462
8463 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
8464 is out of range.
8465
8466 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
8467 (x_term_init): Initialize it.
8468
8469 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
8470
8471 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
8472 cursor.
8473
84741998-10-22 Gerd Moellmann <gerd@gnu.org>
8475
8476 * keyboard.c (make_lispy_event): Handle scroll_bar_click
8477 differently when using toolkit scroll bars.
8478
8479 * xterm.c (x_send_scroll_bar_event): New.
8480 (x_scroll_bar_to_input_event): New.
8481 (xaw3d_scroll_callback): New.
8482 (xaw3d_jump_callback): New.
8483 (xm_scroll_callback): New.
8484 (x_toolkit_scroll_p): New.
8485 (XTread_socket): Handle scroll bar client message.
8486 (x_term_init): Initialize Xatom_Scrollbar.
8487 (x_scroll_bar_create): Set cursor.
8488 (xm_scroll_callback):
8489 (x_create_toolkit_scroll_bar): New.
8490 (x_set_toolkit_scroll_bar_thumb): New.
8491 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
8492 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
8493
8494 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
8495
84961998-10-21 Gerd Moellmann <gerd@gnu.org>
8497
8498 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
8499 (XTread_socket): Don't handle mouse button events for scroll bars
8500 if using toolkit scroll bars.
8501 (XTset_vertical_scroll_bar): Set thumb size and position for
8502 Athena scroll bar.
8503
8504 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
8505
8506 * xterm.c (XTread_socket): Dispatch expose event to widget
8507 if using toolkit scroll bars.
8508 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
8509 (x_scroll_bar_create): Create and show a scroll bar widget
8510 if using toolkit scroll bars.
8511 (x_scroll_bar_move): Handle tookit scroll bars.
8512
8513 * Makefile.in (LIBW): Use Xaw3d if present.
8514
8515 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
8516 (HAVE_XAW3D): New.
8517
8518 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
8519 (HAVE_XAW3D): New.
8520
8521 * xterm.c (XTset_vertical_scroll_bar): Correct position of
8522 right vertical scroll bar.
8523
85241998-10-20 Gerd Moellmann <gerd@gnu.org>
8525
8526 * xfns.c (xpm_load): Support reading XPM images from string
8527 buffers containing data in the same format as an XPM file.
8528 Support `:color-symbols'.
8529 (xpm_format): Add `:data'.
8530 (xpm_keyword_index): Add XPM_DATA.
8531 (syms_of_xfns): Add `:color-symbols'.
8532 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
8533 (xpm_valid_color_symbols_p): New.
8534 (xpm_image_p): Call it.
8535
8536 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
8537 attribute to the image if item is not enabled.
8538
8539 * xfns.c (x_laplace): New.
8540 (x_laplace_read_row): New.
8541 (x_laplace_write_row): New.
8542 (lookup_image): Handle common image attributes here. New
8543 attribute `:algorithm'.
8544
8545 * xfaces.c (clear_face_cache): Call clear_image_cache.
8546
8547 * xterm.c (x_inverted_image_mask): Removed.
8548 (x_draw_image_foreground_1): New.
8549 (x_draw_image_glyph_string): Draw images with mask to a temporary
8550 pixmap to reduce flickering.
8551
8552 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
8553 (display_toolbar_line): Remove parameter `margin'.
8554
85551998-10-19 Gerd Moellmann <gerd@gnu.org>
8556
8557 * xdisp.c (toolbar_lines_needed): New.
8558 (auto-resize-toolbars): New.
8559
8560 * xfns.c (cache_image): Correct call to xrealloc.
8561
8562 * dispnew.c (Fset_toolbar_height): Removed.
8563
8564 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
8565 FRAME_MENU_BAR_LINES.
8566
8567 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
8568 instead of FRAME_MENU_BAR_LINES.
8569 (check_frame_size): Ditto.
8570
8571 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
8572 instead of FRAME_MENU_BAR_LINES.
8573 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
8574 (build_frame_matrix): Ditto.
8575 (change_frame_size_1): Ditto.
8576
8577 * frame.h (FRAME_TOOLBAR_LINES): New.
8578 (FRAME_TOP_MARGIN): New.
8579
8580 * window.c (struct save_window_data): Add frame_toolbar_lines.
8581 (Fset_window_configuration): Handle toolbar lines.
8582 (Fcurrent_window_configuration): Save toolbar lines.
8583
8584 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
8585
8586 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
8587
8588 * frame.h (struct frame): Rename top_margin to toolbar_lines.
8589
8590 * xfns.c (x_frame_parms): Add `toolbar-lines'.
8591 (x_set_toolbar_lines): New.
8592
8593 * keyboard.c (cmd_error_internal): Bug fix.
8594
8595 * xterm.c: Remove double include of syssignal.h.
8596
85971998-10-18 Gerd Moellmann <gerd@gnu.org>
8598
8599 * xterm.c (x_toolbar_item): New.
8600 (x_handle_toolbar_click): Use it.
8601 (note_toolbar_highlight): Use it.
8602
8603 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
8604 and toolbar_items_vectors.
8605
8606 * xterm.c (help_echo): New.
8607 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
8608 (x_set_glyph_string_gc): Handle them.
8609 (x_after_update_window_line): Don't do anything in pseudo-windows.
8610 (x_produce_image_glyph): Take image margin and face relief into
8611 account.
8612 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
8613 (x_draw_glyph_string_background): Optimize case when face has
8614 relief.
8615 (x_setup_relief_color): Take frame instead of glyph string
8616 parameter.
8617 (x_draw_relief_rect): New.
8618 (x_draw_glyph_string_relief): Call it.
8619 (x_draw_image_glyph_string_foreground): Handle margin and image
8620 relief.
8621 (x_draw_image_glyph_string_background): Ditto.
8622 (expose_frame): Redraw toolbar window.
8623 (expose_window): Don't draw cursor for pseudo-windows.
8624 (x_y_to_hpos_vpos): Handle pseudo-windows.
8625 (frame_to_window_pixel_xy): New.
8626 (note_mouse_highlight): Call note_toolbar_highlight.
8627 (x_handle_toolbar_click): New.
8628 (note_toolbar_highlight): New.
8629 (show_mouse_face): Change int parameter `hl' to parameter of
8630 type enum draw_glyphs_face. Handle image highlighting.
8631 (XTread_socket): Return a HELP_EVENT input event if help_echo is
8632 non-nil. Use x_handle_toolbar_click.
8633
8634 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
8635
8636 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
8637 IMAGE_BOOL_VALUE.
8638 (parse_image_spec): Handle them.
8639 (image_spec_value): Additional parameter found.
8640 (free_image): Remove image from the vector `images' of the
8641 image cache.
8642 (clear_image_cache): Additional parameter force_p.
8643 (Fclear_image_cache): New.
8644 (x_find_image_file): New.
8645 (xbm_load): Handle `:margin' and `:relief'. Use
8646 x_find_image_file.
8647 (xpm_load): Likewise.
8648 (pbm_load): Likewise.
8649 (jpeg_load): Likewise.
8650 (tiff_load): Likewise.
8651 (gif_load): Likewise.
8652
8653 * keyboard.c (Qhelp_echo): New symbol.
8654 (read_char): Handle `toolbar' and `help_echo' events.
8655 (kbd_buffer_get_event): Handle HELP_ECHO input event.
8656 (make_lispy_event): Handle TOOLBAR_EVENT.
8657 (toolbar_items): New.
8658 (process_toolbar_item): New.
8659 (PROP): New.
8660 (init_toolbar_items): New.
8661 (append_toolbar_item): New.
8662 (read_char_x_menu_prompt): Handle `toolbar' event.
8663 (read_key_sequence): Ditto.
8664
8665 * xfaces.c (Qtoolbar): New.
8666 (realize_basic_faces): Realize `toolbar' face.
8667 (face_at_string_position): Remove parameter modeline_p, add
8668 base_face_id.
8669
8670 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
8671 to read data.
8672
86731998-10-17 Gerd Moellmann <gerd@gnu.org>
8674
8675 * xdisp.c (init_iterator): Replace parameter modeline_p with
8676 base_face_id.
8677 (next_element_from_string): Call get_next_display_element
8678 recursively after handling text properties.
8679 (prepare_menu_bars): Call update_toolbar.
8680 (update_toolbar): New.
8681 (build_desired_toolbar_string): New.
8682 (display_toolbar_line): New.
8683 (redisplay_toolbar): New.
8684 (toolbar_item_info): New.
8685 (redisplay_window): Call redisplay_toolbar.
8686 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
8687
8688 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
8689 window.
8690 (clear_desired_matrices): Ditto.
8691 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
8692 (free_glyphs): Free matrices of toolbar window.
8693 (update_frame): Update toolbar window.
8694 (change_frame_size_1): Take toolbar into account.
8695 (Fset_toolbar_height): New.
8696
8697 * dispextern.h (struct it): Remove member modeline_p, add
8698 base_face_id.
8699 (struct image): Add members relief and margin.
8700 (IMAGE_ASCENT): Include margin in height.
8701
87021998-10-14 Gerd Moellmann <gerd@gnu.org>
8703
8704 * xfns.c (Fclear_image_cache): New.
8705
8706 * xfaces.c (realize_basic_faces): Realize toolbar face.
8707 (face_at_string_position): Remove parameter modeline_p, add
8708 base_face_id.
8709
8710 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
8711
87121998-10-13 Gerd Moellmann <gerd@gnu.org>
8713
8714 * keyboard.c (syms_of_keyboard): Intern `:help'.
8715
87161998-10-12 Gerd Moellmann <gerd@gnu.org>
8717
8718 * xterm.c (note_toolbar_highlight): New.
8719 (note_mouse_highlight): Call it.
8720
8721 * window.c (window_from_coordinates): Additional parameter toolbar_p.
8722 (coordinates_in_window): Handle toolbar window.
8723
8724 * keyboard.c (toolbar_items): New.
8725 (process_toolbar_item): New.
8726 (parse_toolbar_item): New.
8727 (init_toolbar_items): New.
8728 (append_toolbar_item): New.
8729
8730 * dispextern.h (enum toolbar_item_idx): New.
8731 (enum toolbar_item_image): New.
8732
8733 * frame.h (struct frame): Add toolbar-related members.
8734
8735 * xfaces.c (face_at_string_position): Remove assertion that
8736 current_buffer == window's buffer. This is not the case when
8737 called for the toolbar window.
8738
8739 * frame.c (make_frame): Initialize toolbar members.
8740
8741 * alloc.c (mark_object): Mark toolbar data of frames.
8742
8743 * frame.h (struct frame): Add toolbar-related members
8744 toolbar_window, desired_toolbar_items, current_toolbar_items,
8745 desired_toolbar_string, current_toolbar_string,
8746 n_desired_toolbar_items, n_current_toolbar_items. Add
8747 window_height.
8748
8749 * xterm.c (x_after_update_window_line): Don't draw bitmap
8750 areas for pseudo-windows.
8751 (expose_frame): Handle toolbar window.
8752 (expose_window): Don't do cursor stuff for pseudo-windows.
8753
8754 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
8755
87561998-10-11 Gerd Moellmann <gerd@gnu.org>
8757
8758 * frame.c (make_frame): Initialize toolbar_window.
8759
8760 * alloc.c (mark_object): Make the toolbar window.
8761
8762 * dispnew.c (update_frame): Update frame's toolbar_window.
8763 (clear_current_matrices): Likewise.
8764 (clear_desired_matrices): Likewise.
8765 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
8766 (free_glyphs): Free the toolbar window and its matrices.
8767
8768 * frame.h (struct frame): Add toolbar_window.
8769
8770 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
8771 with relief.
8772
87731998-10-10 Gerd Moellmann <gerd@gnu.org>
8774
8775 * dispnew.c (buffer_posn_from_coords): Don't screw up if
8776 window start is not in the range BEGV..ZV.
8777
87781998-10-09 Gerd Moellmann <gerd@gnu.org>
8779
8780 * xdisp.c (try_scrolling): Experimentally handle the case
8781 that scroll-preserve-screen-position is set to `always'.
8782
8783 * window.c (Vscroll_preserve_screen_position): Replacement for
8784 scroll_preserve_screen_position.
8785
87861998-10-08 Gerd Moellmann <gerd@gnu.org>
8787
8788 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
8789 doesn't like it.
8790 * xdisp.c: Ditto.
8791
8792 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
8793
87941998-10-06 Gerd Moellmann <gerd@gnu.org>
8795
8796 * minibuf.c (Fminibuffer_complete_word): Fix computation of
8797 i_byte when prompts are inserted into minibuffers.
8798
8799 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
8800 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
8801 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
8802
88031998-10-04 Gerd Moellmann <gerd@gnu.org>
8804
8805 * xdisp.c (make_cursor_line_fully_visible): New.
8806 (try_scrolling): New.
8807 (redisplay_window): Move scrolling code to try_scrolling.
8808 (make_cursor_line_fully_visible): Handle case of window too small
8809 to show a single line.
8810 (redisplay_window): Case forced window start---use
8811 make_cursor_line_fully_visible.
8812 (redisplay_window): Case cursor movement via current matrix.
8813 If ending up on a partially visible line, make it fully visible
8814 instead of recentering.
8815 (try_scrolling): Additional parameter scroll_smoothly.
8816
8817 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
8818
88191998-09-28 Gerd Moellmann <gerd@gnu.org>
8820
8821 * window.c (window_scroll_pixel_based): Bug fix: vpos used
8822 instead of y-position for scroll-preserved-screen-position.
8823
88241998-09-07 Gerd Moellmann <gerd@gnu.org>
8825
8826 * dispnew.c (update_frame_line): If current row is not enabled,
8827 write the whole line.
8828
88291998-09-06 Gerd Moellmann <gerd@gnu.org>
8830
8831 * lisp.h (HAVE_FACES): Removed.
8832
8833 * dispextern.h (HAVE_FACES): Removed.
8834
8835 * config.in (HAVE_FACES): Removed.
8836
8837 * dispnew.c (HAVE_FACES): Removed.
8838
8839 * xdisp.c (HAVE_FACES): Removed.
8840
8841 * xfaces.c (HAVE_FACES): Removed.
8842
88431998-09-05 Gerd Moellmann <gerd@gnu.org>
8844
8845 * xdisp.c (init_iterator): If face_change_count is non-zero,
8846 free realized faces.
8847
8848 * xfaces.c (free_all_realized_faces): Make it externally visible.
8849 (Finternal_set_lisp_face_attribute): Increment
8850 windows_or_buffers_changed.
8851
8852 * dispnew.c (direct_output_for_insert): Give up if
8853 face_change_count is non-zero.
8854 (direct_output_forward_char): Ditto.
8855
8856 * xfaces.c (face_change_count): New.
8857
88581998-09-04 Gerd Moellmann <gerd@gnu.org>
8859
8860 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
8861 of range.
8862
88631998-09-03 Gerd Moellmann <gerd@gnu.org>
8864
8865 * term.c (Ftty_display_color_p): New.
8866
88671998-09-02 Gerd Moellmann <gerd@gnu.org>
8868
8869 * xfaces.c (Ftty_defined_colors): New.
8870
8871 * xterm.c (x_produce_glyphs): Fix computation of
8872 contains_overlapping_glyphs_p for ASCII.
8873
8874 * dispnew.c (Fshow_cursor): Don't change cursor state while
8875 redisplaying.
8876 (direct_output_for_insert): If a glyph with lbearing or rbearing
8877 is among the new glyphs, set row flag contains_overlapping_glyph_p.
8878
88791998-09-01 Gerd Moellmann <gerd@gnu.org>
8880
8881 * term.c (OUTPUT_IF): Make replacement text have statement form.
8882 (OUTPUT1_IF): Ditto.
8883 (TS_italic_mode, TS_end_italic_mode): Removed.
8884 (TS_bold_mode): Removed.
8885 (TS_underscore_mode, TS_end_underscore_mode): Removed.
8886 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
8887 (TS_enter_reverse_mode): New.
8888 (TS_enter_underline_mode, TS_exit_underline_mode): New.
8889 (TN_magic_cookie_glitch_ul): New.
8890 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
8891 (TS_exit_attribute_mode): New.
8892 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
8893 (TS_set_foreground, TS_set_background): New.
8894 (reset_terminal_modes): Switch colors back to default.
8895 (write_glyphs): Turn face on before writing text, turn it off
8896 afterwards.
8897 (insert_glyphs): Ditto.
8898 (term_init): Initialize new terminal capability variables.
8899 (turn_on_face): Turn a face on.
8900 (turn_off_face): Turn a face off.
8901
8902 * lisp.h (MAKE_GLYPH): Remove test for frame type.
8903 (GLYPH_CHAR): Ditto.
8904 (GLYPH_FACE): Ditto.
8905
8906 * xfaces.c (Vface_tty_color_alist): New.
8907 (face-register-tty-color): New.
8908 (face-clear-tty-colors): New.
8909
8910 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
8911 (struct it): Remove member faces_p since we now always have faces.
8912
89131998-08-31 Gerd Moellmann <gerd@gnu.org>
8914
8915 * dispextern.h (struct face): Add tty appearance flags.
8916
8917 * xdisp.c (init_iterator): Always handle faces.
8918 (extend_face_to_end_of_line): Handle tty frames.
8919
8920 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
8921 passed in.
8922
89231998-08-30 Gerd Moellmann <gerd@gnu.org>
8924
8925 * xfaces.c (realize_default_face): Use empty strings to indicate
8926 that the face should use the default foreground/background
8927 color of the terminal. Fill font-related attributes with
8928 appropriate values for tty frames.
8929
8930 * emacs.c (main): Call syms_of_xfaces before init_window_once.
8931
8932 * xfaces.c (realize_default_face): If face `default' is not
8933 yet known, create it.
8934
8935 * frame.c (make_terminal_frame): Call init_frame_faces
8936 unconditionally.
8937
8938 * xfaces.c (init_frame_faces): Make it work for tty frames.
8939 (free_frame_faces): Ditto.
8940 (clear_face_cache): Ditto.
8941 (recompute_basic_faces): Ditto.
8942 (Fframe_face_alist): Ditto.
8943 (free_realized_face): Ditto.
8944 (prepare_face_for_display): Ditto.
8945 (clear_face_gcs): Ditto.
8946 (lookup_face): Ditto.
8947 (smaller_face): Ditto.
8948 (realize_default_face): Ditto.
8949 (realize_face): Ditto.
8950 (realize_face): Dispatch to functions depending on the frame type.
8951 (realize_x_face): X way of realizing faces.
8952 (realize_tty_face): TTY way of realizing faces.
8953
89541998-08-29 Gerd Moellmann <gerd@gnu.org>
8955
8956 * xfaces.c (realize_face): Remove parameter unibyte_registry,
8957 compute it instead.
8958 (lookup_face): Remove local variable unibyte_registry.
8959
89601998-08-22 Gerd Moellmann <gerd@gnu.org>
8961
8962 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
8963 1 pixel longer.
8964
8965 * xdisp.c (face_before_or_after_it_pos): Fix computation
8966 of face in buffer.
8967
8968 * editfns.c (make_buffer_string_both): If prompt in buffer,
8969 prevent start > end.
8970
8971 * indent.c (Fvertical_motion): Set current_buffer to window's
8972 buffer if it isn't already.
8973
89741998-08-21 Gerd Moellmann <gerd@gnu.org>
8975
8976 * dispextern.h (GLYPH_DEBUG): Use default 0.
8977
8978 * xdisp.c (it_props): New member `smaller'.
8979 (init_iterator): Initialize it.
8980 (Qsmaller): New.
8981 (push_it): Save value of `smaller' value on the stack.
8982 (pop_it): Restore `smaller' from the stack.
8983 (handle_smaller_prop): New.
8984 (handle_face_prop): Use `smaller' text property to select a
8985 suitable face.
8986
8987 * dispextern.h (SMALLER_PROP_IDX): New.
8988 (struct it): Add member `smaller'.
8989
8990 * xfaces.c (smaller_face): New.
8991
8992 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
8993
8994 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
8995 total pixel width of window differently.
8996
8997 * xdisp.c (init_iterator): Compute width of mode line differently.
8998
8999 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
9000 of bitmap areas.
9001
9002 * window.c (Fsplit_window): Include width of bitmap areas in
9003 window width.
9004 (window_internal_width): Subtract width of bitmap areas from
9005 total width.
9006
90071998-08-18 Gerd Moellmann <gerd@gnu.org>
9008
9009 * xdisp.c: Functions reordered for better readability.
9010
9011 * dispnew.c (update_text_area): Handle glyphs with arbitrary
9012 lbearing.
9013 (update_window_tree): Parameter no_scrolling_p removed.
9014 (update_single_window): Ditto.
9015
9016 * xterm.c (x_get_char_font_and_encoding): Renamed to
9017 x_get_char_face_and_encoding.
9018
9019 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
9020 if end of current row reached.
9021
9022 * xterm.c (x_get_glyph_face_and_encoding): New.
9023 (x_get_glyph_overhangs): Call it.
9024
9025 * xdisp.c (Qshow_trailing_whitespace): New.
9026 (Qtrailing_whitespace): New.
9027 (enum prop_handled): New.
9028 (struct props, it_props): New.
9029 (next_overlay_change): New. Works like Fnext_overlay_change
9030 but doesn't use xmalloc.
9031 (handle_stop): Restructured.
9032 (face_before_or_after_it_pos): Case iteration over a string: fix
9033 handling of face before current position.
9034
90351998-08-16 Gerd Moellmann <gerd@gnu.org>
9036
9037 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
9038 reallocation matrix if fonts_changed_p.
9039 (update_text_area): Handle glyphs with lbearing.
9040
90411998-08-14 Gerd Moellmann <gerd@gnu.org>
9042
9043 * xdisp.c (struct props): New.
9044 (it_props): New.
9045 (compute_prop_info): New.
9046 (handle_stop): New.
9047
9048 * textprop.c (validate_interval_range): Make it externally
9049 visible.
9050
9051 * dispnew.c (direct_output_for_insert): Remove calls
9052 to compute_stop_pos.
9053
9054 * dispextern.h (struct it): Remove check_charpos,
9055 next_overlay_pos. Add what_changes.
9056
90571998-08-10 Gerd Moellmann <gerd@gnu.org>
9058
9059 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
9060
9061 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
9062 face_default_registry instead.
9063
9064 * syntax.c (scan_sexps_forward): Set up syntax table before
9065 jumping to initial state label.
9066
90671998-08-09 Gerd Moellmann <gerd@gnu.org>
9068
9069 * dispnew.c (check_matrix_invariants): Handle case of row end pos
9070 >= ZV specially.
9071
90721998-08-08 Gerd Moellmann <gerd@gnu.org>
9073
9074 * xdisp.c (redisplay_window): Case cursor movement---if cursor
9075 ends up in partially visible row, try to scroll. Case forced
9076 window start---handle windows not tall enough to show a single
9077 line.
9078
9079 * window.h (struct window): Member dy renamed vscroll.
9080
9081 * xterm.c (x_list_fonts): Re-activate suppression of scalable
9082 fonts.
9083 (x_draw_stretch_glyph_string): Set clipping if using GC that
9084 hasn't set it yet.
9085
9086 * xdisp.c (redisplay_window): Case forced window start -
9087 don't let cursor end on partially visible row. Use desired
9088 matrix to find a suitable PT if it doesn't appear.
9089 (decode_mode_spec): Merged with 20.2.97.
9090 (try_window_reusing_current_matrix): Give up if old or
9091 new display is vscrolled.
9092 (redisplay_window): Reset vscrolling if forced window start,
9093 or if recentering.
9094
90951998-08-06 Gerd Moellmann <gerd@gnu.org>
9096
9097 * xfaces.c (realize_default_face): Use the fontset name instead of
9098 the alias for the family attribute of the default face because we
9099 can't easily determine a good alias from fontset-alias-alist.
9100 (face_fontset): Use Fquery_fontset to find the fontset.
9101 (font_list): Additional pattern parameter.
9102 (try_font_list): Ditto.
9103 (set_lface_from_font_name): Set face family from font foundry
9104 and family.
9105 (font_list): If family contains a hyphen, build pattern differently.
9106
91071998-08-05 Gerd Moellmann <gerd@gnu.org>
9108
9109 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
9110 changed instead of setting the frame garbaged.
9111
9112 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
9113 all attribute values. This is wrong if values are unspecified,
9114 i.e. nil.
9115
9116 * xdisp.c (try_window_id): Give up if window start changed.
9117
9118 * xfaces.c (make_realized_face): Store registry as Lisp object.
9119 (load_face_font_or_fontset): Compute registry of a face
9120 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
9121 possible.
9122
9123 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
9124 differently.
9125
9126 * alloc.c (mark_face_cache): Mark the registry member of faces.
9127
9128 * dispextern.h (struct face): Make registry a Lisp string.
9129
91301998-08-04 Gerd Moellmann <gerd@gnu.org>
9131
9132 * xterm.c (x_get_char_font_and_encoding): Additional parameter
9133 multibyte_p. Handle unibyte text.
9134 (x_append_glyph): Set the multibyte_p flag of glyphs.
9135 (x_produce_image_glyph): Ditto.
9136 (x_append_stretch_glyph): Ditto.
9137 (x_produce_glyphs): Handle unibyte text like ASCII.
9138
9139 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
9140 stack.
9141 (pop_it): Restore it.
9142 (face_before_or_after_it_pos): Handle the case that the string or
9143 buffer is unibyte.
9144 (get_overlay_strings): Set the multibyte flag of the iterator if
9145 the new overlay string is multibyte.
9146 (get_glyph_property): Likewise.
9147 (get_next_display_element): Don't check for charset changes in
9148 unibyte text.
9149 (append_space): Compute face differently for unibyte text.
9150 (extend_face_to_end_of_line): Don't return quickly if face has
9151 stipple.
9152
9153 * xfaces.c (load_face_font_or_fontset): Store registry and
9154 encoding of the font in the registry member of the face.
9155 (make_realized_face): Additional parameter `registry'.
9156 (free_realized_face): Free the registry of a realized face.
9157 (face_suitable_for_charset_p): Function form of the macro
9158 with the same name in uppercase.
9159 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
9160 (choose_face_font): New parameter unibyte_registry.
9161 (choose_face_fontset_font): Ditto.
9162 (realize_default_face): Remember the registry and encoding of
9163 the specified frame font in Vx_unibyte_registry_and_encoding.
9164 (face_at_buffer_position): Handle unibyte.
9165 (face_at_string_position): Likewise.
9166 (realize_face): New parameter unibyte_registry.
9167 (compute_char_face): Handle the unibyte case.
9168
9169 * dispextern.h (struct glyph): Add bit multibyte_p.
9170 (struct face): New member registry holding the registry and
9171 encoding of the X font of the face.
9172 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
9173 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
9174 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
9175 text.
9176 (struct iterator_stack_entry): Add multibyte_p.
9177
9178 * xdisp.c (string_pos): Use string_char_to_byte.
9179 (char_charset): Removed.
9180
91811998-08-03 Gerd Moellmann <gerd@gnu.org>
9182
9183 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
9184 rectangle for a block cursor over an image without a mask.
9185 (x_stretch_block_cursor): Added. Non-zero means don't draw
9186 a block cursor over a stretch as wide as that stretch.
9187 (x_draw_stretch_glyph_string): Use it.
9188 (x_draw_hollow_cursor): Ditto.
9189
9190 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
9191 (read_minibuf): Add front-sticky text property for prompt.
9192
9193 * xdisp.c (char_charset): Return charset of a character,
9194 depending on whether or not multi-byte characters are enabled.
9195
9196 * xfaces.c (Fset_face_charset_registry): Removed.
9197 (x_charset_registry): Determine registry from charset plist.
9198
91991998-08-02 Gerd Moellmann <gerd@gnu.org>
9200
9201 * xdisp.c (get_next_display_element): Don't check for charset
9202 changes if multi-byte characters are not enabled.
9203
9204 * xdisp.c (echo_area_display): Use the flush function from the
9205 redisplay interface.
9206 * keyboard.c (detect_input_pending_run_timers): Likewise.
9207
9208 * dispextern.h (produce_*glyphs_hook): Removed.
9209 * term.c (produce_*glyphs): Ditto.
9210 (cursor_to): Remove pixel position parameters.
9211
9212 * dispnew.c: Remove hooks for window-based redisplay, introduce
9213 a redisplay interface structure.
9214
9215 * xterm.c (x_per_char_metric): Return default char metrics if per
9216 char metric exists but contains a zero width. Adobe Courier seems
9217 to contain such characters.
9218
9219 * xdisp.c (compute_line_metrics): Compute the width of rows
9220 without stopping at glyphs with zero width.
9221
92221998-08-01 Gerd Moellmann <gerd@gnu.org>
9223
9224 * xdisp.c (display_mode_line): If nothing was displayed at all,
9225 display a space.
9226 (hscroll_window_tree): Don't subtract 1 from target point if equal
9227 to ZV and window is not the selected window.
9228
9229 * dispnew.c (check_matrix_invariants): Remove check for window
9230 start at BEGV or after newline. This happens in rare cases
9231 intentionally.
9232
92331998-07-31 Gerd Moellmann <gerd@gnu.org>
9234
9235 * xfaces.c (x_charset_registry): Use STRING_BYTES.
9236 (syms_of_xfaces): Add Vface_default_registry.
9237 (x_charset_registry): Use it.
9238
9239 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
9240 (redisplay_window): Use it.
9241
9242 * dispnew.c (update_text_area): Handle lbearing of deleted text
9243 by backing up one character.
9244
92451998-07-30 Gerd Moellmann <gerd@gnu.org>
9246
9247 * dispnew.c (adjust_glyph_matrix): Use a different check to
9248 decide to do nothing.
9249
9250 * xfaces.c (face_at_string_position): Additional parameter
9251 mode_line_p. If non-zero, merge with the mode line face
9252 instead of the default face.
9253 * dispextern.h (struct it): Add mode_line_p.
9254 * xdisp.c (init_iterator): Set it.
9255 (compute_face_in_string): Use it.
9256 (face_before_or_after_it_pos): Handle strings.
9257 (get_next_display_element): Don't look for relief end in C strings.
9258 (next_element_from_string): Deliver string position instead of
9259 buffer position.
9260
9261 * xterm.c (x_flush): Flush X output buffer.
9262 (XTflash): Use it.
9263
9264 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
9265 Allow strings as face names.
9266
9267 * xfns.c (forall_images_in_image_cache): Check that frame is
9268 alive.
9269
9270 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
9271 it's also called from x_destroy_window. Since this function is
9272 called from X, freeing stuff allocated with xmalloc is dangerous
9273 here, anyway.
9274
9275 * xfaces.c (free_realized_faces): Don't clear current matrices
9276 of a frame being destroyed.
9277
9278 * frame.c (make_frame): Call set_window_buffer instead of
9279 Fset_window_buffer.
9280
9281 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
9282 with an additional argument specifying whether or not hooks may
9283 be called.
9284 (Fset_window_buffer): Call it.
9285
9286 * dispnew.c (clear_desired_matrices): Check that frame has
9287 a valid root window before clearing matrices in the window tree.
9288 (clear_current_matrices): Ditto.
9289 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
9290 vchild are valid windows if not nil.
9291
9292 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
9293 for :inverse-video.
9294 (Finternal_set_lisp_face_attribute): Ditto.
9295 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
9296 (Finternal_get_lisp_face_attribute): Ditto.
9297 (Finternal_lisp_face_attribute_values): Ditto.
9298 (syms_of_xfaces): Define the symbol `:reverse-video'.
9299
9300 * xdisp.c (get_glyph_property): Renamed from
9301 fill_iterator_from_glyph_property.
9302 (next_element_from_buffer): Handle case that no `glyph' property
9303 was found correctly.
9304 (display_line): Extend face to end of line only if we have faces.
9305
93061998-07-29 Gerd Moellmann <gerd@gnu.org>
9307
9308 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
9309 additional window argument.
9310
9311 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
9312 set_iterator_to_previous_visible_line_start.
9313 (reseat_at_next_visible_line_start): Likewise.
9314 (compute_stop_pos): Renamed from set_iterator_stop_pos.
9315 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
9316 (compute_face_in_buffer): Renamed from
9317 compute_face_at_iterator_position.
9318 (compute_face_in_string): Renamed from
9319 compute_face_at_iterator_string_position.
9320 (get_space_width): Renamed from get_iterator_space_width.
9321 (next_overlay_string): Renamed from
9322 set_iterator_to_next_overlay_string.
9323 (get_overlay_strings): Renamed from
9324 get_overlay_strings_at_iterator_position.
9325 (restore_overlay_strings): Renamed from
9326 setup_overlay_strings_from_glyph_pos.
9327 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
9328 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
9329 (init_to_row_start): Renamed from init_iterator_to_row_start.
9330 (init_to_row_end): Formerly init_iterator_to_next_row_start.
9331
9332 * xterm.c: Merge with 20.2.97.
9333 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
9334
9335 * dispextern.h (struct glyph): Replace text_pos position with
9336 simple charpos.
9337
9338 * xdisp.c (this_line_start_pos): Use struct text_pos.
9339 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
9340 (enum move_it_result): Renamed from move_iterator_result.
9341 (string_pos_nchars_ahead): Compute text_pos in a string from a
9342 known text_pos plus a character delta.
9343 (string_pos): Compute text_pos in string from charpos.
9344 (c_string_pos): Likewise for a C string.
9345 (number_of_chars): Return number of characters in a possibly
9346 multi-byte C string.
9347 (check_it): Renamed from check_iterator. Check that charpos and
9348 bytepos are in sync.
9349 (push_it): Renamed from save_iterator_settings.
9350 (pop_it): Renamed from restore_iterator_settings.
9351 (move_it_.*): Renamed from move_iterator_.*.
9352 (charset_at_position): Take charpos/bytepos into account.
9353 (back_to_previous_line_start): Set iterator to previous line start.
9354 (forward_to_next_line_start): Set iterator to next line start.
9355 (back_to_previous_visible_line_start): Renamed from
9356 move_iterator_previous_visible_line_start.
9357 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
9358 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
9359 Handle charpos/bytepos.
9360 (compute_face_at_iterator_position): Handle charpos/bytepos.
9361 (compute_face_at_iterator_string_position): Likewise.
9362 (get_iterator_space_width): Likewise.
9363 (load_overlay_strings): Likewise.
9364 (get_overlay_strings_at_iterator_position): Likewise.
9365 (reseat_iterator): Take a text_pos position argument.
9366 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
9367 bytepos.
9368 (init_iterator): Take additional bytepos parameter.
9369 (reseat_iterator_to_string): Handle charpos/bytepos.
9370 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
9371 (next_element_from_string): Handle charpos/bytepos.
9372 (next_element_from_c_string): Likewise.
9373 (fill_iterator_from_glyph_property): Likewise.
9374 (next_element_from_buffer): Likewise.
9375 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
9376 (move_iterator_in_display_line_to): Handle charpos/bytepos.
9377 (move_it_to): Likewise.
9378 (move_it_vertically_backward): Likewise.
9379 (move_it_vertically): Likewise.
9380 (move_it_by_lines): Likewise.
9381 (hscroll_window_tree): Likewise.
9382 (redisplay_internal): Likewise.
9383 (set_cursor_from_row): Likewise.
9384 (redisplay_window): Likewise.
9385 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
9386 (try_window_reusing_current_matrix): Handle charpos/bytepos.
9387 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
9388 (try_window_id): Handle charpos/bytepos.
9389 (Ftrace_redisplay_toggle): Return Qnil.
9390 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
9391 (insert_left_trunc_glyphs): Likewise.
9392
9393 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
9394 do a real merge).
9395 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
9396 (increment_glyph_row_buffer_positions): Ditto.
9397 (copy_glyph_row_contents): Ditto.
9398 (check_matrix_invariants): Add additional checks for charpos/
9399 bytepos consistency.
9400 (direct_output_for_insert): Changed for charpos/bytepos.
9401 (buffer_posn_from_coords): Likewise. Put code dealing with
9402 `direction-reversed' in #if 0.
9403
9404 * xterm.h: Merge with 20.2.97.
9405
9406 * frame.h: Merge with 20.2.97.
9407
9408 * window.h: Merge with 20.2.97. Add window_end_bytepos.
9409
9410 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
9411 start.
9412 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
9413 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
9414 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
9415 (struct it): Various members renamed from .*pos to .*charpos.
9416 (IT_CHARPOS): Access current buffer character position of an
9417 iterator.
9418 (IT_BYTEPOS): Access current buffer byte position of an iterator.
9419 (IT_STRING_CHARPOS): Access current string character position of
9420 an iterator.
9421 (IT_STRING_BYTEPOS): Access current string byte position of
9422 an iterator.
9423 (globally): Add function prototypes from 20.2.97.
9424
9425 * everywhere: Use P_ instead of PROTO for function prototypes
9426 because everyone else seems to use P_.
9427
9428 * dispextern.h (struct text_pos): Structure describing a charpos/
9429 bytepos position in text.
9430 (BYTEPOS): Access the byte position part of a text_pos.
9431 (CHARPOS): Likewise for the character position.
9432 (SET_TEXT_POS): Set a text_pos from a character and byte position.
9433 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
9434 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
9435 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
9436 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
9437 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
9438 for buffer and string positions.
9439 (struct glyph): Use text_pos.
9440 (struct it): Renamed from display_iterator. Use text_pos.
9441
94421998-07-23 Gerd Moellmann <gerd@gnu.org>
9443
9444 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
9445 pixmap.
9446
94471998-07-21 Gerd Moellmann <gerd@gnu.org>
9448
9449 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
9450 * xterm.c (x_draw_row_bitmaps): Use it.
9451 * dispnew.c (row_equal_p): Ditto.
9452 (update_window_line): Ditto.
9453
9454 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
9455 flag of images.
9456
9457 * dispextern.h (struct image): Removed member loading_failed_p.
9458 It's probably better to have the chance to try to load an image
9459 again.
9460
94611998-07-20 Gerd Moellmann <gerd@gnu.org>
9462
9463 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
9464 at ZV if `indicate-zv-lines' is non-nil.
9465 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
9466
9467 * dispnew.c (row_equal_p): Compare displays_text_p and
9468 ends_at_zv_p flags of rows.
9469 (update_window_line): Ditto.
9470
9471 * buffer.h (struct buffer): New member indicate_zv_lines.
9472
9473 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
9474 (init_buffer_once): New variable `default-indicate-zv-lines'.
9475 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
9476
9477 * xdisp.c (redisplay_window): Don't try moving the cursor
9478 if current glyph row w->last_cursor.vpos isn't enabled.
9479
9480 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
9481
9482 * window.c (Fset_window_vscroll): Allow only negative scroll
9483 values. Others don't seem to make sense, and this way it's easy
9484 to restore a vscroll of zero.
9485
9486 * xterm.c (x_inverted_image_mask): Check that pixmap could be
9487 allocated.
9488 (x_draw_image_glyph_string_background): Don't clip if pixmap
9489 could not be created.
9490
9491 * xfns.c (xbm_load_image_from_file): Check that pixmap could
9492 be created.
9493 (xbm_load): Ditto.
9494 (gs_load): Ditto.
9495
9496 * xterm.c (x_get_glyph_overhangs): Take image and stretch
9497 glyphs into account.
9498
9499 * xfaces.c (realize_default_face): Don't set font family of
9500 the default face from the fontset alias name for `fontset-startup'.
9501
9502 * xfns.c (gs_load): Pass frame's pixel foreground and background
9503 color to the Lisp loader.
9504
95051998-07-19 Gerd Moellmann <gerd@gnu.org>
9506
9507 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
9508 libtiff34.
9509
9510 * configure.in (--with-tiff, HAVE_TIFF): Added.
9511
9512 * config.in (HAVE_TIFF): Added.
9513
9514 * Makefile.in (LIBTIFF): Added.
9515
9516 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
9517
9518 * Makefile.in (LIBJPEG): Added.
9519
9520 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
9521 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
9522 jpeglib.h.
9523
9524 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
9525 where the library is installed in /usr/local/lib, e.g. FreeBSD,
9526 configure must be run with `--x-includes=/usr/X11R6/include:
9527 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
9528
95291998-07-18 Gerd Moellmann <gerd@gnu.org>
9530
9531 * config.in (HAVE_JPEG): Added.
9532
9533 * xfns.c (ct_init): Initialize color table used to map RGB colors
9534 from images to X pixel colors.
9535 (ct_free): Free color table.
9536 (ct_lookup): Look an RGB color up.
9537 (ct_allocated_colors): Get vector of allocated colors.
9538 (pbm_image_p): Test if image specification is a valid PPM
9539 image specification.
9540 (pbm_scan_number): Scan a decimal ASCII number from a file.
9541 (pbm_load): Load a PPM image.
9542
9543 * window.c (Fset_window_vscroll): Adjust glyph matrix if
9544 necessary. Take canonical character units as parameter.
9545 (Fwindow_vscroll): Return canonical character units.
9546
9547 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
9548 w->dy to display height for which glyph rows must be allocated.
9549
95501998-07-17 Gerd Moellmann <gerd@gnu.org>
9551
9552 * xfaces.c (face_at_string_position): Merge in region face
9553 so that it won't overwrite the font in the region.
9554 (face_at_buffer_position): Ditto.
9555 (realize_basic_faces): Don't realize region face.
9556
9557 * dispextern.h (enum face_id): REGION_FACE_ID removed.
9558
9559 * xterm.c (x_set_glyph_string_background_width): Don't let
9560 cursor face extend to end of line.
9561
9562 * xdisp.c (append_space): If adding space of default face,
9563 make sure glyph ist produced with right face.
9564
9565 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
9566 background color of a glyph string.
9567 (x_draw_glyph_string_background): Call it.
9568 (x_draw_glyph_string_bg_rect): Ditto.
9569 (x_draw_stretch_glyph_string): Ditto.
9570
95711998-07-15 Gerd Moellmann <gerd@gnu.org>
9572
9573 * xdisp.c (init_iterator): Initialize it->current_y to the
9574 window's vscroll w->dy.
9575
9576 * window.c (Fwindow_vscroll): Return number of pixels window
9577 is vscrolled smoothly.
9578 (Fset_window_vscroll): Set the number.
9579
9580 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
9581 to_pos in truncated part of a line.
9582
95831998-07-14 Gerd Moellmann <gerd@gnu.org>
9584
9585 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
9586 doesn't fit on the line, truncate it, despite truncate_lines nil.
9587 (display_line): Ditto.
9588
9589 * xfns.c: Experimental support for Ghostscript images.
9590
9591 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
9592 (XTread_socket): React on events from Ghostscript.
9593 (expose_frame): If width or height are zero, redraw entire frame.
9594 (XTread_socket): Call expose_frame after receiving event from
9595 Ghostscript.
9596
9597 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
9598 for Ghostscript support.
9599
9600 * xdisp.c (redisplay_internal): Return quickly if called
9601 recursively.
9602
9603 * alloc.c (NSTATICS): Increased to 1024.
9604
96051998-07-08 Gerd Moellmann <gerd@gnu.org>
9606
9607 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
9608 iterator's glyph row.
9609 (x_produce_stretch_glyph): Call it.
9610 (x_produce_glyphs): Handle `space-width' property; call
9611 x_append_stretch_glyph.
9612
9613 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
9614 property.
9615 (get_iterator_space_width): Determine value of `space-width'
9616 property at iterator's position.
9617 (reseat_iterator): Call it.
9618 (next_element_from_string): Ditto.
9619 (next_element_from_buffer): Ditto.
9620 (init_iterator): Initialize space_width of iterator.
9621 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
9622 moved, but cursor blinks.
9623 (redisplay_internal): Set w->last_cursor_off_p after update.
9624
9625 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
9626 (struct display_iterator): Add new member space_width.
9627
9628 * window.h (struct window): Add last_cursor_off_p.
9629
96301998-07-07 Gerd Moellmann <gerd@gnu.org>
9631
9632 * Saved.
9633
9634 * window.c (Fpos_visible_in_window_p): Case window not up to
9635 date---return nil if iterator hasn't reached position.
9636
96371998-07-06 Gerd Moellmann <gerd@gnu.org>
9638
9639 * xdisp.c (text_outside_line_unchanged_p): Fix case that
9640 overlays have changed.
9641 (redisplay_window): Case cursor movement. Don't try it if
9642 last_cursor.vpos is out of range.
9643
9644 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
9645 way, the display optimization for the line containing the cursor
9646 is used more frequently, esp. when we have a blinking cursor.
9647 (display_line): Don't set this_line_.* variables.
9648
9649 * xterm.c (x_redraw_cursor): Removed.
9650 (x_display_and_set_cursor): Set cursor type depending on
9651 cursor_off_p flag of window.
9652
9653 * dispnew.c (redraw_cursor_hook): Removed.
9654 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
9655 member of the selected window.
9656
9657 * xfaces.c (Fface_font): Added for compatibility with 20.2.
9658
9659 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
9660 Return glyph area under x/y.
9661 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
9662
9663 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
9664 after redisplaying.
9665
96661998-07-05 Gerd Moellmann <gerd@gnu.org>
9667
9668 * xdisp.c (text_outside_line_unchanged_p): Test if changes
9669 are all outside of a line of text.
9670 (redisplay_internal): Use it.
9671
96721998-06-30 Gerd Moellmann <gerd@gnu.org>
9673
9674 * xdisp.c (next_element_from_buffer): After skipping over
9675 invisible text, look for the `glyph' property.
9676 (set_iterator_stop_pos): Ignore check positions in front
9677 of an iterator's current position.
9678
9679 * xterm.c (show_mouse_face): Don't act on rows that don't exist
9680 anymore or which are marked as not having valid contents.
9681
9682 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
9683 realized faces if new attribute value is equal to old value.
9684
96851998-06-29 Gerd Moellmann <gerd@gnu.org>
9686
9687 * xfaces.c (Finternal_make_lisp_face): Increment
9688 lface_id_to_name_size when lface_id_to_name is reallocated.
9689
96901998-06-27 Gerd Moellmann <gerd@gnu.org>
9691
9692 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
9693 as minimum of endpos and overlay_pos.
9694 (load_overlay_strings): Set next_overlay_pos of iterator to
9695 -1 if we don't have to check for more overlay strings.
9696
96971998-05-09 Gerd Moellmann <gerd@gnu.org>
9698
9699 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
9700 do anything if iterator is at ZV because scan_buffer doesn't
9701 work otherwise.
9702
9703 * xterm.c (x_encode_char): Inline it.
9704 (x_get_char_font_and_encoding): Simplified.
9705 (x_per_char_metric): Inline it.
9706
9707 * xterm.c (x_draw_glyph_string_relief): Use clipping.
9708
9709 * xdisp.c (get_next_display_element): Check for end of relief
9710 face moved here from next_element_from_buffer.
9711
9712 * xterm.c (x_produce_image_glyph): Add relief thickness.
9713 (x_produce_stretch_glyph): Ditto.
9714
97151998-05-08 Gerd Moellmann <gerd@gnu.org>
9716
9717 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
9718 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
9719
9720 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
9721 from a glyph property.
9722 (x_produce_glyphs): Use it.
9723
9724 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
9725
9726 * xterm.c (x_produce_image_glyph): Add to current_x only if
9727 in text area.
9728 (x_produce_glyphs): Ditto.
9729
9730 * xdisp.c (display_line): Compute row height from glyphs in
9731 marginal areas.
9732
9733 * xterm.c (x_draw_image_glyph_string_background): Draw
9734 background of an image glyph string.
9735 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
9736 the background of a glyph string.
9737 (x_draw_image_glyph_string_foreground): Draw the foreground of
9738 an image glyph string.
9739 (x_inverted_image_mask): Return the inverted mask of an image.
9740
9741 * xfns.c (x_draw_image): Removed.
9742
9743 * dispextern.h (struct image_type): Remove drawing function.
9744
9745 * xfaces.c (load_face_colors): Swap colors if face is inverse.
9746
9747 * xdisp.c (get_next_display_element): In marginal areas, translate
9748 newlines, tabs, etc. like normal control characters.
9749
9750 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
9751 and color.
9752 (free_realized_faces): Set frame garbaged.
9753
9754 * xfaces.c (syms_of_xfaces): Add defsubr for
9755 internal-lisp-face-attribute-values.
9756
97571998-05-07 Gerd Moellmann <gerd@gnu.org>
9758
9759 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
9760 full.
9761 (x_produce_image_glyph): Set IT->nglyphs to 1.
9762 (x_draw_image_glyph_string): Use inverted mask to draw background.
9763
9764 * dispextern.h (struct image_type): Additional clipping rect
9765 parameters for drawing functions.
9766
9767 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
9768 a glyph string.
9769 (x_draw_image_glyph_string): Use it and pass the rect to the
9770 image drawing function.
9771
9772 * xdisp.c (fill_iterator_from_glyph_property): Use position of
9773 first character with `glyph' property as image position. Set
9774 iterator back to that position as long as the image hasn't been
9775 consumed with set_iterator_to_next.
9776 (set_cursor_from_row): Accept when glyph with given position is
9777 not found in the row. Set cursor x to end of line in that case,
9778 so that we can hscroll.
9779 (redisplay_internal): Correct computation of delta by which
9780 positions have changed in redisplay optimization for cursor
9781 row of selected window.
9782
9783 * xdisp.c (display_line): Remove start_pos.
9784 (display_line): Fix bug preventing display optimization for
9785 cursor line of selected window.
9786 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
9787 instead.
9788
9789 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
9790 (update_text_area): Take glyph pixel width into account
9791 when trying to find a resync point.
9792 (row_equal_p): Compare glyphs in all areas.
9793
97941998-05-06 Gerd Moellmann <gerd@gnu.org>
9795
9796 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
9797
9798 * dispextern.h (struct glyph_row): Use unsigned hash value.
9799
9800 * xdisp.c (display_line): Simplified and made faster by setting
9801 the cursor with set_cursor_from_row.
9802 (set_cursor_from_row): Handle rows of desired matrix.
9803
98041998-05-05 Gerd Moellmann <gerd@gnu.org>
9805
9806 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
9807 with type != CHAR_GLYPH.
9808 (fill_iterator_from_glyph_property): Return void. Set
9809 method to next_element_from_image.
9810 (next_element_from_image): Dummy function for delivering a
9811 single image id.
9812 (set_iterator_to_next): Add method next_element_from_image.
9813 (redisplay_window): When recentering, and cursor vpos is -1
9814 after display, assume middle of window is in first line displayed
9815 in window, and display again.
9816 (fill_iterator_from_glyph_property): Assign image glyph
9817 the position of the first character having the glyph property.
9818
9819 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
9820 * xfns.c (x_draw_image): Use it.
9821 * xterm.c (x_produce_image_glyph): Use it.
9822
9823 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
9824
9825 * Makefile.in: Extraneous #define of LIBXPM removed.
9826
9827 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
9828 (x_fill_stretch_glyph_string): Fill a glyph string from a
9829 stretch glyph.
9830 (x_compute_glyph_string_overhangs): Compute overhangs only
9831 for text glyph strings.
9832 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
9833 (x_draw_glyph_string): Call it.
9834
9835 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
9836 (struct glyph): Add sub-structure for stretchable glyphs.
9837 (GLYPH_EQUAL_P): Compare glyph type and u.val.
9838
9839 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
9840 #ifdef HAVE_FACES.
9841
9842 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
9843
9844 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
9845 setup_iterator_from_glyph_property. Don't do it for terminal
9846 frames.
9847
9848 * xterm.c (x_produce_image_glyph): Produce glyph for image
9849 that can't be loaded.
9850
9851 * xfns.c (lookup_image): If image can't be loaded, set its
9852 width and height so that we can draw a rectangle.
9853 (x_draw_image): Draw a rectangle for images that don't have
9854 a pixmap.
9855 (make_image): Set hash value.
9856 (image_spec_equal_p): Use image_spec_value.
9857
9858 * xterm.c (expose_frame): Don't try to redraw if basic faces
9859 haven't benn realized yet.
9860 (x_draw_image_glyph_string): Fill background only if image
9861 is not as tall as row.
9862
98631998-05-04 Gerd Moellmann <gerd@gnu.org>
9864
9865 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
9866 (LIBX)[HAVE_X11]: Add LIBXPM.
9867
9868 * xfns.c (xpm_image_p): Implementation of image type functions
9869 for XPM.
9870 (xpm_load): Ditto.
9871
9872 * dispextern.h (struct image): Add mask pixmap for XPM.
9873
9874 * xfns.c (x_draw_image): Handle images with masks.
9875
9876 * configure.in: --with-xpm added. Code detecting -lXpm added.
9877
9878 * config.in: Add HAVE_XPM.
9879
9880 * xfns.c (xbm_draw): Removed.
9881 (x_draw_image): Default implementation for drawing images.
9882 (xbm_keyword_index): Remove XBM_DEPTH.
9883 (xbm_format): Remove `:depth'.
9884 (xbm_image_spec_from_file): Removed to reduce consing.
9885 (xbm_load_image_from_file): Added for the same reason.
9886
9887 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
9888 glyph string.
9889 (x_draw_image_glyph_string): Pass ybase to image draw function.
9890
9891 * xfns.c (make_image): Set default baseline.
9892
9893 * xterm.c (x_produce_image_glyph): Compute ascent of image
9894 from its height and baseline percentage.
9895
9896 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
9897 (xbm_format): Add description for `:baseline'.
9898 (xbm_image_spec_from_file): Add keywords from original spec to
9899 result.
9900 (xbm_load): Set baseline of image.
9901 (xbm_image_p): Check range for baseline.
9902
9903 * dispextern.h (struct image): Add member baseline.
9904
9905 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
9906
9907 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
9908
9909 * xdisp.c (get_next_display_element): Do character translations
9910 only if delivering characters.
9911
99121998-05-03 Gerd Moellmann <gerd@gnu.org>
9913
9914 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
9915 DISP_CHARACTER.
9916
9917 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
9918 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
9919
99201998-05-02 Gerd Moellmann <gerd@gnu.org>
9921
9922 * xfns.c (prepare_image_for_display): Set image timestamp.
9923 (clear_image_cache): Clear images if image's timestamp +
9924 Vimage_eviction_seconds is > now.
9925 (syms_of_xfns): New variables image-eviction-seconds, and
9926 image-types.
9927 (add_image_format): Add to image-types.
9928 (xbm_load): Support new image spec format.
9929 (x_alloc_image_color): Allocate a color for an image.
9930
9931 * dispextern.h (struct image): Add timestamp.
9932
9933 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
9934 vectors of bool-vectors.
9935 (xbm_lisp_object_from_file): Build new format image spec.
9936
99371998-05-01 Gerd Moellmann <gerd@gnu.org>
9938
9939 * xfaces.c (init_frame_faces): Initialize image cache.
9940 (free_frame_faces): Free it.
9941
9942 * xterm.c (x_delete_display): Don't free image cache.
9943
9944 * emacs.c (main): Call init_xfns.
9945
99461998-04-30 Gerd Moellmann <gerd@gnu.org>
9947
9948 * alloc.c (mark_object): Mark objects in image cache.
9949
9950 * xfns.c (x_set_internal_border_width): Correct call to
9951 widget_store_internal_border_width.
9952
9953 * widget.c (widget_store_internal_border): Return void.
9954
9955 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
9956 void.
9957 (init_x_parm_symbols): Return void.
9958 (x_report_frame_params): Ditto.
9959 (x_set_border_pixel): Ditto.
9960 (syms_of_xfns): Ditto.
9961 (x_destroy_all_bitmaps): Use xfree instead of free.
9962
9963 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
9964
9965 * xterm.c (x_term_init): Initialize image_cache of display info.
9966 (x_delete_display): Free image cache.
9967
9968 * xterm.h (struct x_display_info): Add image_cache.
9969
9970 * xfns.c (make_image_cache): Allocate a new image cache.
9971 (free_image_cache): Free an image cache.
9972 (make_image): Allocate an image.
9973 (free_image): Free an image.
9974
9975 * dispextern.h (struct image): Structure describing an image.
9976 (struct image_cache): Structure describing an image cache.
9977
99781998-04-29 Gerd Moellmann <gerd@gnu.org>
9979
9980 * xdisp.c (check_iterator_glyph_property): Return int. Value is
9981 non-zero if iterator is filled with something to return.
9982 (next_element_from_buffer): Immediately return if
9983 setup_iterator_from_glyph_prop has filled iterator with pixmap.
9984 (next_element_from_string): Likewise.
9985
9986 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
9987
9988 * dispextern.h (struct glyph): Add pixmap_id.
9989 (display_element_type): Add DISP_PIXMAP.
9990
9991 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
9992 malloc/free.
9993
9994 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
9995 (clear_face_cache): Call it.
9996
9997 * xterm.c (x_query_font): Don't look at empty font table slots.
9998 (x_compute_min_glyph_bounds): Likewise.
9999 (x_term_init): Initialize font_table to null.
10000 (x_load_font): Change allocation of font_info structures so
10001 that it is possible to free fonts.
10002
10003 * xfns.c (Fx_close_connection): Use xfree instead of free.
10004 Only free fonts from filled font table entries.
10005
10006 * xfaces.c (best_matching_font): Support use of scalable fonts.
10007 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
10008
10009 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
10010 and resy.
10011 * xterm.c (x_term_init): Compute resx and resy.
10012
10013 * xfaces.c (split_font_name): Don't reject scalable fonts.
10014
10015 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
10016 in #if 0.
10017
10018 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
10019 point size cannot be determined.
10020
10021 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
10022 width over all fonts on a frame.
10023 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
10024 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
10025 macros.
10026
10027 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
10028 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
10029 (x_load_font): Use x_compute_min_char_bounds.
10030
10031 * xterm.h (struct x_display_info): New members smallest_char_width
10032 and smallest_font_height.
10033
100341998-04-28 Gerd Moellmann <gerd@gnu.org>
10035
10036 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
10037 the same name if GC of face is zero.
10038
10039 * dispextern.h (struct face): Member non_ascii_gc removed.
10040
10041 * xterm.c (x_get_char_font_and_encoding): Return face's font
10042 for characters < 0177 in default face. Prepare face for
10043 display before returning it.
10044 (x_produce_glyphs): Use it->charset.
10045 (x_get_char_font_and_encoding): Simplified.
10046 (x_encode_char): Remove parameter `font'.
10047
10048 * xfaces.c (choose_face_font): If registry from charset symbol
10049 doesn't contain a `-', make it a pattern by appending "*-*".
10050
10051 * xdisp.c (check_iterator_glyph_property): Adjust limit for
10052 glyph_check_pos computation to character boundary.
10053
100541998-04-27 Gerd Moellmann <gerd@gnu.org>
10055
10056 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
10057
10058 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
10059 ASCII face for a given Lisp face id.
10060
10061 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
10062 account.
10063 (reseat_iterator): Set glyph_check_pos. Handle case where
10064 new position is < original position.
10065 (check_iterator_glyph_property): Handle glyph property in strings.
10066 (next_element_from_string): Call above function.
10067 (next_element_from_display_vector): Handle faces in glyphs.
10068 (get_next_display_element): Set face_id of glyphs for
10069 control chars to zero.
10070
10071 * Makefile.in (term.o): Add dependency on dispextern.h.
10072
10073 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
10074 (display_line): Handle marginal areas.
10075 (move_iterator_in_display_line_to): Likewise.
10076
10077 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
10078
10079 * xfaces.c (face_at_buffer_position): Don't merge with nil
10080 text property.
10081 (face_at_string_position): Ditto.
10082
10083 * dispextern.h (struct display_iterator): Use a stack of saved
10084 values instead of saving check positions etc. individually.
10085
10086 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
10087 maybe pop the iterator's stack.
10088 (save_iterator_settings): Push a value on iterator's stack.
10089 (get_overlay_strings_at_iterator_position): Use it.
10090 (restore_iterator_settings): Pop the stack.
10091 (set_iterator_to_next_overlay_string): Use it.
10092
10093 * xfaces.c (try_font_list): Use alternative font families.
10094
100951998-04-26 Gerd Moellmann <gerd@gnu.org>
10096
10097 * xfaces.c (Fset_face_font_sort_order): Set the order in which
10098 font selection matches fonts.
10099 (Fface_font_sort_order): Return the font sort order.
10100 (best_matching_font): Find best matching font based on sort order.
10101 (cmp_font_names): Sort by given sort order.
10102
10103 * dispextern.h (struct display_iterator): New member faces_p.
10104 * xdisp.c (init_iterator): Initialize it->faces_p.
10105 (compute_face_at_iterator_string_position): Use it.
10106 (compute_face_at_iterator_position): Use it.
10107 (init_iterator): Use it.
10108 (display_mode_line): Ditto.
10109
10110 * xdisp.c (get_next_display_element): Put code choosing a face
10111 when the charset changes in #ifdef HAVE_FACES.
10112
10113 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
10114 lookup_face_for_charset.
10115
10116 * xfaces.c (free_font_names): Renamed from free_split_font_names.
10117 (free_all_realized_faces): Renamed from remove_all_realized_faces.
10118
101191998-04-25 Gerd Moellmann <gerd@gnu.org>
10120
10121 * xfaces.c (best_matching_font): Return the name of the best
10122 matching font in an array of font_name structures.
10123 (choose_face_font): Use it.
10124 (choose_face_fontset_font): Use it.
10125 (find_best_weight_font): If final font found has same weight as
10126 the font we started with, return the original font because it is a
10127 better match for the resolution of the display.
10128 (find_best_slant_font): Likewise.
10129 (merge_face_vector_with_property): Check more invalid attribute
10130 values.
10131 (lface_suitable_for_charset_p): Replaced by a macro with the same
10132 name in upper-case.
10133
101341998-04-24 Gerd Moellmann <gerd@gnu.org>
10135
10136 * dispextern.h (struct face): Member
10137 fontset_chosen_for_realization_p removed.
10138
10139 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
10140 end of the collision list, so that we find more specific faces
10141 first.
10142 (lookup_face_for_charset): Look up a new face if face->fontset >=
10143 0, and charset != CHARSET_COMPOSITION.
10144
10145 * xfaces.c (split_font_name): Return zero if point size of font
10146 couldn't be computed.
10147 (realize_default_face): Use ASCII font of a fontset to determine
10148 font-related attributes of the default face.
10149 (face_fontset): Return fontset id for face family.
10150 (font_list): Additional parameter font_pattern. If non-nil,
10151 return fonts matching that pattern.
10152
101531998-04-23 Gerd Moellmann <gerd@gnu.org>
10154
10155 * xfaces.c (choose_face_fontset): If new fontset cannot be
10156 constructed, or fontset name cannot be split, return the id of the
10157 standard fontset.
10158
10159 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
10160 When Emacs starts, it may be called for the initial frame which
10161 isn't an X frame.
10162
10163 * dispextern.h (struct face): New members foreground_defaulted_p,
10164 background_defaulted_p.
10165 (struct face): Members `mask' and `cache' removed.
10166
10167 * xfaces.c (load_color): Set them.
10168 (free_face_colors): Check them.
10169 (xlfd_point_size): Return -1 if resolution or point size of
10170 font unknown.
10171
10172 * xfaces.c (free_font): Removed.
10173 (load_face_font_or_fontset): Renamed from load_font.
10174 (load_face_font_or_fontset): Use message2 instead of signalling.
10175 (load_color): Likewise.
10176 (load_pixmap): Likewise.
10177
10178 * xterm.h (struct x_display_info): Add screen_dpi.
10179 * xterm.c (x_term_init): Initialize it.
10180 * xfaces.c (xlfd_point_size): Use it.
10181 (split_font_name): Compute numeric XLFD_RESY.
10182 (cmp_font_names): Make fonts with an y-resolution more
10183 similar to that of the frame appear first in the result.
10184
10185 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
10186 is set for the face to cache, add it to the end of the collision
10187 list.
10188 (try_font_list): If fonts for given family and registry cannot
10189 be found, first try to keep the registry, and choose a different
10190 family.
10191 (choose_face_font): Allow nfonts == 0.
10192 (try_font_list): Give up if no font matches given registry.
10193
101941998-04-22 Gerd Moellmann <gerd@gnu.org>
10195
10196 * xterm.c (x_get_char_font_and_encoding): Get font_info from
10197 font info id of the face.
10198
10199 * xfaces.c (load_font): Set font_info_id.
10200 (realize_face): Ditto.
10201
10202 * dispextern.h (struct face): Change member font_info to
10203 font_info_id.
10204
10205 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
10206 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
10207
10208 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
10209 isn't ASCII, get the ASCII face before adding a space.
10210 (append_space): Likewise.
10211 (insert_left_trunc_glyphs): Initialize truncate_it's charset
10212 to -1 so that it will compute the right face for the truncation
10213 glyphs.
10214
10215 * xfaces.c (realize_face): Set
10216 face->fontset_chosen_for_realization_p.
10217 (lookup_face_for_charset): If fontset wasn't specified originally
10218 and new charset != CHARSET_COMPOSITION, get a new face for that
10219 charset.
10220
10221 * dispextern.h (struct face): New member
10222 fontset_chosen_for_realization_p_specified_p. Set to 1 when
10223 realize_face has chosen a fontset to display composite characters
10224 for a Lisp face not specifying a fontset.
10225
10226 * xdisp.c (extend_face_to_end_of_line): Move tests for default
10227 face and line already filled here. Don't do anything if current
10228 face hasn't a relief or has a background equal to the frame
10229 background.
10230
10231 * xfaces.c (split_font_name): Additional parameter numeric_p.
10232 Don't compute numeric values if it is non-zero.
10233 (choose_face_fontset): Call split_font_name with numeric_p == 0.
10234 (choose_face_fontset): Print a message if fontset contains a
10235 font whose name cannot be split into fields.
10236
102371998-04-21 Gerd Moellmann <gerd@gnu.org>
10238
10239 * xfaces.c (try_font_list): Try to load a list of fonts,
10240 possibly using less restrictive patterns.
10241 (choose_face_font): Use it.
10242
10243 * xterm.c (x_get_char_font_and_encoding): For charset !=
10244 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
10245
10246 * dispextern.h (struct face): New member font_info.
10247
10248 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
10249 specifying a fontset as well as those not having a fontset.
10250 (free_font): Make it empty.
10251 (realize_face): Use changed load_font.
10252
10253 * xterm.c (x_get_char_font_and_encoding): If face doesn't
10254 fit for charset, get the right one.
10255
10256 * xfaces.c (load_font): Take frame and name parameter, return
10257 font.
10258 (free_font): Likewise.
10259 (split_font_name): Compute numeric values for height, swidth etc.
10260 (cmp_font_names): Use them.
10261 (find_best_width_font): Ditto.
10262 (find_best_height_font): Ditto.
10263 (find_best_weight_font): Ditto.
10264 (find_best_slant_font): Ditto.
10265 (lface_hash): Add weight, slant, swidth and relief to hash value.
10266 (lface_equal_p): Make it faster.
10267 (lface_from_symbol): Use assq_no_quit.
10268 (Fnote_default_face_changed): Removed.
10269 (cmp_font_names): Use strcmp instead of xstricmp.
10270 (face_charset_registries): Removed.
10271
102721998-04-20 Gerd Moellmann <gerd@gnu.org>
10273
10274 * frame.h (CHECK_FRAME): Give this macro a statement form.
10275 (CHECK_LIVE_FRAME): Ditto.
10276
10277 * xfaces.c (find_best_width_font): Find the best matching font
10278 for a given width.
10279 (find_best_height_font): Likewise for height.
10280 (find_best_weight_font): Likewise for weight.
10281 (find_best_slant_font): Likewise for slant.
10282 (choose_face_font): Use them.
10283 (get_lface_attributes): Always return frame-local face attrs.
10284 (Finternal_merge_in_global_face): Merge local face with
10285 global face attributes.
10286
10287 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
10288 Lisp face attributes.
10289
102901998-04-19 Gerd Moellmann <gerd@gnu.org>
10291
10292 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
10293 and :italic for compatibility.
10294 (Finternal_set_lisp_face_attribute_from_resource): Handle
10295 :bold and :italic. Handle boolean resource values for
10296 :underline and :italic.
10297
10298 * xfns.c (display_x_get_resource): Make it externally visible.
10299
10300 * xfaces.c (lface_from_symbol): Take a frame as parameter.
10301 If that frame is non-null, return the frame-local face.
10302 (Finternal_make_lisp_face): Additional frame argument.
10303 (lface_attributes): Get face attributes from global and frame-local
10304 definitions.
10305 (Finternal_lisp_face_equal_p): Additional frame argument.
10306 (merge_lisp_face_vector_with_property): Ditto.
10307 (Frealize_basic_faces): Removed.
10308 (Finternal_get_lisp_face_attribute): Additional frame argument.
10309 (Finternal_lisp_face_p): Ditto.
10310 (load_color) [MSDOS]: Removed because it isn't clear how
10311 to do this for MS-DOS.
10312
10313 * xfaces.c (lface_from_symbol): Get global face definition
10314 from face-global-alist.
10315
10316 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
10317 as values for :underline and :inverse-video.
10318 (Finternal_set_lisp_face_attribute): Allow nil values.
10319
103201998-04-17 Gerd Moellmann <gerd@gnu.org>
10321
10322 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
10323
10324 * xfaces.c (syms_of_xfaces): Add Vall_faces.
10325 (Finternal_make_lisp_face): Add new face to Vall_faces.
10326
10327 * xdisp.c (echo_area_display): Remove code recomputing faces.
10328 (redisplay_internal): Ditto.
10329 (init_iterator): Do it here.
10330
10331 * xfaces.c (choose_face_font): Check that swidth doesn't change
10332 for subusequent attributes.
10333 (xlfd_point_size): Return int.
10334
10335 * xdisp.c (redisplay_internal, echo_area-display): If realized
10336 faces have been cleared, call recompute_basic_faces.
10337
10338 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
10339 face_attributes_changed_p.
10340 (remove_all_realized_faces): Remove all realized faces on
10341 all frames.
10342 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
10343
10344 * xdisp.c (redisplay_internal): If face attributes have been
10345 changed since the last redisplay, recompute basic faces.
10346 (echo_area_display): Ditto.
10347
10348 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
10349
10350 * xfaces.c (min_char_bounds): If face cache not yet present,
10351 don't try to get font dimensions from faces.
10352
10353 * xterm.c (x_frame_mode_line_height): If face cache not present
10354 set, return default height.
10355
10356 * alloc.c (mark_face_cache): Check for null faces. Correct
10357 index bug.
10358
10359 * dispextern.h (struct face): Renamed from struct rface. Member
10360 underline renamed underline_p. Make it a bit-field.
10361
10362 * xfaces.c (init_frame_faces): Allocate face cache.
10363 (free_frame_faces): Free face cache.
10364 (recompute_basic_faces): Realize basic faces only if face cache is
10365 allocated, i.e. after init_frame_faces has been called.
10366
10367 * frame.c (make_frame): Initialze face cache with null.
10368
10369 * xfaces.c (same_size_fonts): Removed.
10370
10371 * xterm.c (x_set_glyph_string_gc): Add post-condition
10372 s->gc != 0.
10373 (x_set_mouse_face_gc): Ditto.
10374 (x_set_mode_line_face_gc): Ditto.
10375
10376 * xfaces.c (realize_default_face): Return int. Value is
10377 zero if frame params don't contain enough information to
10378 realize the default face.
10379 (realize_basic_faces): Ditto.
10380 (init_frame_faces): Realize basic faces.
10381
10382 * xfns.c (x_set_font): First store real font name in frame
10383 parameters, then call recompute_basic_faces.
10384
10385 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
10386
103871998-04-16 Gerd Moellmann <gerd@gnu.org>
10388
10389 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
10390
10391 * xfns.c (Fx_face_fixed_p): Removed.
10392 (Fx_list_fonts): Moved to xfaces.c.
10393
10394 * xfaces.c (compute_face_at_buffer_pos): Renamed to
10395 face_at_buffer_position. Parameter charset removed; always
10396 compute face for CHARSET_ASCII.
10397 (face_at_string_position): Renamed from
10398 compute_face_at_string_pos. Parameter charset removed; always
10399 compute for CHARSET_ASCII.
10400 (lookup_face_for_charset): Take frame parameter instead of
10401 face_cache.
10402 (lookup_face): Ditto.
10403 (compute_char_face): Renamed from compute_glyph_face.
10404
10405 * xdisp.c (init_iterator): Initialize charset member.
10406 (reseat_iterator_to_string): Ditto.
10407 (get_charset_at_buffer_position): Determine charset at
10408 buffer position in current_buffer.
10409 (reseat_iterator): Call above function.
10410 (compute_face_at_iterator_position): Call
10411 compute_face_at_buffer_pos.
10412 (compute_face_at_iterator_string_position): Call
10413 compute_face_at_string_pos.
10414 (get_face_from_id): Removed.
10415 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
10416 Call get_charset_at_buffer_position.
10417 (reseat_iterator): Determine face if charset at pos differs
10418 from iterator's charset.
10419 (reseat_iterator_to_glyph_pos): Removed.
10420
10421 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
10422 Determine charset from buffer position.
10423 (compute_string_char_face): Renamed to compute_face_at_string_pos.
10424 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
10425
10426 * dispextern.h (struct display_iterator): Add member charset.
10427
104281998-04-15 Gerd Moellmann <gerd@gnu.org>
10429
10430 * xfaces.c (compute_char_face): Removed.
10431
10432 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
10433 with new parameter list.
10434
10435 * xfaces.c (region_face): Removed.
10436 (allocate_face): Removed.
10437 (copy_face): Ditto.
10438 (face_eql): Removed.
10439 (intern_face): Removed.
10440 (clear_face_cache): Removed.
10441 (load_font): Ditto.
10442 (unload_font): Ditto.
10443 (load_color): Ditto.
10444 (unload_color): Ditto.
10445 (new_computed_face): Ditto.
10446 (intern_computed_face): Ditto.
10447 (ensure_face_ready): Ditto.
10448 (merge_faces): Ditto.
10449 (compute_base_face): Ditto.
10450 (merge_face_list): Ditto.
10451 (Fmake_face_internal): Removed.
10452 (Fset_face_attribute_internal): Ditto.
10453 (face_name_id_number): Removed.
10454 (Fframe_face_alist): Ditto.
10455 (Fset_frame_face_alist): Ditto.
10456 (Finternal_next_face_id): Ditto.
10457
10458 * xterm.h (struct x_output): Remove computed_faces, and
10459 param_faces. Remove macros accessing them.
10460
10461 * xfaces.c: Entirely new face implementation added.
10462
104631998-04-11 Gerd Moellmann <gerd@gnu.org>
10464
10465 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
10466 `charpos'.
10467
104681998-04-10 Gerd Moellmann <gerd@gnu.org>
10469
10470 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
10471 scroll bar window to reduce flickering. Clear entire height.
10472
10473 * xdisp.c (move_iterator_vertically_backward): Set iterator's
10474 current_x and hpos to zero after moving to previous line
10475 start.
10476
104771998-04-03 Gerd Moellmann <gerd@gnu.org>
10478
10479 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
10480
10481 * xfaces.c (xlfd_point_size): Compute relative point size of
10482 fonts from font and frame resolution.
10483 (sort_fonts): New function to sort fonts, temporarily setting
10484 font_frame to the frame in effect.
10485 (xlfd_point_size): Take additional frame parameter to be able
10486 to get at the display's resolution.
10487
10488 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
10489 BLACK_PIX_DEFAULT.
10490 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
10491 screen of display.
10492
104931998-03-31 Gerd Moellmann <gerd@gnu.org>
10494
10495 * xfaces.c (choose_face_fontset): Instantiate fontsets.
10496
10497 * fontset.h: Add external declarations for Vfontset_alias_alist
10498 and Vglobal_fontset_alist.
10499
10500 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
10501 (realize_default_face): If frame parameters contain an artificial
10502 font name naming a fontset, set the family of the default face to
10503 the fontset name given by the registry.
10504
10505 * Makefile.in (alloc.o): Add dependency to dispextern.h.
10506
105071998-03-22 Gerd Moellmann <gerd@gnu.org>
10508
10509 * alloc.c (mark_object): Add function prototype. Add cast to
10510 Lisp_Object pointer in call to mark_object for symbol names
10511 because this otherwise gives a warning from gcc 2.8.1.
10512 (mark_face_cache): Mark Lisp objects in realized faces.
10513
105141998-03-19 Gerd Moellmann <gerd@gnu.org>
10515
10516 * frame.h (struct frame): Add member face_cache.
10517
10518 * alloc.c (mark_object): Mark face cache.
10519 (mark_face_cache): Mark Lisp faces in face cache of frame.
10520
10521 * frame.c (make_frame): Initialize face_cache.
10522 (Fdelete_frame): Free it.
10523
105241998-03-18 Gerd Moellmann <gerd@gnu.org>
10525
10526 * xfaces.c: Very first skeleton of functions for face realization,
10527 face merging, face cache etc.
10528
10529 * dispextern.h (struct rface): Realized faces. Will replace
10530 struct face when tested.
10531 (struct face_cache): Realized face caches.
10532
10533 * xdisp.c (init_iterator): Initialize area member of display
10534 iterator.
10535
105361998-03-17 Gerd Moellmann <gerd@gnu.org>
10537
10538 * xterm.c (x_append_glyph): Use it->area to store glyphs.
10539
10540 * dispextern.h (struct display_iterator): New member area.
10541
10542 * xterm.c (note_overwritten_text_cursor): Note when the text
10543 cursor of a window is overwritten.
10544
10545 * xdisp.c (set_cursor_from_row): If PT is not found in the
10546 row, display the cursor at the start of the row.
10547
10548 * dispnew.c (direct_output_forward_char): Call
10549 set_cursor_from_row.
10550
10551 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
10552 position is not in an overlay string, set iterator's position and
10553 method explicitly so.
10554 (set_cursor_from_row): Correct cursor position calculation.
10555 Make it externally visible.
10556 (redisplay_window): Call set_cursor_from_row so that there is only
10557 one place where the cursor position is calculated from a current
10558 row.
10559
10560 * dispextern.h (struct display_iterator): New member
10561 overlay_strings_at_end_processed_p.
10562
10563 * xdisp.c (check_iterator): Perform sanity checks on
10564 display_iterators.
10565 (next_element_from_buffer): Check for overlay strings at ZV.
10566
105671998-03-16 Gerd Moellmann <gerd@gnu.org>
10568
10569 * buffer.c (init_buffer_once): Add left_margin_width and
10570 right_margin_width to buffer_local_flags.
10571
10572 * dispnew.c (margin_glyphs_to_reserve): Function computing
10573 number of glyphs to reserve for a marginal area.
10574 (adjust_glyph_matrix): Call it.
10575 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
10576 is not alive.
10577
10578 * window.c (Fset_window_margins): Allow floats.
10579
10580 * buffer.c (syms_of_buffer): Add buffer-local variables
10581 left-margin-width and right-margin-width. Add defaults
10582 default-left-margin-width and default-right-margin-width.
10583
10584 * buffer.h (struct buffer): New members left_margin_width
10585 and right_margin_width.
10586
10587 * window.c (Fset_window_margins): Make window the last and
10588 optional argument.
10589
10590 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
10591 flag no_marginal_areas_p differently.
10592 (x_clear_end_of_line): Ditto.
10593 (x_draw_glyph_string_relief): Compute width of relief differently
10594 for rows with flag no_marginal_areas_p.
10595
10596 * dispnew.c (update_window_line): Update marginal areas only
10597 for rows that don't have no_marginal_areas_p set.
10598
10599 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
10600 (display_menu_bar): Ditto.
10601
10602 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
10603
10604 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
10605 marginal areas in window-based redisplay.
10606
10607 * dispextern.h (struct glyph_matrix): New members
10608 left_margin_glyphs and right_margin_glyphs.
10609
106101998-03-15 Gerd Moellmann <gerd@gnu.org>
10611
10612 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
10613
10614 * charset.c (non_ascii_char_to_string): Use char type parameters
10615 because the function is used that way from outside. Use unsigned
10616 char internally.
10617
10618 * window.c (change_window_height): Return void.
10619 (make_dummy_parent): Return void.
10620 (init_window_once): Return void.
10621 (syms_of_window): Ditto.
10622 (keys_of_window): Ditto.
10623 (delete_window): Correct return with and without value.
10624
10625 * buffer.c (record_buffer): Return void.
10626
10627 * marker.c (unchain_marker): Return void.
10628
10629 * window.c (unshow_buffer): Return void.
10630 (replace_window): Ditto.
10631 (delete_window): Ditto.
10632
10633 * term.c (delete_glyphs_hook): Void return type.
10634 (ring_bell_hook): Ditto.
10635 (set_terminal_window_hook): Ditto.
10636
10637 * sysdep.c (init_sigio): Return void.
10638
10639 * xterm.c (x_set_window_size): Return void.
10640 (x_calc_absolute_position): Ditto.
10641 (x_set_offset): Ditto.
10642 (x_focus_on_frame): Ditto.
10643 (x_unfocus_frame): Ditto.
10644 (x_make_frame_visible): Ditto.
10645 (x_make_frame_invisible): Ditto.
10646 (x_iconify_frame): Ditto.
10647 (x_destroy_window): Ditto.
10648 (x_wm_set_window_state): Ditto.
10649 (x_wm_set_icon_pixmap): Ditto.
10650 (x_wm_set_icon_position): Ditto.
10651 (x_initialize): Ditto.
10652 (x_error_quitter): Ditto.
10653 (x_destroy_window): Use xfree instead of free.
10654
10655 * keyboard.c (clear_waiting_for_input): Return void.
10656
10657 * xterm.c (x_wm_set_size_hint): Return void.
10658 (x_raise_frame): Ditto.
10659 (refreshicon): Ditto.
10660 (x_error_catcher): Ditto.
10661 (x_clear_errors): Ditto.
10662
10663 * keyboard.c (record_asynch_buffer_change): Return void.
10664
10665