1 1999-11-22 Paul Eggert <eggert@twinsun.com>
3 Port to SunOS 4.1.x again. Help out with Alpha port.
4 Rename messages-locale to system-messages-locale,
5 and likewise for time-locale.
7 * callproc.c (strerror): Remove decl.
8 * fileio.c (strerror): Likewise.
9 * process.c (strerror): Likewise.
10 * emacs.c (strerror): Likewise.
11 (Vsystem_messages_locale): Renamed from Vmessages_locale.
13 (Vprevious_system_messages_locale): Likewise, from
14 Vprevious_messages_locale.
15 (Vsystem_time_locale): Likewise, from Vtime_locale.
16 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
17 (ABORT_RETURN_TYPE): New macro.
18 (abort): Return type is now ABORT_RETURN_TYPE.
19 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
21 (syms_of_emacs): messages-locale -> system-messages-locale,
22 previous-messages-locale -> previous-system-messages-locale,
23 time-locale -> system-time-locale,
24 previous-time-locale -> previous-system-time-locale.
26 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
27 (const): Do not define; that's config.h's job.
28 (<limits.h>): Include if HAVE_LIMITS_H is defined.
29 (CHAR_BIT): Move test for definedness outside of limits.h condition.
30 (<stddef.h>): Include if STDC_HEADERS is defined.
31 (FREE_RETURN_TYPE): New macro.
32 (free): Return type is now FREE_RETURN_TYPE.
34 * lisp.h (synchronize_system_time_locale): Renamed from
35 synchronize_time_locale. All uses changed.
36 (synchronize_system_messages_locale): Likewise, from
37 synchronize_messages_locale.
39 * m/alpha.h (malloc, realloc, calloc): Remove decls;
40 stdlib.h now does this.
42 * process.c (sys_siglist): Remove.
44 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
47 * syntax.c (scan_sexps_forward): Use abort, not assert.
49 * sysdep.c (my_sys_siglist): New var.
50 (sys_siglist): New macro. Remove old initialized vars of same name.
51 (init_signals): Initialize sys_siglist.
53 * xfns.c (abort): Remove decl; stdlib.h now does this.
55 1999-11-18 Dave Love <fx@gnu.org>
57 * filelock.c: Add forward declaration for get_boot_time_1.
59 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
61 1999-11-18 Gerd Moellmann <gerd@gnu.org>
63 * buffer.h (struct buffer_text): Add comment about moving
64 buffer text if REL_ALLOC is defined.
66 1999-11-18 Kenichi Handa <handa@etl.go.jp>
68 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
70 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
71 memory for push_key_description.
73 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
74 allocate memory for push_key_description.
75 (describe_buffer_bindings): Likewise.
77 1999-11-17 Gerd Moellmann <gerd@gnu.org>
79 * xfns.c (Fx_show_busy_cursor): Doc-fix.
80 (Fx_hide_busy_cursor): Ditto.
82 1999-11-17 Marco Walther <walther@siemens-pyramid.com>
84 * unexsni.c (unexec): Handle .rel.dyn section.
86 1999-11-16 Dave Love <fx@gnu.org>
88 * doc.c (Fdocumentation): Remove gcpro here too.
90 1999-11-16 Gerd Moellmann <gerd@gnu.org>
92 * keyboard.c (command_loop_1): Remove no_redisplay.
94 1999-11-16 Richard M. Stallman <rms@caffeine.ai.mit.edu>
96 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
99 1999-11-14 Gerd Moellmann <gerd@gnu.org>
101 * xdisp.c (ensure_echo_area_buffers): New.
102 (with_echo_area_buffer): Use it.
103 (setup_echo_area_for_printing): Ditto.
105 * buffer.c (indicate-empty-lines): Doc-fix.
107 1999-11-12 Gerd Moellmann <gerd@gnu.org>
109 * term.c (term_init): If "op" isn't available, don't support color
110 because we can't switch back to the default foreground and
113 * doc.c (Fdocumentation_property): Remove GCPRO because
114 Fsubstitute_command_keys gcpro's the string.
116 1999-11-12 Kenichi Handa <handa@etl.go.jp>
118 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
120 1999-11-11 Gerd Moellmann <gerd@gnu.org>
122 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
123 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
124 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
126 1999-11-10 Gerd Moellmann <gerd@gnu.org>
128 * xfns.c (QCuser_data): Removed.
129 (syms_of_xfns): Initialization of QCuser_data removed.
130 (parse_image_spec): Don't handle :user-data specially. Allow
131 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
132 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
133 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
134 parse_image_spec accordingly.
136 1999-11-09 Richard M. Stallman <rms@caffeine.ai.mit.edu>
138 * cmds.c (Fbeginning_of_line): Doc fix.
139 (Fend_of_line): Doc fix.
141 * editfns.c (Fline_beginning_position): If N is not 1,
142 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
144 * syntax.c (Fforward_word): Handle fields even if would have hit
145 an edge of the buffer. Return nil if affected by fields.
147 1999-11-09 Richard M. Stallman <rms@caffeine.ai.mit.edu>
149 * editfns.c (preceding_pos): Function deleted.
150 (text_property_stickiness): Decrement POS directly.
151 Fix a confusion that used PT instead of POS.
153 * editfns.c (find_field): Properly handle the case
154 of a field boundary where `field' inherits from neither side.
156 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
157 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
159 1999-11-08 Gerd Moellmann <gerd@gnu.org>
161 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
162 BEFORE_POTENTIAL_GC before DISCARD.
164 1999-11-07 Gerd Moellmann <gerd@gnu.org>
166 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
168 * lisp.h: Add prototype for unmark_byte_stack.
170 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
171 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
174 * xdisp.c (resize_mini_window): Fix computation of needed
177 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
178 compilation on USE_TEXT_PROPERTIES.
180 * Fbyte_code: Use block statements in cases and declare v1 and v2
181 locally there. Rearrange case statements so that thos most
182 frequently executed come first. Avoid goto's in frequently
185 1999-11-05 Gerd Moellmann <gerd@gnu.org>
187 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
188 AFTER_POTENTIAL_GC around internal_catch.
190 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
192 (init_alloc_once, init_alloc): Set byte_stack_list to null.
194 * eval.c (struct catchtag): Add member byte_stack.
195 (internal_catch, Fcondition_case, internal_condition_case)
196 (internal_condition_case_1): Save value of byte_stack_list in
198 (unwind_to_catch): Restore byte_stack_list from catchtag.
200 * lisp.h: Add prototypes for new functions in bytecode.c.
201 Add extern declaration for byte_stack_list.
203 * bytecode.c (struct byte_stack): New.
204 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
205 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
206 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
207 (HANDLE_RELOCATION): Removed.
208 (Fbyte_code): Use byte_stack structures.
210 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
212 * buffer.c (syms_of_buffer): Extend documentation of
215 1999-11-04 Gerd Moellmann <gerd@gnu.org>
217 * editfns.c (Fdelete_field): Renamed from Ferase_field.
219 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
220 Ferase_field instead of Fdelete_field.
222 1999-11-03 Gerd Moellmann <gerd@gnu.org>
224 * dispnew.c (Finternal_show_cursor): Change it to set the
225 cursor on/off, not toggle its state.
226 (Finternal_show_cursor_p): New.
227 (syms_of_display): Defsubr Sinternal_show_cursor_p.
229 1999-11-03 Dave Love <fx@gnu.org>
231 * charset.c (split_non_ascii_string): Define return value.
233 1999-11-03 Gerd Moellmann <gerd@gnu.org>
235 * minibuf.c (string_to_object): New.
236 (read_minibuf_noninteractive): New.
237 (read_minibuf): Call read_minibuf_noninteractive if
238 noninteractive. Use string_to_object.
240 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
242 1999-11-02 Dave Love <fx@gnu.org>
244 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
246 * process.c: Define _GNU_SOURCE before config.h to get strsignal
247 declared with glibc2.
249 1999-11-02 Gerd Moellmann <gerd@gnu.org>
251 * lisp.h (QUIT): Give it statement form.
253 1999-11-02 Dave Love <fx@gnu.org>
255 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
257 1999-11-02 Gerd Moellmann <gerd@gnu.org>
259 * xfns.c (QCuser_data): New.
260 (syms_of_xfns): Initialize QCuser_data.
261 (parse_image_spec): Ignore :user-data DATA properties.
263 * xdisp.c (display_line): Set charpos of first glyph in blank
264 lines not corresponding to any text to -1, even if no glyphs are
265 filled in in that line.
267 1999-11-01 Gerd Moellmann <gerd@gnu.org>
269 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
270 png_get_sRGB in #ifdef.
272 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
273 (syms_of_display): Use the new name.
275 * textprop.c (verify_interval_modification): Signal text-read-only
276 instead of calling error.
278 * data.c (Qtext_read_only): New built-in error.
279 (syms_of_data): Initialize it.
281 * lisp.h: Add extern declaration for Qtext_read_only.
283 * syntax.c: Remove whitespace after open or in front of closing
286 1999-11-01 Richard M. Stallman <rms@caffeine.ai.mit.edu>
288 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
290 1999-10-31 Gerd Moellmann <gerd@gnu.org>
292 * xdisp.c (resize_mini_window): Compute needed height differently.
294 * fns.c (Flength): Unroll loop over lists.
296 * xdisp.c (append_space): Return non-zero if space was appended.
297 (display_line): Set charpos of first glyph to -1 only if that
298 glyph is the space added by append_glyph.
300 1999-10-30 Richard M. Stallman <rms@caffeine.ai.mit.edu>
302 * print.c (strout): Consider `noninteractive' and use stdout
303 only when PRINTCHARFUN is t.
305 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
306 (gcpro_level): Declare it extern.
307 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
308 Alternate definitions that set `level' and increment `gcpro_level'.
309 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
311 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
312 (init_eval) [DEBUG_GCPRO]: Initialize it.
313 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
314 from remaining gcprolist.
316 1999-10-29 Kenichi Handa <handa@etl.go.jp>
318 * coding.c (code_convert_region): Update `dst' correctly.
320 1999-10-28 Richard M. Stallman <rms@caffeine.ai.mit.edu>
322 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
323 as arg to DEBUG_POP and DEBUG_PRINT.
325 1999-10-28 Gerd Moellmann <gerd@gnu.org>
327 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
328 (Frassoc): Rewritten.
330 1999-10-27 Noah Friedman <friedman@splode.com>
332 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
333 Define PTY_NAME_SPRINTF.
334 Redefine PTY_TTY_NAME_SPRINTF.
335 * config.in: Add undef for HAVE_DEV_PTMX.
337 1999-10-26 Richard M. Stallman <rms@caffeine.ai.mit.edu>
339 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
340 as arg to DEBUG_POP and DEBUG_PRINT.
342 1999-10-27 Richard M. Stallman <rms@caffeine.ai.mit.edu>
344 * data.c (Qad_activate_internal): Renamed from Qad_activate.
345 (Ffset): Call Qad_activate_internal.
346 (syms_of_data): Initialize Qad_activate_internal.
348 1999-10-27 Gerd Moellmann <gerd@gnu.org>
350 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
351 Vterminal_frame is selected and Vwindow_system is non-nil.
353 1999-10-26 Gerd Moellmann <gerd@gnu.org>
355 * xdisp.c (echo_area_display): Put previous change in #if 0.
357 * emacs.c (standard_args): Add `file' as synonym for `visit',
358 `execute' as synonym for `eval'.
359 (main): Add new options to usage message.
361 1999-10-25 Gerd Moellmann <gerd@gnu.org>
363 * data.c (Qhash_table): New.
364 (Ftype_of): Return it for hash tables.
365 (syms_of_data): Initialize Qhash_table.
367 1999-10-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
369 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
371 1999-10-24 Ken Raeburn <raeburn@raeburn.org>
373 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
376 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
377 Fbuffer_local_variables, Fother_buffer, record_buffer,
378 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
379 swap_out_buffer_local_variables, overlays_at, overlays_in,
380 overlay_touches_p, overlay_strings, recenter_overlay_lists,
381 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
382 Foverlay_put, report_overlay_modification, evaporate_overlays):
383 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
385 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
386 swap_in_symval_forwarding, set_internal, default_value,
387 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
388 Fmake_variable_frame_local, Flocal_variable_p,
389 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
390 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
391 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
392 * emacs.c (main): Likewise.
393 * fontset.c (fs_load_font, fs_register_fontset,
394 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
395 Fnew_fontset, Fset_fontset_font): Likewise.
396 * frame.c (do_switch_frame, next_frame, prev_frame,
397 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
399 * keyboard.c (read_char, help_char_p, event_to_kboard,
400 kbd_buffer_get_event, timer_start_idle, timer_check,
401 make_lispy_event, apply_modifiers, reorder_modifiers,
402 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
403 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
404 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
405 Fcommand_execute, Fexecute_extended_command): Likewise.
406 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
407 Fall_completions): Likewise.
408 * window.c (Fset_window_margins): Likewise.
410 * callint.c (quotify_args): Don't explicitly use struct
411 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
413 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
414 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
415 if __ELF__ is defined.
417 1999-10-24 Gerd Moellmann <gerd@gnu.org>
419 * window.c (Fnext_window): Add a QUIT in the loop.
421 1999-10-23 Gerd Moellmann <gerd@gnu.org>
423 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
426 1999-10-22 Dave Love <fx@gnu.org>
428 * emacs.c (main): Enable profiling conditional on __linux also.
430 1999-10-20 Gerd Moellmann <gerd@gnu.org>
432 * xrdb.c (x_load_resources): Set default resources for resource
433 classes instead of for the specific Emacs.
435 1999-10-19 Gerd Moellmann <gerd@gnu.org>
437 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
440 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
441 if selected_frame is equal to Vterminal_frame.
443 1999-10-19 Paul Eggert <eggert@twinsun.com>
445 Add support for large files, 64-bit Solaris, system locale codings.
447 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
448 when dumping, so that the dumped Emacs doesn't have stray locale info.
449 (dired.o): Depend on systime.h.
450 (editfns.o): Depend on coding.h.
452 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
453 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
454 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
455 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
456 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
457 Include <config.h> before any system include files.
459 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
460 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
461 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
463 Do not include <stdlib.h>, as <config.h> does this now.
465 * callproc.c (Fcall_process):
466 Synchronize messages locale before invoking strerror.
467 Decode resulting string with locale-coding-system.
469 * coding.c (Vlocale_coding_system): New var.
470 (syms_of_coding): Adjust to above change.
471 (emacs_strerror): New function.
473 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
475 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
476 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
477 HAVE_STRSIGNAL): New macros.
478 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
479 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
481 * dired.c: Include "systime.h".
482 (Ffile_attributes): Do not cast s.st_size to int; this loses
483 information if int is 32 bits but st_size and EMACS_INT are larger.
484 Treat large device numbers like large inode numbers.
486 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
488 * editfns.c: Include coding.h.
489 (emacs_strftime): Remove decl.
490 (emacs_strftimeu): New decl.
491 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
492 Use emacs_strftimeu instead of emacs_strftime.
493 (Fformat_time_string): Convert format string using
494 Vlocale_coding_system, and convert result back. Synchronize time
495 locale before invoking lower level function. Invoke
496 emacs_memftimeu, passing ut, instead of emacs_memftime.
498 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
499 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
500 Vprevious_time_locale): New variables.
501 (main): Invoke setlocale early, so that initial error messages are
502 localized properly. But skip locale-setting if LC_ALL is "C".
503 Fix up locale when it's safe to do so.
504 (fixup_locale): Moved here from xterm.c.
505 (synchronize_locale, synchronize_time_locale,
506 synchronize_messages_locale): New functions.
507 (syms_of_emacs): Accommodate above changes.
509 * fileio.c (report_file_error): Convert strerror output according
510 to Vlocale_coding_system.
511 (Finsert_file_contents): Check for arithmetic overflow in
512 computations that depend on file size. Report IO errors
513 with emacs_strerror, not strerror.
515 * fns.c (Fgethash): Declare dflt parameter.
517 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
518 is defined; that's config.h's job.
520 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
521 default these values to long, BITS_PER_LONG, and unsigned long.
522 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
523 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
524 (code_convert_string_norecord, fixup_locale,
525 synchronize_messages_locale, synchronize_time_locale,
526 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
527 All Emacs callers of open, close, read, write changed to use
528 emacs_open, emacs_close, emacs_read, emacs_write.
530 * lread.c (file_offset, file_tell): New macros. All uses of ftell
531 changed to file_tell.
532 (saved_doc_string_position, prev_saved_doc_string_position): Now
534 (init_lread): Do not fix locale here; fixup_locale now does this.
536 * m/amdahl.h, s/usg5-4.h:
538 (NSIG_MINIMUM): New macro.
540 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
541 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
542 s/umips.h, s/usg5-4.h:
543 (SIGIO): Do not undef.
544 (BROKEN_SIGIO): New macro.
547 (SIGTSTP): Do not undef.
548 (BROKEN_SIGTSTP): New macro.
551 (SIGPOLL, SIGURG): Do not undef.
552 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
555 (SIGINFO): Do not undef.
556 (BROKEN_SIGINFO): New macros.
558 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
560 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
561 some Emacs-related changes merged.
563 * print.c (float_to_string): Prepend "-" to representation of a
564 NaN if the NaN is negative.
566 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
567 (wait_reading_process_input): Use emacs_strerror, not strerror.
569 * process.c (status_message, sigchld_handler): Synchronize locale,
570 then use strsignal istead of sys_siglist.
571 * w32proc.c (sys_wait): Likewise.
573 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
574 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
575 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
576 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
577 (open, close, read, write, INTERRUPTIBLE_OPEN,
578 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
580 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
582 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
583 sys_open, open): Remove.
584 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
585 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
586 macros are no longer used.
587 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
588 (emacs_close): Renamed from sys_close.
589 (emacs_read): Renamed from sys_read.
590 (emacs_write): Renamed from sys_write.
591 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
592 (dup2): Do not print error on failure; the real dup2 doesn't.
593 (strsignal): New function, defined if !HAVE_STRSIGNAL.
595 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
597 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
598 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
599 (strsignal): Declare if !HAVE_STRSIGNAL.
601 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
602 (ElfW): Define in terms of ElfExpandBitsW.
604 * w32proc.c (sys_siglist): Remove decl.
606 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
608 (display_string): Declare face_string_pos arg.
610 * xfns.c (Fx_show_tip): Declare timeout param.
612 * xterm.c: No need to include locale.h.
613 (x_alloc_lighter_color, x_setup_relief_color):
614 Pass arg as double, not float, for compatibility with ANSI C.
615 (fixup_locale): Move to emacs.c.
616 (x_term_init): Do not setlocale or fixup locale; the main program
619 1999-10-18 Dave Love <fx@gnu.org>
621 * doc.c (Fdocumentation_property): Gcpro `tem'.
623 1999-10-18 Kenichi Handa <handa@etl.go.jp>
625 * lread.c (Fload): Calculate bytes of filename correctly.
628 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
630 * print.c (print_preprocess): In case print-circle is nil,
631 add OBJ to Vprint_number_table only when OBJ is a symbol.
633 1999-10-18 Kenichi Handa <handa@etl.go.jp>
635 * coding.c (code_convert_string): Add record_unwind_protect to
636 assure setting inhibit_pre_post_conversion back to zero. Take
637 care of the multibyteness of the working buffer.
639 * coding.c (inhibit_pre_post_conversion): New variable.
640 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
641 ignore post-read-conversion and pre-write-conversion property of
643 (code_convert_region_unwind): New function.
644 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
645 running pre-write-conversion and post-read-conversion.
646 (code_convert_string): Likewise.
648 1999-10-17 Miles Bader <miles@gnu.org>
650 * editfns.c: Doc fix.
652 1999-10-17 Miles Bader <miles@gnu.org>
654 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
655 argument preconditions of find_before_next_newline in the case
656 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
657 was indeed at the edge.
659 1999-10-17 Miles Bader <miles@gnu.org>
661 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
662 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
664 * editfns.c (text_property_eq, text_property_stickiness): Don't
665 use initializers for auto variables of type Lisp_Object.
666 (find_field): Likewise. Use braces around nested ifs.
667 (Fline_end_position): Store the raw eol in a variable, so that the
668 final expression doesn't look so ugly.
669 (Fconstrain_to_field): Doc fix.
670 (preceding_pos): Renamed from `preceeding_pos'.
671 (text_property_stickiness, find_field): Call preceding_pos,
674 1999-10-17 Miles Bader <miles@gnu.org>
676 * editfns.c (Ffield_string_no_properties): New function.
677 (text_property_stickiness, preceeding_pos): New functions.
678 (Ffield_string): Remove PROPS parameter.
679 (find_field): Add MERGE_AT_BOUNDARY parameter.
680 Rewrite to use stickiness of `field' property to resolve
682 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
683 (Fconstrain_to_field): Likewise.
684 (syms_of_editfns): Init Sfield_string_no_properties.
685 (Ffield_string, Ferase_field, Ffield_end):
686 Supply new MERGE_AT_BOUNDARY argument to find_field.
687 (Fline_beginning_position, Fline_end_position): Supply new
688 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
689 Pass a value of Qt for the ONLY_IN_LINE argument to
690 Fconstrain_to_field (only matters if N != 1).
691 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
692 to Fconstrain_to_field.
694 * minibuf.c (Fminibuffer_complete_word): Use
695 Ffield_beginning to find the prompt end.
697 1999-10-17 Miles Bader <miles@gnu.org>
699 * editfns.c (Fconstrain_to_field): Add get/set-current-point
700 behavior when NEW_POS is nil.
701 (find_field): Use XSETFASTINT instead of make_number.
702 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
703 input string by seeing where the field begins, instead of
704 looking at text-properties.
706 1999-10-17 Miles Bader <miles@gnu.org>
708 * editfns.c (Qfield): New variable.
709 (find_field, Ferase_field, Ffield_string,
710 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
711 (Fline_beginning_position, Fline_end_position): Constrain to any field.
712 (make_buffer_string_both): Remove minibuffer-prompt hack.
713 (syms_of_editfns): Initialize Qfield, and subr entries for
714 field functions above.
715 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
717 Don't initialize minibuffer prompt length.
718 Wrap prompt text-properties around the entire prompt.
719 Add 'prompt text-property to prompt.
720 Get final value with Ffield_string instead of make_buffer_string.
721 (read_minibuf_unwind): Don't restore minibuffer prompt length from
723 (do_completion): Get minibuffer input with Ffield_string
724 instead of Fbuffer_string.
725 Erase minibuffer input with Ferase_field instead of erase_buffer.
726 (Fminibuffer_complete_and_exit): Likewise.
727 Test whether buffer is empty by looking for the 'prompt text
729 Set prompt length by looking for the end of the prompt text property,
730 and save prompt length for later use (since there is no longer a
731 buffer variable to get it from).
732 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
733 (syms_of_minibuf): Remove initializations of
734 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
735 * buffer.h (struct buffer): Remove prompt_end_charpos field.
736 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
737 Don't initialize prompt_end_charpos field.
738 * syntax.c (Fforward_word): Likewise.
739 Constrain to any field.
741 1999-10-16 Gerd Moellmann <gerd@gnu.org>
743 * window.c (enum save_restore_action): New.
744 (save_restore_orig_size): Change parameter list. Add
745 functionality to check for valid orig_top and orig_height members
747 (grow_mini_window): Call save_restore_orig_size with new parameter
749 (shrink_mini_window): Restore old window sizes only if old
750 size information is valid in all windows in a window tree.
752 1999-10-15 Gerd Moellmann <gerd@gnu.org>
754 * xmenu.c (set_frame_menubar): Don't call
755 x_set_menu_resources_from_menu_face here.
756 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
758 * xfns.c (gif_load): Fix handling of interlaced GIFs.
760 1999-10-14 Dave Love <fx@gnu.org>
762 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
764 1999-10-14 Gerd Moellmann <gerd@gnu.org>
766 * process.c (Fopen_network_stream): Don't loop if gethostbyname
767 fails and h_errno is TRY_AGAIN.
769 1999-10-13 Dave Love <fx@gnu.org>
771 * filelock.c (lock_file): Move gcpro of `fn'.
773 1999-10-10 Gerd Moellmann <gerd@gnu.org>
775 * keyboard.c (auto-save-interval): Fix documentation.
777 1999-10-09 Richard M. Stallman <rms@caffeine.ai.mit.edu>
779 * print.c (print): When removing objects from Vprint_number_table,
780 only scan the newly added objects.
781 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
782 unconditionally force it to stay in the table.
784 1999-10-09 Gerd Moellmann <gerd@gnu.org>
786 * xfns.c (prepare_image_for_display): Don't try to load image if
787 loading it failed before.
788 (lookup_image, prepare_image_for_display): Remember if loading the
790 (xpm_load): Add missing UNBLOCK_INPUT.
792 * dispextern.h (struct image): New member load_failed_p.
794 1999-10-08 Stefan Monnier <monnier@cs.yale.edu>
796 * fileio.c (Fmake_temp_name): add a reference to `make-temp-file'
799 1999-10-08 Gerd Moellmann <gerd@gnu.org>
801 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
802 Don't call XSetInputFocus because that can generate additional
805 1999-10-07 Jeffrey C Honig <jch@bsdi.com>
807 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
809 1999-10-07 Richard M. Stallman <rms@caffeine.ai.mit.edu>
811 * process.c (wait_reading_process_input): When trying to suck
812 input from one process, for accept-process-output,
813 exit that loop if we get EAGAIN or EWOULDBLOCK.
815 1999-10-07 Gerd Moellmann <gerd@gnu.org>
817 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
818 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
819 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
820 Fpixmap_spec_p and Qpixmap_spec_p.
821 (load_face_colors, check_lface_attrs,
822 merge_face_vector_with_property,
823 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
824 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
827 1999-10-07 Gerd Moellmann <gerd@gnu.org>
829 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
832 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
833 (struct x_resources) [USE_X_TOOLKIT]: New.
834 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
836 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
838 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
840 (syms_of_xfaces): Initialize Qmenu.
841 (realize_basic_faces): Realize face `menu'.
842 (resolve_face_name): New.
843 (lface_from_face_name): Use it.
844 (Finternal_set_lisp_face_attribute): Ditto.
845 (Fpixmap_spec_p): Rewritten. Extend doc string.
847 * xmenu.c (set_frame_menubar, xmenu_show): Call
848 x_set_menu_resources_from_menu_face.
850 * dispextern.h (enum face_id): Add MENU_FACE_ID.
851 (toplevel): Include X11/Intrinsic.h.
853 1999-10-03 Ken'ichi Handa <handa@gnu.org>
855 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
858 1999-09-30 Kenichi Handa <handa@etl.go.jp>
860 * category.c (modify_lower_category_set): Set default value of
863 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
866 1999-09-29 Gerd Moellmann <gerd@gnu.org>
868 * editfns.c (Fpropertize): Renamed from Fproperties.
870 1999-09-29 Gerd Moellmann <gerd@gnu.org>
872 * xdisp.c (resize_mini_window): Do nothing if frame is an X
873 frame that hasn't been initialized yet.
875 1999-09-28 Richard M. Stallman <rms@caffeine.ai.mit.edu>
877 * keymap.c (Fsingle_key_description): Make tem big enough.
878 (describe_buffer_bindings): Make buf big enough.
880 1999-09-27 Richard M. Stallman <rms@caffeine.ai.mit.edu>
882 * intervals.c (get_local_map): Use indirect_function,
883 not Findirect_function.
885 1999-09-27 Dave Love <fx@gnu.org>
887 * cm.h: Remove unneeded declaration of ospeed.
889 1999-09-26 Gerd Moellmann <gerd@gnu.org>
891 * lisp.h (toplevel): Add prototype for
892 next_single_char_property_change.
894 * textprop.c (next_single_char_property_change): New.
896 * xdisp.c (display_prop_end, invisible_text_between_p): Use
897 next_single_char_property_change.
899 1999-09-25 Gerd Moellmann <gerd@gnu.org>
901 * editfns.c (Fproperties): New.
902 (syms_of_editfns): Defsubr it.
904 * xfns.c (lookup_image): Set image's timestamp because it's
905 used when we look it up.
907 1999-09-23 Gerd Moellmann <gerd@gnu.org>
909 * window.c (enlarge_window): Add window parameter instead of using
911 (Fdisplay_buffer): Call it with window parameter instead of
912 setting selected_window.
913 (Fenlarge_window, Fshrink_window): Ditto.
914 (shrink_mini_window): If there is no recorded height and position
915 info, resize mini-window to height 1.
917 * xfns.c (image_error): Use add_to_log.
919 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
920 (load_face_font_or_fontset, load_color,
921 merge_face_vector_with_property): Ditto.
923 * dispextern.h: Add prototype for add_to_log.
925 * xfaces.c (add_to_log): Move to xdisp.c.
927 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
930 1999-09-23 Gerd Moellmann <gerd@gnu.org>
932 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
933 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
935 * xdisp.c (resize_mini_window): Use grow_mini_window and
938 * window.c (window_min_size): Add parameter ignore_fixed_p.
939 (change_window_height): Call window_min_size with new parameter.
940 (shrink_window_lowest_first, save_restore_orig_size,
941 grow_mini_window, shrink_mini_window): New.
942 (make_window, replace_window): Initialize orig_top and
944 (enlarge_window): Renamed from change_window_height. Make it
946 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
947 enlarge_window instead of change_window_height.
949 * window.h (struct window): New members orig_top, orig_height.
950 (toplevel): Add prototypes for grow_mini_window and
951 shrink_mini_window. Remove prototype for change_window_height.
953 1999-09-21 Eli Zaretskii <eliz@gnu.org>
955 * frame.c (frame_name_fnn_p): Fix previous change.
957 1999-09-20 Gerd Moellmann <gerd@gnu.org>
959 * minibuf.c (toplevel): Move include of stdio.h to other includes.
961 * dispnew.c (direct_output_for_insert): Cast arguments to
962 safe_bcopy to char *.
964 * lread.c (readchar): Remove unused variables.
965 (read_filtered_event, read1, Fmapatoms): Ditto.
966 (toplevel): Include intervals.h.
968 * eval.c (Fsignal): Remove unused variables.
969 (Fcommandp, do_autoload): Ditto.
971 * lisp.h: Add prototype for safe_bcopy, fatal.
973 * editfns.c (init_editfns): Remove unused variables.
974 (Fgoto_char, Fchar_after, Fformat): Ditto.
975 (message_text, message_length): Put in #ifndef HAVE_MENUS.
977 * data.c (find_symbol_value): Remove unused variables.
978 (Faref, Fstring_to_number): Ditto.
979 (toplevel): Include stdio.h.
980 (Fnumber_to_string): Cast XINT to long for %ld.
982 * casefiddle.c (casify_object): Remove unused variables.
983 (casify_region): Ditto.
985 * filelock.c (get_boot_time): Put local variable used in
986 conditinally compiled section in #ifdef.
987 (toplevel): Include stdio.h.
989 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
990 keys_of_keymap, syms_of_keymap): Remove unused variables.
992 1999-09-20 Gerd Moellmann <gerd@gnu.org>
994 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
995 whose corresponding window rows have been disabled in
998 1999-09-20 Gerd Moellmann <gerd@gnu.org>
1000 * xdisp.c (compute_window_start_on_continuation_line): Handle case
1001 that window start is out of range.
1002 (handle_display_prop, handle_single_display_prop): Replace
1003 marginal area specifications like `left-margin' with `(margin
1006 (syms_of_xdisp): Initialize Qmargin.
1008 1999-09-19 Gerd Moellmann <gerd@gnu.org>
1010 * syntax.c (update_syntax_table, find_defun_start, back_comment,
1011 describe_syntax, skip_chars): Remove unused variables.
1012 (back_comment, forw_comment): Add braces to if-statement with
1013 if-else as dependent statement.
1015 * process.c (list_processes_1): Remove unused variables.
1016 (Fopen_network_stream, create_process): Add parentheses to
1017 conditional expressions.
1018 (create_process): Put declaration of sigchld in #if 0.
1019 (Fopen_network_stream): Removed unused variables.
1020 (Fopen_network_stream, wait_reading_process_input,
1021 wait_reading_process_input, send_process, send_process): Ditto.
1022 (toplevel): Add prototypes for set_waiting_for_input and
1025 * abbrev.c (Fexpand_abbrev): Remove unused variables.
1027 * textprop.c (Fset_text_properties): Remove unused variables.
1028 (text_property_list, verify_interval_modification,
1029 interval_has_all_properties): Ditto.
1031 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1032 (Fcall_process): Remove unused variable.
1034 * keyboard.c (Frecursive_edit): Remove unused variable.
1035 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
1036 timer_check, make_lispy_event, menu_bar_items,
1037 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
1038 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
1039 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
1040 read_key_sequence): Ditto. Fread_key_sequence,
1041 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
1042 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
1043 used when GOBBLE_FIRST_EVENT is defined in #ifdef
1044 (Fexecute_extended_command): Cast XINT to long for %ld.
1045 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1046 (toplevel): Include sys/types.h.
1048 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
1049 (toplevel): Add prototypes for stuff_char, and
1050 code_convert_string_norecord.
1052 1999-09-19 Gerd Moellmann <gerd@gnu.org>
1054 * buffer.h: Add prototype for r_re_alloc.
1056 * insdel.c (copy_text): Removed unused variables.
1057 (count_combining_after, count_combining_after, insert_1_both,
1058 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
1059 (adjust_after_replace, replace_range): Add parentheses to logical
1060 expressions. Remove unused variables.
1061 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
1064 * alloc.c (Fgarbage_collect): Remove unused variable.
1065 (compact_strings): Add parentheses around assignments in
1066 conditional context.
1067 (toplevel): Put declaration of unused function clear_marks
1068 in #if 0 like its definition.
1070 * lisp.h: Add prototype for shrink_regexp_cache,
1071 sweep_weak_hash_tables.
1073 1999-09-19 Dave Love <fx@gnu.org>
1075 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
1077 * doc.c (read_bytecode_char): Declare arg.
1079 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
1080 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
1082 1999-09-18 Richard Stallman <rms@gnu.org>
1084 * xdisp.c (echo_area_display): Turn off code that returned
1085 without doing anything when using a terminal frame.
1087 1999-09-17 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1089 * unexelf.c (unexec): Don't get confused by a short section
1090 just before the bss section.
1092 1999-09-16 Gerd Moellmann <gerd@gnu.org>
1094 * emacs.c (main): Remove unused variables.
1095 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
1097 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
1098 init_fileio_once, syms_of_sound, init_xfns, init_fns
1099 init_sound, check_message_stack.
1101 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
1103 * intervals.c (rotate_right, rotate_left): Add braces to avoid
1104 ambiguous else warning.
1105 (split_interval_left): Remove unused variables.
1106 (previous_interval, adjust_intervals_for_deletion,
1107 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
1108 (icount, idepth, zero_length): Move into #if 0 section below
1109 original position where these are used.
1111 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
1113 * buffer.c (Fkill_buffer): Remove unused variables.
1114 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
1115 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
1116 init_buffer_once, (syms_of_buffer): Ditto.
1118 * xrdb.c (get_fallback): Remove unused variable.
1119 (x_load_resources): Ditto. Put local variable used for Motif only
1120 in #ifdef USE_MOTIF.
1122 1999-09-16 Gerd Moellmann <gerd@gnu.org>
1124 * minibuf.c (read_minibuf): Remove unused variables.
1125 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
1126 (do_completion): Move assignment out of conditional context.
1127 (Fdisplay_completion_list): Add parentheses to conditional expression.
1129 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
1131 * lisp.h: Add prototype for no_switch_window.
1133 * window.c (Fset_window_buffer): Remove unused variables.
1134 (Fset_window_margins): Ditto.
1136 * xdisp.c (resize_mini_window): Temporarily set the selected
1137 window's or Vminibuf_scroll_window's height to "fixed" around
1138 the call the change_window_height.
1140 * window.c (window_fixed_size_p): Check window's height_fixed_p
1143 * window.h (struct window): New member height_fixed_p.
1145 * dispnew.c (direct_output_forward_char): Don't use this method
1146 if showing a message or a message was just cleared because we
1147 might need to resize the mini-window.
1149 1999-09-16 Gerd Moellmann <gerd@gnu.org>
1151 * frame.c (Fdelete_frame): Correct local variable pointing to
1152 selected frame after selecting new frame.
1154 1999-09-15 Richard Stallman <rms@gnu.org>
1156 * puresize.h (BASE_PURESIZE): Increase to 525000.
1158 * filelock.c (Vtemporary_file_directory): New variable.
1159 (syms_of_filelock): Set up Lisp variable.
1161 1999-09-15 Gerd Moellmann <gerd@gnu.org>
1163 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
1164 (encode_terminal_code): Remove unused variables.
1165 (turn_off_face): Ditto.
1166 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
1168 * dispnew.c (update_frame_line): If writing whole desired line,
1169 don't clear to end of line if already at the end.
1171 1999-09-15 Gerd Moellmann <gerd@gnu.org>
1173 * xdisp.c (resize_mini_window): Don't report changed window
1174 height if it actually hasn't changed.
1176 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
1178 (mark_shell_size_user_specified): Put in #if 0 because not used.
1179 (create_frame_gcs): Put in #if 0 because currently unused.
1180 (first_frame_p): Ditto.
1182 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
1183 single_submenu, update_frame_menubar, set_frame_menubar,
1184 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
1187 * print.c (PRINTFULLP): Removed because it is no longer used and
1189 (Ferror_message_string): Remove unused variables.
1190 (print_object): Cast argument of sprintf to long for `%ld'
1191 specifier. Remove unused variable.
1193 1999-09-14 Gerd Moellmann <gerd@gnu.org>
1195 * sound.c (Fplay_sound): Remove usused variables.
1196 (be2hs): Put in #if 0 because it's currently not used.
1198 1999-09-14 Ken Raeburn <raeburn@gnu.org>
1200 * print.c (Ferror_message_string, print_error_message,
1201 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
1204 1999-09-14 Gerd Moellmann <gerd@gnu.org>
1206 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
1208 * frame.c (Fnext_frame): Remove unused variable(s).
1209 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
1210 (store_frame_param): Add parentheses to conditional expression.
1211 (Fmodify_frame_parameters): Remove unused variables.
1212 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
1215 * xfns.c (x_set_background_color): Remove unused variable(s).
1216 (x_set_border_pixel): Ditto.
1217 (x_set_menu_bar_lines): Put local variable used only for
1218 non-toolkit case in #ifdef/#endif.
1219 (x_figure_window_size): Remove unused variable(s).
1220 (x_figure_window_size, x_window, lookup_image,
1221 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
1222 png_load, jpeg_load, gif_load, x_create_tip_frame,
1223 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
1225 * xterm.c (x_scroll_bar_handle_click): Compile only if
1226 not USE_TOOLKIT_SCROLL_BARS.
1227 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
1229 * dispextern.h: Add prototypes for gamma_correct and
1232 * xterm.c (x_produce_glyphs): Remove unused variable(s).
1233 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
1234 x_set_toolkit_scroll_bar_thumb): Ditto.
1235 (x_scroll_bar_create): Move local variable to the
1236 conditionally compiled section of code where it is used.
1237 (x_scroll_bar_create): Remove unused variable(s).
1238 (x_scroll_bar_remove, XTread_socket): Ditto.
1239 (XTread_socket) <ConfigureNotify>: Move variables used for
1240 non-toolkit case into conditionally compiled section of code.
1242 * window.h (freeze_window_starts): Fix typo in prototype.
1244 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
1247 * lisp.h: Add prototype for debug_print.
1249 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
1252 * fns.c (SXHASH_COMBINE): Add missing parentheses.
1253 (Fchar_table_range, Fset_char_table_default, mapcar1,
1254 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
1256 * lisp.h: Add prototype for getloadavg.
1258 1999-09-14 Andreas Schwab <schwab@gnu.org>
1260 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
1262 * lisp.h: Declare close_file_unwind.
1264 1999-09-14 Richard Stallman <rms@gnu.org>
1266 * filelock.c (get_boot_time): Make the temp name in the proper dir.
1268 1999-09-13 Gerd Moellmann <gerd@gnu.org>
1270 * xdisp.c (redisplay_window): Make sure start_at_line_beg
1271 is always set correctly.
1273 1999-09-13 Dave Love <fx@gnu.org>
1275 * xdisp.c (move_it_in_display_line_to): Make type consistent with
1278 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
1280 * xdisp.c (QCfile): Move here from xfns.c.
1281 (syms_of_xdisp): Initialize it.
1282 (message2_nolog): Change for Lisp_Object selected_frame.
1283 (message3_nolog, message_with_string, message,
1284 setup_echo_area_for_printing, truncate_echo_area,
1285 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1287 1999-09-13 Dave Love <fx@gnu.org>
1289 * xterm.c: Don't continue #define args for benefit of old cc.
1290 (xt_action_hook): Indent #error for benefit of K&R cc.
1292 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
1294 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
1295 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
1296 (XRINGBELL): Removed.
1298 1999-09-13 Dave Love <fx@gnu.org>
1300 * xfns.c (x_put_x_image): Make type consistent with declaration.
1302 * fns.c (Fmake_hash_table): Fix string continuation.
1304 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
1306 * xfns.c (QCfile): Moved to xdisp.c.
1307 (syms_of_xfns): Don't initialize QCfile.
1308 (check_x_frame): Change for Lisp_Object selected_frame.
1309 (check_x_display_info, x_get_resource_string): Ditto.
1311 1999-09-13 Gerd Moellmann <gerd@gnu.org>
1313 * minibuf.c (choose_minibuf_frame): Don't try to set the
1314 mini-buffer window's buffer, if the buffer is invalid.
1316 * xfns.c (QCfile): Moved to xdisp.c.
1317 (syms_of_xfns): Don't initialize QCfile.
1319 * xdisp.c (QCfile): Move here from xfns.c.
1320 (syms_of_xdisp): Initialize it.
1322 * lisp.h (selected_frame): Add external declaration.
1324 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
1325 (Fx_store_cut_buffer_internal): Ditto.
1326 (Fx_rotate_cut_buffers_internal): Ditto.
1328 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
1330 (Finternal_set_lisp_face_attribute): Ditto.
1331 (Finternal_get_lisp_face_attribute): Ditto.
1332 (Finternal_lisp_face_empty_p): Ditto.
1333 (Fdump_face): Ditto.
1335 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
1336 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
1337 set_terminal_window, set_scroll_region, reassert_line_highlight,
1338 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
1339 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
1340 encode_terminal_code, write_glyphs, term_init): Ditto.
1342 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
1343 (kbd_input_ast, read_input_waiting): Ditto.
1345 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
1347 (read_minibuf): Ditto.
1349 * keyboard.c (command_loop_1): Change for Lisp_Object
1351 (cmd_error_internal, command_loop_1, read_char,
1352 kbd_buffer_get_event, read_avail_input,
1353 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
1354 interrupt_signal, quit_throw_to_read_char): Ditto.
1356 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
1357 (Ffontset_info): DItto.
1359 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
1361 * dispnew.c (selected_frame): Make it a Lisp_Object.
1362 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
1363 (direct_output_for_insert, direct_output_forward_char,
1364 init_display): Ditto.
1366 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
1368 (set_internal): Ditto.
1370 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
1371 (record_buffer): Ditto.
1373 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
1374 (do_switch_frame): Change for Lisp_Object selected_frame.
1375 (Fselected_frame): Ditto.
1376 (Fframe_first_window): Use SELECTED_FRAME.
1377 (Fframe_root_window): Change for Lisp_Object selected_frame.
1378 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
1379 Fprevious_frame, other_visible_frames, Fdelete_frame,
1380 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
1381 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
1382 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
1383 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
1384 Fset_frame_height, Fset_frame_width): Ditto.
1386 1999-09-13 Gerd Moellmann <gerd@gnu.org>
1388 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
1389 (message3_nolog, message_with_string, message,
1390 setup_echo_area_for_printing, truncate_echo_area,
1391 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
1393 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
1394 (Fx_popup_dialog): Ditto.
1396 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
1397 (check_x_display_info, x_get_resource_string): Ditto.
1399 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
1400 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
1401 (XRINGBELL): Removed.
1403 * window.c (Fminibuffer_window): Change for Lisp_Object
1405 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
1406 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
1407 Fcurrent_window_configuration, init_window_once): Ditto.
1409 * frame.h (SELECTED_FRAME): New.
1411 1999-09-12 Ken Raeburn <raeburn@gnu.org>
1413 * category.c (word_boundary_p): Use XCAR and XCDR.
1414 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
1415 Fregister_code_conversion_map): Likewise.
1416 * coding.c (setup_coding_system, detect_coding_system,
1417 Ffind_operation_coding_system, Fset_coding_priority_internal):
1419 * doc.c (get_doc_string, Fdocumentation,
1420 store_function_docstring): Likewise.
1421 * editfns.c (save_restriction_restore): Likewise.
1422 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
1423 skip_debugger, find_handler_clause, Fautoload, Fapply,
1424 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
1426 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
1427 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
1428 Fread_file_name): Likewise.
1429 * filelock.c (unlock_all_files): Likewise.
1430 * insdel.c (Fcombine_after_change_execute): Likewise.
1431 * intervals.c (adjust_intervals_for_insertion): Likewise.
1432 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
1433 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
1434 store_in_keymap, Fcopy_keymap, define_as_prefix,
1435 current_minor_maps, Faccessible_keymaps,
1436 accessible_keymaps_char_table, Fkey_description,
1437 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
1438 describe_buffer_bindings, describe_map_tree, shadow_lookup,
1439 describe_map): Likewise.
1440 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
1441 read_list, init_lread): Likewise.
1442 * search.c (Fmatch_data): Likewise.
1443 * sunfns.c (Fsun_menu_internal): Likewise.
1444 * syntax.c (describe_syntax): Likewise.
1445 * undo.c (record_insert, record_delete, Fundo_boundary,
1446 truncate_undo_list): Likewise.
1447 * vmsproc.c (child_sig): Likewise.
1449 * editfns.c (Fformat): Use XFLOAT_DATA.
1451 1999-09-12 Gerd Moellmann <gerd@gnu.org>
1453 * keyboard.c (command_loop_1): Resize mini-window to the
1454 exact size of a message displayed, if any.
1456 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
1457 to exact size if exact_p is non-zero.
1458 (display_echo_area_1): Call resize_mini_window with
1460 (redisplay_internal): Ditto.
1461 (resize_echo_area_axactly): New.
1463 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
1466 * dispextern.h: Change prototype of resize_mini_window.
1467 Add prototype for resize_echo_area_axactly.
1469 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
1470 (syms_of_xfaces): Defsubr accordingly.
1472 * xdisp.c (hscroll_window_tree): Choose cursor row from
1473 desired or current matrix.
1474 (redisplay_internal): Hscroll before updating.
1476 1999-09-12 Gerd Moellmann <gerd@gnu.org>
1478 * syntax.c (Fforward_word): Use prompt_end_charpos instead
1479 of minibuffer_prompt_length.
1481 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
1482 of minibuffer_prompt_length.
1483 (read_minibuf_unwind): Ditto.
1484 (Fminibuffer_complete_and_exit): Ditto.
1485 (Fminibuffer_complete_word): Ditto.
1486 (Fminibuffer_prompt_end): Ditto.
1488 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
1489 of minibuffer_prompt_length.
1490 (Fline_beginning_position): Ditto.
1492 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
1493 of minibuffer_prompt_length.
1494 (Fmake_indirect_buffer): Ditto.
1495 (Fkill_buffer): Ditto.
1496 (Ferase_buffer): Ditto.
1498 * buffer.h (prompt_end_charpos): Replaces
1499 minibuffer_prompt_length.
1501 * minibuf.c (read_minibuf): Return mini-buffer contents
1504 * editfns.c (make_buffer_string_both): Take out the code
1505 to handle mini-buffer prompts.
1506 (Fbuffer_string): Handle the prompt here, instead.
1508 * xfaces.c (lface_from_face_name): Resolve face aliases.
1509 (Qmode_line): Replaces Qmodeline.
1510 (realize_basic_faces): Use Qmode_line.
1511 (syms_of_xfaces): Initialize Qmode_line.
1513 1999-09-12 Gerd Moellmann <gerd@gnu.org>
1515 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
1516 current column after inserting prompt.
1517 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
1519 * xfaces.c (Qframe_update_face_colors): New.
1520 (syms_of_xfaces): Initialize call.
1521 (update_face_from_frame_parameter): Call that function when
1522 the frame's background changes.
1524 1999-09-12 Richard Stallman <rms@gnu.org>
1526 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
1528 1999-09-12 Ken Raeburn <raeburn@gnu.org>
1530 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
1531 mark_object, mark_buffer): Use XCAR and XCDR.
1532 * bytecode.c (Fbyte_code): Likewise.
1533 * callint.c (Fcall_interactively, Fprefix_numeric_value):
1535 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
1536 getenv_internal): Likewise.
1537 * dired.c (file_name_completion): Likewise.
1538 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
1539 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
1540 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
1541 * indent.c (Fcompute_motion): Likewise.
1542 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
1543 list_processes_1, Fstart_process, Fopen_network_stream,
1544 wait_reading_process_input, read_process_output_call,
1545 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
1546 status_notify, wait_reading_process_input): Likewise.
1547 * textprop.c (PLIST_ELT_P, property_value, set_properties,
1548 extend_property_ranges): Likewise.
1549 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
1550 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
1551 x_report_frame_params, x_set_cursor_type, x_icon_type,
1552 x_figure_window_size, Fx_create_frame, w32_load_system_font,
1553 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
1554 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
1555 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
1556 x_display_info_for_name, Fx_display_list): Likewise.
1557 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
1558 Fx_popup_menu, Fx_popup_dialog): Likewise.
1559 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
1560 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
1561 w32_term_init, x_delete_display): Likewise.
1562 * xfns.c (x_window_to_frame, x_any_window_to_frame,
1563 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
1564 x_top_window_to_frame, x_set_frame_parameters,
1565 x_report_frame_params, x_set_cursor_type, x_icon_type,
1566 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
1567 Fx_display_list, x_create_tip_frame): Likewise.
1568 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
1569 Fx_popup_menu, Fx_popup_dialog): Likewise.
1570 * xselect.c (x_own_selection, x_get_local_selection,
1571 x_handle_selection_request, x_handle_selection_clear,
1572 x_clear_frame_selections, wait_for_property_change_unwind,
1573 wait_for_property_change, x_handle_property_notify,
1574 copy_multiple_data, x_get_foreign_selection,
1575 lisp_data_to_selection_data, clean_local_selection_data,
1576 x_handle_selection_notify, Fx_get_selection_internal,
1577 x_disown_buffer_selections): Likewise.
1578 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
1579 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
1582 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
1584 * bytecode.c (Fbyte_code): Likewise.
1585 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
1586 fmod_float): Likewise.
1588 1999-09-11 Richard Stallman <rms@gnu.org>
1590 * xdisp.c (run_window_scroll_functions): If hook functions switch
1591 buffers, switch back after.
1593 1999-09-11 Ken Raeburn <raeburn@gnu.org>
1595 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
1596 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
1597 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
1598 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
1599 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
1601 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
1604 1999-09-10 Richard Stallman <rms@gnu.org>
1606 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
1607 not RevertToPointerRoot.
1608 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1609 Fix the code to clear around the scroll bar.
1611 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
1613 * print.c: Support print-circle and related features.
1614 (Vprint_gensym_alist): Removed.
1615 (Vprint_circle, Vprint_continuous_numbering, print_number_index
1616 Vprint_number_table): New variables.
1617 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
1618 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
1619 (print, print_preprocess, print_preprocess_string, print_object):
1620 New/modified functions with print-circle feature. Use
1621 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
1622 (syms_of_print): Defined new Lisp variables `print-circle',
1623 `print-continuous-numbering', `print-number-table'.
1625 1999-09-10 Gerd Moellmann <gerd@gnu.org>
1627 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
1628 as background color specification instead of an integer.
1629 (image-cache-eviction-delay): Replaces image-eviction-seconds.
1630 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
1631 (clear_image_cache, syms_of_xfns): Use it.
1632 (Qpostscript): Replaces Qghostscript.
1634 (gs_image_p): Ditto.
1635 (syms_of_xfns): Initialize Qpostscript.
1637 1999-09-10 Richard Stallman <rms@gnu.org>
1639 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
1641 1999-09-09 Richard Stallman <rms@gnu.org>
1643 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
1645 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
1647 1999-09-09 Gerd Moellmann <gerd@gnu.org>
1649 * fns.c (Fmakehash): Accept just one optional argument TEST.
1651 * xfns.c (QCindex): New.
1652 (syms_of_xfns): Initialize QCindex.
1653 (gif_load): Use it instead of `:image'.
1655 1999-09-09 Richard Stallman <rms@gnu.org>
1657 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
1658 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
1660 1999-09-08 Gerd Moellmann <gerd@gnu.org>
1662 * xdisp.c (Qwhen): Replaces QCwhen.
1663 (syms_of_xdisp): Initialized it instead of QCwhen.
1664 (handle_single_display_prop): Use it instead of QCwhen.
1666 1999-09-08 Ken'ichi Handa <handa@gnu.org>
1668 * charset.c (translate_char): Reset MSBs of arguments of
1670 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
1672 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1674 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
1676 * fns.c (Fbase64_decode_region): Don't place point outside of the
1677 current accessible portion.
1679 1999-09-07 Richard Stallman <rms@gnu.org>
1681 * keymap.c (fix_submap_inheritance): Do nothing if the proper
1682 parent is an ancestor of SUBMAP; otherwise, add it as the
1685 1999-09-07 Gerd Moellmann <gerd@gnu.org>
1687 * xdisp.c (handle_single_display_prop): Change conditional
1688 display property to `:when FORM . VALUE'.
1690 1999-09-07 Richard Stallman <rms@gnu.org>
1692 * fileio.c (Fwrite_region): Doc fix.
1694 1999-09-07 Stefan Monnier <monnier@cs.yale.edu>
1696 * fileio.c (Qexcl): New variable.
1697 (report_file_error): Handle EEXIST specially.
1698 (Fwrite_region): Special handling for CONFIRM = `excl'.
1699 (syms_of_fileio): Initialize Qexcl.
1701 1999-09-07 Gerd Moellmann <gerd@gnu.org>
1703 * xfns.c (x_set_foreground_color): Call
1704 update_face_from_frame_parameter.
1705 (x_set_background_color): Ditto.
1706 (x_set_mouse_color): Ditto.
1707 (x_set_cursor_color): Ditto.
1708 (x_set_border_color): Ditto.
1709 (x_set_scroll_bar_foreground): Ditto.
1710 (x_set_scroll_bar_background): Ditto.
1712 * xfaces.c (recompute_basic_faces): Clear face cache.
1713 (Finternal_set_lisp_face_attribute): Modify frame parameters
1714 if attributes of certain faces are changed.
1715 (update_face_from_frame_parameter): New.
1717 * xfaces.c (realize_basic_faces): Realize new basic faces.
1719 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
1720 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
1722 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
1723 (syms_of_xfaces): Intialize new symbols.
1725 * fns.c (Fmakehash): Take one argument, test, make all the
1726 rest keyword arguments.
1728 * window.c (Fset_window_margins): Make window the first argument.
1729 (set_window_buffer): Call Fset_window_margins with window as first
1732 1999-09-07 Gerd Moellmann <gerd@gnu.org>
1734 * xfaces.c (Qfringe): Replaces Qmargin.
1736 1999-09-07 Kenichi Handa <handa@etl.go.jp>
1738 * charset.h: Lots of comments fixed.
1739 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
1740 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
1742 * charset.c : Lots of comments fixed.
1743 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
1744 (CHAR_COMPONENTS_VALID_P): Name changed from
1745 CHAR_COMPONENT_VALID_P. Caller changed.
1747 1999-09-06 Richard Stallman <rms@gnu.org>
1749 * insdel.c (syms_of_insdel): Define Lisp variable
1750 inhibit-modification-hooks.
1752 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
1754 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
1757 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
1759 1999-09-06 Dave Love <fx@gnu.org>
1761 * unexaix.c: New version incorporating Michael Sperber's changes
1762 from XEmacs. Should solve problems on AIX 4.3.
1764 * lread.c (Vbyte_boolean_vars): New variable.
1765 (defvar_bool, syms_of_lread): Use it.
1767 1999-09-05 Richard Stallman <rms@gnu.org>
1769 * minibuf.c (read_minibuf): Put all three properties on the
1770 same range, the whole prompt.
1772 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1774 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
1775 (Fplay_sound, syms_of_sound): Use it.
1776 (parse_sound): Allow float volume values in the range [0, 1].
1777 (Fplay_sound): Ditto.
1779 * window.c (Fset_window_vscroll): Make window the first argument,
1780 amount to scroll the second. Take non-negative vscroll as
1782 (Fwindow_vscroll): Return non-negative vscroll.
1784 * xfns.c (Fx_show_tip): Improve documentation.
1786 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1788 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
1789 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
1790 `top-line' and `top_line' to `header-line' and `header_line'.
1791 Likewise for similar spellings.
1793 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1795 * xdisp.c (row_containing_pos): New.
1796 (try_window_id): Use it.
1798 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
1799 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
1800 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
1801 Likewise for upper-case etc.
1803 1999-09-05 Gerd Moellmann <gerd@gnu.org>
1805 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1806 Fix reference to renamed variable.
1808 1999-09-04 Gerd Moellmann <gerd@gnu.org>
1810 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
1811 (window_fixed_size_p): Use Qwindow_size_fixed instead of
1813 (syms_of_window): Ditto.
1815 * fns.c (Fmakehash): Exchange optional test and size arguments.
1817 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1819 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
1820 under newly created scroll bar.
1821 (expose_window): If window is not yet fully initialized, do
1822 nothing. This can happen when toolkit scroll bars are used and a
1823 window is split. Reconfiguring the scroll bars will generate an
1824 expose for a newly created window.
1826 * frame.h (struct frame): New member `gamma'.
1828 * xfns.c: Include math.h. Add extern declaration for atof in case
1830 (Qscreen_gamma): New.
1831 (struct x_frame_parm_table): Add prototypes, add
1833 (gamma_correct): New function.
1834 (defined_color): Call it.
1835 (x_set_screen_gamma): New.
1836 (x_set_title): Add parameter old_value.
1837 (RES_TYPE_FLOAT): New.
1838 (x_get_arg): Handle RES_TYPE_FLOAT.
1839 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
1840 (lookup_pixel_color): Change call to x_alloc_nearest_color to
1842 (lookup_rgb_color): Ditto.
1843 (syms_of_xfns): Initialize Qscreen_gamma.
1845 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
1846 New. Allocate color for lwlib widgets.
1847 (x_alloc_nearest_color): Change parameter list include the
1848 frame on which to allocate colors. Gamma-correct colors.
1849 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
1852 * xterm.h: Change protorype of x_alloc_nearest_color.
1854 1999-09-03 Richard Stallman <rms@gnu.org>
1856 * callproc.c: Delete the system-independent include of stdlib.h
1857 (leaving only the one in the WINDOWSNT conditional).
1859 1999-09-03 Andrew Choi <choi@cs.hku.hk>
1861 * callproc.c (call-process) [macintosh]: Call mac_run_command in
1862 sysdep.c. The Mac code is modeled after the DOS code.
1864 * dispextern.h [macintosh]: Include macterm.h to define substitute X
1865 Window types and macros.
1867 * frame.h: Do nothing if included a second time.
1868 (enum output_method): Add mac_output frame type.
1869 (union output_data): Add new alternative `mac'.
1870 (FRAME_MAC_P): New macro.
1872 * frame.c (Fframep) [macintosh]: Handle mac frame type.
1873 (syms_of_frame_1): Initialize Qmac.
1874 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
1875 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
1876 (Fmodify_frame_parameters) [macintosh]: Call
1877 mac_set_frame_parameter in macterm.c.
1879 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
1880 (512) because Mac compilers limit local data of a function to 32K.
1882 * make-docfiles.c: Correctly handle input files with Mac-style
1885 * sysdep.c: Define numerous routines to emulate Unix system calls.
1887 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
1888 file of an X Window environment.
1890 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
1891 x-display-grayscale, x-color-defined-p, and x-color-values.
1893 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
1894 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
1895 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
1896 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
1897 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
1898 New functions, replacing POSIX features.
1900 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
1901 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
1902 (InitEmacsPasswdDir, run_mac_command): New subroutines.
1904 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
1905 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
1906 (myPasswdDir, TempDirName, sys_siglist): New variables.
1908 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
1909 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
1910 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
1911 Define empty stubs so Emacs will link.
1913 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1915 * xdisp.c: Use XCAR and XCDR instead of XCONS.
1917 * window.h: New member frozen_window_start_p.
1919 * window.c (foreach_window, foreach_window_1): New.
1920 (freeze_window_start, freeze_window_starts): New.
1921 (make_window): Initialize frozen_window_start_p.
1922 (replace_window): Ditto.
1923 (Fset_window_point): Remove references to deleted variables.
1924 (Fset_window_start): Ditto.
1926 * xdisp.c (Vresize_mini_config, resize_mini_frame,
1927 resize_mini_initial_height): Removed.
1928 (syms_of_xdisp): Remove references to these variables.
1929 (resize_mini_window): Don't save window configuration, freeze
1930 window starts instead. Enlarge window until displaying an empty
1931 buffer, then shrink it. Make the function externally visible.
1932 (redisplay_window): Treat frozen window start like forced start,
1933 but accept point outside of the window.
1935 * dispextern.h: Add function prototype for resize_mini_window.
1937 * minibuf.c (read_minibuf_unwind): Resize mini-window when
1938 reaching minibuf_level 0.
1940 * lisp.h: Remove extern declarations for variables deleted from
1943 * dispnew.c (adjust_frame_glyphs): Remove reference to
1944 Vresize_mini_config.
1946 1999-09-03 Gerd Moellmann <gerd@gnu.org>
1948 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
1949 to USE_TOOLKIT_SCROLL_BARS.
1951 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
1953 (XTset_vertical_scroll_bar): Clarify position computations. Clear
1954 under newly created scroll bar. Put toolkit scroll bars in the
1955 middle of the area reserved for the scroll bar.
1957 1999-09-03 Kenichi Handa <handa@etl.go.jp>
1959 The following changes are for the new handling of mulitbyte
1960 sequence. Now, except for a composite character, no multibyte
1961 character in string/buffer has trailing garbage bytes. For
1962 instance, the length of string "\201\300\300" is now 2, the first
1963 character is Latin-1 A-grave, the second is raw \300.
1965 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
1967 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
1968 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
1969 (PARSE_COMPOSITE_SEQ): New macro.
1970 (PARSE_CHARACTER_SEQ): New macro.
1971 (PARSE_MULTIBYTE_SEQ): New macro.
1972 (CHAR_PRINTABLE_P): New macro.
1973 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
1974 (STRING_CHAR_AND_LENGTH): Likewise.
1975 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
1976 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
1977 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1979 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
1980 (SPLIT_CHARACTER_SEQ): New macro.
1981 (SPLIT_MULTIBYTE_SEQ): New macro.
1982 (CHAR_COMPONENT_VALID_P): New macro.
1983 (non_ascii_char_to_string): Generate a multibyte sequence as far
1985 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
1986 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
1987 (split_non_ascii_string): Likewise.
1988 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
1989 (char_printable_p): New function.
1990 (translate_char): Check character by NATNUMP instead of INTEGERP.
1991 (unibyte_char_to_multibyte): Call char_valid_p instead of
1992 VALID_MULTIBYTE_CHAR_P.
1993 (Fmake_char_internal): Check the arguments more rigidly.
1994 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
1995 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
1996 (Fmultibyte_char_to_unibyte): Check the validity of character by
1998 (chars_in_text): Call multibyte_chars_in_text.
1999 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
2000 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
2001 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
2003 * data.c (Faset): Adjust the way to check byte-combining
2004 possibility for the new handling of multibyte sequence.
2006 * editfns.c (Fsubst_char_in_region): Likewise.
2008 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
2009 (string_char_to_byte): Likewise.
2010 (string_byte_to_char): Likewise.
2012 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
2013 macro STRING_CHAR_AND_LENGTH. Caller changed.
2015 * insdel.c (count_combining_composition): New function.
2016 (count_combining_before): Adjust the way to check byte-combining
2017 possibility for the new handling of multibyte sequence. Call
2018 count_combining_composition for a composite character.
2019 (count_combining_after): Likewise.
2021 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
2024 * dispextern.h (struct it): Change the size of the member
2027 * xdisp.c (get_next_display_element): Display incomplete multibyte
2028 sequence (e.g. \222\300) by octal form.
2030 1999-09-02 Gerd Moellmann <gerd@gnu.org>
2032 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
2034 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
2035 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
2037 1999-09-02 Gerd Moellmann <gerd@gnu.org>
2039 * buffer.c (set_buffer_internal): Never set
2040 windows_or_buffers_changed.
2042 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
2043 if we have displayed to the bottom of the window.
2045 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
2046 in both directions. Extend documentation.
2048 1999-09-01 Gerd Moellmann <gerd@gnu.org>
2050 * minibuf.c (read_minibuf): Flush display after setting cursor to
2053 1999-08-31 Gerd Moellmann <gerd@gnu.org>
2055 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
2056 already defined. This avoids a warning from buffer.c.
2058 1999-08-30 Gerd Moellmann <gerd@gnu.org>
2060 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
2062 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
2063 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
2064 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
2066 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
2067 once instead of twice.
2068 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
2070 * xterm.c: Remove unused bitmaps.
2071 (continued_bits, continuation_bits, overlay_bits): Change images.
2072 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
2073 instead of FRAME_X_FLAGS_AREA_WIDTH.
2074 (x_after_update_window_line): Ditto.
2075 (x_draw_bitmap): Likewise.
2076 (x_draw_row_bitmaps): Likewise.
2077 (x_draw_glyph_string_box): Likewise.
2078 (x_draw_glyphs): Likewise.
2079 (x_scroll_run): Likewise.
2080 (expose_window_tree): Likewise.
2081 (note_mode_line_highlight): Likewise.
2082 (XTset_vertical_scroll_bar): Likewise.
2083 (x_clip_to_row): Likewise.
2084 (x_set_window_size): Likewise.
2086 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
2089 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
2091 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
2092 FRAME_FLAGS_AREA_WIDTH.
2094 * window.c (coordinates_in_window): Use
2095 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
2096 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
2099 * widget.c (set_frame_size): Set flags_area_extra to
2100 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
2101 (EmacsFrameSetCharSize): Ditto.
2103 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
2104 instead of FRAME_FLAGS_AREA_WIDTH.
2106 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
2107 FRAME_FLAGS_AREA_COLS once.
2108 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
2109 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
2111 1999-08-30 Gerd Moellmann <gerd@gnu.org>
2113 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
2114 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
2116 1999-08-30 Gerd Moellmann <gerd@gnu.org>
2118 * fns.c (QCweakness): Replaces QCweak.
2119 (Fmake_hash_table): Ditto.
2121 (syms_of_fns): Ditto.
2123 1999-08-29 Richard Stallman <rms@gnu.org>
2125 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
2127 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
2129 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
2130 Add support for nested comments.
2132 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
2133 Consolidate the forward comment code into the new `forw_comment'.
2134 (forw_comment): New subroutine. Added support for nested comments.
2135 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
2136 (Fparse_partial_sexp): Add support for nested comments.
2138 1999-08-28 Ken Raeburn <raeburn@gnu.org>
2140 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
2141 names of structure elements if HIDE_LISP_IMPLEMENTATION is
2142 defined, to help detect code that uses knowledge of the Lisp
2143 internals that it shouldn't have.
2144 (XFLOAT_DATA): New macro.
2146 1999-08-25 Gerd Moellmann <gerd@gnu.org>
2148 * syntax.c (Fforward_word): If in a mini-buffer and moving
2149 backwards, stop in front of the prompt to prevent accidentially
2150 moving into the read-only prompt.
2152 * window.c (Frecenter): Clear frame if called with nil or no arg.
2154 * xdisp.c (resize_mini_window): Don't resize if
2155 Vmax_mini_window_height is nil. Otherwise, use a default if
2156 Vmax_mini_window_height is not ot a number.
2157 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
2159 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
2161 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
2162 * m/iris4d.h: Use unexelf for IRIX 5.*.
2163 * m/iris5d.h: Use unexelf for IRIX 6.*.
2164 * unexsgi.c: Deleted.
2166 * unexelf.c: Auto-detect .sbss section.
2167 (round_up): Make it static.
2168 (unexec): Declare alignment as Elf Word. Skip ``Program
2169 segment above .bss'' test on MIPS without .sbss.
2170 Copy sections .got and .sdata1 sections. Adjust offsets in
2171 sections .sdata, .lit4, .lit8, .got and .sdata1.
2173 1999-08-25 Gerd Moellmann <gerd@gnu.org>
2175 * xdisp.c (try_window_id): Remove typo.
2177 1999-08-24 Gerd Moellmann <gerd@gnu.org>
2179 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
2180 unchanged text at the bottom when computing the cursor position.
2181 (message3_nolog): Raise frame only if minibuffer_auto_raise is
2184 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
2186 1999-08-24 Gerd Moellmann <gerd@gnu.org>
2188 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
2189 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
2190 (syms_of_xfaces): Ditto.
2192 * window.c (Fset_window_point): Reset Vresize_mini_config.
2193 (Fset_window_start): Ditto.
2194 (set_window_buffer): Ditto.
2196 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
2198 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
2199 before calling try_window.
2200 (echo_area_display): If height has changed, update other windows.
2201 (resize_mini_frame, resize_mini_initial_height): New.
2202 (resize_mini_window): Save/restore window configuration
2205 * lisp.h (Vresize_mini_config, resize_mini_frame,
2206 resize_mini_initial_height): Add extern declarations.
2208 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
2211 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
2212 being redefined in jconfig.h.
2214 1999-08-23 Ken'ichi Handa <handa@gnu.org>
2216 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
2218 1999-08-22 Gerd Moellmann <gerd@gnu.org>
2220 * alloc.c (mark_glyph_matrix): Mark strings only.
2222 * xdisp.c (redisplay_internal): Clear garbaged frames after
2223 resizing mini-window.
2225 1999-08-22 Gerd Moellmann <gerd@gnu.org>
2227 * xdisp.c (unwind_with_echo_area_buffer): Use
2228 set_buffer_internal_1 instead of set_buffer_internal.
2229 (with_echo_area_buffer): Ditto.
2231 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
2232 only if buffer is displayed somewhere.
2234 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
2236 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
2238 (modify_region): Ditto.
2240 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
2242 * xdisp.c (Vresize_mini_config): New.
2243 (resize_mini_window): Use it to save restore original window
2245 (syms_of_xdisp): Initialize it.
2247 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
2249 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
2251 * xdisp.c (reconsider_clip_changes): New.
2252 (redisplay_internal, redisplay_window): Call it.
2253 (mark_window_display_accurate, redisplay_internal): Set current
2254 matrix' buffer, begv, zv.
2256 * window.c (Fset_window_hscroll): Set
2257 prevent_redisplay_optimizations_p instead of clip_changed.
2258 (Fset_window_hscroll): Ditto.
2259 (temp_output_buffer_show): Ditto.
2260 (Fset_window_vscroll): Ditto.
2262 * buffer.c (reset_buffer): Set clip_changed to 0 and
2263 prevent_redisplay_optimizations_p to 1.
2264 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
2266 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
2267 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
2268 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
2269 END_UNCHANGED): New.
2270 (struct buffer_text): Add beg_unchanged, end_unchanged,
2271 unchanged_modified, overlay_unchanged_modified.
2273 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
2274 overlay_unchanged_modified): Removed.
2275 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
2276 (unwind_with_echo_area_buffer): Don't restore them.
2277 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
2278 (text_outside_line_unchanged_p, redisplay_internal,
2279 try_scrolling): Use/set buffer-specific beg/end_unchanged.
2280 (redisplay_window): Let try_window_id be called if more than one
2281 window is displayed. Use/set buffer-specific beg/end_unchanged.
2282 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
2284 Use buffer-specific beg/end_unchanged.
2286 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
2287 overlay_unchanged_modified): Remove extern declarations.
2289 * keyboard.c (command_loop_1): Set beg/end_unchanged per
2292 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
2294 (adjust_after_replace): Likewise.
2295 (replace_range, del_range_2, modify_region): Likewise.
2297 * dispnew.c (direct_output_for_insert): Set beg_unchanged
2298 and unchanged_modified per buffer.
2300 * coding.c (code_convert_region): Compute beg/end_unchanged per
2303 * buffer.c (modify_overlay): Compute beg/end_unchanged
2305 (Fget_buffer_create): Initialize new members of the buffer
2308 1999-08-22 Gerd Moellmann <gerd@gnu.org>
2310 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
2312 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
2313 (Qkey_value_weak): Removed.
2314 (make_hash_table): Use nil, `key', `value', t for weakness.
2315 (Fmake_hash_table): Ditto.
2316 (copy_hash_table): New.
2317 (Fcopy_hash_table): New.
2319 1999-08-22 Gerd Moellmann <gerd@gnu.org>
2321 * xfns.c: Call change_frame_size and do_pending_window_change with
2324 1999-08-21 Gerd Moellmann <gerd@gnu.org>
2326 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
2328 (redisplay_internal): Resize mini-window only if text might
2330 (display_echo_area): Reset displayed echo_area_buffer to nil
2331 at the end if we're displaying a nil message.
2333 1999-08-21 Gerd Moellmann <gerd@gnu.org>
2335 * fns.c (hash_lookup): Test with EQ before calling key comparion
2337 (hash_remove): Ditto.
2338 (cmpfn_eq): Removed.
2339 (cmpfn_eql): Don't test with EQ.
2340 (cmpfn_equal): Ditto.
2341 (make_hash_table): Set comparison function for `eq' to null.
2343 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
2344 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
2346 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
2348 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
2349 xterm.c: Call change_frame_size and do_pending_window_change with
2352 * dispnew.c (do_pending_window_change): Add parameter `safe'.
2353 (change_frame_size): Ditto.
2354 (change_frame_size_1): Ditto. Deley size changes if redisplaying
2355 and not called from a safe place.
2356 (window_change_signal): Call change_frame_size with new parameter.
2358 * dispextern.h: Change prototypes for do_pending_window_change
2359 and change_frame_size.
2361 * xfaces.c (face_at_buffer_position): Don't xassert that
2362 window's buffers equals current_buffer; this is not the
2363 case during echo area display.
2365 1999-08-21 Gerd Moellmann <gerd@gnu.org>
2367 * xdisp.c, minibuf.c: Remove conditional compilation on
2368 NO_PROMPT_IN_BUFFER.
2370 * minibuf.c (Fminibuffer_prompt_end): New.
2371 (syms_of_minibuf): Defsubr it. Remove
2372 minibuffer-prompt-in-buffer.
2373 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
2374 Extend documentation.
2376 * xdisp.c (get_next_display_element): Display \r as ^M.
2378 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
2379 under scroll bar widget.
2381 1999-08-21 Gerd Moellmann <gerd@gnu.org>
2383 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
2385 (unwind_redisplay): Return nil.
2386 (clear_garbaged_frames): New.
2387 (redisplay_internal): Use it.
2388 (echo_area_display): Ditto.
2389 (resize_mini_window): Mew.
2390 (display_echo_area_1): Use it to resize echo area window.
2391 (redisplay_internal): Use it to resize active mini-window.
2393 * dispextern.h, lisp.h: Add function prototypes.
2395 * dispnew.c (set_window_cursor_after_update): Do the
2396 cursor_in_echo_area case only for a mini-window showing
2397 a message. Don't let cursor end up after the end of a row.
2399 * xdisp.c (echo_area_glyphs, echo_area_message,
2400 echo_area_glyphs_length, previous_echo_glyphs,
2401 previous_echo_area_message, previous_echo_area_glyphs_length):
2403 (Vmessage_stack, echo_area_buffer, echo_buffer,
2404 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
2405 (message2_nolog): Use set_message and clear_message.
2406 (message3): Rename parameter len to nbytes to make clear what
2408 (message3_nolog): Ditto. Use set_message and clear_message.
2409 (update_echo_area): Rewritten.
2410 (with_echo_area_buffer): New.
2411 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
2412 (setup_echo_area_for_printing): New.
2413 (display_echo_area, display_echo_area_1): New.
2415 (current_message, current_message_1): New.
2416 (push_message, restore_message, pop_message,
2417 check_message_stack): New.
2418 (truncate_echo_area): Rewritten.
2419 (truncate_message_1): New.
2420 (set_message, set_message_1, clear_message): New.
2421 (echo_area_display): Rewritten.
2422 (redisplay_internal): Check for needed echo area update
2424 (redisplay_preserve_echo_area): Rewritten.
2425 (redisplay_window): Check for mini-window displaying echo area
2426 message differently.
2427 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
2428 Remove initialzation of removed variables.
2429 (init_xdisp): Remove references to removed variables.
2431 * dispnew.c (adjust_frame_message_buffer): Removed references
2432 to echo_area_glyphs and previous_echo_glyphs.
2433 (direct_output_for_insert): Check for mini-window displaying
2434 echo area message differently.
2435 (update_frame): Likewise.
2436 (set_window_cursor_after_update): Likewise. In echo area,
2437 don't try to set cursor on rows that aren't enabled.
2439 * print.c: Remove conditional compilation on `standalone'.
2440 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
2441 glyph_to_str_cpy): Remove that section because GLYPHs are no
2442 longer used in that way.
2443 (PRINTDECLARE): Add multibyte.
2444 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
2445 (printbufidx): Removed.
2446 (printchar, strout): Rewritten.
2448 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
2451 (echo_now): Set echo_kboard to the current kboard.
2452 (cancel_echoing): Set echo_kboard to null.
2453 (cmd_error_internal): Use clear_message, remove references
2454 to echo_area_glyphs and echo_area_message.
2455 (command_loop_1): Check for echo area messages differently.
2456 (read_char): Likewise.
2457 (record_menu_key): Use clear_message.
2458 (Fexecute_extended_command): Check for echo area messages
2459 differently. Use push_message, restore_message, pop_message.
2461 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
2464 * emacs.c (shut_down_emacs): Call check_message_stack.
2466 * lisp.h: Add function prototypes and extern declarations for
2467 new functions and variables.
2469 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
2472 * minibuf.c (read_minibuf): Use clear_message instead of
2473 setting echo_area_glyphs.
2474 (Fminibuffer_completion_help): Ditto.
2476 * editfns.c (Fcurrent_message): Rewritten.
2478 * frame.c, window.h: Remove references to echo_area_glyphs
2479 and previous_echo_glyphs.
2481 1999-08-21 Dave Love <fx@gnu.org>
2483 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
2484 * aix4-1.h: Likewise.
2486 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
2488 1999-08-20 Gerd Moellmann <gerd@gnu.org>
2490 * xfns.c: Remove tiff34 prefix from include.
2492 1999-08-20 Dave Love <fx@gnu.org>
2494 * cm.c: Revert previous change.
2496 1999-08-19 Gerd Moellmann <gerd@gnu.org>
2498 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
2499 under scroll bar with width FRAME_SCROLL_BAR_COLS.
2501 1999-08-18 Dave Love <fx@gnu.org>
2503 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
2506 * doprnt.c: Use stdlib.h, unistd.h.
2508 * config.in: Add HAVE_TERMCAP_H.
2510 * cm.c: Use termcap.h.
2512 1999-08-18 Gerd Moellmann <gerd@gnu.org>
2514 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
2515 FRAME_X_WINDOW (f) being null at the of the function. If widgets
2516 cannot be created we will already have crashed earlier. Call
2517 lw_set_main_areas with a null menu-bar widget, so that we have
2518 a reasonable default.
2519 (Fx_create_frame): Rearranged so that Lisp errors during frame
2520 initialization cause less damage. Initialize menu bar widget
2523 1999-08-18 Gerd Moellmann <gerd@gnu.org>
2525 * dispnew.c (update_frame_line): Fix previous change. If writing
2526 whole line clear to end of frame.
2528 1999-08-17 Gerd Moellmann <gerd@gnu.org>
2530 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
2531 and `right-bitmap-area' if position is in the bitmap areas. This
2532 avoids an error when clicking on the bitmap areas. Instead, they
2533 are currently treated like clicks inside the window.
2534 (coordinates_in_window): Return 5 and 6 for bitmap areas.
2535 (Qleft_bitmap_area, Qright_bitmap_area): New.
2536 (syms_of_window): Initialize new symbols.
2538 * dispnew.c (update_frame_line): If writing whole line,
2539 don't write trailing spaces unless we must.
2541 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
2542 (redisplay_internal): Register unwind_redisplay with
2543 register_unwind_protect.
2544 (try_window_reusing_current_matrix): If new start > old start,
2545 give up if start pos of first reusable row is not equal to new
2548 * eval.c (Fsignal): Don't reset redisplaying_p here.
2550 * xterm.c (expose_area): If row extends face to end of line,
2551 write the whole line.
2553 1999-08-16 Gerd Moellmann <gerd@gnu.org>
2555 * dispextern.h (struct it): Remove member
2556 show_trailing_whitespace_p.
2558 * dispnew.c (direct_output_for_insert): Use
2559 Vshow_trailing_whitespace instead of former iterator member
2560 show_trailing_whitespace_p.
2561 (direct_output_forward_char): Don't do it if hightlighting
2562 trailing whitespace.
2564 * xdisp.c (Qshow_trailing_whitespace): Removed.
2565 (Vshow_trailing_whitespace): Added.
2566 (init_iterator): Remove initialization code for
2567 show_trailing_whitespace_p.
2568 (redisplay_internal): Don't try cursor movement in this_line
2569 if showing trailing whitespace.
2570 (redisplay_window): Likewise for cursor movement in current
2571 matrix and try_window_id.
2572 (try_window_reusing_current_matrix): Likewise.
2573 (trailing_whitespace_p): Return 0 if trailing whitespace is
2575 (display_line): Use Vshow_trailing_whitespace instead of
2576 former iterator member show_trailing_whitespace_p.
2577 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
2579 1999-08-16 Gerd Moellmann <gerd@gnu.org>
2581 * window.c (Fpos_visible_in_window_p): Rewritten.
2583 * xfaces.c (add_to_log): Renamed from display_message.
2584 Don't display messages in echo area.
2586 * xterm.c (x_draw_glyph_string_box): Use the background width
2587 of the glyph string for the width of the box.
2589 1999-08-16 Stefan Monnier <monnier@cs.yale.edu>
2591 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
2593 1999-08-16 Geoff Voelker <voelker@cs.washington.edu>
2595 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
2596 background first, and then set other parameters that might
2597 depend upon their new values.
2599 1999-08-15 Gerd Moellmann <gerd@gnu.org>
2601 * xfaces.c (Vfont_list_limit): New.
2602 (syms_of_xfaces): Make it a user-variable.
2603 (DEFAULT_FONT_LIST_LIMIT): New.
2604 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
2605 maximally that number of fonts, otherwise use
2606 DEFAULT_FONT_LIST_LIMIT.
2607 (Fx_font_family_list): Bind `font-list-limit' to higher values
2608 until we have all fonts.
2609 (Fxfont_list): Additionally return the full names of fonts and
2610 their registry and encoding.
2612 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
2613 Simplify clearing "under" scroll bar.
2615 * window.c (Qfixed_window_size): New.
2616 (syms_of_window): Initialiaze it.
2617 (check_all_windows): Add return type void.
2618 (window_fixed_size_p): New. Return non-zero if window
2620 (window_min_size_1): New.
2621 (window_min_size): Handle fixed-size windows.
2622 (size_window): New. Rewritten combination of set_window_height and
2623 set_window_width that handles fixed-size windows.
2624 (set_window_height): Call it.
2625 (set_window_width): Call it.
2626 (Fsplit_window): Give an error on attempt to split a fixed-size
2628 (change_window_height): Partly rewritten to handle fixed-size
2631 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
2633 * process.c (Fopen_network_stream): Fix previous change.
2635 1999-08-13 Karl Heuer <kwzh@gnu.org>
2637 * xdisp.c (line_number_display_limit_width): New var.
2638 (decode_mode_spec): Use it instead of hardcoded value.
2639 (syms_of_xdisp): Defvar it.
2641 1999-08-13 Richard M. Stallman <rms@gnu.org>
2643 * eval.c (run_hook_list_with_args): Gcpro `globals'.
2644 (run_hook_with_args): Likewise.
2646 * window.h (struct window): New field too_small_ok.
2648 * window.c (set_window_height, set_window_width):
2649 If window starts out "too small", set its too_small_ok flag.
2650 If window's too_small_ok flag is set, don't delete it
2651 unless it is so small it would cause a crash.
2653 1999-08-13 Gerd Moellmann <gerd@gnu.org>
2655 * window.c (MINSIZE): Removed.
2656 (window_min_size): New.
2657 (set_window_height): Use window_min_size.
2658 (change_window_height): Ditto.
2660 1999-08-12 Gerd Moellmann <gerd@gnu.org>
2662 * indent.c (vmotion): Don't add in mini-buffer prompt width
2663 if prompts are inserted into mini-buffer.
2665 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
2667 * config.in: Add HAVE_GETADDRINFO.
2668 * process.c (Fopen_network_stream): Use getaddrinfo.
2670 1999-08-11 Gerd Moellmann <gerd@gnu.org>
2672 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
2675 * xdisp.c (face_before_or_after_it_pos): If position after
2676 or before iterator's current position in the buffer is out
2677 of bounds, return the iterator's original face id.
2679 * dispnew.c (mirror_make_current): If desired row isn't enabled,
2680 just swap glyphs pointers between current and desired row.
2681 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
2682 desired matrix method string to current matrix.
2684 1999-08-11 Kenichi Handa <handa@etl.go.jp>
2686 * lisp.h (CHAR_MODIFIER_MASK): New macro.
2688 * lread.c (read_escape): For Control modifier, pay attention to
2689 multibyte character.
2690 (read1): Likewise. Singal error or a multibyte character which
2691 has a modifer bit. Check validity of Shift modifer.
2693 * charset.c (non_ascii_char_to_string): Handle modifier bits as
2694 the same as Lisp reader.
2696 1999-08-10 Richard M. Stallman <rms@gnu.org>
2698 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
2700 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
2702 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
2704 1999-08-10 Eli Zaretskii <eliz@gnu.org>
2706 * msdos.c (IT_set_face): Abort if the default face is not realized
2708 (IT_write_glyphs): Reset the screen face to the default face
2709 before writing glyphs.
2711 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
2712 colors from the frame here.
2713 (realize_tty_face) [MSDOS]: Do it here. Update the face
2714 attributes with the actual name of the color taken from the
2717 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
2718 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
2720 * frame.c (Fframe_parameters): Swap foreground and background
2721 colors returned in frame parameters if the frame has reverse in
2722 its parameter alist.
2723 (Fmake_terminal_frame): Make a unique copy of face_alist for
2726 1999-08-07 Richard Stallman <rms@gnu.org>
2728 * buffer.c (Fprevious_overlay_change): Just return
2729 the answer obtained from overlays_at.
2731 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
2732 Use XpmCloseness and attrs.closeness instead.
2734 1999-08-06 Richard Stallman <rms@gnu.org>
2736 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
2738 1999-08-06 Geoff Voelker <voelker@cs.washington.edu>
2740 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
2741 Ffile_attributes_lessp): New functions.
2742 (Fdirectory_files): Use directory_files_internal.
2743 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
2744 Ffile_attributes_lessp.
2746 * w32.c (stat): Check for directory ending in separator when
2747 doing readdir fast path.
2749 * w32fns.c (x_set_icon_type): Support setting frame icons.
2750 * w32term.c (x_bitmap_icon): New function.
2751 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
2753 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2755 * xdisp.c (set_iterator_to_next): After delivering a character
2756 from a display vector, restore face and charset to what they were
2757 before the display vector was processed.
2759 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2761 * xdisp.c (reseat_at_next_visible_line_start): New parameter
2763 (set_iterator_to_next): After delivering last char
2764 from display vector, reseat on next visible line start if
2766 (next_element_from_buffer): Set dpvec_char_len to -1 for
2769 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2771 * xdisp.c (compute_line_metrics): If first line's physical ascent
2772 is larger than its logical ascent, use the physical ascent, and
2773 make the row taller. Set row's overlapping_p flag.
2775 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
2776 (direct_output_for_insert): Ditto.
2778 * dispextern.h (struct glyph_row): Add overlapping_p.
2780 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
2782 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
2783 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
2785 * dispnew.c (direct_output_for_insert): Don't use this method if
2786 row is overlapped by others.
2787 (update_text_area): Write full line if current line is overlapped.
2788 (redraw_overlapped_rows): New.
2789 (update_window): Call it.
2790 (redraw_overlapping_rows): New.
2791 (update_window): Call it.
2792 (scrolling_window): Make sure overlapped_p flag in current rows is
2794 (row_equal_p): Take rows overlapped_p flag into account.
2796 * dispextern.h (struct glyph_row): Add flag overlapped_p.
2798 * xterm.c (x_fix_overlapping_area): New.
2799 (x_redisplay_interface): Add x_fix_overlapping_area.
2801 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
2803 1999-08-06 Gerd Moellmann <gerd@gnu.org>
2805 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
2806 (struct glyph_string): Add member for_overlaps_p.
2807 (x_get_glyph_string_clip_rect): If glyph string draws foreground
2808 of overlapping rows, clip to window bottom.
2809 (x_fill_glyph_string): Add parameter overlaps_p.
2810 (x_fill_composite_glyph_string): Ditto.
2811 (BUILD_GLYPH_STRINGS): Ditto.
2812 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
2813 (x_draw_glyph_string): Don't draw anything but the foreground
2814 if glyph string draws row overlaps.
2816 * dispnew.c (direct_output_for_insert): Don't use this
2817 optimization for rows that overlap others.
2818 (update_window_line): Return non-zero if display has changed.
2819 (update_text_area): Ditto.
2820 (update_window): Record if display has been changed.
2822 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
2824 * dispextern.h (struct redisplay_interface): Add
2825 fix_overlapping_area.
2827 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
2829 * dispextern.h (struct glyph): Add overlaps_vertically_p.
2831 * xterm.c (x_produce_image_glyph): Compute iterator's physical
2833 (x_produce_stretch_glyph): Ditto.
2834 (x_produce_glyphs): Ditto.
2836 * xdisp.c (init_iterator): Reset physical line height info
2837 after producing special glyphs.
2838 (display_toolbar_line): Set physical line height info.
2839 (compute_line_metrics): Ditto.
2840 (display_line): Ditto.
2841 (display_string): Ditto.
2843 * term.c (produce_glyphs): Set iterator's physical height
2846 * dispnew.c (blank_row): Compute glyph row's physical height.
2847 (row_equal_p): Take physical row heights into account.
2848 (direct_output_for_insert): Ditto.
2849 (update_text_area): Ditto.
2851 * dispextern.h (struct glyph_row): Add phys_ascent and
2853 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
2856 1999-08-04 Stefan Monnier <monnier@cs.yale.edu>
2858 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
2860 (no_switch_buffer): New function.
2861 (Fswitch_to_buffer): Call them. Don't get confused
2862 by "same-window" buffers in a dedicated frame.
2864 * window.c (display-buffer): Don't get confused
2865 by "same-window" buffers in a dedicated frame.
2867 1999-08-04 Andreas Schwab <schwab@gnu.org>
2869 * insdel.c (insert_from_string_1): Check gap size against number
2870 of outgoing bytes, not incoming bytes.
2872 1999-08-03 Tom Breton <tob@world.std.com>
2874 * lread.c (read1): Added circular reading code to #N=.
2875 (SUBSTITUTE): New macro.
2876 (seen_list): New variable.
2877 (substitute_object_in_subtree): New function.
2878 (substitute_object_recurse): New function.
2879 (substitute_in_interval): New function.
2881 1999-08-02 Eli Zaretskii <eliz@gnu.org>
2883 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
2885 * frame.c (make_terminal_frame): Don't call init_frame_faces if
2886 noninteractive, for termcap frames as well.
2888 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
2891 1999-08-01 Richard Stallman <rms@gnu.org>
2893 * fns.c (internal_equal): Correct overlay comparison.
2895 1999-07-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2897 * xfns.c (x_set_internal_border_width):
2898 Call do_pending_window_change. Don't block input, don't call XFlush.
2899 (x_set_vertical_scroll_bars): Call do_pending_window_change.
2900 (x_set_scroll_bar_width, x_set_font): Likewise.
2902 * frame.c (Fset_frame_height): Call do_pending_window_change.
2903 (Fset_frame_width, Fset_frame_size): Likewise.
2905 * xterm.c (x_set_window_size): When calling change_frame_size,
2906 specify 1 for DELAY.
2908 * widget.c (EmacsFrameSetCharSize): Don't call
2909 do_pending_window_change here.
2911 1999-07-30 Dave Love <fx@gnu.org>
2913 * config.in: Add HAVE_STDLIB_H.
2915 1999-07-30 Richard M. Stallman <rms@gnu.org>
2917 * process.c (create_process): Detect failure of `pipe'.
2919 1999-07-30 Keisuke Nishida <kei@psn.net>
2921 * alloc.c (allocate_vectorlike): Add missing increment.
2923 * data.c (Fdefalias): Call Ffset instead of duplicating code.
2925 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
2926 before calling indirect_function.
2928 1999-07-30 Eli Zaretskii <eliz@gnu.org>
2930 * dispextern.h (load_color, lookup_derived_face): Declare
2933 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
2934 it will be done later.
2936 * frame.c (make_terminal_frame) [MSDOS]: Don't call
2937 init_frame_faces if non-interactive.
2938 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
2939 array with a call to msdos_stdcolor_name. The font name is now
2940 "ms-dos", consistent with realize_tty_face.
2942 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
2945 * window.c (Fset_window_configuration) [MSDOS]: Don't call
2946 x_set_toolbar_lines.
2948 * xfaces.c (load_color): Remove static from definition and remove
2950 [MSDOS]: Add a DOS-specific version of load_color.
2951 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
2952 (lookup_derived_face): New function.
2953 (realize_default_face): Support MSDOS frames.
2954 [MSDOS]: If fore/background colors are unspecified, inherit them
2956 (realize_face): Support MSDOS frames.
2957 (realize_tty_face): Support MSDOS frames.
2958 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
2959 load_color to try to find a suitable approximation. If the face
2960 is inverse-video, swap the foreground and background colors.
2962 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
2965 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
2967 * msdos.h: Remove redundant declarations (most of them are now in
2970 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
2971 Use default frame colors if the face doesn't specify them; invert
2972 the colors if highlight is ON.
2973 (IT_write_glyphs): Rewritten for the new redisplay engine.
2974 (IT_change_line_highlight): Add (unused) parameter Y, since that's
2975 how the hook is called by term.c.
2976 (IT_copy_glyphs): New function, copies an area of the display in
2978 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
2979 redisplay now calls it even if char_ins_del_ok is zero.
2980 (IT_set_frame_parameters): Prototype changed. Calls the new
2981 load_color. Puts the new fore/background colors into the default
2982 face on current frame.
2983 (IT_menu_display): Rewritten to handle the new struct glyph
2984 instead of a char array.
2985 (XMenuActivate): Call lookup_derived_face to create and use
2986 special faces for the pop-up and drop-down menus.
2988 1999-07-29 Gerd Moellmann <gerd@gnu.org>
2990 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
2991 XawScrollbarSetThumb if thumb parameters haven't changed because
2992 that function apparently isn't optimized for this case.
2994 1999-07-29 Eli Zaretskii <eliz@gnu.org>
2996 * msdos.c (getdefdir): Don't return failure indication when
2997 _fixpath sets errno to ENOSYS.
2999 1999-07-28 Gerd Moellmann <gerd@gnu.org>
3001 * xdisp.c (string_char_and_length): New. Use it everywhere
3002 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
3004 1999-07-28 Kenichi Handa <handa@etl.go.jp>
3006 * fns.c (count_combining): New function.
3007 (struct textprop_rec): New structure.
3008 (concat): Copy text properties correctly when byte combining
3011 1999-07-28 Gerd Moellmann <gerd@gnu.org>
3013 * xterm.c (x_setup_relief_color): Don't try smart color allocation
3015 (x_draw_row_bitmaps): If face has stipple, don't switch
3016 to foreground color for clearing areas, and set the fill style.
3018 * xfaces.c (load_face_colors): Load background color if setting
3020 (prepare_face_for_display): Use FillOpaqueStippled instead of
3023 1999-07-26 Ken'ichi Handa <handa@gnu.org>
3025 * xterm.c (x_find_ccl_program): Add casting.
3027 * w32fns.c (w32_find_ccl_program): Add casting.
3029 1999-07-27 Gerd Moellmann <gerd@gnu.org>
3031 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
3033 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
3034 because this will try to access a nonexisting widget.
3036 1999-07-26 Markus Rost <rost@gnu.org>
3038 * fns.c (Fgethash): Fix order of variables (patch by gerd).
3042 1999-07-26 Gerd Moellmann <gerd@gnu.org>
3044 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
3045 value to frame width and height.
3047 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
3048 into account for full-width windows. Don't add scroll bar width
3049 to width of clip rect.
3050 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
3051 (x_set_glyph_string_background_width): Add 1 to background width.
3052 (x_draw_glyphs): Take internal border into account for full-width
3055 1999-07-26 Richard M. Stallman <rms@gnu.org>
3057 * xfns.c (x_set_mouse_color): Always unload the old color.
3058 Don't allow nil as color value.
3059 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
3060 Always unload the old color.
3062 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
3064 1999-07-26 Karl Heuer <kwzh@gnu.org>
3066 * fns.c (Fy_or_n_p): Doc fix.
3068 1999-07-26 Kenichi Handa <handa@etl.go.jp>
3070 * ccl.h (setup_ccl_program): The type is changed to `int'.
3072 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
3073 stored in the following CCL code. Adjusted for the change of
3075 (resolve_symbol_ccl_program): Adjusted for the new style of
3076 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
3077 is resolving failed.
3078 (ccl_get_compiled_code): New function.
3079 (setup_ccl_program): Function type changed from `void' to `int'.
3080 Resolve symbols in CCL_PROG.
3081 (Fccl_program_p): New function.
3082 (Fccl_execute): Get compiled CCL code by just calling
3084 (Fccl_execute_on_string): Likewise.
3085 (Fregister_ccl_program): Adjusted for the change of
3088 * coding.c (setup_coding_system): Get compiled CCL code by just
3089 calling setup_ccl_program.
3091 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
3092 calling setup_ccl_program.
3094 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
3095 calling setup_ccl_program.
3097 1999-07-23 Gerd Moellmann <gerd@gnu.org>
3099 * xfaces.c (frame_update_line_height): Just use the height of the
3100 frame's fontset or font, instead of taking face fonts into
3103 * xdisp.c (get_next_display_element): Display DEL as `^?'.
3105 1999-07-23 Richard M. Stallman <rms@gnu.org>
3107 * window.c (Fsplit_window): For default size, round up for left window.
3109 1999-07-21 Joe Ramey <ramey@ti.com>
3111 * filelock.c (lock_if_free): Return -1 if check_lock_owner
3112 has returned -1 (lockfile exists but is not a symlink?).
3114 1999-07-20 Gerd Moellmann <gerd@gnu.org>
3116 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
3117 because of a change in cursor_gc made in 20.4.
3119 1999-07-19 Gerd Moellmann <gerd@gnu.org>
3121 * xterm.c (x_calc_absolute_position): Subtract menu bar height
3122 for YNegative, if using X toolkit.
3124 * xfns.c (x_real_positions): Don't subtract window borders
3125 from positions returned.
3127 1999-07-17 Gerd Moellmann <gerd@gnu.org>
3129 * xrdb.c (x_load_resources): Set double-click time defaults
3130 for Motif list boxes from double-click-time.
3132 * fns.c (Vhash_table_tests): Remvoed.
3133 (Qhash_table_test): New.
3134 (syms_of_fns): Initialize Qhash_table_test.
3135 (Fmake_hash_table): Look up user-defined tests in symbol prop
3137 (Fdefine_hash_table_test): Store test and hash function as
3138 symbol prop `hash-table-test'.
3139 (make_hash_table): Add parameters user_test and user_hash.
3141 * window.c (set_window_buffer): Set window margins for tty
3143 (Fset_window_margins): Ditto.
3145 * term.c (append_glyph): Use glyph area of iterator instead of
3148 * dispnew.c (update_frame_1): Add left margin width to cursor
3150 (direct_output_for_insert): Ditto.
3151 (direct_output_forward_char): Ditto.
3153 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
3155 * dispextern.h (struct glyph_matrix): Add top_line_p.
3157 1999-07-16 Gerd Moellmann <gerd@gnu.org>
3159 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
3162 * fns.c (cmpfn_eq): Add hash code parameters.
3164 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
3165 (cmpfn_user_defined): Likewise.
3167 1999-07-15 Gerd Moellmann <gerd@gnu.org>
3169 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
3171 * fns.c (maybe_resize_hash_table): Correct computation of
3173 (make_hash_table): Ditto.
3176 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
3178 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
3179 (survives_gc_p): Make it externally visible.
3180 (mark_object): Ditto.
3182 * fns.c (remove_hash_entry): Removed.
3183 (sweep_weak_hash_tables): New.
3185 * print.c (print): Print more information about hash tables.
3187 * xfns.c (image_spec_hash): Removed.
3188 (lookup_image): Use sxhash instead of image_spec_hash.
3189 (image_spec_equal_p): Removed.
3190 (lookup_image): Use Fequal instead of image_spec_equal_p.
3192 1999-07-14 Gerd Moellmann <gerd@gnu.org>
3194 * lisp.h (P_): Moved to top of file.
3196 * fns.c (make_hash_table): Set new members.
3198 * alloc.c (mark_object): Mark hash table's user_hash_function.
3199 Mark index vector for weak hash tables.
3201 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
3202 user_hash_function, cmpfn, and hashfn.
3204 * fns.c (build_hash): Removed.
3205 (hash_test): Removed.
3206 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
3207 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
3209 1999-07-13 Gerd Moellmann <gerd@gnu.org>
3211 * alloc.c (survives_gc_p): New.
3213 * print.c (print): Add hash table handling.
3215 * alloc.c (mark_object): Add code to mark hash tables.
3217 * lisp.h (GC_HASH_TABLE_P): New.
3219 * emacs.c (main): Call init_fns.
3221 * fns.c (init_fns): New.
3223 * fns.c: Add hash table implementation.
3225 * lisp.h (PVEC_HASH_TABLE): New.
3226 (struct Lisp_Hash_Table): New.
3228 (XSET_HASH_TABLE): New.
3229 (HASH_TABLE_P): New.
3230 (CHECK_HASH_TABLE): New.
3231 (DEFAULT_HASH_SIZE): New.
3232 (DEFAULT_REHASH_THRESHOLD): New.
3233 (DEFAULT_REHASH_SIZE): New.
3235 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
3236 (x_write_glyphs): Compute overwritten cursor using real start
3237 and end positions of display.
3238 (x_insert_glyphs): Ditto.
3240 1999-07-10 Gerd Moellmann <gerd@gnu.org>
3242 * keyboard.c (read_char): Use message3_nolog to show help-echo.
3244 * dispnew.c (blank_row): Add y-position as parameter. Compute
3247 * xdisp.c (next_element_from_string): Give padding spaces
3250 * dispnew.c (adjust_glyph_matrix): Some work to support
3251 marginals areas on tty frames in a future version.
3252 (allocate_matrices_for_frame_redisplay): Ditto.
3254 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
3255 to zero if number of glyphs in the row is <= 1.
3257 1999-07-09 Gerd Moellmann <gerd@gnu.org>
3259 * dispnew.c (buffer_posn_from_coords): Take left marginal area
3262 * xdisp.c (handle_display_prop): Don't reset area if handing
3263 a property from a string that came from a `display' property.
3264 (handle_single_display_prop): Don't handle recursive `display'
3266 (handle_single_display_prop): Handle some display property
3267 forms for terminal frames.
3268 (Qimage): Moved here from xfns.c.
3270 * dispextern.h (struct it): New field string_from_display_prop_p.
3272 * xterm.c (x_clip_to_row): Don't let clip_rect include top
3275 1999-07-08 Gerd Moellmann <gerd@gnu.org>
3277 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
3279 * window.c (set_window_buffer): Set window's vscroll to zero.
3281 * xdisp.c (QCwhen): New.
3282 (display_prop_end): New.
3283 (handle_single_display_prop): Use it.
3284 (debug_method_add): Print buffer name if tracing.
3285 (try_window_reusing_current_matrix): Compute visible height
3286 of reused rows. Fix cursor position calculation in case of
3289 * dispextern.h (struct redisplay_interface): Add parameter
3290 cursor_on_p to update_window_end_hook.
3292 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
3294 1999-07-07 Gerd Moellmann <gerd@gnu.org>
3296 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
3297 doesn't become negative when decrementing it.
3299 * eval.c (Fsignal): Reset redisplaying_p to zero.
3301 * xdisp.c (try_window_reusing_current_matrix): Call hooks
3303 (try_window_id): Ditto.
3305 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
3306 (x_scroll_run): Ditto.
3307 (any_help_event_p): New.
3308 (x_initialize): Set it to zero.
3309 (XTread_socket): Clear help echo only if any_help_event_p.
3311 * xdisp.c (init_iterator): Set top_line_p.
3312 (start_display): Use correct initial y if top-line is present.
3313 (make_cursor_line_fully_visible): Bug fixes for top-line.
3314 (try_scrolling): Ditto.
3315 (try_window_reusing_current_matrix): Ditto.
3317 * dispextern.h (struct it): Add top_line_p.
3319 * dispnew.c (shift_glyph_matrix): Move some computations out
3322 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
3325 1999-07-06 Gerd Moellmann <gerd@gnu.org>
3327 * dispnew.c (update_frame_1): When setting cursor in echo area,
3328 skip only over padding spaces at the end.
3330 * xfaces.c (realize_tty_face): Set face's font_name field to
3333 * term.c (update_end): Turn cursor on only if selected window's
3334 cursor_off_p flag is not set.
3336 1999-07-05 Gerd Moellmann <gerd@gnu.org>
3338 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
3339 (TS_cursor_normal): Renamed from TS_end_visual_mode.
3340 (TS_cursor_invisible): New.
3341 (term_init): Initialize TS_cursor_invisible.
3342 (tty_hide_cursor): New.
3343 (tty_show_cursor): New.
3344 (update_end): Show tty cursor.
3345 (update_begin): Hide tty cursor to prevent cursor flickering
3346 during redisplays triggered by timers (stealth fontification).
3348 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
3350 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
3352 (x_handle_toolbar_click): Set modifier bits.
3354 1999-07-04 Gerd Moellmann <gerd@gnu.org>
3356 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
3357 instead of a pointer to a volatile input_event.
3358 (kbd_buffer_store_event): Remove volatile modifier from
3359 declaration of local variable `sp'.
3360 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
3363 1999-07-03 Gerd Moellmann <gerd@gnu.org>
3365 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
3366 only if buffer is modified. Return quickly if changes are
3369 1999-07-02 Gerd Moellmann <gerd@gnu.org>
3371 * dispextern.h (HSCROLL_WINDOWS): Removed.
3373 * xdisp.c (mark_window_display_accurate): Don't set
3375 (redisplay_internal): Don't call redraw_garbaged_frames.
3377 1999-07-01 Gerd Moellmann <gerd@gnu.org>
3379 * xdisp.c (echo_area_display): Don't display truncation marks
3380 for messages because 20.4 doesn't do it either.
3381 (redisplay_window): Case same window start. Instead of giving
3382 up when cursor is partially visible, make it fully visible.
3383 (mark_window_display_accurate): Some cleanup. Record window's
3384 last cursor information.
3385 (debug_method_add): Improved.
3386 (redisplay_internal): Record last cursor info only if not
3387 consider_all_windows_p.
3389 * dispnew.c (update_window): Update top line after scrolling.
3390 (blank_row): Renamed from make_empty_enabled_row.
3391 (increment_glyph_row_buffer_positions): Increment positions
3394 * window.c (Fcoordinates_in_window_p): Add top-line to doc
3397 1999-06-30 Gerd Moellmann <gerd@gnu.org>
3399 * dispnew.c (update_window): Check that updated row is visible.
3401 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
3402 top of window differently.
3404 * xdisp.c (try_window_reusing_current_matrix): Don't do it
3405 if region is showing.
3407 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
3408 avoiding matrix reallocation. Set window_vscroll in matrix.
3410 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
3412 * lwlib-Xm.c: Add function prototypes.
3414 * xdisp.c (debug_method_add): New.
3415 (debug_redisplay_method): Removed.
3416 (try_window_reusing_current_matrix): Handle case where old
3417 window start is the same as new window start.
3419 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
3420 an array instead of a pointer.
3422 * lwlib-Xm.c (xm_update_label): Use val->name to look up
3423 a label string from resources.
3424 (xm_update_label): Add some comments.
3426 * xfns.c (Fx_show_tip): Undo previous change.
3428 * xterm.c (x_append_glyph): Clear glyph->u.val.
3430 * dispextern.h (struct glyph): Increase size of face_id bit-field
3431 for CHAR_GLYPH to 12.
3433 1999-06-29 Gerd Moellmann <gerd@gnu.org>
3435 * xfaces.c (x_charset_registry): Make it externally visible.
3437 1999-06-28 Gerd Moellmann <gerd@gnu.org>
3439 * dispnew.c (update_window): Use mode_line_p flag of rows
3440 instead of WINDOW_WANTS_MODELINE_P.
3442 * xterm.c (clear_mouse_face): Make externally visible.
3444 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
3446 * xterm.c (expose_line): Handle exposure of top-lines.
3448 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
3449 if mouse_face_mouse_frame is null.
3451 * xdisp.c (redisplay_window): If window is echo_area_window,
3452 and update_mode_line is set, update menubar and toolbar.
3454 * dispnew.c (space_glyph): Set its charpos to -1.
3455 (update_frame_1): Ignore trailing padding spaces.
3457 * xdisp.c (next_element_from_c_string): Set position of padding
3460 1999-06-27 Gerd Moellmann <gerd@gnu.org>
3462 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
3465 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
3466 (set_cursor_from_row): Skip over glyphs having a null object at
3468 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
3470 (handle_invisible_prop): Compute next change only when needed.
3471 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
3474 1999-06-26 Gerd Moellmann <gerd@gnu.org>
3476 * xrdb.c (x_load_resources): Don't set resource for double-click
3479 * xdisp.c (try_window_id): Return quickly if all changes are
3480 below the window's current matrix end.
3482 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
3485 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
3486 in desired not in current matrix.
3487 (try_window_reusing_current_matrix): Rotate matrices starting
3488 at start_vpos instead of 0.
3490 * xterm.c (expose_window): Use window_text_bottom_y.
3491 (fast_find_position): Ditto.
3493 * xdisp.c (redisplay_window): Use window_text_bottom_y.
3494 (try_window_reusing_current_matrix): Ditto.
3495 (get_last_unchanged_at_beg_row): Ditto.
3496 (init_iterator): Ditto.
3498 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
3500 (check_matrix_invariants): Use window_text_bottom_y.
3501 (update_window): Ditto.
3502 (scrolling_window): Ditto.
3504 * xdisp.c (window_text_bottom_y): New.
3506 1999-06-25 Gerd Moellmann <gerd@gnu.org>
3508 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
3509 clearing mouse face.
3510 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
3511 event.xcrossing.focus is not set, and focus is in the menu bar,
3512 set focus frame as if event.xcrossing.focus were set.
3514 1999-06-24 Gerd Moellmann <gerd@gnu.org>
3516 * keyboard.c (make_lispy_event): Handle mouse on top lines.
3517 * keyboard.c (make_lispy_movement): Ditto.
3519 * window.c (coordinates_in_window): Return 4 if on top line.
3520 (Fcoordinates_in_window_p): Return `top-line' if on top line.
3522 * xdisp.c (window_box_height): Subtract top line height.
3523 (window_box): Add top line height to top y position if top line
3525 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
3526 the top line row of the window. Set initial y-position to
3527 window's top line height plus delta.
3528 (start_display): Choose start glyph row depending on whether
3529 window has a top line.
3530 (try_scrolling): Take top line height into account for aggressive
3532 (compute_window_start_on_continuation_line): Take top line into
3534 (redisplay_window): Ditto. If top line height has changed,
3535 trigger a new redisplay.
3536 (try_window_reusing_current_matrix): Take top line into account.
3537 (find_last_row_displaying_text): Ditto.
3538 (get_last_unchanged_at_beg_row): DItto.
3539 (try_window_id): Ditto.
3540 (compute_line_metrics): Ditto.
3542 * dispnew.c (shift_glyph_matrix): Compute visible row height
3543 taking top line of window into account.
3544 (update_window): Update top line. If scrolling_window detects
3545 that all rows are equal, only set cursor.
3546 (update_window_line): Call after_update_window_line_hook if
3547 mode_line_p flag of rows has changed.
3548 (scrolling_window): Add parameter top_line_p. Return -1 if
3550 (mode_line_string): Add parameter mode_line_p. Handle strings
3553 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
3554 (MATRIX_FIRST_TEXT_ROW): New.
3555 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
3556 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
3557 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
3558 (MATRIX_TOP_LINE_HEIGHT): New.
3559 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
3560 (CURRENT_TOP_LINE_HEIGHT): New.
3561 (DESIRED_TOP_LINE_HEIGHT): New.
3562 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
3563 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
3564 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
3565 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
3567 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
3569 (x_draw_row_bitmaps): Take top line into account when clearing
3571 (x_estimate_mode_line_height): Replacement for
3572 x_frame_mode_line_height.
3573 (x_get_glyph_string_clip_rect): Take top line into account.
3574 (x_clear_end_of_line): Ditto.
3575 (note_mode_line_highlight): Add parameter mode_line_p. Handle
3577 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
3578 (x_erase_phys_cursor): Take top line into account.
3580 * xdisp.c (window_box_height): Subtract top line height if
3581 window wants a top line.
3582 (display_mode_lines): New.
3583 (redisplay_window): Call it.
3584 (display_mode_line): Add parameters face_id and format.
3586 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
3587 (MATRIX_TOP_LINE_HEIGHT): New.
3589 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
3591 * term.c (estimate_mode_line_height): Renamed from
3592 frame_mode_line_height. Add parameter face_id.
3593 (estimate_mode_line_height_hook): Renamed from
3594 frame_mode_line_height_hook.
3595 (produce_special_glyphs_hook): Removed.
3596 (produce_glyphs_hook): Removed.
3598 1999-06-23 Gerd Moellmann <gerd@gnu.org>
3600 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
3601 (struct glyph_row): Add mode_line_p.
3603 * xfaces.c (realize_basic_faces): Realize face `top-line'.
3605 (syms_of_xfaces): Initialize Qtop_line.
3607 * dispextern.h (TOP_LINE_FACE_ID): New.
3609 * buffer.c (init_buffer_once): Set default for
3610 top_line_format to nil.
3611 (init_buffer_once): Init top_line_format.
3612 (default-top-line-format): New.
3613 (top-line-format): New buffer-local variable.
3615 * buffer.h: Add top_line_format.
3617 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
3619 1999-06-17 Dave Love <fx@gnu.org>
3621 * xfns.c: Move the PNG section before the JPEG one to avoid
3622 problems surrounding setjmp.h/png.h on GNU/Linux.
3624 1999-06-17 Gerd Moellmann <gerd@gnu.org>
3626 * xfns.c (x_kill_gs_process): Don't free colors.
3628 1999-06-17 Dave Love <fx@gnu.org>
3630 * s/gnu-linux.h: Zap spurious ~.
3632 1999-06-16 Gerd Moellmann <gerd@gnu.org>
3634 * xfns.c (gif_load): Improve multi-image support.
3636 1999-06-15 Gerd Moellmann <gerd@gnu.org>
3638 * xfns.c (gif_load): Support multi-image files.
3640 * Makefile.in (LIBGIF): Use libungif.
3642 * configure.in (HAVE_GIF): Use libungif instead of libgif
3643 because the former doesn't contain patented compression code.
3645 * xdisp.c (compute_window_start_on_continuation_line): Don't
3646 do it if line start is too far away from window start.
3648 1999-06-14 Gerd Moellmann <gerd@gnu.org>
3650 * buffer.c (init_buffer_once): Set buffer_local_flags for
3651 scroll_*_aggressively.
3652 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
3653 (init_buffer_once): Set defaults for these variables.
3654 (syms_of_buffer): Add default-scroll-*-aggressively.
3656 * buffer.h (scroll_up_aggressively): New.
3657 (scroll_down_aggressively): New.
3659 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
3660 a static PNG library.
3662 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
3663 in case it's a static library.
3665 * Makefile.in (ctagsfiles): Split so that files starting
3666 with an `x' are found before files starting with `w32'.
3669 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
3671 * xdisp.c (compute_window_start_on_continuation_line): New.
3672 (redisplay_window): Use it.
3674 (reseat_to_string): Use it.
3675 (hscroll_window_tree): Ditto.
3676 (compute_window_start_on_continuation_line): Ditto.
3677 (redisplay_window): Don't force display with a new window start.
3679 1999-06-06 Gerd Moellmann <gerd@gnu.org>
3681 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
3682 if widget not present.
3684 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
3686 1999-06-04 Gerd Moellmann <gerd@gnu.org>
3688 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
3689 value of realize_basic_faces.
3690 (load_face_font_or_fontset): Store full font name in face.
3691 (realize_default_face): Use full font name.
3693 * xlwmenu.c (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
3695 * xterm.c (x_produce_glyphs): Set member char_to_display.
3696 (x_append_glyph): Store char_to_display in glyphs.
3698 * dispextern.h (struct it): Add char_to_display.
3700 * xfns.c (x_set_font): Don't call face-set-after-frame-default
3701 if faces haven't been initialized.
3702 (Fx_create_frame): Call face-set-after-frame-default after
3703 faces have been initialized, and widget has been created.
3705 * puresize.h (BASE_PURESIZE): Increased.
3707 1999-06-01 Gerd Moellmann <gerd@gnu.org>
3709 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
3710 (Finternal_set_lisp_face_attribute): If frame is t when
3711 :font attribute is set, use the selected frame.
3712 (clear_face_cache): Add parameter clear_fonts_p.
3713 (Fclear_face_cache): Add optional parameter thorougly.
3715 * xfaces.c (face_numeric_value): Return -1 if symbol is not
3717 (Fclear_face_cache): New.
3718 (choose_face_fontset_font): If fontset doesn't contain font
3719 pattern for the given charset, use CHARSET_ASCII.
3720 (Finternal_set_lisp_face_attribute): Fix handling of nil
3722 (Finternal_set_lisp_face_attribute): Fix handling of changing
3723 font-related face attributes of the default face.
3724 (set_lface_from_font_name): Set only attributes that aren't
3727 1999-05-31 Gerd Moellmann <gerd@gnu.org>
3729 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
3731 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
3732 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
3733 scalable fonts depending on the setting of SCALABLE_FONTS.
3734 (first_font_matching): List more than one font to find the
3735 first non-scalable matching font.
3736 (sorted_font_list): Let x_face_list_fonts return scalable fonts
3737 depending on SCALABLE_FONTS.
3738 (better_font_p): New parameter compare_pt_p. If zero, don't
3739 compare point sizes of fonts.
3740 (exact_face_match_p) [SCALABLE_FONTS]: New.
3741 (build_scalable_font_name) [SCALABLE_FONTS]: New.
3742 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
3743 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
3744 (syms_of_xfaces): Add scalable-fonts-allowed.
3746 1999-05-26 Gerd Moellmann <gerd@gnu.org>
3748 * xfns.c (png_load): Let PNG lib handle gamma. Construct
3749 mask only if image contains simple transparency information.
3750 Otherwise, combine image with frame background color.
3752 * configure.in (--with-png, HAVE_PNG): New.
3754 * config.in (HAVE_PNG): New.
3756 * Makefile.in: Add PNG library.
3758 * xfns.c: Add PNG support.
3760 1999-05-25 Gerd Moellmann <gerd@gnu.org>
3762 * xdisp.c (init_xdisp): Initialize echo_area_message and
3763 previous_echo_area_message to nil.
3765 * keyboard.c (read_char): Rename local variable echo_area_message
3766 because it shadows the global one.
3768 1999-05-05 Gerd Moellmann <gerd@gnu.org>
3770 * xterm.c (note_mode_line_highlight): Restructured.
3772 * window.c (coordinates_in_window): Handle windows that don't have
3773 a mode line because their buffer's mode-line-format is nil.
3774 Recognize the mode line under x positions that correspond to
3775 flags areas and left scroll bar.
3777 1999-05-02 Dave Love <fx@gnu.org>
3779 * xterm.c (note_mouse_highlight): Separate help-echo processing
3780 from check on mouse-face so that it works generally.
3782 1999-04-21 Gerd Moellmann <gerd@gnu.org>
3784 * sound.c (Fplay_sound): Run hook play-sound-hook.
3785 (Qplay_sound_hook): New.
3787 1999-04-20 Gerd Moellmann <gerd@gnu.org>
3789 * xdisp.c (update_echo_area): Handle echo_area_message.
3791 1999-04-19 Gerd Moellmann <gerd@gnu.org>
3793 * editfns.c (Fmessage): Use message3.
3795 * print.c (printchar): Set echo_area_message to nil.
3798 * minibuf.c (read_minibuf): Reset echo message strings to nil.
3799 (Fminibuffer_completion_help): Ditto.
3801 * keyboard.c (cmd_error_internal): Set echo_areA_message.
3802 (command_loop_1): Test echo_areA_message.
3804 (record_menu_key): Set echo_area_message to nil.
3805 (Fexecute_extended_command): Test echo_area_message.
3806 (Fexecute_extended_command): Handle echo_area_message.
3808 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
3811 * editfns.c (Fcurrent_message): If echo_area_message is set,
3812 return a substring of that string.
3814 * dispnew.c (direct_output_for_insert): Test echo_area_message
3815 in addition to echo_area_glyphs.
3816 (set_window_cursor_after_update): Ditto.
3817 (update_frame_1): Ditto.
3819 * alloc.c (Fgarbage_collect): Use message3_nolog to display
3820 old Lisp message string.
3822 * xdisp.c (echo_area_message): New.
3823 (previous_echo_area_message): New.
3824 (syms_of_xdisp): Initialize and staticpro new variables.
3825 (echo_area_display): Display echo_area_message if set.
3826 (message2_nolog): Set echo_area_message and
3827 previous_echo_area_message.
3828 (echo_area_display): Set previous_echo_area_message.
3829 (redisplay_internal): Display echo area if echo_area_message
3830 or previous_echo_area_message are set.
3831 (redisplay_preserve_echo_area): Test/set echo_area_message and
3832 previous_echo_area_message.
3833 (redisplay_window): Test echo_area_message.
3834 (message3_nolog): New.
3837 * editfns.c (Fformat): Add text properties to the result string
3838 from properties of the format string and properties of string
3841 * textprop.c (text_property_list): New.
3842 (add_text_properties_from_list): New.
3843 (extend_property_ranges): New.
3845 1999-03-29 Gerd Moellmann <gerd@gnu.org>
3847 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
3848 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
3849 Use these symbols for the box face attribute instead of the
3852 1999-03-12 Gerd Moellmann <gerd@gnu.org>
3854 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
3855 Correct wrong test for slant.
3857 1999-03-10 Gerd Moellmann <gerd@gnu.org>
3859 * xfaces.c: Use `unspecified' for unspecified face attributes,
3860 use t and nil for on/off.
3862 1999-03-06 Gerd Moellmann <gerd@gnu.org>
3864 * buffer.c (syms_of_buffer): Extend doc string of
3867 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
3868 (first_font_matching): New.
3869 (set_lface_from_font_name): Use it if font name is a pattern.
3870 (font_field_wildcard_p): Removed.
3872 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
3873 Recompute visible height of rows.
3875 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
3876 Don't accept non-strings for help-echo from overlays.
3878 1999-03-04 Dave Love <fx@gnu.org>
3880 * xterm.c (note_mouse_highlight): Check overlays for help-text
3882 (XTread_socket): Fix compiler warning.
3884 1999-03-05 Gerd Moellmann <gerd@gnu.org>
3886 * xterm.c (note_mouse_highlight): Don't restrict number of
3887 overlay to 10. Call overlays_at so that it doesn't try to
3890 * xdisp.c (compute_line_metrics): Compute glyph row's visible
3893 * dispnew.c (row_equal_p): Compare visible row height, only.
3894 (update_text_area): Draw whole line if visible heights of
3896 (update_window_line): Call after_update_window_line_hook
3897 if visible row height has changed.
3899 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
3900 (struct glyph_row): New member visible_height.
3902 * xfaces.c (font_field_wildcard_p): New.
3903 (set_lface_from_font_name): Remove parameter force_p. Accept
3904 font names containing wildcards.
3906 1999-03-04 Gerd Moellmann <gerd@gnu.org>
3908 * xterm.c (x_after_update_window_line): Clear internal border
3909 when windows_or_buffers_changed.
3911 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
3912 buffer has a nil mode_line_format.
3914 1999-03-03 Gerd Moellmann <gerd@gnu.org>
3916 * xterm.c (x_setup_relief_colors): Use either background color
3919 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
3921 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
3923 * xterm.c (x_draw_box_rect): New.
3924 (x_draw_glyph_string_box): Renamed from
3925 x_draw_glyph_string_relief. Call x_draw_box_rect.
3927 * xfns.c (QCrelief): New.
3928 (syms_of_xfns): Initialize it.
3930 * dispextern.h (struct glyph): Rename left_shadow_p to
3931 left_box_line_p, right_shadow_p to right_box_line_p.
3932 (MAX_RELIEF_THICKNESS): Removed.
3933 (struct it): Rename members having `relief' in their names
3934 to contain `box' instead.
3936 * xfaces.c (realize_x_face): Handle new box attribute values.
3937 (QCrelief, Qbox): Removed.
3938 (QCshadow, QCcolor, Qraised, Qsunken): New.
3939 (syms_of_xfaces): Initialize new symbols.
3941 1999-03-02 Gerd Moellmann <gerd@gnu.org>
3943 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
3945 * xfaces.c (LFACE_RELIEF): Removed.
3946 (merge_face_vector_with_property): Remove handling of `:relief'.
3947 (Finternal_set_lisp_face_attribute): Ditto.
3948 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3949 (Finternal_get_lisp_face_attribute): Ditto.
3950 (realize_default_face): Ditto.
3951 (lface_hash): Don't compute hash from relief.
3953 * dispextern.h (struct face): Replace member `relief' by
3954 `box_line_width'. Add member `box'.
3955 (face_box_type): New.
3957 * xterm.c (x_produce_glyphs): If face has overline, add overline
3958 thickness + 1 to ascent.
3960 1999-03-01 Gerd Moellmann <gerd@gnu.org>
3962 * xterm.c (x_draw_glyph_string): Draw underline, overline,
3963 strike-through, and boxes.
3964 (x_draw_glyph_string_underline): Removed.
3966 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
3967 (Qoverline, Qstrike_through, Qbox): New.
3968 (syms_of_xfaces): Define these symbols.
3969 (check_lface_attrs): Add checks for overline, strike-through,
3971 (Finternal_set_lisp_face_attribute): Set new attributes.
3972 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
3973 (load_color): Handle new attributes.
3974 (realize_x_face): Ditto.
3975 (merge_face_vector_with_property): Ditto.
3976 (free_face_colors): Ditto.
3977 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
3978 (Finternal_get_lisp_face_attribute): Ditto.
3979 (Finternal_lisp_face_attribute_values): Ditto.
3981 * dispextern.h (lface_attribute_index): Add enumerators for
3982 overstrike, strike-through, and box.
3983 (struct face): Add members for overline, strike-through, and
3986 1999-02-17 Dave Love <fx@gnu.org>
3988 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
3989 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
3992 1999-02-16 Gerd Moellmann <gerd@gnu.org>
3994 * keyboard.c (toolbar_items): Call access_keymap with third
3995 parameter 1, so that we don't get inherited toolbar item
3998 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
3999 the window end vpos when in empty first line of window.
4001 1999-02-15 Gerd Moellmann <gerd@gnu.org>
4003 * xfaces.c (set_font_frame_param): New.
4004 (Finternal_set_lisp_face_attribute): Call it.
4006 Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
4008 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
4009 Accept specifications of color for underline.
4011 1999-02-13 Gerd Moellmann <gerd@gnu.org>
4013 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
4014 `frame' is t, operate on face defaults for new frames. If it
4015 is nil, operate on the selected frame.
4017 1999-02-12 Gerd Moellmann <gerd@gnu.org>
4019 * dispnew.c (check_matrix_invariants): Put it in #if 0.
4020 (update_window): Put the call to check_matrix_invariants in #if 0.
4022 Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
4024 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
4025 Remove definition of UNDERLINE_COLOR.
4027 Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
4029 * xfaces.c (free_face_colors): Free the color for underline.
4031 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
4034 Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
4036 * dispextern.h (UNDERLINE_COLOR): Defined.
4037 (struct face): Added two new members.
4038 underline_color, underline_defaulted_p.
4040 * xfaces.c (merge_face_vector_with_property):
4041 (check_lface_attrs): Accept the string value for underline.
4042 (Finternal_set_lisp_face_attribute): Likewise.
4044 * xfaces.c (load_color): Change the last argument type to enum
4045 lface_attribute_index from int. And addec code for underling coloring.
4046 (load_face_colors): Pass LFACE_*_INDEX to load_color.
4048 1999-02-12 Gerd Moellmann <gerd@gnu.org>
4050 * xfns.c (Fx_image_header): Removed.
4052 1999-02-07 Gerd Moellmann <gerd@gnu.org>
4054 * xterm.c: Don't include <bitmaps/gray>.
4055 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
4057 * xfns.c (Fx_image_header): Add missing `\n\'.
4058 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
4060 1999-02-01 Gerd Moellmann <gerd@gnu.org>
4062 * xterm.c (x_scroll_bar_create): Set background pixel from
4063 specified scroll bar color.
4064 (x_scroll_bar_set_handle): Use scroll bar foreground color.
4066 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
4067 (x_set_scroll_bar_background): Ditto.
4069 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
4071 * xfns.c (x_default_scroll_bar_color_parameter): New.
4072 (Fx_create_frame): Call it.
4074 1999-01-31 Gerd Moellmann <gerd@gnu.org>
4076 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
4077 values in x_output structure.
4078 (Qscroll_bar_foreground, Qscroll_bar_background): New.
4079 (syms_of_xfns): Initialize these symbols.
4081 * xterm.h (struct x_output): Add scroll bar pixel colors.
4083 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
4084 (x_set_scroll_bar_foreground): New.
4085 (x_set_scroll_bar_background): New.
4087 * xlwmenu.c (all_dashes_p): Removed.
4088 (size_menu_item): Call lw_separator_p.
4089 (display_menu_item): Ditto.
4090 (display_menu): Ditto.
4091 (draw_separator): New.
4092 (display_menu_item): Call it.
4093 (separator_height): New.
4094 (size_menu_item): Call it.
4096 * lwlib-Xm.c (all_dashes_p): Removed.
4097 (make_menu_in_widget): Use lw_separator_p. Set Motif separator
4100 * lwlib.c (lw_separator_p): New.
4102 * lwlib.h (enum menu_separator): New.
4104 1999-01-12 Gerd Moellmann <gerd@gnu.org>
4106 * xdisp.c (handle_single_display_prop): New.
4107 (handle_display_prop): Call it.
4108 (handle_raise_prop): Removed.
4109 (handle_height_prop): Removed.
4110 (handle_space_width_prop): Removed.
4111 (handle_face_prop): Remove handling of raised text.
4112 (handle_display_prop): Do it here.
4114 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
4115 (RAISE_PROP_IDX): Removed.
4116 (HEIGHT_PROP_IDX): Removed.
4117 (SPACE_WIDTH_PROP_IDX): Removed.
4119 * xdisp.c (Qdisplay): Replaces Qglyph.
4120 (handle_display_prop): Formerly handle_glyph_prop.
4122 1999-01-11 Gerd Moellmann <gerd@gnu.org>
4124 * xdisp.c (reseat_to_string): Set position in display vector to -1.
4125 (handle_stop): Set position in display vector to -1. Don't
4126 check overlay strings when set up to deliver characters from a
4128 (set_iterator_to_next): At the end of a run of characters from a
4129 display vector, check whether the display vector display replaces
4130 the display of a character.
4132 1999-01-05 Gerd Moellmann <gerd@gnu.org>
4134 * xfaces.c (init_frame_faces): Don't realize faces if frame's
4135 X window hasn't been created yet.
4137 1998-12-06 Gerd Moellmann <gerd@gnu.org>
4141 1998-12-04 Gerd Moellmann <gerd@gnu.org>
4143 * config.in (HAVE_SOUND): New.
4145 * emacs.c (main): Call syms_of_sound and init_sound.
4147 * Makefile.in (obj): Add sound.o.
4149 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
4151 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
4152 (HAVE_SYS_SOUNDCARD_H): New.
4154 1998-12-03 Gerd Moellmann <gerd@gnu.org>
4156 * buffer.h (struct buffer): indicate_empty_lines renamed from
4159 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
4160 (default-indicate-zv-lines): Likewise.
4162 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
4163 to indicate_empty_line_p.
4165 * xdisp.c (reseat_at_next_visible_line_start): Reset method
4166 to next_element_from_buffer.
4168 * frame.c (make_frame): Set n_current_toolbar_items to 0.
4170 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
4173 * xfns.c (xbm_scan): New.
4174 (xbm_read_hexint): Removed.
4175 (xbm_read_bitmap_file_data): Use xbm_scan.
4177 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
4179 1998-12-02 Gerd Moellmann <gerd@gnu.org>
4181 * xfns.c (xbm_read_hexint): New.
4182 (xbm_read_bitmap_file_data): New.
4183 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
4184 instead of XReadBitmapFileData.
4186 * xdisp.c (handle_raise_prop): Compute voffset from current font.
4188 * xfaces.c (face_with_height): New.
4190 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
4191 (eval_form): Renamed from eval_mode_element.
4192 (handle_face_prop): Use it.
4193 (Qheight): Replaces Qsmaller.
4194 (handle_height_prop): Replaces handle_smaller_prop.
4195 (handle_face_prop): If iterator's font_height is not an
4196 integer, evaluate it to get the font height to use.
4198 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
4199 (struct it): Use `font_height' instead of `smaller'.
4201 1998-12-01 Gerd Moellmann <gerd@gnu.org>
4203 * xdisp.c (reseat_1): New.
4205 (move_it_vertically_backward): Ditto.
4206 (redisplay_window): Don't abort when cursor not found in recenter.
4208 1998-11-30 Gerd Moellmann <gerd@gnu.org>
4210 * xdisp.c (reseat_at_next_visible_line_start): When not
4211 currently delivering display elements from the current buffer,
4212 restore buffer position first.
4213 (init_from_display_pos): Don't set IT's position from the
4214 position passed to this function.
4216 1998-11-28 Gerd Moellmann <gerd@gnu.org>
4218 * config.in (PROTO): Removed.
4220 * xterm.h: Change PROTO to P_.
4222 1998-11-26 Gerd Moellmann <gerd@gnu.org>
4224 * xterm.c (take_vertical_position_into_account): New.
4225 (x_produce_image_glyph): Call it.
4226 (x_produce_stretch_glyph): Ditto.
4227 (x_produce_glyphs): Ditto.
4228 (x_fill_glyph_string): Adjust base line for glyph's voffset.
4229 (x_fill_composite_glyph_string): Ditto.
4230 (x_fill_image_glyph_string): Ditto.
4231 (x_fill_stretch_glyph_string): Ditto.
4233 * xdisp.c (display_line): Always compute row height from
4234 max_ascent and max_descent.
4236 * dispextern.h (struct glyph): Add voffset.
4237 (struct it): Replace height by descent, max_height by max_descent.
4239 * xterm.c (x_append_glyph): Set voffset
4240 (x_append_stretch_glyph): Ditto.
4241 (x_produce_image_glyph): Ditto.
4242 (x_produce_glyphs): Take voffset into account.
4243 (x_produce_image_glyph): Ditto.
4244 (x_produce_stretch_glyph): Ditto.
4246 * dispextern.h (struct it): Add voffset.
4247 * xdisp.c (push_it): Save voffset.
4248 (pop_it): Restore it.
4250 * xdisp.c (it_props): Add entry for `raise'.
4251 (handle_raise_prop): New.
4253 * dispextern.h (RAISE_PROP_IDX): New.
4255 * xdisp.c (Qraise): New.
4256 (syms_of_xdisp): Define Qraised.
4258 * xterm.c (x_scroll_bar_move): Clear to the left and right
4259 of toolkit scroll bars differently.
4260 (x_scroll_bar_move): Removed.
4261 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
4263 * dispextern.h: Make it compilable --with-x=no.
4267 * keyboard.c: Ditto.
4274 1998-11-25 Gerd Moellmann <gerd@gnu.org>
4276 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
4278 1998-11-24 Gerd Moellmann <gerd@gnu.org>
4280 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
4281 update slider size, only.
4282 (xm_scroll_callback): Set dragging member of the scroll bar.
4283 (xt_action_hook): Reset last_scroll_bar_part.
4284 (XTredeem_scroll_bar): Reset bar->dragging to nil.
4286 * xlwmenu.c (abort_gracefully): New.
4287 (display_menu): Use it instead of abort.
4290 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
4291 window on newly created frames that don't have one.
4293 1998-11-23 Gerd Moellmann <gerd@gnu.org>
4295 * xdisp.c (restore_overlay_strings): Removed.
4296 (restore_dpvec): Removed.
4297 (init_from_display_pos): Inline both functions above.
4299 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
4300 (parse_image_spec): Handle it.
4301 (xbm_format): Use it.
4302 (xpm_format): Ditto.
4303 (pbm_format): Ditto.
4304 (jpeg_format): Ditto.
4305 (tiff_format): Ditto.
4306 (gif_format): Ditto.
4309 * xdisp.c (set_window_cursor): Removed.
4310 (redisplay_internal): Case cursor motion in cursor line of
4311 selected window; use set_cursor_from_row.
4313 1998-11-22 Gerd Moellmann <gerd@gnu.org>
4315 * widget.c (EmacsFrameSetCharSize): Take widget's border width
4318 1998-11-21 Gerd Moellmann <gerd@gnu.org>
4320 * xterm.c (expose_frame): Redraw menu bar window.
4322 * xdisp.c (display_menu_bar): Record hpos instead of x-position
4325 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
4326 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
4328 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
4329 to determine vertical_scroll_bar_extra.
4330 (EmacsFrameSetCharSize): Ditto.
4331 * xfns.c (x_figure_window_size): Ditto.
4333 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
4334 (x_draw_bitmap): Ditto.
4336 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
4337 * xfaces.c (realize_basic_faces): Realize it.
4339 1998-11-20 Gerd Moellmann <gerd@gnu.org>
4341 * xmenu.c (xmenu_show): Add workaround for remaining button grab
4342 under LessTif Use the widget of the frame as parent for the
4345 1998-11-19 Gerd Moellmann <gerd@gnu.org>
4347 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
4348 When EnterNotify, don't generate a mouse movement event if
4349 notification is from a busy-cursor child window.
4351 * xterm.h (struct x_output): Add busy_window, remove cursor.
4353 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
4354 Use a transparent window to display the busy-cursor.
4355 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
4357 1998-11-17 Gerd Moellmann <gerd@gnu.org>
4359 * xdisp.c (check_window_end): New, for debugging.
4360 (CHECK_WINDOW_END): New.
4361 (try_window_id): Use it.
4363 * xterm.c (process_expose_from_menu): Return int.
4365 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
4366 TOOLBAR_EVENT events in last_nonmenu_event.
4368 1998-11-16 Gerd Moellmann <gerd@gnu.org>
4370 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
4371 window end isn't reliable, so set window_end_valid to nil.
4372 (redisplay_internal): If overlay arrow has changed, set
4373 windows_or_buffers_changed to redisplay thoroughly.
4375 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
4378 * xfns.c (file_dialog_cb): New.
4379 (Fx_file_dialog): New.
4380 * fileio.c (Fread_file_name): Call it.
4382 * xrdb.c (x_load_resources): Add default resoures for file
4385 1998-11-14 Gerd Moellmann <gerd@gnu.org>
4387 * xterm.c (note_mouse_highlight): Don't highlight when popup
4390 * xlwmenu.c (xlwMenuResources): Change previously unused
4392 (size_menu): Take margin into account.
4393 (display_menu_item): Ditto.
4394 (remap_menubar): Ditto.
4395 (draw_arrow): Draw it 3D.
4397 * keyboard.c (timer_check): Inhibit busy cursor around calls to
4398 timer-event-handler. This busy cursor tends to be anoying if
4399 fontifying stealthily.
4401 * dispnew.c (direct_output_for_insert): Give up if current row
4402 contains trailing whitespace.
4404 1998-11-13 Gerd Moellmann <gerd@gnu.org>
4406 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
4408 * xdisp.c (handle_fontified_prop): New.
4409 (Vfontification_functions): New.
4410 (Qfontification_functions): New.
4411 (it_props): Add handle_fontified_prop.
4413 1998-11-12 Gerd Moellmann <gerd@gnu.org>
4415 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
4416 Otherwise, under LessTif, after the popup has gone, all button
4417 press events come in for the frame's widget, and release events
4418 come in for the edit_widget.
4419 * xterm.c (XTread_socket): Remove workaround for that problem.
4420 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
4421 XmScrollBarSetValues.
4422 (SET_SAVED_MENU_EVENT): Give it statement form.
4424 * lwlib-Xm.c (make_menu_in_widget): Set alignment of menu
4425 title after all widgets have been created.
4427 * xfaces.c (display_message): If waiting_for_input, don't display
4430 * window.c (scroll_command): If not acting on current_buffer,
4431 make redisplay consider all windows.
4433 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
4435 * xdisp.c (handle_glyph_prop): Set it->object for images to
4436 the object having the glyph property.
4438 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
4441 1998-11-11 Gerd Moellmann <gerd@gnu.org>
4443 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
4444 (x_term_init): Create the gray pixmap.
4445 (x_setup_relief_color): Use it.
4446 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
4447 internal border at the top of a frame.
4448 (x_init_glyph_string): Likewise.
4449 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
4451 (XTflash): Don't flash the toolbar window.
4453 * xterm.c (XTread_socket): Workaround for LessTif popup menus
4454 in case of ButtonPress events.
4456 1998-11-10 Gerd Moellmann <gerd@gnu.org>
4458 * xrdb.c (x_load_resources): Add grey background colors as
4459 defaults for menus, scroll bars, and dialogs.
4461 * insdel.c (prepare_to_modify_buffer): Move setting
4462 windows_or_buffers_changed from modify_region here.
4464 * xfns.c (Fx_show_tip): Inhibit redisplay.
4465 (Fx_hide_tip): Ditto.
4466 (Fx_image_header): New.
4468 1998-11-09 Gerd Moellmann <gerd@gnu.org>
4470 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
4471 when clearing current window matrices.
4473 1998-11-08 Gerd Moellmann <gerd@gnu.org>
4475 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
4476 position from a string position. Use the right end position
4477 if the property spans a whole overlay string.
4479 1998-11-07 Gerd Moellmann <gerd@gnu.org>
4481 * xmenu.c (menubar_selection_callback): Remove workaround for
4482 Lesstif not calling XmNpopdownCallback because it doesn't
4483 handle the case where users don't select any menu item.
4485 * xlwmenu.c (toggle_button_width): Renamed from
4486 toggle_or_radio_button_width.
4487 (radio_button_width): New.
4488 (size_menu_item): Use new functions.
4489 (draw_shadow_rhombus): New.
4490 (draw_radio): Use radio_button_width and draw_shadow_rhombus.
4491 (draw_toggle): Use toggle_button_width.
4493 * insdel.c (modify_region): Set windows_or_buffers_changed.
4495 * buffer.c (set_buffer_internal): Don't set
4496 windows_or_buffers_changed.
4498 * lwlib-Xm.c (xm_update_toggle): Add callback xm_generic_callback
4499 instead of xm_internal_update_other_instances.
4501 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
4503 * lwlib-Xm.c (make_menu_in_widget): Do help button before managing
4504 children to get it to the right place.
4505 (make_menu_in_widget): Create toggle buttons.
4506 (update_one_menu_entry): Update toggle buttons.
4508 * xmenu.c (menubar_selection_callback): Add workaround for
4509 Lesstif not calling XmNpopdownCallback.
4511 * xdisp.c (eval_mode_element): New.
4512 (eval_mode_handler): New.
4513 (display_mode_element): Use eval_mode_element.
4515 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
4516 Remove code looking at text props of default value.
4518 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
4520 * xlwmenu.c (size_menu_item): Add parameter button_width.
4521 (size_menu): Compute button_width.
4522 (toggle_or_radio_button_width): New.
4525 (draw_shadow_rectangle): Add parameter `down_p'.
4527 * xlwmenuP.h (_window_state): Add button_width.
4529 1998-11-06 Gerd Moellmann <gerd@gnu.org>
4531 * xmenu.c (single_submenu): Set button_type of menu to
4533 (single_submenu): Likewise for panes and menu items.
4534 (set_frame_menubar): Set button_type of menu bar to none.
4535 (xmenu_show): Likewise.
4536 (single_submenu): Set widget values selected slot.
4537 (xmenu_show): Likewise.
4539 * lwlib.c (merge_widget_value): Handle button_type.
4540 (copy_widget_value_tree): Copy button_type.
4542 * lwlib.h (enum button_type): New.
4543 (_widget_value): New member button_type.
4545 * xmenu.c (push_menu_item): Add parameters `type' and
4546 `selected'. Store it in menu_items.
4547 (MENU_ITEMS_ITEM_TYPE): New.
4548 (MENU_ITEMS_ITEM_SELECTED): New.
4549 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
4551 * xfns.c (clear_image_cache): Get the current time, before
4553 (cache_image): Set prev pointer of next image.
4554 (clear_image_cache): Clear current matrices if any image was
4557 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
4559 * xfns.c (x_set_cursor): New.
4560 (Fx_display_busy_cursor): New.
4561 (Fx_undisplay_busy_cursor): New.
4563 * xterm.h (struct x_output): Add busy_cursor.
4565 * xfns.c (Vx_busy_pointer_shape): New.
4566 (x_set_mouse_color): Create busy cursor.
4568 * process.c (wait_reading_process_input): Show and hide busy
4571 * keyboard.c (command_loop_1): Display busy cursor.
4573 * eval.c (Fsignal): Hide busy cursor.
4575 * buffer.c (set_buffer_internal): Don't set
4576 windows_or_buffers_changed.
4578 * xterm.c (redo_mouse_highlight): New.
4580 1998-11-04 Gerd Moellmann <gerd@gnu.org>
4582 * lwlib-Xm.c (make_menu_in_widget): Test for menubar widgets
4583 using XmNrowColumnType.
4585 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
4586 (x_build_heuritic_mask): New.
4587 (lookup_image): Call it.
4589 * xterm.c (note_toolbar_highlight): Always set up help_echo.
4590 (previous_help_echo): New.
4591 (XTread_socket): Generate help event with nil message when
4592 leaving a region with help-echo.
4593 (note_mouse_highlight): Handle `help-echo' over text.
4594 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
4596 (clear_mouse_face): Don't clear if tooltip is shown.
4597 (XTread_socket): Redo mouse-highlight after tooltip is gone.
4598 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
4600 * keyboard.c (Vshow_help_function): New.
4601 (read_char): Use it.
4603 1998-11-03 Gerd Moellmann <gerd@gnu.org>
4605 * xfns.c (x_create_tip_frame): New.
4609 * xterm.c (x_destroy_window): Handle case that we don't have
4612 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
4613 to full_width_p. Add internal_border_p.
4615 1998-11-02 Gerd Moellmann <gerd@gnu.org>
4617 * xterm.c (note_mode_line_highlight): Check the charpos of
4618 the glyph under the mouse pointer before accessing text
4619 properties at that position.
4621 1998-11-01 Gerd Moellmann <gerd@gnu.org>
4623 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
4625 * xdisp.c (auto-raise-toolbar-buttons): New.
4626 (build_desired_toolbar_string): Handle the flag.
4627 (toolbar-button-margin): New.
4628 (toolbar-button-relief): New.
4629 (build_desired_toolbar_string): Use margin and relief.
4631 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
4633 (note_mode_line_highlight): New.
4634 (note_mouse_highlight): Call it.
4636 1998-10-31 Gerd Moellmann <gerd@gnu.org>
4638 * s/freebsd.h (NARROWPROTO): New.
4640 * xdisp.c (display_string): New parameter face_string.
4641 (display_mode_element): When displaying a symbol with a string
4642 value, use text properties from the symbol's default value, maybe.
4644 * xrdb.c (x_load_resources): Add font defaults for menus and
4647 1998-10-30 Gerd Moellmann <gerd@gnu.org>
4649 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
4651 1998-10-29 Gerd Moellmann <gerd@gnu.org>
4653 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
4654 produced for characters with codes < 32 under certain
4657 * xdisp.c (redisplay_window): Handle values of PT in front
4658 of invisible, intangible text.
4659 (try_window_id): Set overlay_arrow_seen to zero before
4661 (display_mode_element): Assign to glyphs written for a mode
4662 line spec `%x' as object the Lisp format string, as position
4663 the position of the `%' in that string.
4664 (display_string): If displaying a C string, optionally get
4665 the face to use from a Lisp string.
4667 * xterm.c (expose_window_tree): Include mode line height.
4669 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
4671 1998-10-27 Gerd Moellmann <gerd@gnu.org>
4673 * xterm.c (note_mouse_highlight): Change mouse pointer shape
4676 1998-10-26 Gerd Moellmann <gerd@gnu.org>
4678 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
4680 * xdisp.c (redisplay_window): If mode line height has changed,
4681 arrange for a thorough immediate redisplay using the correct mode
4683 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
4685 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
4686 (CURRENT_MODE_LINE_HEIGHT): New.
4687 (DESIRED_MODE_LINE_HEIGHT): New.
4689 * keyboard.c (make_lispy_event): Add string and string position
4690 info to mouse-click events.
4691 (read_key_sequence): Handle `local-map' property of mode line
4694 * keyboard.h (POSN_STRING): New.
4696 1998-10-25 Gerd Moellmann <gerd@gnu.org>
4698 * dispnew.c (mode_line_string): Mew.
4700 * xterm.c (xt_action_hook): New.
4701 (x_create_toolkit_scroll_bar): Add action hook.
4702 (xm_scroll_callback): Implement dragging.
4704 * keyboard.c (Qend_scroll): New.
4705 (scroll_bar_parts): Add it.
4707 * termhooks.h (scroll_bar_end_scroll): New.
4709 * xterm.c (XTread_socket): Bug fix.
4711 1998-10-24 Gerd Moellmann <gerd@gnu.org>
4713 * xdisp.c (redisplay_window): Finish scroll bars after
4714 redisplaying toolbar.
4716 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
4717 (syms_of_keyboard): Add Qbottom.
4719 * termhooks.h (scroll_bar_to_top): New.
4720 (scroll_bar_to_bottom): New.
4722 * xdisp.c (redisplay_window): Always resize toolbar window if
4723 auto_resize_toolbar_p is non-zero.
4724 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
4726 (window_box_height): New.
4727 (window_box_width): New.
4728 (window_box_left): New.
4729 (window_box_right): New.
4730 (window_box_edges): New.
4732 1998-10-23 Gerd Moellmann <gerd@gnu.org>
4734 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
4735 XawScrollbarSetThumb in FreeBSD.
4736 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
4739 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
4742 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
4743 (x_term_init): Initialize it.
4745 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
4747 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
4750 1998-10-22 Gerd Moellmann <gerd@gnu.org>
4752 * keyboard.c (make_lispy_event): Handle scroll_bar_click
4753 differently when using toolkit scroll bars.
4755 * xterm.c (x_send_scroll_bar_event): New.
4756 (x_scroll_bar_to_input_event): New.
4757 (xaw3d_scroll_callback): New.
4758 (xaw3d_jump_callback): New.
4759 (xm_scroll_callback): New.
4760 (x_toolkit_scroll_p): New.
4761 (XTread_socket): Handle scroll bar client message.
4762 (x_term_init): Initialize Xatom_Scrollbar.
4763 (x_scroll_bar_create): Set cursor.
4764 (xm_scroll_callback):
4765 (x_create_toolkit_scroll_bar): New.
4766 (x_set_toolkit_scroll_bar_thumb): New.
4767 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
4768 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
4770 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
4772 1998-10-21 Gerd Moellmann <gerd@gnu.org>
4774 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
4775 (XTread_socket): Don't handle mouse button events for scroll bars
4776 if using toolkit scroll bars.
4777 (XTset_vertical_scroll_bar): Set thumb size and position for
4780 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
4782 * xterm.c (XTread_socket): Dispatch expose event to widget
4783 if using toolkit scroll bars.
4784 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
4785 (x_scroll_bar_create): Create and show a scroll bar widget
4786 if using toolkit scroll bars.
4787 (x_scroll_bar_move): Handle tookit scroll bars.
4789 * Makefile.in (LIBW): Use Xaw3d if present.
4791 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
4794 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
4797 * xterm.c (XTset_vertical_scroll_bar): Correct position of
4798 right vertical scroll bar.
4800 1998-10-20 Gerd Moellmann <gerd@gnu.org>
4802 * xfns.c (xpm_load): Support reading XPM images from string
4803 buffers containing data in the same format as an XPM file.
4804 Support `:color-symbols'.
4805 (xpm_format): Add `:data'.
4806 (xpm_keyword_index): Add XPM_DATA.
4807 (syms_of_xfns): Add `:color-symbols'.
4808 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
4809 (xpm_valid_color_symbols_p): New.
4810 (xpm_image_p): Call it.
4812 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
4813 attribute to the image if item is not enabled.
4815 * xfns.c (x_laplace): New.
4816 (x_laplace_read_row): New.
4817 (x_laplace_write_row): New.
4818 (lookup_image): Handle common image attributes here. New
4819 attribute `:algorithm'.
4821 * xfaces.c (clear_face_cache): Call clear_image_cache.
4823 * xterm.c (x_inverted_image_mask): Removed.
4824 (x_draw_image_foreground_1): New.
4825 (x_draw_image_glyph_string): Draw images with mask to a temporary
4826 pixmap to reduce flickering.
4828 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
4829 (display_toolbar_line): Remove parameter `margin'.
4831 1998-10-19 Gerd Moellmann <gerd@gnu.org>
4833 * xdisp.c (toolbar_lines_needed): New.
4834 (auto-resize-toolbars): New.
4836 * xfns.c (cache_image): Correct call to xrealloc.
4838 * dispnew.c (Fset_toolbar_height): Removed.
4840 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
4841 FRAME_MENU_BAR_LINES.
4843 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
4844 instead of FRAME_MENU_BAR_LINES.
4845 (check_frame_size): Ditto.
4847 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
4848 instead of FRAME_MENU_BAR_LINES.
4849 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
4850 (build_frame_matrix): Ditto.
4851 (change_frame_size_1): Ditto.
4853 * frame.h (FRAME_TOOLBAR_LINES): New.
4854 (FRAME_TOP_MARGIN): New.
4856 * window.c (struct save_window_data): Add frame_toolbar_lines.
4857 (Fset_window_configuration): Handle toolbar lines.
4858 (Fcurrent_window_configuration): Save toolbar lines.
4860 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
4862 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
4864 * frame.h (struct frame): Rename top_margin to toolbar_lines.
4866 * xfns.c (x_frame_parms): Add `toolbar-lines'.
4867 (x_set_toolbar_lines): New.
4869 * keyboard.c (cmd_error_internal): Bug fix.
4871 * xterm.c: Remove double include of syssignal.h.
4873 1998-10-18 Gerd Moellmann <gerd@gnu.org>
4875 * xterm.c (x_toolbar_item): New.
4876 (x_handle_toolbar_click): Use it.
4877 (note_toolbar_highlight): Use it.
4879 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
4880 and toolbar_items_vectors.
4882 * xterm.c (help_echo): New.
4883 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
4884 (x_set_glyph_string_gc): Handle them.
4885 (x_after_update_window_line): Don't do anything in pseudo-windows.
4886 (x_produce_image_glyph): Take image margin and face relief into
4888 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
4889 (x_draw_glyph_string_background): Optimize case when face has
4891 (x_setup_relief_color): Take frame instead of glyph string
4893 (x_draw_relief_rect): New.
4894 (x_draw_glyph_string_relief): Call it.
4895 (x_draw_image_glyph_string_foreground): Handle margin and image
4897 (x_draw_image_glyph_string_background): Ditto.
4898 (expose_frame): Redraw toolbar window.
4899 (expose_window): Don't draw cursor for pseudo-windows.
4900 (x_y_to_hpos_vpos): Handle pseudo-windows.
4901 (frame_to_window_pixel_xy): New.
4902 (note_mouse_highlight): Call note_toolbar_highlight.
4903 (x_handle_toolbar_click): New.
4904 (note_toolbar_highlight): New.
4905 (show_mouse_face): Change int parameter `hl' to parameter of
4906 type enum draw_glyphs_face. Handle image highlighting.
4907 (XTread_socket): Return a HELP_EVENT input event if help_echo is
4908 non-nil. Use x_handle_toolbar_click.
4910 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
4912 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
4914 (parse_image_spec): Handle them.
4915 (image_spec_value): Additional parameter found.
4916 (free_image): Remove image from the vector `images' of the
4918 (clear_image_cache): Additional parameter force_p.
4919 (Fclear_image_cache): New.
4920 (x_find_image_file): New.
4921 (xbm_load): Handle `:margin' and `:relief'. Use
4923 (xpm_load): Likewise.
4924 (pbm_load): Likewise.
4925 (jpeg_load): Likewise.
4926 (tiff_load): Likewise.
4927 (gif_load): Likewise.
4929 * keyboard.c (Qhelp_echo): New symbol.
4930 (read_char): Handle `toolbar' and `help_echo' events.
4931 (kbd_buffer_get_event): Handle HELP_ECHO input event.
4932 (make_lispy_event): Handle TOOLBAR_EVENT.
4933 (toolbar_items): New.
4934 (process_toolbar_item): New.
4936 (init_toolbar_items): New.
4937 (append_toolbar_item): New.
4938 (read_char_x_menu_prompt): Handle `toolbar' event.
4939 (read_key_sequence): Ditto.
4941 * xfaces.c (Qtoolbar): New.
4942 (realize_basic_faces): Realize `toolbar' face.
4943 (face_at_string_position): Remove parameter modeline_p, add
4946 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
4949 1998-10-17 Gerd Moellmann <gerd@gnu.org>
4951 * xdisp.c (init_iterator): Replace parameter modeline_p with
4953 (next_element_from_string): Call get_next_display_element
4954 recursively after handling text properties.
4955 (prepare_menu_bars): Call update_toolbar.
4956 (update_toolbar): New.
4957 (build_desired_toolbar_string): New.
4958 (display_toolbar_line): New.
4959 (redisplay_toolbar): New.
4960 (toolbar_item_info): New.
4961 (redisplay_window): Call redisplay_toolbar.
4962 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
4964 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
4966 (clear_desired_matrices): Ditto.
4967 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
4968 (free_glyphs): Free matrices of toolbar window.
4969 (update_frame): Update toolbar window.
4970 (change_frame_size_1): Take toolbar into account.
4971 (Fset_toolbar_height): New.
4973 * dispextern.h (struct it): Remove member modeline_p, add
4975 (struct image): Add members relief and margin.
4976 (IMAGE_ASCENT): Include margin in height.
4978 1998-10-14 Gerd Moellmann <gerd@gnu.org>
4980 * xfns.c (Fclear_image_cache): New.
4982 * xfaces.c (realize_basic_faces): Realize toolbar face.
4983 (face_at_string_position): Remove parameter modeline_p, add
4986 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
4988 1998-10-13 Gerd Moellmann <gerd@gnu.org>
4990 * keyboard.c (syms_of_keyboard): Intern `:help'.
4992 1998-10-12 Gerd Moellmann <gerd@gnu.org>
4994 * xterm.c (note_toolbar_highlight): New.
4995 (note_mouse_highlight): Call it.
4997 * window.c (window_from_coordinates): Additional parameter toolbar_p.
4998 (coordinates_in_window): Handle toolbar window.
5000 * keyboard.c (toolbar_items): New.
5001 (process_toolbar_item): New.
5002 (parse_toolbar_item): New.
5003 (init_toolbar_items): New.
5004 (append_toolbar_item): New.
5006 * dispextern.h (enum toolbar_item_idx): New.
5007 (enum toolbar_item_image): New.
5009 * frame.h (struct frame): Add toolbar-related members.
5011 * xfaces.c (face_at_string_position): Remove assertion that
5012 current_buffer == window's buffer. This is not the case when
5013 called for the toolbar window.
5015 * frame.c (make_frame): Initialize toolbar members.
5017 * alloc.c (mark_object): Mark toolbar data of frames.
5019 * frame.h (struct frame): Add toolbar-related members
5020 toolbar_window, desired_toolbar_items, current_toolbar_items,
5021 desired_toolbar_string, current_toolbar_string,
5022 n_desired_toolbar_items, n_current_toolbar_items. Add
5025 * xterm.c (x_after_update_window_line): Don't draw bitmap
5026 areas for pseudo-windows.
5027 (expose_frame): Handle toolbar window.
5028 (expose_window): Don't do cursor stuff for pseudo-windows.
5030 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
5032 1998-10-11 Gerd Moellmann <gerd@gnu.org>
5034 * frame.c (make_frame): Initialize toolbar_window.
5036 * alloc.c (mark_object): Make the toolbar window.
5038 * dispnew.c (update_frame): Update frame's toolbar_window.
5039 (clear_current_matrices): Likewise.
5040 (clear_desired_matrices): Likewise.
5041 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
5042 (free_glyphs): Free the toolbar window and its matrices.
5044 * frame.h (struct frame): Add toolbar_window.
5046 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
5049 1998-10-10 Gerd Moellmann <gerd@gnu.org>
5051 * dispnew.c (buffer_posn_from_coords): Don't screw up if
5052 window start is not in the range BEGV..ZV.
5054 1998-10-09 Gerd Moellmann <gerd@gnu.org>
5056 * xdisp.c (try_scrolling): Experimentally handle the case
5057 that scroll-preserve-screen-position is set to `always'.
5059 * window.c (Vscroll_preserve_screen_position): Replacement for
5060 scroll_preserve_screen_position.
5062 1998-10-08 Gerd Moellmann <gerd@gnu.org>
5064 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
5068 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
5070 1998-10-06 Gerd Moellmann <gerd@gnu.org>
5072 * minibuf.c (Fminibuffer_complete_word): Fix computation of
5073 i_byte when prompts are inserted into minibuffers.
5075 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
5076 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
5077 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
5079 1998-10-04 Gerd Moellmann <gerd@gnu.org>
5081 * xdisp.c (make_cursor_line_fully_visible): New.
5082 (try_scrolling): New.
5083 (redisplay_window): Move scrolling code to try_scrolling.
5084 (make_cursor_line_fully_visible): Handle case of window too small
5085 to show a single line.
5086 (redisplay_window): Case forced window start---use
5087 make_cursor_line_fully_visible.
5088 (redisplay_window): Case cursor movement via current matrix.
5089 If ending up on a partially visible line, make it fully visible
5090 instead of recentering.
5091 (try_scrolling): Additional parameter scroll_smoothly.
5093 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
5095 1998-09-28 Gerd Moellmann <gerd@gnu.org>
5097 * window.c (window_scroll_pixel_based): Bug fix: vpos used
5098 instead of y-position for scroll-preserved-screen-position.
5100 1998-09-07 Gerd Moellmann <gerd@gnu.org>
5102 * dispnew.c (update_frame_line): If current row is not enabled,
5103 write the whole line.
5105 1998-09-06 Gerd Moellmann <gerd@gnu.org>
5107 * lisp.h (HAVE_FACES): Removed.
5109 * dispextern.h (HAVE_FACES): Removed.
5111 * config.in (HAVE_FACES): Removed.
5113 * dispnew.c (HAVE_FACES): Removed.
5115 * xdisp.c (HAVE_FACES): Removed.
5117 * xfaces.c (HAVE_FACES): Removed.
5119 1998-09-05 Gerd Moellmann <gerd@gnu.org>
5121 * xdisp.c (init_iterator): If face_change_count is non-zero,
5122 free realized faces.
5124 * xfaces.c (free_all_realized_faces): Make it externally visible.
5125 (Finternal_set_lisp_face_attribute): Increment
5126 windows_or_buffers_changed.
5128 * dispnew.c (direct_output_for_insert): Give up if
5129 face_change_count is non-zero.
5130 (direct_output_forward_char): Ditto.
5132 * xfaces.c (face_change_count): New.
5134 1998-09-04 Gerd Moellmann <gerd@gnu.org>
5136 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
5139 1998-09-03 Gerd Moellmann <gerd@gnu.org>
5141 * term.c (Ftty_display_color_p): New.
5143 1998-09-02 Gerd Moellmann <gerd@gnu.org>
5145 * xfaces.c (Ftty_defined_colors): New.
5147 * xterm.c (x_produce_glyphs): Fix computation of
5148 contains_overlapping_glyphs_p for ASCII.
5150 * dispnew.c (Fshow_cursor): Don't change cursor state while
5152 (direct_output_for_insert): If a glyph with lbearing or rbearing
5153 is among the new glyphs, set row flag contains_overlapping_glyph_p.
5155 1998-09-01 Gerd Moellmann <gerd@gnu.org>
5157 * term.c (OUTPUT_IF): Make replacement text have statement form.
5158 (OUTPUT1_IF): Ditto.
5159 (TS_italic_mode, TS_end_italic_mode): Removed.
5160 (TS_bold_mode): Removed.
5161 (TS_underscore_mode, TS_end_underscore_mode): Removed.
5162 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
5163 (TS_enter_reverse_mode): New.
5164 (TS_enter_underline_mode, TS_exit_underline_mode): New.
5165 (TN_magic_cookie_glitch_ul): New.
5166 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
5167 (TS_exit_attribute_mode): New.
5168 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
5169 (TS_set_foreground, TS_set_background): New.
5170 (reset_terminal_modes): Switch colors back to default.
5171 (write_glyphs): Turn face on before writing text, turn it off
5173 (insert_glyphs): Ditto.
5174 (term_init): Initialize new terminal capability variables.
5175 (turn_on_face): Turn a face on.
5176 (turn_off_face): Turn a face off.
5178 * lisp.h (MAKE_GLYPH): Remove test for frame type.
5179 (GLYPH_CHAR): Ditto.
5180 (GLYPH_FACE): Ditto.
5182 * xfaces.c (Vface_tty_color_alist): New.
5183 (face-register-tty-color): New.
5184 (face-clear-tty-colors): New.
5186 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
5187 (struct it): Remove member faces_p since we now always have faces.
5189 1998-08-31 Gerd Moellmann <gerd@gnu.org>
5191 * dispextern.h (struct face): Add tty appearance flags.
5193 * xdisp.c (init_iterator): Always handle faces.
5194 (extend_face_to_end_of_line): Handle tty frames.
5196 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
5199 1998-08-30 Gerd Moellmann <gerd@gnu.org>
5201 * xfaces.c (realize_default_face): Use empty strings to indicate
5202 that the face should use the default foreground/background
5203 color of the terminal. Fill font-related attributes with
5204 appropriate values for tty frames.
5206 * emacs.c (main): Call syms_of_xfaces before init_window_once.
5208 * xfaces.c (realize_default_face): If face `default' is not
5209 yet known, create it.
5211 * frame.c (make_terminal_frame): Call init_frame_faces
5214 * xfaces.c (init_frame_faces): Make it work for tty frames.
5215 (free_frame_faces): Ditto.
5216 (clear_face_cache): Ditto.
5217 (recompute_basic_faces): Ditto.
5218 (Fframe_face_alist): Ditto.
5219 (free_realized_face): Ditto.
5220 (prepare_face_for_display): Ditto.
5221 (clear_face_gcs): Ditto.
5222 (lookup_face): Ditto.
5223 (smaller_face): Ditto.
5224 (realize_default_face): Ditto.
5225 (realize_face): Ditto.
5226 (realize_face): Dispatch to functions depending on the frame type.
5227 (realize_x_face): X way of realizing faces.
5228 (realize_tty_face): TTY way of realizing faces.
5230 1998-08-29 Gerd Moellmann <gerd@gnu.org>
5232 * xfaces.c (realize_face): Remove parameter unibyte_registry,
5234 (lookup_face): Remove local variable unibyte_registry.
5236 1998-08-22 Gerd Moellmann <gerd@gnu.org>
5238 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
5241 * xdisp.c (face_before_or_after_it_pos): Fix computation
5244 * editfns.c (make_buffer_string_both): If prompt in buffer,
5245 prevent start > end.
5247 * indent.c (Fvertical_motion): Set current_buffer to window's
5248 buffer if it isn't already.
5250 1998-08-21 Gerd Moellmann <gerd@gnu.org>
5252 * dispextern.h (GLYPH_DEBUG): Use default 0.
5254 * xdisp.c (it_props): New member `smaller'.
5255 (init_iterator): Initialize it.
5257 (push_it): Save value of `smaller' value on the stack.
5258 (pop_it): Restore `smaller' from the stack.
5259 (handle_smaller_prop): New.
5260 (handle_face_prop): Use `smaller' text property to select a
5263 * dispextern.h (SMALLER_PROP_IDX): New.
5264 (struct it): Add member `smaller'.
5266 * xfaces.c (smaller_face): New.
5268 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
5270 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
5271 total pixel width of window differently.
5273 * xdisp.c (init_iterator): Compute width of mode line differently.
5275 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
5278 * window.c (Fsplit_window): Include width of bitmap areas in
5280 (window_internal_width): Subtract width of bitmap areas from
5283 1998-08-18 Gerd Moellmann <gerd@gnu.org>
5285 * xdisp.c: Functions reordered for better readability.
5287 * dispnew.c (update_text_area): Handle glyphs with arbitrary
5289 (update_window_tree): Parameter no_scrolling_p removed.
5290 (update_single_window): Ditto.
5292 * xterm.c (x_get_char_font_and_encoding): Renamed to
5293 x_get_char_face_and_encoding.
5295 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
5296 if end of current row reached.
5298 * xterm.c (x_get_glyph_face_and_encoding): New.
5299 (x_get_glyph_overhangs): Call it.
5301 * xdisp.c (Qshow_trailing_whitespace): New.
5302 (Qtrailing_whitespace): New.
5303 (enum prop_handled): New.
5304 (struct props, it_props): New.
5305 (next_overlay_change): New. Works like Fnext_overlay_change
5306 but doesn't use xmalloc.
5307 (handle_stop): Restructured.
5308 (face_before_or_after_it_pos): Case iteration over a string: fix
5309 handling of face before current position.
5311 1998-08-16 Gerd Moellmann <gerd@gnu.org>
5313 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
5314 reallocation matrix if fonts_changed_p.
5315 (update_text_area): Handle glyphs with lbearing.
5317 1998-08-14 Gerd Moellmann <gerd@gnu.org>
5319 * xdisp.c (struct props): New.
5321 (compute_prop_info): New.
5324 * textprop.c (validate_interval_range): Make it externally
5327 * dispnew.c (direct_output_for_insert): Remove calls
5328 to compute_stop_pos.
5330 * dispextern.h (struct it): Remove check_charpos,
5331 next_overlay_pos. Add what_changes.
5333 1998-08-10 Gerd Moellmann <gerd@gnu.org>
5335 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
5337 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
5338 face_default_registry instead.
5340 * syntax.c (scan_sexps_forward): Set up syntax table before
5341 jumping to initial state label.
5343 1998-08-09 Gerd Moellmann <gerd@gnu.org>
5345 * dispnew.c (check_matrix_invariants): Handle case of row end pos
5348 1998-08-08 Gerd Moellmann <gerd@gnu.org>
5350 * xdisp.c (redisplay_window): Case cursor movement---if cursor
5351 ends up in partially visible row, try to scroll. Case forced
5352 window start---handle windows not tall enough to show a single
5355 * window.h (struct window): Member dy renamed vscroll.
5357 * xterm.c (x_list_fonts): Re-activate suppression of scalable
5359 (x_draw_stretch_glyph_string): Set clipping if using GC that
5362 * xdisp.c (redisplay_window): Case forced window start -
5363 don't let cursor end on partially visible row. Use desired
5364 matrix to find a suitable PT if it doesn't appear.
5365 (decode_mode_spec): Merged with 20.2.97.
5366 (try_window_reusing_current_matrix): Give up if old or
5367 new display is vscrolled.
5368 (redisplay_window): Reset vscrolling if forced window start,
5371 1998-08-06 Gerd Moellmann <gerd@gnu.org>
5373 * xfaces.c (realize_default_face): Use the fontset name instead of
5374 the alias for the family attribute of the default face because we
5375 can't easily determine a good alias from fontset-alias-alist.
5376 (face_fontset): Use Fquery_fontset to find the fontset.
5377 (font_list): Additional pattern parameter.
5378 (try_font_list): Ditto.
5379 (set_lface_from_font_name): Set face family from font foundry
5381 (font_list): If family contains a hyphen, build pattern differently.
5383 1998-08-05 Gerd Moellmann <gerd@gnu.org>
5385 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
5386 changed instead of setting the frame garbaged.
5388 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
5389 all attribute values. This is wrong if values are unspecified,
5392 * xdisp.c (try_window_id): Give up if window start changed.
5394 * xfaces.c (make_realized_face): Store registry as Lisp object.
5395 (load_face_font_or_fontset): Compute registry of a face
5396 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
5399 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
5402 * alloc.c (mark_face_cache): Mark the registry member of faces.
5404 * dispextern.h (struct face): Make registry a Lisp string.
5406 1998-08-04 Gerd Moellmann <gerd@gnu.org>
5408 * xterm.c (x_get_char_font_and_encoding): Additional parameter
5409 multibyte_p. Handle unibyte text.
5410 (x_append_glyph): Set the multibyte_p flag of glyphs.
5411 (x_produce_image_glyph): Ditto.
5412 (x_append_stretch_glyph): Ditto.
5413 (x_produce_glyphs): Handle unibyte text like ASCII.
5415 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
5417 (pop_it): Restore it.
5418 (face_before_or_after_it_pos): Handle the case that the string or
5420 (get_overlay_strings): Set the multibyte flag of the iterator if
5421 the new overlay string is multibyte.
5422 (get_glyph_property): Likewise.
5423 (get_next_display_element): Don't check for charset changes in
5425 (append_space): Compute face differently for unibyte text.
5426 (extend_face_to_end_of_line): Don't return quickly if face has
5429 * xfaces.c (load_face_font_or_fontset): Store registry and
5430 encoding of the font in the registry member of the face.
5431 (make_realized_face): Additional parameter `registry'.
5432 (free_realized_face): Free the registry of a realized face.
5433 (face_suitable_for_charset_p): Function form of the macro
5434 with the same name in uppercase.
5435 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
5436 (choose_face_font): New parameter unibyte_registry.
5437 (choose_face_fontset_font): Ditto.
5438 (realize_default_face): Remember the registry and encoding of
5439 the specified frame font in Vx_unibyte_registry_and_encoding.
5440 (face_at_buffer_position): Handle unibyte.
5441 (face_at_string_position): Likewise.
5442 (realize_face): New parameter unibyte_registry.
5443 (compute_char_face): Handle the unibyte case.
5445 * dispextern.h (struct glyph): Add bit multibyte_p.
5446 (struct face): New member registry holding the registry and
5447 encoding of the X font of the face.
5448 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
5449 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
5450 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
5452 (struct iterator_stack_entry): Add multibyte_p.
5454 * xdisp.c (string_pos): Use string_char_to_byte.
5455 (char_charset): Removed.
5457 1998-08-03 Gerd Moellmann <gerd@gnu.org>
5459 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
5460 rectangle for a block cursor over an image without a mask.
5461 (x_stretch_block_cursor): Added. Non-zero means don't draw
5462 a block cursor over a stretch as wide as that stretch.
5463 (x_draw_stretch_glyph_string): Use it.
5464 (x_draw_hollow_cursor): Ditto.
5466 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
5467 (read_minibuf): Add front-sticky text property for prompt.
5469 * xdisp.c (char_charset): Return charset of a character,
5470 depending on whether or not multi-byte characters are enabled.
5472 * xfaces.c (Fset_face_charset_registry): Removed.
5473 (x_charset_registry): Determine registry from charset plist.
5475 1998-08-02 Gerd Moellmann <gerd@gnu.org>
5477 * xdisp.c (get_next_display_element): Don't check for charset
5478 changes if multi-byte characters are not enabled.
5480 * xdisp.c (echo_area_display): Use the flush function from the
5481 redisplay interface.
5482 * keyboard.c (detect_input_pending_run_timers): Likewise.
5484 * dispextern.h (produce_*glyphs_hook): Removed.
5485 * term.c (produce_*glyphs): Ditto.
5486 (cursor_to): Remove pixel position parameters.
5488 * dispnew.c: Remove hooks for window-based redisplay, introduce
5489 a redisplay interface structure.
5491 * xterm.c (x_per_char_metric): Return default char metrics if per
5492 char metric exists but contains a zero width. Adobe Courier seems
5493 to contain such characters.
5495 * xdisp.c (compute_line_metrics): Compute the width of rows
5496 without stopping at glyphs with zero width.
5498 1998-08-01 Gerd Moellmann <gerd@gnu.org>
5500 * xdisp.c (display_mode_line): If nothing was displayed at all,
5502 (hscroll_window_tree): Don't subtract 1 from target point if equal
5503 to ZV and window is not the selected window.
5505 * dispnew.c (check_matrix_invariants): Remove check for window
5506 start at BEGV or after newline. This happens in rare cases
5509 1998-07-31 Gerd Moellmann <gerd@gnu.org>
5511 * xfaces.c (x_charset_registry): Use STRING_BYTES.
5512 (syms_of_xfaces): Add Vface_default_registry.
5513 (x_charset_registry): Use it.
5515 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
5516 (redisplay_window): Use it.
5518 * dispnew.c (update_text_area): Handle lbearing of deleted text
5519 by backing up one character.
5521 1998-07-30 Gerd Moellmann <gerd@gnu.org>
5523 * dispnew.c (adjust_glyph_matrix): Use a different check to
5524 decide to do nothing.
5526 * xfaces.c (face_at_string_position): Additional parameter
5527 mode_line_p. If non-zero, merge with the mode line face
5528 instead of the default face.
5529 * dispextern.h (struct it): Add mode_line_p.
5530 * xdisp.c (init_iterator): Set it.
5531 (compute_face_in_string): Use it.
5532 (face_before_or_after_it_pos): Handle strings.
5533 (get_next_display_element): Don't look for relief end in C strings.
5534 (next_element_from_string): Deliver string position instead of
5537 * xterm.c (x_flush): Flush X output buffer.
5540 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
5541 Allow strings as face names.
5543 * xfns.c (forall_images_in_image_cache): Check that frame is
5546 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
5547 it's also called from x_destroy_window. Since this function is
5548 called from X, freeing stuff allocated with xmalloc is dangerous
5551 * xfaces.c (free_realized_faces): Don't clear current matrices
5552 of a frame being destroyed.
5554 * frame.c (make_frame): Call set_window_buffer instead of
5557 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
5558 with an additional argument specifying whether or not hooks may
5560 (Fset_window_buffer): Call it.
5562 * dispnew.c (clear_desired_matrices): Check that frame has
5563 a valid root window before clearing matrices in the window tree.
5564 (clear_current_matrices): Ditto.
5565 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
5566 vchild are valid windows if not nil.
5568 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
5570 (Finternal_set_lisp_face_attribute): Ditto.
5571 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
5572 (Finternal_get_lisp_face_attribute): Ditto.
5573 (Finternal_lisp_face_attribute_values): Ditto.
5574 (syms_of_xfaces): Define the symbol `:reverse-video'.
5576 * xdisp.c (get_glyph_property): Renamed from
5577 fill_iterator_from_glyph_property.
5578 (next_element_from_buffer): Handle case that no `glyph' property
5579 was found correctly.
5580 (display_line): Extend face to end of line only if we have faces.
5582 1998-07-29 Gerd Moellmann <gerd@gnu.org>
5584 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
5585 additional window argument.
5587 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
5588 set_iterator_to_previous_visible_line_start.
5589 (reseat_at_next_visible_line_start): Likewise.
5590 (compute_stop_pos): Renamed from set_iterator_stop_pos.
5591 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
5592 (compute_face_in_buffer): Renamed from
5593 compute_face_at_iterator_position.
5594 (compute_face_in_string): Renamed from
5595 compute_face_at_iterator_string_position.
5596 (get_space_width): Renamed from get_iterator_space_width.
5597 (next_overlay_string): Renamed from
5598 set_iterator_to_next_overlay_string.
5599 (get_overlay_strings): Renamed from
5600 get_overlay_strings_at_iterator_position.
5601 (restore_overlay_strings): Renamed from
5602 setup_overlay_strings_from_glyph_pos.
5603 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
5604 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
5605 (init_to_row_start): Renamed from init_iterator_to_row_start.
5606 (init_to_row_end): Formerly init_iterator_to_next_row_start.
5608 * xterm.c: Merge with 20.2.97.
5609 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
5611 * dispextern.h (struct glyph): Replace text_pos position with
5614 * xdisp.c (this_line_start_pos): Use struct text_pos.
5615 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
5616 (enum move_it_result): Renamed from move_iterator_result.
5617 (string_pos_nchars_ahead): Compute text_pos in a string from a
5618 known text_pos plus a character delta.
5619 (string_pos): Compute text_pos in string from charpos.
5620 (c_string_pos): Likewise for a C string.
5621 (number_of_chars): Return number of characters in a possibly
5622 multi-byte C string.
5623 (check_it): Renamed from check_iterator. Check that charpos and
5624 bytepos are in sync.
5625 (push_it): Renamed from save_iterator_settings.
5626 (pop_it): Renamed from restore_iterator_settings.
5627 (move_it_.*): Renamed from move_iterator_.*.
5628 (charset_at_position): Take charpos/bytepos into account.
5629 (back_to_previous_line_start): Set iterator to previous line start.
5630 (forward_to_next_line_start): Set iterator to next line start.
5631 (back_to_previous_visible_line_start): Renamed from
5632 move_iterator_previous_visible_line_start.
5633 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
5634 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
5635 Handle charpos/bytepos.
5636 (compute_face_at_iterator_position): Handle charpos/bytepos.
5637 (compute_face_at_iterator_string_position): Likewise.
5638 (get_iterator_space_width): Likewise.
5639 (load_overlay_strings): Likewise.
5640 (get_overlay_strings_at_iterator_position): Likewise.
5641 (reseat_iterator): Take a text_pos position argument.
5642 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
5644 (init_iterator): Take additional bytepos parameter.
5645 (reseat_iterator_to_string): Handle charpos/bytepos.
5646 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
5647 (next_element_from_string): Handle charpos/bytepos.
5648 (next_element_from_c_string): Likewise.
5649 (fill_iterator_from_glyph_property): Likewise.
5650 (next_element_from_buffer): Likewise.
5651 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
5652 (move_iterator_in_display_line_to): Handle charpos/bytepos.
5653 (move_it_to): Likewise.
5654 (move_it_vertically_backward): Likewise.
5655 (move_it_vertically): Likewise.
5656 (move_it_by_lines): Likewise.
5657 (hscroll_window_tree): Likewise.
5658 (redisplay_internal): Likewise.
5659 (set_cursor_from_row): Likewise.
5660 (redisplay_window): Likewise.
5661 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
5662 (try_window_reusing_current_matrix): Handle charpos/bytepos.
5663 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
5664 (try_window_id): Handle charpos/bytepos.
5665 (Ftrace_redisplay_toggle): Return Qnil.
5666 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
5667 (insert_left_trunc_glyphs): Likewise.
5669 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
5671 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
5672 (increment_glyph_row_buffer_positions): Ditto.
5673 (copy_glyph_row_contents): Ditto.
5674 (check_matrix_invariants): Add additional checks for charpos/
5675 bytepos consistency.
5676 (direct_output_for_insert): Changed for charpos/bytepos.
5677 (buffer_posn_from_coords): Likewise. Put code dealing with
5678 `direction-reversed' in #if 0.
5680 * xterm.h: Merge with 20.2.97.
5682 * frame.h: Merge with 20.2.97.
5684 * window.h: Merge with 20.2.97. Add window_end_bytepos.
5686 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
5688 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
5689 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
5690 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
5691 (struct it): Various members renamed from .*pos to .*charpos.
5692 (IT_CHARPOS): Access current buffer character position of an
5694 (IT_BYTEPOS): Access current buffer byte position of an iterator.
5695 (IT_STRING_CHARPOS): Access current string character position of
5697 (IT_STRING_BYTEPOS): Access current string byte position of
5699 (globally): Add function prototypes from 20.2.97.
5701 * everywhere: Use P_ instead of PROTO for function prototypes
5702 because everyone else seems to use P_.
5704 * dispextern.h (struct text_pos): Structure describing a charpos/
5705 bytepos position in text.
5706 (BYTEPOS): Access the byte position part of a text_pos.
5707 (CHARPOS): Likewise for the character position.
5708 (SET_TEXT_POS): Set a text_pos from a character and byte position.
5709 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
5710 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
5711 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
5712 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
5713 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
5714 for buffer and string positions.
5715 (struct glyph): Use text_pos.
5716 (struct it): Renamed from display_iterator. Use text_pos.
5718 1998-07-23 Gerd Moellmann <gerd@gnu.org>
5720 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
5723 1998-07-21 Gerd Moellmann <gerd@gnu.org>
5725 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
5726 * xterm.c (x_draw_row_bitmaps): Use it.
5727 * dispnew.c (row_equal_p): Ditto.
5728 (update_window_line): Ditto.
5730 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
5733 * dispextern.h (struct image): Removed member loading_failed_p.
5734 It's probably better to have the chance to try to load an image
5737 1998-07-20 Gerd Moellmann <gerd@gnu.org>
5739 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
5740 at ZV if `indicate-zv-lines' is non-nil.
5741 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
5743 * dispnew.c (row_equal_p): Compare displays_text_p and
5744 ends_at_zv_p flags of rows.
5745 (update_window_line): Ditto.
5747 * buffer.h (struct buffer): New member indicate_zv_lines.
5749 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
5750 (init_buffer_once): New variable `default-indicate-zv-lines'.
5751 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
5753 * xdisp.c (redisplay_window): Don't try moving the cursor
5754 if current glyph row w->last_cursor.vpos isn't enabled.
5756 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
5758 * window.c (Fset_window_vscroll): Allow only negative scroll
5759 values. Others don't seem to make sense, and this way it's easy
5760 to restore a vscroll of zero.
5762 * xterm.c (x_inverted_image_mask): Check that pixmap could be
5764 (x_draw_image_glyph_string_background): Don't clip if pixmap
5765 could not be created.
5767 * xfns.c (xbm_load_image_from_file): Check that pixmap could
5772 * xterm.c (x_get_glyph_overhangs): Take image and stretch
5773 glyphs into account.
5775 * xfaces.c (realize_default_face): Don't set font family of
5776 the default face from the fontset alias name for `fontset-startup'.
5778 * xfns.c (gs_load): Pass frame's pixel foreground and background
5779 color to the Lisp loader.
5781 1998-07-19 Gerd Moellmann <gerd@gnu.org>
5783 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
5786 * configure.in (--with-tiff, HAVE_TIFF): Added.
5788 * config.in (HAVE_TIFF): Added.
5790 * Makefile.in (LIBTIFF): Added.
5792 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
5794 * Makefile.in (LIBJPEG): Added.
5796 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
5797 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
5800 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
5801 where the library is installed in /usr/local/lib, e.g. FreeBSD,
5802 configure must be run with `--x-includes=/usr/X11R6/include:
5803 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
5805 1998-07-18 Gerd Moellmann <gerd@gnu.org>
5807 * config.in (HAVE_JPEG): Added.
5809 * xfns.c (ct_init): Initialize color table used to map RGB colors
5810 from images to X pixel colors.
5811 (ct_free): Free color table.
5812 (ct_lookup): Look an RGB color up.
5813 (ct_allocated_colors): Get vector of allocated colors.
5814 (pbm_image_p): Test if image specification is a valid PPM
5815 image specification.
5816 (pbm_scan_number): Scan a decimal ASCII number from a file.
5817 (pbm_load): Load a PPM image.
5819 * window.c (Fset_window_vscroll): Adjust glyph matrix if
5820 necessary. Take canonical character units as parameter.
5821 (Fwindow_vscroll): Return canonical character units.
5823 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
5824 w->dy to display height for which glyph rows must be allocated.
5826 1998-07-17 Gerd Moellmann <gerd@gnu.org>
5828 * xfaces.c (face_at_string_position): Merge in region face
5829 so that it won't overwrite the font in the region.
5830 (face_at_buffer_position): Ditto.
5831 (realize_basic_faces): Don't realize region face.
5833 * dispextern.h (enum face_id): REGION_FACE_ID removed.
5835 * xterm.c (x_set_glyph_string_background_width): Don't let
5836 cursor face extend to end of line.
5838 * xdisp.c (append_space): If adding space of default face,
5839 make sure glyph ist produced with right face.
5841 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
5842 background color of a glyph string.
5843 (x_draw_glyph_string_background): Call it.
5844 (x_draw_glyph_string_bg_rect): Ditto.
5845 (x_draw_stretch_glyph_string): Ditto.
5847 1998-07-15 Gerd Moellmann <gerd@gnu.org>
5849 * xdisp.c (init_iterator): Initialize it->current_y to the
5850 window's vscroll w->dy.
5852 * window.c (Fwindow_vscroll): Return number of pixels window
5853 is vscrolled smoothly.
5854 (Fset_window_vscroll): Set the number.
5856 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
5857 to_pos in truncated part of a line.
5859 1998-07-14 Gerd Moellmann <gerd@gnu.org>
5861 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
5862 doesn't fit on the line, truncate it, despite truncate_lines nil.
5863 (display_line): Ditto.
5865 * xfns.c: Experimental support for Ghostscript images.
5867 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
5868 (XTread_socket): React on events from Ghostscript.
5869 (expose_frame): If width or height are zero, redraw entire frame.
5870 (XTread_socket): Call expose_frame after receiving event from
5873 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
5874 for Ghostscript support.
5876 * xdisp.c (redisplay_internal): Return quickly if called
5879 * alloc.c (NSTATICS): Increased to 1024.
5881 1998-07-08 Gerd Moellmann <gerd@gnu.org>
5883 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
5884 iterator's glyph row.
5885 (x_produce_stretch_glyph): Call it.
5886 (x_produce_glyphs): Handle `space-width' property; call
5887 x_append_stretch_glyph.
5889 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
5891 (get_iterator_space_width): Determine value of `space-width'
5892 property at iterator's position.
5893 (reseat_iterator): Call it.
5894 (next_element_from_string): Ditto.
5895 (next_element_from_buffer): Ditto.
5896 (init_iterator): Initialize space_width of iterator.
5897 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
5898 moved, but cursor blinks.
5899 (redisplay_internal): Set w->last_cursor_off_p after update.
5901 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
5902 (struct display_iterator): Add new member space_width.
5904 * window.h (struct window): Add last_cursor_off_p.
5906 1998-07-07 Gerd Moellmann <gerd@gnu.org>
5910 * window.c (Fpos_visible_in_window_p): Case window not up to
5911 date---return nil if iterator hasn't reached position.
5913 1998-07-06 Gerd Moellmann <gerd@gnu.org>
5915 * xdisp.c (text_outside_line_unchanged_p): Fix case that
5916 overlays have changed.
5917 (redisplay_window): Case cursor movement. Don't try it if
5918 last_cursor.vpos is out of range.
5920 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
5921 way, the display optimization for the line containing the cursor
5922 is used more frequently, esp. when we have a blinking cursor.
5923 (display_line): Don't set this_line_.* variables.
5925 * xterm.c (x_redraw_cursor): Removed.
5926 (x_display_and_set_cursor): Set cursor type depending on
5927 cursor_off_p flag of window.
5929 * dispnew.c (redraw_cursor_hook): Removed.
5930 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
5931 member of the selected window.
5933 * xfaces.c (Fface_font): Added for compatibility with 20.2.
5935 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
5936 Return glyph area under x/y.
5937 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
5939 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
5942 1998-07-05 Gerd Moellmann <gerd@gnu.org>
5944 * xdisp.c (text_outside_line_unchanged_p): Test if changes
5945 are all outside of a line of text.
5946 (redisplay_internal): Use it.
5948 1998-06-30 Gerd Moellmann <gerd@gnu.org>
5950 * xdisp.c (next_element_from_buffer): After skipping over
5951 invisible text, look for the `glyph' property.
5952 (set_iterator_stop_pos): Ignore check positions in front
5953 of an iterator's current position.
5955 * xterm.c (show_mouse_face): Don't act on rows that don't exist
5956 anymore or which are marked as not having valid contents.
5958 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
5959 realized faces if new attribute value is equal to old value.
5961 1998-06-29 Gerd Moellmann <gerd@gnu.org>
5963 * xfaces.c (Finternal_make_lisp_face): Increment
5964 lface_id_to_name_size when lface_id_to_name is reallocated.
5966 1998-06-27 Gerd Moellmann <gerd@gnu.org>
5968 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
5969 as minimum of endpos and overlay_pos.
5970 (load_overlay_strings): Set next_overlay_pos of iterator to
5971 -1 if we don't have to check for more overlay strings.
5973 1998-05-09 Gerd Moellmann <gerd@gnu.org>
5975 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
5976 do anything if iterator is at ZV because scan_buffer doesn't
5979 * xterm.c (x_encode_char): Inline it.
5980 (x_get_char_font_and_encoding): Simplified.
5981 (x_per_char_metric): Inline it.
5983 * xterm.c (x_draw_glyph_string_relief): Use clipping.
5985 * xdisp.c (get_next_display_element): Check for end of relief
5986 face moved here from next_element_from_buffer.
5988 * xterm.c (x_produce_image_glyph): Add relief thickness.
5989 (x_produce_stretch_glyph): Ditto.
5991 1998-05-08 Gerd Moellmann <gerd@gnu.org>
5993 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
5994 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
5996 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
5997 from a glyph property.
5998 (x_produce_glyphs): Use it.
6000 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
6002 * xterm.c (x_produce_image_glyph): Add to current_x only if
6004 (x_produce_glyphs): Ditto.
6006 * xdisp.c (display_line): Compute row height from glyphs in
6009 * xterm.c (x_draw_image_glyph_string_background): Draw
6010 background of an image glyph string.
6011 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
6012 the background of a glyph string.
6013 (x_draw_image_glyph_string_foreground): Draw the foreground of
6014 an image glyph string.
6015 (x_inverted_image_mask): Return the inverted mask of an image.
6017 * xfns.c (x_draw_image): Removed.
6019 * dispextern.h (struct image_type): Remove drawing function.
6021 * xfaces.c (load_face_colors): Swap colors if face is inverse.
6023 * xdisp.c (get_next_display_element): In marginal areas, translate
6024 newlines, tabs, etc. like normal control characters.
6026 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
6028 (free_realized_faces): Set frame garbaged.
6030 * xfaces.c (syms_of_xfaces): Add defsubr for
6031 internal-lisp-face-attribute-values.
6033 1998-05-07 Gerd Moellmann <gerd@gnu.org>
6035 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
6037 (x_produce_image_glyph): Set IT->nglyphs to 1.
6038 (x_draw_image_glyph_string): Use inverted mask to draw background.
6040 * dispextern.h (struct image_type): Additional clipping rect
6041 parameters for drawing functions.
6043 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
6045 (x_draw_image_glyph_string): Use it and pass the rect to the
6046 image drawing function.
6048 * xdisp.c (fill_iterator_from_glyph_property): Use position of
6049 first character with `glyph' property as image position. Set
6050 iterator back to that position as long as the image hasn't been
6051 consumed with set_iterator_to_next.
6052 (set_cursor_from_row): Accept when glyph with given position is
6053 not found in the row. Set cursor x to end of line in that case,
6054 so that we can hscroll.
6055 (redisplay_internal): Correct computation of delta by which
6056 positions have changed in redisplay optimization for cursor
6057 row of selected window.
6059 * xdisp.c (display_line): Remove start_pos.
6060 (display_line): Fix bug preventing display optimization for
6061 cursor line of selected window.
6062 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
6065 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
6066 (update_text_area): Take glyph pixel width into account
6067 when trying to find a resync point.
6068 (row_equal_p): Compare glyphs in all areas.
6070 1998-05-06 Gerd Moellmann <gerd@gnu.org>
6072 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
6074 * dispextern.h (struct glyph_row): Use unsigned hash value.
6076 * xdisp.c (display_line): Simplified and made faster by setting
6077 the cursor with set_cursor_from_row.
6078 (set_cursor_from_row): Handle rows of desired matrix.
6080 1998-05-05 Gerd Moellmann <gerd@gnu.org>
6082 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
6083 with type != CHAR_GLYPH.
6084 (fill_iterator_from_glyph_property): Return void. Set
6085 method to next_element_from_image.
6086 (next_element_from_image): Dummy function for delivering a
6088 (set_iterator_to_next): Add method next_element_from_image.
6089 (redisplay_window): When recentering, and cursor vpos is -1
6090 after display, assume middle of window is in first line displayed
6091 in window, and display again.
6092 (fill_iterator_from_glyph_property): Assign image glyph
6093 the position of the first character having the glyph property.
6095 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
6096 * xfns.c (x_draw_image): Use it.
6097 * xterm.c (x_produce_image_glyph): Use it.
6099 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
6101 * Makefile.in: Extraneous #define of LIBXPM removed.
6103 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
6104 (x_fill_stretch_glyph_string): Fill a glyph string from a
6106 (x_compute_glyph_string_overhangs): Compute overhangs only
6107 for text glyph strings.
6108 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
6109 (x_draw_glyph_string): Call it.
6111 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
6112 (struct glyph): Add sub-structure for stretchable glyphs.
6113 (GLYPH_EQUAL_P): Compare glyph type and u.val.
6115 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
6118 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
6120 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
6121 setup_iterator_from_glyph_property. Don't do it for terminal
6124 * xterm.c (x_produce_image_glyph): Produce glyph for image
6125 that can't be loaded.
6127 * xfns.c (lookup_image): If image can't be loaded, set its
6128 width and height so that we can draw a rectangle.
6129 (x_draw_image): Draw a rectangle for images that don't have
6131 (make_image): Set hash value.
6132 (image_spec_equal_p): Use image_spec_value.
6134 * xterm.c (expose_frame): Don't try to redraw if basic faces
6135 haven't benn realized yet.
6136 (x_draw_image_glyph_string): Fill background only if image
6137 is not as tall as row.
6139 1998-05-04 Gerd Moellmann <gerd@gnu.org>
6141 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
6142 (LIBX)[HAVE_X11]: Add LIBXPM.
6144 * xfns.c (xpm_image_p): Implementation of image type functions
6148 * dispextern.h (struct image): Add mask pixmap for XPM.
6150 * xfns.c (x_draw_image): Handle images with masks.
6152 * configure.in: --with-xpm added. Code detecting -lXpm added.
6154 * config.in: Add HAVE_XPM.
6156 * xfns.c (xbm_draw): Removed.
6157 (x_draw_image): Default implementation for drawing images.
6158 (xbm_keyword_index): Remove XBM_DEPTH.
6159 (xbm_format): Remove `:depth'.
6160 (xbm_image_spec_from_file): Removed to reduce consing.
6161 (xbm_load_image_from_file): Added for the same reason.
6163 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
6165 (x_draw_image_glyph_string): Pass ybase to image draw function.
6167 * xfns.c (make_image): Set default baseline.
6169 * xterm.c (x_produce_image_glyph): Compute ascent of image
6170 from its height and baseline percentage.
6172 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
6173 (xbm_format): Add description for `:baseline'.
6174 (xbm_image_spec_from_file): Add keywords from original spec to
6176 (xbm_load): Set baseline of image.
6177 (xbm_image_p): Check range for baseline.
6179 * dispextern.h (struct image): Add member baseline.
6181 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
6183 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
6185 * xdisp.c (get_next_display_element): Do character translations
6186 only if delivering characters.
6188 1998-05-03 Gerd Moellmann <gerd@gnu.org>
6190 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
6193 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
6194 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
6196 1998-05-02 Gerd Moellmann <gerd@gnu.org>
6198 * xfns.c (prepare_image_for_display): Set image timestamp.
6199 (clear_image_cache): Clear images if image's timestamp +
6200 Vimage_eviction_seconds is > now.
6201 (syms_of_xfns): New variables image-eviction-seconds, and
6203 (add_image_format): Add to image-types.
6204 (xbm_load): Support new image spec format.
6205 (x_alloc_image_color): Allocate a color for an image.
6207 * dispextern.h (struct image): Add timestamp.
6209 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
6210 vectors of bool-vectors.
6211 (xbm_lisp_object_from_file): Build new format image spec.
6213 1998-05-01 Gerd Moellmann <gerd@gnu.org>
6215 * xfaces.c (init_frame_faces): Initialize image cache.
6216 (free_frame_faces): Free it.
6218 * xterm.c (x_delete_display): Don't free image cache.
6220 * emacs.c (main): Call init_xfns.
6222 1998-04-30 Gerd Moellmann <gerd@gnu.org>
6224 * alloc.c (mark_object): Mark objects in image cache.
6226 * xfns.c (x_set_internal_border_width): Correct call to
6227 widget_store_internal_border_width.
6229 * widget.c (widget_store_internal_border): Return void.
6231 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
6233 (init_x_parm_symbols): Return void.
6234 (x_report_frame_params): Ditto.
6235 (x_set_border_pixel): Ditto.
6236 (syms_of_xfns): Ditto.
6237 (x_destroy_all_bitmaps): Use xfree instead of free.
6239 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
6241 * xterm.c (x_term_init): Initialize image_cache of display info.
6242 (x_delete_display): Free image cache.
6244 * xterm.h (struct x_display_info): Add image_cache.
6246 * xfns.c (make_image_cache): Allocate a new image cache.
6247 (free_image_cache): Free an image cache.
6248 (make_image): Allocate an image.
6249 (free_image): Free an image.
6251 * dispextern.h (struct image): Structure describing an image.
6252 (struct image_cache): Structure describing an image cache.
6254 1998-04-29 Gerd Moellmann <gerd@gnu.org>
6256 * xdisp.c (check_iterator_glyph_property): Return int. Value is
6257 non-zero if iterator is filled with something to return.
6258 (next_element_from_buffer): Immediately return if
6259 setup_iterator_from_glyph_prop has filled iterator with pixmap.
6260 (next_element_from_string): Likewise.
6262 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
6264 * dispextern.h (struct glyph): Add pixmap_id.
6265 (display_element_type): Add DISP_PIXMAP.
6267 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
6270 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
6271 (clear_face_cache): Call it.
6273 * xterm.c (x_query_font): Don't look at empty font table slots.
6274 (x_compute_min_glyph_bounds): Likewise.
6275 (x_term_init): Initialize font_table to null.
6276 (x_load_font): Change allocation of font_info structures so
6277 that it is possible to free fonts.
6279 * xfns.c (Fx_close_connection): Use xfree instead of free.
6280 Only free fonts from filled font table entries.
6282 * xfaces.c (best_matching_font): Support use of scalable fonts.
6283 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
6285 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
6287 * xterm.c (x_term_init): Compute resx and resy.
6289 * xfaces.c (split_font_name): Don't reject scalable fonts.
6291 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
6294 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
6295 point size cannot be determined.
6297 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
6298 width over all fonts on a frame.
6299 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
6300 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
6303 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
6304 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
6305 (x_load_font): Use x_compute_min_char_bounds.
6307 * xterm.h (struct x_display_info): New members smallest_char_width
6308 and smallest_font_height.
6310 1998-04-28 Gerd Moellmann <gerd@gnu.org>
6312 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
6313 the same name if GC of face is zero.
6315 * dispextern.h (struct face): Member non_ascii_gc removed.
6317 * xterm.c (x_get_char_font_and_encoding): Return face's font
6318 for characters < 0177 in default face. Prepare face for
6319 display before returning it.
6320 (x_produce_glyphs): Use it->charset.
6321 (x_get_char_font_and_encoding): Simplified.
6322 (x_encode_char): Remove parameter `font'.
6324 * xfaces.c (choose_face_font): If registry from charset symbol
6325 doesn't contain a `-', make it a pattern by appending "*-*".
6327 * xdisp.c (check_iterator_glyph_property): Adjust limit for
6328 glyph_check_pos computation to character boundary.
6330 1998-04-27 Gerd Moellmann <gerd@gnu.org>
6332 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
6334 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
6335 ASCII face for a given Lisp face id.
6337 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
6339 (reseat_iterator): Set glyph_check_pos. Handle case where
6340 new position is < original position.
6341 (check_iterator_glyph_property): Handle glyph property in strings.
6342 (next_element_from_string): Call above function.
6343 (next_element_from_display_vector): Handle faces in glyphs.
6344 (get_next_display_element): Set face_id of glyphs for
6345 control chars to zero.
6347 * Makefile.in (term.o): Add dependency on dispextern.h.
6349 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
6350 (display_line): Handle marginal areas.
6351 (move_iterator_in_display_line_to): Likewise.
6353 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
6355 * xfaces.c (face_at_buffer_position): Don't merge with nil
6357 (face_at_string_position): Ditto.
6359 * dispextern.h (struct display_iterator): Use a stack of saved
6360 values instead of saving check positions etc. individually.
6362 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
6363 maybe pop the iterator's stack.
6364 (save_iterator_settings): Push a value on iterator's stack.
6365 (get_overlay_strings_at_iterator_position): Use it.
6366 (restore_iterator_settings): Pop the stack.
6367 (set_iterator_to_next_overlay_string): Use it.
6369 * xfaces.c (try_font_list): Use alternative font families.
6371 1998-04-26 Gerd Moellmann <gerd@gnu.org>
6373 * xfaces.c (Fset_face_font_sort_order): Set the order in which
6374 font selection matches fonts.
6375 (Fface_font_sort_order): Return the font sort order.
6376 (best_matching_font): Find best matching font based on sort order.
6377 (cmp_font_names): Sort by given sort order.
6379 * dispextern.h (struct display_iterator): New member faces_p.
6380 * xdisp.c (init_iterator): Initialize it->faces_p.
6381 (compute_face_at_iterator_string_position): Use it.
6382 (compute_face_at_iterator_position): Use it.
6383 (init_iterator): Use it.
6384 (display_mode_line): Ditto.
6386 * xdisp.c (get_next_display_element): Put code choosing a face
6387 when the charset changes in #ifdef HAVE_FACES.
6389 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
6390 lookup_face_for_charset.
6392 * xfaces.c (free_font_names): Renamed from free_split_font_names.
6393 (free_all_realized_faces): Renamed from remove_all_realized_faces.
6395 1998-04-25 Gerd Moellmann <gerd@gnu.org>
6397 * xfaces.c (best_matching_font): Return the name of the best
6398 matching font in an array of font_name structures.
6399 (choose_face_font): Use it.
6400 (choose_face_fontset_font): Use it.
6401 (find_best_weight_font): If final font found has same weight as
6402 the font we started with, return the original font because it is a
6403 better match for the resolution of the display.
6404 (find_best_slant_font): Likewise.
6405 (merge_face_vector_with_property): Check more invalid attribute
6407 (lface_suitable_for_charset_p): Replaced by a macro with the same
6410 1998-04-24 Gerd Moellmann <gerd@gnu.org>
6412 * dispextern.h (struct face): Member
6413 fontset_chosen_for_realization_p removed.
6415 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
6416 end of the collision list, so that we find more specific faces
6418 (lookup_face_for_charset): Look up a new face if face->fontset >=
6419 0, and charset != CHARSET_COMPOSITION.
6421 * xfaces.c (split_font_name): Return zero if point size of font
6422 couldn't be computed.
6423 (realize_default_face): Use ASCII font of a fontset to determine
6424 font-related attributes of the default face.
6425 (face_fontset): Return fontset id for face family.
6426 (font_list): Additional parameter font_pattern. If non-nil,
6427 return fonts matching that pattern.
6429 1998-04-23 Gerd Moellmann <gerd@gnu.org>
6431 * xfaces.c (choose_face_fontset): If new fontset cannot be
6432 constructed, or fontset name cannot be split, return the id of the
6435 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
6436 When Emacs starts, it may be called for the initial frame which
6439 * dispextern.h (struct face): New members foreground_defaulted_p,
6440 background_defaulted_p.
6441 (struct face): Members `mask' and `cache' removed.
6443 * xfaces.c (load_color): Set them.
6444 (free_face_colors): Check them.
6445 (xlfd_point_size): Return -1 if resolution or point size of
6448 * xfaces.c (free_font): Removed.
6449 (load_face_font_or_fontset): Renamed from load_font.
6450 (load_face_font_or_fontset): Use message2 instead of signalling.
6451 (load_color): Likewise.
6452 (load_pixmap): Likewise.
6454 * xterm.h (struct x_display_info): Add screen_dpi.
6455 * xterm.c (x_term_init): Initialize it.
6456 * xfaces.c (xlfd_point_size): Use it.
6457 (split_font_name): Compute numeric XLFD_RESY.
6458 (cmp_font_names): Make fonts with an y-resolution more
6459 similar to that of the frame appear first in the result.
6461 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
6462 is set for the face to cache, add it to the end of the collision
6464 (try_font_list): If fonts for given family and registry cannot
6465 be found, first try to keep the registry, and choose a different
6467 (choose_face_font): Allow nfonts == 0.
6468 (try_font_list): Give up if no font matches given registry.
6470 1998-04-22 Gerd Moellmann <gerd@gnu.org>
6472 * xterm.c (x_get_char_font_and_encoding): Get font_info from
6473 font info id of the face.
6475 * xfaces.c (load_font): Set font_info_id.
6476 (realize_face): Ditto.
6478 * dispextern.h (struct face): Change member font_info to
6481 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
6482 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
6484 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
6485 isn't ASCII, get the ASCII face before adding a space.
6486 (append_space): Likewise.
6487 (insert_left_trunc_glyphs): Initialize truncate_it's charset
6488 to -1 so that it will compute the right face for the truncation
6491 * xfaces.c (realize_face): Set
6492 face->fontset_chosen_for_realization_p.
6493 (lookup_face_for_charset): If fontset wasn't specified originally
6494 and new charset != CHARSET_COMPOSITION, get a new face for that
6497 * dispextern.h (struct face): New member
6498 fontset_chosen_for_realization_p_specified_p. Set to 1 when
6499 realize_face has chosen a fontset to display composite characters
6500 for a Lisp face not specifying a fontset.
6502 * xdisp.c (extend_face_to_end_of_line): Move tests for default
6503 face and line already filled here. Don't do anything if current
6504 face hasn't a relief or has a background equal to the frame
6507 * xfaces.c (split_font_name): Additional parameter numeric_p.
6508 Don't compute numeric values if it is non-zero.
6509 (choose_face_fontset): Call split_font_name with numeric_p == 0.
6510 (choose_face_fontset): Print a message if fontset contains a
6511 font whose name cannot be split into fields.
6513 1998-04-21 Gerd Moellmann <gerd@gnu.org>
6515 * xfaces.c (try_font_list): Try to load a list of fonts,
6516 possibly using less restrictive patterns.
6517 (choose_face_font): Use it.
6519 * xterm.c (x_get_char_font_and_encoding): For charset !=
6520 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
6522 * dispextern.h (struct face): New member font_info.
6524 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
6525 specifying a fontset as well as those not having a fontset.
6526 (free_font): Make it empty.
6527 (realize_face): Use changed load_font.
6529 * xterm.c (x_get_char_font_and_encoding): If face doesn't
6530 fit for charset, get the right one.
6532 * xfaces.c (load_font): Take frame and name parameter, return
6534 (free_font): Likewise.
6535 (split_font_name): Compute numeric values for height, swidth etc.
6536 (cmp_font_names): Use them.
6537 (find_best_width_font): Ditto.
6538 (find_best_height_font): Ditto.
6539 (find_best_weight_font): Ditto.
6540 (find_best_slant_font): Ditto.
6541 (lface_hash): Add weight, slant, swidth and relief to hash value.
6542 (lface_equal_p): Make it faster.
6543 (lface_from_symbol): Use assq_no_quit.
6544 (Fnote_default_face_changed): Removed.
6545 (cmp_font_names): Use strcmp instead of xstricmp.
6546 (face_charset_registries): Removed.
6548 1998-04-20 Gerd Moellmann <gerd@gnu.org>
6550 * frame.h (CHECK_FRAME): Give this macro a statement form.
6551 (CHECK_LIVE_FRAME): Ditto.
6553 * xfaces.c (find_best_width_font): Find the best matching font
6555 (find_best_height_font): Likewise for height.
6556 (find_best_weight_font): Likewise for weight.
6557 (find_best_slant_font): Likewise for slant.
6558 (choose_face_font): Use them.
6559 (get_lface_attributes): Always return frame-local face attrs.
6560 (Finternal_merge_in_global_face): Merge local face with
6561 global face attributes.
6563 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
6564 Lisp face attributes.
6566 1998-04-19 Gerd Moellmann <gerd@gnu.org>
6568 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
6569 and :italic for compatibility.
6570 (Finternal_set_lisp_face_attribute_from_resource): Handle
6571 :bold and :italic. Handle boolean resource values for
6572 :underline and :italic.
6574 * xfns.c (display_x_get_resource): Make it externally visible.
6576 * xfaces.c (lface_from_symbol): Take a frame as parameter.
6577 If that frame is non-null, return the frame-local face.
6578 (Finternal_make_lisp_face): Additional frame argument.
6579 (lface_attributes): Get face attributes from global and frame-local
6581 (Finternal_lisp_face_equal_p): Additional frame argument.
6582 (merge_lisp_face_vector_with_property): Ditto.
6583 (Frealize_basic_faces): Removed.
6584 (Finternal_get_lisp_face_attribute): Additional frame argument.
6585 (Finternal_lisp_face_p): Ditto.
6586 (load_color) [MSDOS]: Removed because it isn't clear how
6587 to do this for MS-DOS.
6589 * xfaces.c (lface_from_symbol): Get global face definition
6590 from face-global-alist.
6592 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
6593 as values for :underline and :inverse-video.
6594 (Finternal_set_lisp_face_attribute): Allow nil values.
6596 1998-04-17 Gerd Moellmann <gerd@gnu.org>
6598 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
6600 * xfaces.c (syms_of_xfaces): Add Vall_faces.
6601 (Finternal_make_lisp_face): Add new face to Vall_faces.
6603 * xdisp.c (echo_area_display): Remove code recomputing faces.
6604 (redisplay_internal): Ditto.
6605 (init_iterator): Do it here.
6607 * xfaces.c (choose_face_font): Check that swidth doesn't change
6608 for subusequent attributes.
6609 (xlfd_point_size): Return int.
6611 * xdisp.c (redisplay_internal, echo_area-display): If realized
6612 faces have been cleared, call recompute_basic_faces.
6614 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
6615 face_attributes_changed_p.
6616 (remove_all_realized_faces): Remove all realized faces on
6618 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
6620 * xdisp.c (redisplay_internal): If face attributes have been
6621 changed since the last redisplay, recompute basic faces.
6622 (echo_area_display): Ditto.
6624 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
6626 * xfaces.c (min_char_bounds): If face cache not yet present,
6627 don't try to get font dimensions from faces.
6629 * xterm.c (x_frame_mode_line_height): If face cache not present
6630 set, return default height.
6632 * alloc.c (mark_face_cache): Check for null faces. Correct
6635 * dispextern.h (struct face): Renamed from struct rface. Member
6636 underline renamed underline_p. Make it a bit-field.
6638 * xfaces.c (init_frame_faces): Allocate face cache.
6639 (free_frame_faces): Free face cache.
6640 (recompute_basic_faces): Realize basic faces only if face cache is
6641 allocated, i.e. after init_frame_faces has been called.
6643 * frame.c (make_frame): Initialze face cache with null.
6645 * xfaces.c (same_size_fonts): Removed.
6647 * xterm.c (x_set_glyph_string_gc): Add post-condition
6649 (x_set_mouse_face_gc): Ditto.
6650 (x_set_mode_line_face_gc): Ditto.
6652 * xfaces.c (realize_default_face): Return int. Value is
6653 zero if frame params don't contain enough information to
6654 realize the default face.
6655 (realize_basic_faces): Ditto.
6656 (init_frame_faces): Realize basic faces.
6658 * xfns.c (x_set_font): First store real font name in frame
6659 parameters, then call recompute_basic_faces.
6661 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
6663 1998-04-16 Gerd Moellmann <gerd@gnu.org>
6665 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
6667 * xfns.c (Fx_face_fixed_p): Removed.
6668 (Fx_list_fonts): Moved to xfaces.c.
6670 * xfaces.c (compute_face_at_buffer_pos): Renamed to
6671 face_at_buffer_position. Parameter charset removed; always
6672 compute face for CHARSET_ASCII.
6673 (face_at_string_position): Renamed from
6674 compute_face_at_string_pos. Parameter charset removed; always
6675 compute for CHARSET_ASCII.
6676 (lookup_face_for_charset): Take frame parameter instead of
6678 (lookup_face): Ditto.
6679 (compute_char_face): Renamed from compute_glyph_face.
6681 * xdisp.c (init_iterator): Initialize charset member.
6682 (reseat_iterator_to_string): Ditto.
6683 (get_charset_at_buffer_position): Determine charset at
6684 buffer position in current_buffer.
6685 (reseat_iterator): Call above function.
6686 (compute_face_at_iterator_position): Call
6687 compute_face_at_buffer_pos.
6688 (compute_face_at_iterator_string_position): Call
6689 compute_face_at_string_pos.
6690 (get_face_from_id): Removed.
6691 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
6692 Call get_charset_at_buffer_position.
6693 (reseat_iterator): Determine face if charset at pos differs
6694 from iterator's charset.
6695 (reseat_iterator_to_glyph_pos): Removed.
6697 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
6698 Determine charset from buffer position.
6699 (compute_string_char_face): Renamed to compute_face_at_string_pos.
6700 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
6702 * dispextern.h (struct display_iterator): Add member charset.
6704 1998-04-15 Gerd Moellmann <gerd@gnu.org>
6706 * xfaces.c (compute_char_face): Removed.
6708 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
6709 with new parameter list.
6711 * xfaces.c (region_face): Removed.
6712 (allocate_face): Removed.
6714 (face_eql): Removed.
6715 (intern_face): Removed.
6716 (clear_face_cache): Removed.
6718 (unload_font): Ditto.
6719 (load_color): Ditto.
6720 (unload_color): Ditto.
6721 (new_computed_face): Ditto.
6722 (intern_computed_face): Ditto.
6723 (ensure_face_ready): Ditto.
6724 (merge_faces): Ditto.
6725 (compute_base_face): Ditto.
6726 (merge_face_list): Ditto.
6727 (Fmake_face_internal): Removed.
6728 (Fset_face_attribute_internal): Ditto.
6729 (face_name_id_number): Removed.
6730 (Fframe_face_alist): Ditto.
6731 (Fset_frame_face_alist): Ditto.
6732 (Finternal_next_face_id): Ditto.
6734 * xterm.h (struct x_output): Remove computed_faces, and
6735 param_faces. Remove macros accessing them.
6737 * xfaces.c: Entirely new face implementation added.
6739 1998-04-11 Gerd Moellmann <gerd@gnu.org>
6741 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
6744 1998-04-10 Gerd Moellmann <gerd@gnu.org>
6746 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
6747 scroll bar window to reduce flickering. Clear entire height.
6749 * xdisp.c (move_iterator_vertically_backward): Set iterator's
6750 current_x and hpos to zero after moving to previous line
6753 1998-04-03 Gerd Moellmann <gerd@gnu.org>
6755 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
6757 * xfaces.c (xlfd_point_size): Compute relative point size of
6758 fonts from font and frame resolution.
6759 (sort_fonts): New function to sort fonts, temporarily setting
6760 font_frame to the frame in effect.
6761 (xlfd_point_size): Take additional frame parameter to be able
6762 to get at the display's resolution.
6764 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
6766 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
6769 1998-03-31 Gerd Moellmann <gerd@gnu.org>
6771 * xfaces.c (choose_face_fontset): Instantiate fontsets.
6773 * fontset.h: Add external declarations for Vfontset_alias_alist
6774 and Vglobal_fontset_alist.
6776 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
6777 (realize_default_face): If frame parameters contain an artificial
6778 font name naming a fontset, set the family of the default face to
6779 the fontset name given by the registry.
6781 * Makefile.in (alloc.o): Add dependency to dispextern.h.
6783 1998-03-22 Gerd Moellmann <gerd@gnu.org>
6785 * alloc.c (mark_object): Add function prototype. Add cast to
6786 Lisp_Object pointer in call to mark_object for symbol names
6787 because this otherwise gives a warning from gcc 2.8.1.
6788 (mark_face_cache): Mark Lisp objects in realized faces.
6790 1998-03-19 Gerd Moellmann <gerd@gnu.org>
6792 * frame.h (struct frame): Add member face_cache.
6794 * alloc.c (mark_object): Mark face cache.
6795 (mark_face_cache): Mark Lisp faces in face cache of frame.
6797 * frame.c (make_frame): Initialize face_cache.
6798 (Fdelete_frame): Free it.
6800 1998-03-18 Gerd Moellmann <gerd@gnu.org>
6802 * xfaces.c: Very first skeleton of functions for face realization,
6803 face merging, face cache etc.
6805 * dispextern.h (struct rface): Realized faces. Will replace
6806 struct face when tested.
6807 (struct face_cache): Realized face caches.
6809 * xdisp.c (init_iterator): Initialize area member of display
6812 1998-03-17 Gerd Moellmann <gerd@gnu.org>
6814 * xterm.c (x_append_glyph): Use it->area to store glyphs.
6816 * dispextern.h (struct display_iterator): New member area.
6818 * xterm.c (note_overwritten_text_cursor): Note when the text
6819 cursor of a window is overwritten.
6821 * xdisp.c (set_cursor_from_row): If PT is not found in the
6822 row, display the cursor at the start of the row.
6824 * dispnew.c (direct_output_forward_char): Call
6825 set_cursor_from_row.
6827 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
6828 position is not in an overlay string, set iterator's position and
6829 method explicitly so.
6830 (set_cursor_from_row): Correct cursor position calculation.
6831 Make it externally visible.
6832 (redisplay_window): Call set_cursor_from_row so that there is only
6833 one place where the cursor position is calculated from a current
6836 * dispextern.h (struct display_iterator): New member
6837 overlay_strings_at_end_processed_p.
6839 * xdisp.c (check_iterator): Perform sanity checks on
6841 (next_element_from_buffer): Check for overlay strings at ZV.
6843 1998-03-16 Gerd Moellmann <gerd@gnu.org>
6845 * buffer.c (init_buffer_once): Add left_margin_width and
6846 right_margin_width to buffer_local_flags.
6848 * dispnew.c (margin_glyphs_to_reserve): Function computing
6849 number of glyphs to reserve for a marginal area.
6850 (adjust_glyph_matrix): Call it.
6851 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
6854 * window.c (Fset_window_margins): Allow floats.
6856 * buffer.c (syms_of_buffer): Add buffer-local variables
6857 left-margin-width and right-margin-width. Add defaults
6858 default-left-margin-width and default-right-margin-width.
6860 * buffer.h (struct buffer): New members left_margin_width
6861 and right_margin_width.
6863 * window.c (Fset_window_margins): Make window the last and
6866 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
6867 flag no_marginal_areas_p differently.
6868 (x_clear_end_of_line): Ditto.
6869 (x_draw_glyph_string_relief): Compute width of relief differently
6870 for rows with flag no_marginal_areas_p.
6872 * dispnew.c (update_window_line): Update marginal areas only
6873 for rows that don't have no_marginal_areas_p set.
6875 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
6876 (display_menu_bar): Ditto.
6878 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
6880 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
6881 marginal areas in window-based redisplay.
6883 * dispextern.h (struct glyph_matrix): New members
6884 left_margin_glyphs and right_margin_glyphs.
6886 1998-03-15 Gerd Moellmann <gerd@gnu.org>
6888 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
6890 * charset.c (non_ascii_char_to_string): Use char type parameters
6891 because the function is used that way from outside. Use unsigned
6894 * window.c (change_window_height): Return void.
6895 (make_dummy_parent): Return void.
6896 (init_window_once): Return void.
6897 (syms_of_window): Ditto.
6898 (keys_of_window): Ditto.
6899 (delete_window): Correct return with and without value.
6901 * buffer.c (record_buffer): Return void.
6903 * marker.c (unchain_marker): Return void.
6905 * window.c (unshow_buffer): Return void.
6906 (replace_window): Ditto.
6907 (delete_window): Ditto.
6909 * term.c (delete_glyphs_hook): Void return type.
6910 (ring_bell_hook): Ditto.
6911 (set_terminal_window_hook): Ditto.
6913 * sysdep.c (init_sigio): Return void.
6915 * xterm.c (x_set_window_size): Return void.
6916 (x_calc_absolute_position): Ditto.
6917 (x_set_offset): Ditto.
6918 (x_focus_on_frame): Ditto.
6919 (x_unfocus_frame): Ditto.
6920 (x_make_frame_visible): Ditto.
6921 (x_make_frame_invisible): Ditto.
6922 (x_iconify_frame): Ditto.
6923 (x_destroy_window): Ditto.
6924 (x_wm_set_window_state): Ditto.
6925 (x_wm_set_icon_pixmap): Ditto.
6926 (x_wm_set_icon_position): Ditto.
6927 (x_initialize): Ditto.
6928 (x_error_quitter): Ditto.
6929 (x_destroy_window): Use xfree instead of free.
6931 * keyboard.c (clear_waiting_for_input): Return void.
6933 * xterm.c (x_wm_set_size_hint): Return void.
6934 (x_raise_frame): Ditto.
6935 (refreshicon): Ditto.
6936 (x_error_catcher): Ditto.
6937 (x_clear_errors): Ditto.
6939 * keyboard.c (record_asynch_buffer_change): Return void.
6941 * xterm.c (XTroï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðterminal_window): Ditto.
6942 (x_lower_frame): Ditto.
6943 (x_scroll_bar_clear): Ditto.
6944 (XTflash): Add default case in switch for -Wall.
6945 (construct_mouse_click): Return Qnil.
6946 (cancel_mouse_face): Return void.
6947 (x_queue_event): Use xmalloc instead of malloc.
6948 (x_unqueue_events): Use xfree instead of free.
6950 * ccl.c (ccl_driver): Return int.
6952 * keyboard.c (stop_polling): Return void.
6953 (start_polling): Ditto.
6955 * term.c (keys): Add braces in initializer list for -Wall.
6957 * sysdep.c (tabs_safe_p): Return int.
6958 (init_baud_rate): Return void.
6960 * xterm.c (x_draw_bitmap): Add default case.
6961 (x_setup_relief_colors): Use DefaultScreen instead of
6962 DefaultScreenOfDisplay.
6963 (x_delete_glyphs): Return void.
6964 (construct_menu_click): Put in #if 0 because it isn't called.
6966 * xdisp.c (load_overlay_strings): Remove extraneous argument
6968 (get_overlay_arrow_glyph_row): Add missing return value.
6970 * window.c (set_window_height): Return void.
6971 (set_window_width): Ditto.
6973 * sysdep.c (request_sigio): Return void.
6974 (unrequest_sigio): Ditto.
6975 (get_frame_size): Ditto.
6977 * scroll.c (scroll_cost): Return int.
6978 (do_line_insertion_deletion_costs): Return void.
6980 * frame.c (Fdelete_frame): Use xfree instead of free.
6982 * fileio.c (report_file_error): Return void.
6984 * dispnew.c: Make compilable with -Wall.
6987 * charset.h (CHAR_LEN): Moved here from dispextern.h.
6989 1998-03-14 Gerd Moellmann <gerd@gnu.org>
6991 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
6993 (x_setup_relief_color): Free color only for appropriate visual
6996 * xterm.c (expose_window): Fix calculation of intersection of mode
6997 line rectangle with exposed rectangle.
6999 * xdisp.c (redisplay_window): Don't do cursor movement based
7000 on current matrix if w->last_point is not valid.
7002 1998-03-09 Gerd Moellmann <gerd@gnu.org>
7004 * xterm.c (expose_line): Redraw mode line and menu lines
7005 differently because they reach into the scroll bar area.
7007 * xdisp.c (redisplay_window): If redisplaying with same window
7008 start, don't accept cursor on partially visible line.
7010 1998-03-08 Gerd Moellmann <gerd@gnu.org>
7012 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
7013 for wider mode lines.
7014 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
7016 * xdisp.c (init_iterator): Increase last_visible_x by vertical
7017 scroll bar width for mode lines.
7019 * dispnew.c (allocate_matrices_for_window_redisplay): Include
7020 vertical scroll bar width in width calculation so that we can
7021 display mode lines wider.
7023 * xdisp.c (redisplay_window): Restore buffers before returning
7024 when fonts have changed.
7026 * dispnew.c (update_window): Mark invisible rows in the current
7029 * xdisp.c (try_window_id): Force update of first row displayed
7031 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
7033 1998-03-05 Gerd Moellmann <gerd@gnu.org>
7035 * dispextern.h (struct glyph_row): Member max_ascent renamed
7036 ascent. Member max_descent replaced by height.
7037 (struct display_iterator): Member max_descent replaced by height.
7038 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
7040 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
7041 class makes it unnecessary or dangerous.
7043 * xdisp.c (redisplay_window): Case only point has changed, and
7044 point has moved forward. Move forward over overlay strings.
7045 (display_line): Don't set cursor if first glyph from PT is part of
7046 a continuation line.
7048 1998-02-21 Gerd Moellmann <gerd@gnu.org>
7050 * xdisp.c (start_display): When computing continuation lines
7051 width, add current_x to the continuation lines width because
7052 move_iterator_to will stop in front of the buffer position moved
7055 1998-02-20 Gerd Moellmann <gerd@gnu.org>
7057 * xdisp.c (redisplay_window): Don't try try_window_id if
7058 windows_or_buffers_changed.
7060 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
7062 (x_setup_relief_color): Allocate/ change one relief.
7063 (x_setup_relief_colors): Call above function.
7065 * xterm.h (struct relief): New structure type holding relief info:
7066 GCs, colors, and whether colors are allocated.
7068 * xterm.c (x_alloc_lighter_color): If multiplying by factor
7069 produces the same color, try adding a delta to RGB values.
7070 (x_setup_relief_colors): Free color cells.
7072 * xterm.h (struct x_output): New members white_relief_pixel,
7073 black_relief_pixel holding the foreground colors allocated for
7074 relief GCs. New members white_allocated_p, black_allocated_p.
7076 * xterm.c (x_scroll_run): Don't set updated_window to null.
7077 This resets updated_window when called from scrolling_window.
7079 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
7081 * xterm.c (x_scroll_run): Additional window parameter. Set
7082 and reset updated_window.
7084 * dispnew.c (line_dance_hook): Additional window parameter.
7086 * xdisp.c (try_window_reusing_current_matrix): Don't call
7087 update_window_begin/end here. The end function would display the
7088 cursor on a wrong position and the additional functionality of
7089 update_window_begin is not needed anyway. Just set
7091 (try_window_id): Ditto.
7093 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
7094 Don't redraw cursor during redisplay.
7096 * xterm.c (x_scroll_run): Renamed from do_line_dance.
7098 * xdisp.c (redisplay_window): For window-based redisplay, alway
7101 * xterm.c (struct glyph_string): New member two_byte_p that is
7102 non-zero if 16-bit drawing functions must be used.
7103 (x_fill_composite_glyph_string): Set it.
7104 (x_fill_glyph_string): Set it.
7105 (x_draw_glyph_string_foreground): Use it.
7106 (x_draw_vertical_border): Make line 1 pixel less tall.
7107 (x_draw_row_bitmaps): Decrease width of area cleared on the left
7108 side by 1 pixel if window is not right-most hasn't vertical scroll
7110 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
7112 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
7115 * xdisp.c (start_display): Check that window start is at line
7116 start if GLYPH_DEBUG != 0.
7118 * window.c (window_scroll_pixel_based): Move assertion to
7121 1998-02-19 Gerd Moellmann <gerd@gnu.org>
7123 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
7124 frame hasn't the focus.
7126 * window.c (make_window): Initialize dy.
7127 (replace_window): Ditto.
7129 * window.h (window): New member dy specifying the amount by which
7130 a window is scrolled "smoothly".
7132 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
7133 y-position because it can be negative.
7134 (x_draw_row_bitmaps): Don't clear with negative y-position like
7136 (x_clear_end_of_line): Same theme as above.
7138 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
7139 exact match exists, the nearest existing color. Patterned after
7141 (x_alloc_lighter_color): Allocate a color that is lighter or
7142 darker than a given color by a specified factor.
7143 (x_setup_relief_colors): Set up relief line colors based on
7144 the background color of a glyph string face.
7145 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
7147 * xfns.c (x_make_gc): Don't allocate relief GCs.
7148 * widget.c (create_frame_gcs): Don't allocate relief GCs.
7149 (setup_frame_gcs): Don't change relief GCs.
7151 * xterm.h (struct x_output): New member relief_background giving
7152 the background pixel color for which relief GCs can be used.
7153 Set by x_setup_relief_colors.
7155 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
7156 for mode and menu lines.
7158 * xdisp.c (set_next_iterator_stop_pos): No longer static.
7160 * dispnew.c (direct_output_for_insert): Call
7161 set_next_iterator_stop_pos after having changed it2.endpos.
7163 1998-02-17 Gerd Moellmann <gerd@gnu.org>
7165 * dispnew.c (update_window): Work on selected_window, only.
7167 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
7168 hpos is >= number of glyphs in the cursor row.
7170 * xdisp.c (try_window_id): Bug fix; update_window_end was not
7173 1998-02-16 Gerd Moellmann <gerd@gnu.org>
7175 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
7178 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
7179 enough glyphs to display a mode line or menu line which draws over
7182 * xterm.c (XTset_vertical_scroll_bar): Use
7183 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
7184 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
7185 (x_draw_glyphs): Draw over flags areas when drawing a mode line
7187 (x_set_glyph_string_clipping): Set clipping differently if drawing
7188 a mode line or menu line.
7190 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
7192 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
7194 (x_scroll_bar_create): Don't clear flags areas.
7195 (x_draw_row_bitmaps): Clear visible row height, only.
7197 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
7199 1998-02-15 Gerd Moellmann <gerd@gnu.org>
7201 * dispnew.c (direct_output_for_insert): When checking for tabs in
7202 the line, set it2.endpos to ZV.
7204 * window.h (struct window): New member cursor_off_p.
7205 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
7207 * dispnew.c (redraw_cursor_hook): If non-null, function that can
7208 be called to display or erase the cursor.
7209 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
7212 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
7214 * dispnew.c (update_window_line): Special handling of inverse
7215 lines in #if 0 removed.
7217 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
7218 (x_insert_glyphs): Renamed from XTinsert_glyphs.
7219 (x_clear_frame): Renamed from XTclear_frame.
7220 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
7221 (x_ins_del_lines): Renamed from XTins_del_lines.
7222 (x_change_line_height): Renamed from XTchange_line_height.
7223 (x_delete_glyphs): Renamed from XTdelete_glyphs.
7224 (x_clear_cursor): Renamed from clear_cursor.
7225 (x_update_begin): Renamed from XTupdate_begin.
7226 (x_update_end): Renamed from XTupdate_end.
7227 (x_update_window_begin): Renamed from XTupdate_window_begin.
7228 (x_update_window_end): Renamed from XTupdate_window_end.
7229 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
7230 (x_produce_glyphs): Renamed from XTproduce_glyphs.
7231 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
7232 (x_produce_special_glyphs): Implementation in #if 0 removed.
7234 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
7237 * dispnew.c (update_text_area): Handling of glyphs with pixel
7238 width zero removed. Decrement desired stop pos if desired row
7241 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
7243 (BUILD_GLYPH_STRINGS): Set glyph string flag
7244 extends_to_end_of_line_p based on row's flag fill_line_p and face
7245 background and stipple. Make sure it works for composite characters.
7247 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
7248 fill_line_p. For window-based redisplay, add a space only if
7249 the row is empty so that we know the face to draw.
7251 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
7252 means draw the face of the last glyph in the text area to the
7253 right end of the text area.
7255 * xdisp.c (init_iterator): Show region in window mini-buffer
7258 * dispextern.h (struct display_iterator): Redundant member
7259 region_showing_p removed. Test for region_beg > 0 instead.
7261 * dispnew.c (update_text_area): Clear to end of line if cursor is
7262 beyond the end of the desired line. Necessary because we don't
7263 have a phys_cursor_glyph with which to erase the cursor. We don't
7264 have one because this method of drawing a cursor doesn't work with
7267 * xterm.c (XTinsert_glyphs): Block input.
7269 1998-02-14 Gerd Moellmann <gerd@gnu.org>
7271 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
7273 (x_draw_glyph_string_background): Fill background with background
7274 pixel for the first glyph of a composite character.
7276 * xdisp.c (try_window): Change return type to int. Value is zero
7277 if fonts were loaded during redisplay.
7278 (redisplay_window): Return if fonts have been loaded during
7280 (append_space): New parameter default_face_p.
7282 1998-02-13 Gerd Moellmann <gerd@gnu.org>
7284 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
7285 don't let a partially visible line in a current matrix stay
7288 1998-02-09 Gerd Moellmann <gerd@gnu.org>
7290 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
7291 in #if PROMPT_IN_BUFFER.
7293 * xdisp.c (display_line): If row ends in ZV, make the space
7294 that is added to place the cursor on it appear in default face.
7296 * xterm.c (expose_area): New function redrawing a single
7298 (expose_line): Use it to redraw all areas of a row.
7300 * dispextern.h (move_operation_enum): New enum
7301 move_operation_enum.
7303 * window.c (window_scroll_pixel_based): Remove now unnecessary
7304 code that made sure that it->current_y doesn't become negative.
7306 * xdisp.c (move_iterator_in_display_line_to): New parameter
7307 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
7308 (move_iterator_to): Ditto.
7310 * dispextern.h (struct glyph_matrix): New member window_width.
7312 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
7313 case of changing window height.
7315 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
7318 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
7319 says this aspect of Emacs is currently redesigned.
7321 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
7322 have to draw a vertical border.
7324 * window.c (window_scroll_pixel_based): When scrolling down by
7325 screen-fulls, make sure it.current_y doesn't get negative because
7326 this would confuse move_iterator_vertically.
7328 * xdisp.c (move_iterator_vertically_backward): Bug fix for
7329 the case continuation lines are involved.
7330 (try_window_id): Don't set the cursor into scroll margins.
7332 1998-02-08 Gerd Moellmann <gerd@gnu.org>
7334 * xterm.c (x_append_glyph): Don't compute left_overhang and
7336 (XTproduce_glyphs): left_overhang and right_overhang removed.
7337 Set it->glyph_row->contains_overlapping_glyphs_p.
7339 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
7340 and right_overhang removed.
7342 * dispextern.h (struct glyph_row): New member
7343 contains_overlapping_glyphs_p used to optimize glyph drawing.
7344 (struct display_iterator): left_overhang and right_overhang
7346 (struct glyph): Ditto.
7348 * xterm.c (x_draw_relief): Removed.
7349 (x_draw_bitmap): Renamed from draw_bitmap.
7350 (x_draw_glyphs): Completely new implementation of draw_glyphs
7351 capable of handling arbitrary lbearing and rbearing values.
7352 Several sub-functions not mentioned here.
7354 1998-01-30 Gerd Moellmann <gerd@gnu.org>
7356 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
7357 if displaying hollow box cursor. draw_glyphs should handle
7359 (draw_glyphs): Move start to the left and end to the right if they
7360 overlap with previous or following characters.
7361 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
7362 make sure XDrawString uses function GXset. Otherwise the
7363 character under the cursor would be invisible.
7364 (x_draw_bar_cursor): Don't draw over previous character if it
7367 * window.c (get_phys_cursor_glyph): Return the glyph under a
7368 window's physical cursor.
7370 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
7371 (x_draw_bar_cursor): Ditto.
7372 (x_erase_phys_cursor): Ditto.
7373 (x_phys_cursor_in_rect_p): Ditto.
7374 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
7376 * window.c (make_window): Remove reference to phys_cursor_glyph.
7377 (replace_window): Ditto.
7379 * window.h (struct window): Remove phys_cursor_glyph. There is
7380 now always a glyph present for placing the cursor on it in
7381 each glyph row, even at the end of a line.
7383 * xdisp.c (append_space): Function to add a space to an iterators
7385 (display_line): Add spaces at the end of lines that are used to
7386 place the cursor on them.
7387 (compute_line_metrics): If row consists of a space only that was
7388 added to place the cursor on it, use that space's height as the
7391 1998-01-29 Gerd Moellmann <gerd@gnu.org>
7393 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
7396 1998-01-28 Gerd Moellmann <gerd@gnu.org>
7398 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
7399 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
7401 * dispextern.h (struct glyph): Add left_overhang and
7403 (struct display_iterator): Ditto.
7405 * dispnew.c (direct_output_for_insert): Give up if newly inserted
7406 glyphs have different ascent or descent than original row.
7408 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
7409 row->max_descent only if unknown.
7410 (display_line): Compute row->max_ascent and row->max_descent.
7411 (display_string): Ditto.
7413 * window.h (struct window): New members phys_cursor_ascent and
7414 phys_cursor_descent.
7416 * xterm.c (x_phys_cursor_in_rect_p): Use them.
7417 (x_draw_hollow_cursor): Ditto.
7418 (x_erase_phys_cursor): Ditto.
7419 (x_display_and_set_cursor): Set them.
7420 (x_append_glyph): Don't set glyph members that were removed.
7422 * dispextern.h (struct glyph): Members ascent, descent,
7423 contributes_to_line_height_p removed.
7425 1998-01-25 Gerd Moellmann <gerd@gnu.org>
7427 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
7428 names for face ids of frame default face and mode line face.
7430 * xdisp.c (compute_face_at_iterator_string_position): If
7431 displaying a mode line use MODE_LINE_FACE_ID instead of
7434 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
7435 (display_string): Ditto, additional parameter lisp_string.
7436 (display_line): Call display_string with Lisp mini-buffer prompt
7438 (display_menu_bar): Call display_string with Lisp string.
7439 (display_mode_element): Ditto.
7440 (next_element_from_string): Make it work for non-overlay Lisp
7441 strings with field width and precision.
7443 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
7446 * xfaces.c (compute_string_char_face): Fix face computation
7447 for overlay strings.
7449 * xdisp.c (struct overlay_entry): Add member after_string_p.
7450 (load_overlay_strings): Simplify.
7452 * window.c (delete_window): Defer glyph matrix adjustment.
7453 (Fsplit_window): Ditto.
7454 (change_window_height): Ditto.
7455 (Fset_window_configuration): Ditto.
7456 (Fset_window_margins): Ditto.
7457 * frame.c (set_menu_bar_lines): Ditto.
7458 (Fmake_terminal_frame): Ditto.
7459 * dispnew.c (change_frame_size_1): Ditto.
7461 1998-01-24 Gerd Moellmann <gerd@gnu.org>
7463 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
7465 * dispnew.c (direct_output_for_insert): Give up if start
7466 position has overlay strings.
7468 * xdisp.c (display_line): Don't set cursor if row ends in middle
7470 (Fdump_redisplay_state): Print complete row start and end
7472 (redisplay_window): Cursor movement when matrix hasn't changed---
7473 if PT < last_point, maybe move forward if row ends at PT and
7476 * minibuf.c (read_minibuf): Save the value of
7477 minibuffer_prompt_length in minibuf_save_list.
7478 (read_minibuf_unwind): Restore minibuffer_prompt_length.
7480 * xdisp.c (redisplay_window): Add assertion for cursor movement
7481 case, PT < last_point.
7482 (move_iterator_in_display_line_to): If to_pos specified, move
7483 over before-strings.
7485 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
7486 start.string_index > 0.
7488 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
7489 is set. Retry redisplay if fonts_changed_p is set before update.
7491 * xterm.c (x_load_font): Set fonts_changed_p.
7493 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
7495 * dispnew.c (adjust_glyphs_for_font_change): Removed.
7497 * xdisp.c (try_window): Check fonts_changed_p.
7498 (try_window_reusing_current_matrix): Ditto.
7499 (try_window_id): Ditto.
7501 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
7502 (fonts_changed_p): Flag indicating a font change since the last
7503 glyph matrix adjustment.
7505 * xterm.c (x_per_char_metric): Use font->max_bounds as
7506 char metric of the font's default char if the default char
7507 hasn't per char metric itself.
7509 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
7511 (min_char_bounds): Check face->font != NULL.
7512 (font_min_bounds): Return minimum font metrics. Capture the
7513 case of invalid min_bounds contents.
7514 (min_char_bounds): Call font_min_bounds.
7516 1998-01-22 Gerd Moellmann <gerd@gnu.org>
7518 * xdisp.c (start_display): Don't set it->prompt_width if
7520 (move_iterator_in_display_line_to): Ditto.
7521 (display_line): Don't display prompt via display_string if
7524 * minibuf.c (Fminibuffer_prompt_width): Return value from
7525 current_buffer if PROMPT_IN_BUFFER.
7526 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
7527 mini-buffer and make it read-only.
7528 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
7529 minibuffer_prompt_length instead of BEGV.
7530 (Fminibuffer_complete_word): Ditto.
7531 (Fminibuffer_complete_word): Ditto.
7533 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
7534 is less than mini-buffer prompt width, use prompt width as start.
7536 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
7537 position is less than mini-buffer prompt width, use the prompt
7540 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
7541 end of prompt if applied to a mini-buffer and BEG reached.
7543 1998-01-21 Gerd Moellmann <gerd@gnu.org>
7545 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
7546 length to start position.
7548 * buffer.c (Fget_buffer_create): Initialize
7549 minibuffer_prompt_length.
7550 (Fmake_indirect_buffer): Ditto.
7551 (Fkill_buffer): Ditto.
7553 * buffer.h (struct buffer): Add member minibuffer_prompt_length
7554 if PROMPT_IN_BUFFER.
7556 1998-01-19 Gerd Moellmann <gerd@gnu.org>
7558 * xdisp.c (next_element_from_string): Make it work for arbitrary
7560 (set_iterator_to_next): Advance to next overlay string only
7561 if it->string is an overlay string.
7563 * dispextern.h (struct display_iterator):
7564 next_ovstr_face_check_pos renamed next_string_face_check_pos.
7566 * xfaces.c (compute_string_char_face): Compute face for
7567 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
7569 * xdisp.c (next_element_from_string): Renamed from
7570 next_element_from_overlay_string.
7571 (compute_face_at_iterator_string_position): Renamed from
7572 compute_face_at_iterator_overlay_string_position.
7574 * dispextern.h (struct display_iterator): Member overlay_string
7577 * xdisp.c (next_element_from_c_string): Renamed from
7578 next_element_from_string.
7580 * dispextern.h (struct glyph_pos): Reversed meaning of
7581 overlay_string_index and string_index.
7583 * xdisp.c (next_element_from_overlay_string): Fix bug that made
7584 this function always return the first character of an overlay
7587 1998-01-18 Gerd Moellmann <gerd@gnu.org>
7589 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
7590 forced or new pos > next_invisible_check_pos.
7591 (redisplay_window): Don't try same window start if PT < window
7593 (move_iterator_vertically): Bug fix satisfying post-condition
7594 when ZV is reached and no newline in front.
7595 (move_iterator_vertically_backward): New implementation.
7596 (move_iterator_vertically_backward): Bug fixes.
7598 * xterm.c (XTmouse_position): Change call to min_char_bounds.
7599 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
7600 (adjust_glyphs_for_font_change): Always adjust.
7602 * dispnew.c (struct dim): Use int.
7604 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
7605 (allocate_face): Initialize it.
7606 (load_font): Use XLoadQueryFont again instead of x_load_font.
7607 (unload_font): Use XFreeFont again.
7608 (min_char_bounds): Iterate over fonts of faces. Use frame's
7609 font sizes as default. Remove parameter except_last_font_p.
7611 * dispextern.h (struct face): Add font_name.
7613 1998-01-17 Gerd Moellmann <gerd@gnu.org>
7615 * xdisp.c (move_iterator_vertically): Check post-condition. Move
7616 to start of line if ending at ZV and no newline in front.
7617 (move_iterator_to): If to_y specified, always first move to x = 0,
7618 so that move stops at line start instead of line end. This is
7619 probably what callers would expect to happen.
7621 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
7622 can handle different line heights.
7623 (window_scroll_line_based): Formerly window_scroll.
7624 (window_scroll): Call both.
7626 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
7627 (move_iterator_in_display_line_to): Ditto.
7628 (display_line): Ditto.
7630 * minibuf.c (read_minibuf): Conditionally insert prompt into
7631 buffer instead of handling prompts specially. Change other
7632 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
7634 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
7635 upper window. Optimize calls to xrealloc if same width.
7637 * xdisp.c (redisplay_window): Don't use
7638 try_window_reusing_current_matrix if window scroll functions
7641 * dispextern.h (struct display_iterator): Member
7642 redisplay_end_trigger_p removed.
7644 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
7645 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
7647 1998-01-16 Gerd Moellmann <gerd@gnu.org>
7649 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
7650 nil. Optimize truncate-lines t and moving backward.
7651 (move_iterator_to_previous_visible_line_start): Contains the heart
7652 of the previous set_iterator_to_previous_visible_line_end. Don't
7653 reseat the iterator. Used by move_iterator_by_lines.
7654 (set_iterator_to_previous_visible_line_start): Call function
7656 (move_iterator_in_display_line_to): Check TO_POS before doing
7657 anything else. Otherwise to_pos == PT would move to x of PT+1.
7659 * indent.c (Fvertical_motion): Use display_iterator.
7661 * xdisp.c (move_iterator_by_lines): New function moving by screen
7663 (redisplay_window): Use it.
7664 (move_iterator_to): Correct branch of to_vpos specified.
7665 (move_iterator_vertically_backward): Increment nlines after having
7666 backed up over some lines because the last line was not backed up
7668 (move_iterator_via_matrix): Look for it->pos in the matrix, and
7669 calculate it->vpos and it->current_y relative to this row.
7670 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
7671 have a big effect and it is complex.
7672 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
7674 1998-01-15 Gerd Moellmann <gerd@gnu.org>
7676 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
7677 join nicely. Lines with widths > 2 don't join nicely under X.
7678 * xterm.h (struct x_output): Remove member relief_gc_line_width.
7679 * widget.c (setup_frame_gcs): Initialize relief GC's to line
7680 width 1; remove references to relief_gc_line_width.
7681 * xfns.c (x_make_gc): Ditto.
7683 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
7685 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
7686 to get a relief because they can be negative.
7688 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
7689 positions are for the middle of lines under X.
7691 * xdisp.c (try_window_id): Always search for the cursor by setting
7692 w->cursor.vpos = -1. Search in unchanged rows at the top and
7693 bottom if cursor not found in displayed lines.
7694 (display_mode_line): First extend face, then set right shadow
7695 flag. Otherwise the wrong glyph gets the right shadow.
7697 * dispnew.c (direct_output_for_insert): Give up if line contains
7698 a tab. The number of spaces inserted for a tab changes if we
7699 insert glyphs in front of it.
7701 * xterm.c (x_list_fonts): Changes undone because the Lisp
7702 implementation for make-face-smaller, make-face-larger, and
7703 make-face-fixed can do without them.
7705 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
7708 * xdisp.c (try_window_id): First compute beg_unchanged, then
7709 compare with window start pos.
7711 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
7713 (syms_of_xfns): defsubr for x-face-fixed-p.
7715 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
7716 enabled, don't do anything because this row will be newly drawn
7717 anyway and because we can additionally no longer determine the row
7720 * xdisp.c (display_line): Bug fix cursor positioning.
7722 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
7723 removed. x-list-fonts.c is now obsolete.
7724 (Qfixed, Qvariable): Moved here from xfaces.c.
7726 1998-01-14 Gerd Moellmann <gerd@gnu.org>
7728 * xdisp.c (display_line): Set row->ends_at_zv_p based on
7729 FETCH_BYTE for truncated lines.
7730 (display_line): Set cursor differently.
7731 (display_line): Fixed bug setting last_pos_on_this_line wrong
7732 for truncated lines.
7734 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
7737 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
7739 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
7740 assertion that character dimensions are not zero.
7742 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
7745 * xdisp.c (decode_mode_spec): Faster implementation of line number
7748 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
7749 bitmaps if bitmaps don't fill the entire area.
7750 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
7752 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
7753 pixel height of flags bitmaps.
7755 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
7756 (FRAME_FLAGS_AREA_WIDTH): Ditto.
7758 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
7759 in pixels of a flags area of a frame.
7760 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
7761 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
7762 occupied by a flags area.
7764 1998-01-13 Gerd Moellmann <gerd@gnu.org>
7766 * xdisp.c (hscroll_window_tree): Remove test for non-nil
7769 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
7772 * xdisp.c (display_line): Correct wrong calculation of row->x for
7773 the case of nglyphs == 1.
7774 (hscroll_window_tree): Renamed from hscroll_windows.
7775 (hscroll_windows): New function calling hscroll_window_tree that
7776 clears desired matrices on a frame when hscroll has been changed.
7777 (redisplay_p): Global flag set during redisplay.
7778 (redisplay_internal): Set and clear redisplay_p.
7780 * xfaces.c (min_char_bounds): Add assertion that width and height
7781 are not zero at the end. Initialize *height and *width to -1,
7782 instead of using BITS_PER_SHORT. If font has min_bounds.width
7783 zero, use its max_bounds.width.
7785 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
7788 1998-01-12 Gerd Moellmann <gerd@acm.org>
7790 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
7791 changed. Don't clear desired matrices.
7793 * xdisp.c (hscroll_windows): Compute pt after setting
7795 (redisplay_window): Don't do cursor movement based on current
7796 matrix if just_this_one_p is zero.
7798 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
7799 specifying that fixed-width, variable-width fonts or both
7802 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
7803 (syms_of_xfaces): Initialize them.
7805 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
7808 1998-01-11 Gerd Moellmann <gerd@acm.org>
7810 * xdisp.c (display_mode_line): Extend face to end of line.
7812 * xdisp.c (echo_area_display): Don't call display_string with
7813 echo_area_glyphs_length == 0 which would mean infinite precision.
7814 (redisplay_internal): Adjust window_end_vpos if necessary.
7816 1998-01-07 Gerd Moellmann <gerd@acm.org>
7818 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
7820 1998-01-05 Gerd Moellmann <gerd@acm.org>
7822 * xdisp.c (get_row_start_continuation_line_width): Removed.
7823 (init_iterator_to_row_start): Set it.current_x from row.
7824 (try_window_id): Set it.continuation_lines_width directly from
7827 * xdisp.c (hscroll_windows): Use w->pointm if window is not
7829 (hscroll_windows): Center cursor in window.
7830 (hscroll_windows): Call move_iterator_in_display_line_to.
7832 1998-01-04 Gerd Moellmann <gerd@acm.org>
7834 * xdisp.c (hscroll_windows): Check hscroll < 0.
7835 (redisplay_window): Allow quick cursor movement if overlay arrow
7836 but frame uses window-based redisplay.
7837 (display_line): Take special case for nglyphs == 1 out of #if 0.
7838 (display_line): Set row->ends_at_zv_p after the loop displaying
7839 glyphs because ZV can be in truncated text.
7840 (hscroll_windows): Use init_iterator_to_row_start.
7842 * dispnew.c (scrolling_window): Calculation of overlapping
7844 (row_equal_p): Compare continued_p and continuation_line_p.
7846 1998-01-02 Gerd Moellmann <gerd@acm.org>
7848 * xterm.c (x_get_mode_line_face_gc): Renamed from
7849 x_get_modeline_face_gc.
7851 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
7852 buffer position to look for text properties.
7853 (get_face_from_cursor_pos): Use it.
7854 (compute_face_at_iterator_position): Use it.
7855 (next_element_from_buffer): Use it.
7857 * dispnew.c (scrolling_window): Decrement run's y-position
7858 when extending it backwards.
7860 * xterm.c (do_line_dance): Don't ever copy more than window height.
7862 1998-01-01 Gerd Moellmann <gerd@acm.org>
7864 * xdisp.c (redisplay_window): Cursor motion in unchanged
7865 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
7866 (init_iterator_to_next_row_start): Special handling of lines
7867 ending in middle of char removed.
7868 (hscroll_windows): Hscroll windows only if window_end_valid is not
7870 (try_window_reusing_current_matrix): Call hscroll_windows.
7871 (init_iterator_to_row_start): Initialize iterator for display
7872 starting at a position given by a glyph_row->start.
7873 (redisplay_window): Don't use vmotion because it gives wrong
7874 results if lines are continued and variable width fonts are used.
7876 * dispextern.h (struct glyph_pos): New member dpvec_index.
7877 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
7878 the middle of a character.
7879 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
7880 the middle of a character.
7882 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
7884 (next_element_from_display_vector): Use it->dpvec_index.
7885 (reseat_iterator): Reset it.
7886 (init_iterator): Reset it.
7887 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
7888 it->pos.dpvec_index from a glyph_pos structure.
7889 (init_iterator_from_glyph_pos): Call the function above.
7890 (reseat_iterator_to_glyph_pos): Ditto.
7892 * dispnew.c (direct_output_forward_char): Don't use this method at
7893 overlay boundaries or near invisible text.
7894 (direct_output_forward_char): Step through glyph row to find
7897 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
7898 frame font if line height differs from font height.
7900 * xdisp.c (set_iterator_to_next): Renamed from
7901 move_iterator_forward to avoid confusion with other move_.*
7904 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
7906 1997-12-31 Gerd Moellmann <gerd@acm.org>
7908 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
7909 same naming convention as for other GC functions.
7910 (draw_glyphs): Don't fill background when drawing a cursor and
7911 font height is less than line height.
7913 1997-12-30 Gerd Moellmann <gerd@acm.org>
7915 * xdisp.c (init_display_iterator.*): Renamed to shorter names
7918 * xdisp.c (move_iterator_forward): Restore it->len from
7919 it->dpvec_char_len if dpend reached.
7920 (get_next_display_element): Don't consume translated char
7922 (display_line): Don't set this_.* variables if row is continued.
7923 (start_display): Move to start of continuation line if ending
7924 up at end of continued line.
7926 * dispextern.h (struct display_iterator): New member dpvec_char_len.
7928 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
7929 checking TO_X and continuation lines.
7930 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
7931 of a continued line, don't consider this line as unchanged because
7932 it may no longer be continued.
7934 1997-12-29 Gerd Moellmann <gerd@acm.org>
7936 * xdisp.c (try_window_id): Catch the case that moving over
7937 continuation lines moves first_unchanged_at_end_row to a row not
7940 * dispextern.h (struct glyph_row): New member
7941 continuation_lines_width. Member continuation_line_p removed.
7942 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
7944 * xdisp.c (display_line): Set row->continuation_lines_width.
7945 (get_row_start_continuation_line_width): Set continuation lines
7946 width of iterator from continuation lines width of glyph row.
7947 (get_row_start_continuation_line_width): Make it inline.
7948 (set_window_cursor): Make it inline.
7949 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
7950 (Fdump_redisplay_state): Ditto.
7952 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
7953 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
7955 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
7956 after determining the continuation lines width for
7957 last_unchanged_at_beg_row.
7959 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
7961 * xdisp.c (display_mode_line): Handle 3D faces only on frames
7962 which support faces.
7963 (init_display_iterator): Ditto.
7964 (move_iterator_via_matrix): Skip over truncation glyph at the row
7965 start on terminal frames.
7966 (hscroll_windows): Choose hscroll margin differently for window
7967 system and terminal frames.
7969 1997-12-28 Gerd Moellmann <gerd@acm.org>
7971 * xdisp.c (hscroll_windows): Change hscroll of windows.
7972 (redisplay_internal): Call it.
7974 * dispnew.c (direct_output_for_insert): Give up if a glyph
7975 doesn't fit completely on the line.
7976 (direct_output_forward_char): Give up for non-ASCII chars.
7977 (direct_output_forward_char): Set redisplay_performed_directly_p.
7979 * dispextern.h (struct display_iterator): Make first_visible_x
7980 and last_visible_x ints; this is for very long truncated lines.
7982 * xdisp.c (move_iterator_in_display_line_to): Separate check for
7983 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
7984 positioning problems with the mouse.
7985 (move_iterator_in_display_line_to): Truncate lines if it->current_x
7986 >= it->last_visible_x instead of >.
7987 (display_line): Ditto.
7989 * xterm.c (draw_glyphs): Draw rectangles if font could not be
7991 (XTproduce_glyphs): Calculate pixel_width for composite chars and
7992 non-ASCII chars differently. Always produce 1 glyph for composite
7993 chars. If font not found, use CHARSET_WIDTH to calculate width of
7995 (x_get_char_font_and_encoding): Return null if font could not be
7996 loaded. Reset font to null if fontset could not be loaded.
7997 (draw_glyphs): Fill background if font not found.
7998 (draw_glyphs): Unused parameter just_foreground_p removed. New
7999 parameter composite_glyph.
8000 (draw_glyphs): Use enumeration for parameter hl.
8001 (draw_glyphs): Pass a display area relative x-position to
8002 draw_glyphs when calling it recursively for composite chars.
8004 1997-12-27 Gerd Moellmann <gerd@acm.org>
8006 * xterm.c: Patches from handa.etl.go.jp integrated.
8007 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
8010 * xdisp.c (move_iterator_in_display_line_to): Check to_x
8013 * xterm.c (x_draw_relief): Draw relief lines.
8014 (draw_glyphs): Call x_draw_relief.
8016 1997-12-26 Gerd Moellmann <gerd@acm.org>
8018 * xfns.c (x_make_gc): Create relief GC's.
8020 * widget.c (create_frame_gcs): Create GC's for relief drawing.
8021 (setup_frame_gcs): Initialize them.
8022 (EmacsFrameDestroy): Free them.
8024 * xdisp.c (try_window_id): Get continuation lines width if
8025 last_unchanged_at_beg_row is continued or a continuation line.
8026 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
8027 (redisplay_window): Case point has changed, and it has not
8028 moved off the frame. Don't increment row if PT equals the row
8029 end if the row ends in ZV.
8031 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
8032 (expose_line): Call it.
8033 (x_after_update_window_line): Call it.
8035 * xdisp.c (display_line): Reset continuation_lines_width when ZV
8038 * xterm.c (x_after_update_window_line): Draw continuation line
8041 * dispnew.c (update_window_line): Call
8042 after_update_window_line_hook when row's continuation_line_p
8045 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
8047 * xdisp.c (display_line): Handle continued lines on window system
8048 frames differently since continuation glyphs are not displayed.
8049 (move_iterator_in_display_line_to): Ditto.
8050 (move_iterator_in_display_line_to): Take the mini-buffer prompt
8052 (move_iterator_vertically_backward): Handle dy == 0 specially.
8053 (redisplay_window): Catch the case of small windows when
8054 recentering where moving back window_height/2 moves us beyond the
8055 top of the display area of the window.
8057 1997-12-18 Gerd Moellmann <gerd@acm.org>
8059 * xdisp.c (move_iterator_vertically_backward): Unused parameter
8062 1997-12-17 Gerd Moellmann <gerd@acm.org>
8064 * dispnew.c (direct_output_forward_char): Correct new cursor
8067 1997-12-16 Gerd Moellmann <gerd@acm.org>
8069 * xterm.c (x_after_update_window_line): Remove unused parameters.
8070 (XTclear_end_of_line): Clear to display_height instead of
8073 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
8074 (update_window_line): Call after_update_window_line_hook if
8075 rows have different y-positions, or different height.
8077 1997-12-14 Gerd Moellmann <gerd@acm.org>
8079 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
8081 * window.c (coordinates_in_window): Call frame_mode_line_height.
8083 * xterm.c (x_draw_3d_border): Removed.
8084 (x_draw_row_borders): Removed.
8086 * dispnew.c (update_window): References to
8087 FRAME_MODE_LINE_BORDER_WIDTH removed.
8089 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
8090 (FRAME_MODE_LINE_HEIGHT): Removed.
8092 * xterm.c (draw_3d_borders_p): Removed.
8093 (draw_glyphs): Ditto.
8094 (XTwrite_glyphs): Ditto.
8095 (expose_line): Ditto.
8096 (x_initialize): Ditto.
8098 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
8099 frame_mode_line_height.
8101 * term.c (frame_mode_line_height): Get the pixel height of a
8103 (frame_mode_line_height_hook): Hook to implement system dependent
8106 * xterm.c (x_initialize): Set the hook.
8107 (XTframe_mode_line_height): X version of frame_mode_line_height.
8109 * xdisp.c (echo_area_display): Call gobble_input to flush the X
8111 (display_string): Don't add right truncation mark if line ends in
8113 (init_display_iterator): If called with modeline_p non-zero, set
8114 face_id to 1, which is the id of the mode line face.
8116 * keyboard.c (cmd_error_internal): Write to stderr if selected
8117 frame is Vterminal_frame under X. This is the case when a font
8118 cannot be loaded when Emacs starts. Replace test for
8119 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
8121 * xfaces.c (compute_overlay_string_char_face): Compute the
8122 face of a character in an overlay string.
8123 * xterm.h (compute_overlay_string_char_face): Prototype.
8124 * xdisp.c (compute_face_at_iterator_overlay_string_position):
8127 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
8128 set_iterator_to_next_overlay.
8129 (struct overlay_entry): Structure used to sort overlay strings.
8130 (compare_overlay_entries): Compare overlay strings.
8131 (load_iterator_with_overlay_strings): Load a chunk of overlay
8133 (get_overlay_strings_at_iterator_position): Call it.
8134 (next_element_from_overlay_string): Set it->object to the overlay
8135 string. Prepare for setting it->position to a string position.
8136 (get_overlay_strings_at_iterator_position): Renamed from
8137 get_overlays_at_iterator_position.
8138 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
8139 chunks of overlay strings.
8140 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
8142 * dispextern.h (struct display_iterator): New vector
8143 overlay_strings and new member n_overlay_strings---formerly
8144 overlays and n_overlays.
8145 (struct glyph_pos): Remove after_string_p; overlay_index
8146 renamed to string_index.
8148 1997-12-13 Gerd Moellmann <gerd@acm.org>
8150 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
8151 when allocating a vector.
8152 (release_iterator): Removed.
8153 (restore_iterator): Removed.
8154 (copy_iterator): Removed.
8156 1997-12-08 Gerd Moellmann <gerd@acm.org>
8158 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
8159 clearing a mini-buffer window that is not active.
8160 (redisplay_window): Do not scroll one line too early when last
8161 window line is completely visible.
8162 (init_display_iterator): Leave some room to display the cursor
8163 after the last glyph on a continued line.
8165 * xterm.h (struct x_output): trunc_area_extra renamed
8167 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
8169 * dispnew.c (update_window_line): Call
8170 after_update_window_line_hook when current row is not enabled
8171 which is the case after a frame has been cleared.
8173 * xdisp.c (display_mode_line): Reset row flags for truncation
8174 on right side for the mode line.
8176 * xterm.c (bitmap_type): Type of bitmap to display in flags
8178 (x_after_update_window_line): Use the enum.
8179 (draw_bitmap): Ditto.
8181 1997-12-07 Gerd Moellmann <gerd@acm.org>
8183 * xterm.c (x_clip_to_row): Include width of both flag areas.
8184 (do_line_dance): Ditto.
8185 (expose_window_tree): Ditto.
8186 * dispnew.c (update_window_line): Call
8187 after_update_window_line_hook for right truncation and continuation.
8188 * xdisp.c (init_display_iterator): Don't subtract width of
8189 continuation glyphs for window-based redisplay.
8190 * xterm.c (draw_bitmap): Draw continuation bitmap.
8191 * widget.c (set_frame_size): Double trunc_area_extra.
8192 (EmacsFrameSetCharSize): Ditto.
8193 * xfns.c (x_figure_window_size): Ditto.
8194 * xterm.c (x_set_window_size): Ditto.
8195 (x_after_update_window_line): Draw right truncation mark.
8197 * xterm.c (draw_glyphs): Bug fix buffer overrun.
8199 * window.h: Include blocker around dispextern.h removed.
8201 * eval.c (Feval): Check interrupt_input_block == 0.
8203 * dispextern.h (struct display_iterator): Former ovstr made a
8204 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
8205 next_ovstr_invisble_check_pos; check at these positions for
8206 face changes and changes in invisible text property.
8207 (struct glyph_pos): Former ovlen now overlay_string_index.
8209 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
8211 (set_iterator_to_next_overlay_string): Set overlay_string and
8212 pos.overlay_string_index.
8213 (get_overlays_at_iterator_position): Use overlay_string and
8214 overlay_string_index.
8215 (next_element_from_overlay_string): Use overlay_string and
8216 overlay_string_index.
8217 (move_iterator_forward): Increment overlay_string_index.
8218 (try_window_id): Use overlay_string and overlay_string_index.
8219 (move_iterator_forward): At end of dpvec, maybe use method
8220 next_element_from_overlay_string for the case a character from an
8221 overlay string was translated via a display table.
8222 (reseat_iterator_to_string): Take a Lisp string.
8223 (display_string): Pass a Lisp string to reseat_iterator_to_string.
8224 (compute_face_at_iterator_overlay_string_position): Compute face
8225 based on text properties for an overlay string.
8226 (next_element_from_overlay_string): Check invisible and face text
8228 (set_iterator_to_next_overlay_string): Restore face id before
8229 overlay strings when no more overlay strings are found to return.
8230 Initialize next_ovstr_.*check_pos for each new overlay string
8231 roï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðase_face): Made public.
8232 (merge_face_list): Ditto.
8233 (intern_computed_face): Ditto.
8235 * xdisp.c (redisplay_window): Cursor movement in unchanged
8236 window if PT > w->last_point. Goto try_to_scroll if bottom Y
8237 of row is > instead of >= last_y.
8239 * buffer.h (overlays_at): Function prototype.
8241 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
8242 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
8244 * xdisp.c (release_iterator): Release dynamically allocated
8245 memory of a display_iterator.
8246 (copy_iterator): Copy an iterator.
8247 (restore_iterator): Restore an iterator from a backup copy.
8248 (global): Use the functions above.
8249 * window.c (Fpos_visible_in_window_p): Call release_iterator.
8250 * dispnew.c (direct_output_for_insert): Call release_iterator.
8252 * dispextern.h (struct display_iterator): Allocate overlays
8255 1997-12-06 Gerd Moellmann <gerd@acm.org>
8257 * Makefile.in (window.o): Depends on dispextern.h.
8259 * buffer.c (overlays_at): Make it work when extending vectors
8260 and an initial vector of zero size.
8262 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
8263 from set_cursor_to_previous_visible_line_end.
8264 (set_iterator_to_next_visible_line_start): Renamed from
8265 set_cursor_to_next_visible_line_end.
8266 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
8267 (compute_face_at_iterator_position): Renamed from
8268 compute_cursor_face.
8269 (set_iterator_to_next_overlay_string): Renamed from
8270 cursor_to_next_overlay_string.
8271 (get_overlays_at_iterator_position): Renamed from
8272 get_overlays_for_cursor.
8273 (reseat_iterator): Renamed from reseat_cursor.
8274 (setup_iterator_overlays_from_glyph_pos): Renamed from
8275 setup_overlays_from_pos.
8276 (init_string_iterator): Renamed from init_string_cursor.
8277 (get_next_display_element): Renamed from next_display_element.
8278 (move_iterator_forward): Renamed from advance_display_cursor.
8279 (get_overlays_at_iterator_position): Allocate overlays vector
8282 * xdisp.c: display_cursor renamed display_iterator.
8283 * dispextern.h: Ditto.
8286 1997-12-01 Gerd Moellmann <gerd@acm.org>
8288 * window.c (mark_window_cursors_off): Function comment added.
8289 (window_topmost_p, window_rightmost_p): Removed because not used.
8291 1997-11-30 Gerd Moellmann <gerd@acm.org>
8293 * emacs.c (main): Function prototypes removed in profiling code.
8294 Use safe_bcopy as start of text.
8296 * dispnew.c (update_frame_line): update_line -> update_frame_line;
8297 mirrored_make_current -> make_current.
8299 * xdisp.c: (store_frame_title_char): New function to store a
8300 single character for the frame title with re-allocation of
8302 (init_xdisp): Intialize frame_title_.* variables to null.
8304 * dispnew.c (quit_error_check): Removed.
8306 * eval.c (Fsignal): Call to quit_error_check removed.
8307 * keyboard.c (quit_throw_to_read_char): Ditto.
8309 1997-11-23 Gerd Moellmann <gerd@acm.org>
8311 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
8312 to mean a zero relief.
8314 * .gdbinit (xprintsym): Print a symbol.
8315 (xbacktrace): Print a backtrace of Lisp function calls from
8318 1997-11-19 Gerd Moellmann <gerd@acm.org>
8320 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
8322 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
8323 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
8324 (check_glyph_memory): Define function body unconditionally.
8326 1997-11-17 Gerd Moellmann <gerd@acm.org>
8328 * dispnew.c (scrolling_window): Alternative version of this
8331 1997-11-16 Gerd Moellmann <gerd@acm.org>
8333 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
8334 of height CANON_Y_UNIT.
8335 * dispextern.h: Prototype for that function.
8336 * xdisp.c (echo_area_display): Don't use display_string to
8337 produce empty rows. Use make_empty_enabled_row instead.
8339 * dispnew.c (scrolling_window): New version using diff-like
8340 algorithm activated.
8342 1997-11-15 Gerd Moellmann <gerd@acm.org>
8344 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
8345 (clear_desired_matrices): Ditto.
8346 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
8347 for menu_bar_window.
8349 * alloc.c (mark_object): Mark menu_bar_window of frames.
8351 * xterm.c (XTupdate_window_end): Don't display cursor if
8354 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
8356 (update_window): Don't set cursor if pseudo_window_p.
8358 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
8360 * window.h (struct window): New flag pseudo_window_p set to
8361 1 for windows that aren't really part of the window tree, like
8362 menu_bar_window's of frames.
8363 * window.c (make_window): Initialize it.
8364 (replace_window): Ditto.
8365 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
8367 * frame.c (make_frame): Initialize menu_bar_window to nil.
8369 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
8372 * xfaces.c (copy_face): shadow_thickness -> relief.
8374 (merge_faces): Ditto.
8375 (compute_base_face): Ditto.
8376 (Fset_face_attribute_internal): Ditto.
8377 * dispextern.h (struct face): Ditto.
8379 * dispnew.c (update_frame): Update menu_bar_window of the frame if
8382 * xdisp.c (display_menu_bar): Display the menu bar in
8383 f->menu_bar_window if appropriate.
8384 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
8386 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
8387 dummy window and window matrices for f->menu_bar_window.
8388 (free_glyphs): Free the dummy window and its glyph matrices.
8390 * frame.h (struct frame): New member menu_bar_window.
8392 1997-11-09 Gerd Moellmann <gerd@acm.org>
8394 * dispnew.c (scrolling_window): New version with diff-like
8397 * xdisp.c (try_window_reusing_current_matrix): If new_start >
8398 old_start always start displaying at start of
8399 first_row_to_display. The previous scheme failed if the last row
8402 * dispnew.c (update_window): Remove cost calculations. Remove
8403 redundant preempt_count calculations.
8405 * xterm.c (x_clip_to_row): Set clipping for non-text rows
8408 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
8410 * window.c (syms_of_window): Functions for marginal areas if
8411 WITH_MARGINAL_AREAS is defined.
8413 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
8416 * dispnew.c (scrolling): Call line_hash_code because hash values
8417 are not set in the frame matrix.
8419 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
8420 (redisplay_window): Check line_ins_del_ok before calling
8422 (try_window_reusing_current_matrix): Give up for terminal frames
8423 if window is not full width or we cannot insert/delete lines.
8424 (try_window_reusing_current_matrix): Fixed scrolling for terminal
8427 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
8428 Lisp_Object to mark_object.
8430 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
8431 window rows have the same glyph pointers.
8432 (try_window_id): Call it.
8434 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
8436 (mark_object): Call it.
8438 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
8440 (display_line): Ditto.
8441 (display_line): Ditto for DISP_CONTINUATION.
8442 (display_line): Truncation on right: test current_x >
8444 (skip_in_display_line_to): Ditto.
8445 (skip_via_matrix): Stop skipping in glyph row at face extending
8446 glyphs or at padding spaces.
8448 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
8450 * xdisp.c (display_line): Use glyph->object == 0 for padding
8452 (redisplay_window): Don't let cursor move over padding
8455 * dispextern.h (struct glyph): Fix comment for object.
8457 1997-11-08 Gerd Moellmann <gerd@acm.org>
8459 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
8461 * xdisp.c (redisplay_window): Use it.
8462 (display_mode_line): Check that window wants mode line.
8464 1997-11-03 Gerd Moellmann <gerd@acm.org>
8466 * xdisp.c (display_menu_bar): Enable menu bar rows.
8468 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
8469 (x_erase_phys_cursor): Ditto.
8470 (x_draw_bar_cursor): Ditto.
8472 1997-11-02 Gerd Moellmann <gerd@acm.org>
8474 * dispnew.c (update_marginal_area): Update a marginal area.
8475 (update_text_area): Update text area.
8476 (update_window_line): Call both.
8478 * xterm.c (XTclear_end_of_line): Translate coordinates area
8481 * dispnew.c (updated_area): Row area being updated in
8483 (update_window_line): Set it.
8484 (update_marginal_area): Clear to end of line if not in text area.
8486 * window.c (Fset_window_margins): Increment
8487 windows_or_buffer_changed. Adjust glyphs.
8489 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
8490 area X coordinates to frame coordinates.
8491 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
8492 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
8493 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
8495 * xterm.c (draw_glyphs): Use text area width as display width.
8497 * xdisp.c (init_display_info): Subtract widths of marginal areas
8498 from last_visible_x.
8500 * alloc.c (mark_object): Mark objects in glyphs only if they are
8501 overlays. Mark only if current_matrix != 0. Activate the code.
8503 * window.c (Fset_window_margins): Set margins.
8504 (Fwindow_margins): Return margin area widths.
8505 (syms_of_window): Add defsubr's.
8507 * window.h (struct window): left_margin_width, right_margin_width.
8509 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
8512 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
8513 truncation/overlay arrow area.
8514 (struct frame): trunc_area_pixel_width, and _cols.
8516 * window.c (Fsplit_window): Use it.
8518 * window.c (Fsplit_window): Set cursor vpos to -1 after
8520 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
8523 * dispnew.c (set_window_cursor_after_update): Accept out
8524 of bounds cursor positions.
8526 * xdisp.c (redisplay_internal): Check that after cursor motion
8527 within line, PT is on same line.
8529 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
8532 * xterm.h (struct x_output): trunc_area_extra.
8533 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
8534 (PIXEL_TO_CHAR_WIDTH): Subtract it.
8535 * widget.c (set_frame_size): Set it.
8536 (EmacsFrameSetCharSize): Ditto.
8537 * xfns.c (x_figure_window_size): Ditto.
8538 * xterm.c (x_set_window_size): Ditto.
8540 * dispnew.c (check_matrix_invariants): First try to check window
8543 * xdisp.c (try_window_reusing_current_matrix): Try window
8544 redisplay with different window start.
8546 1997-11-01 Gerd Moellmann <gerd@acm.org>
8548 * window.c (make_window): Set window_end_pos/vpos.
8549 (Fsplit_window): Zero last_cursor, window_end_valid.
8550 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
8552 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
8554 1997-10-31 Gerd Moellmann <gerd@acm.org>
8556 * window.c (make_window): Initialize last_cursor.
8557 (replace_window): Ditto.
8559 1997-10-29 Gerd Moellmann <gerd@acm.org>
8561 * window.h: New member last_cursor.
8562 * dispnew.c (direct_output_for_insert): Set it.
8563 (direct_output_forward_char): Ditto.
8564 * xdisp.c (redisplay_internal): Ditto.
8566 1997-10-28 Gerd Moellmann <gerd@acm.org>
8568 * xdisp.c (redisplay_internal): Optimization 1 change partially
8569 reverted. Check this again later.
8570 (skip_via_matrix): Remove redundent test for
8571 MATRIX_ROW_DISPLAYS_TEXT_P.
8573 1997-10-27 Gerd Moellmann <gerd@acm.org>
8575 * dispnew.c (update_window_line): Call
8576 after_update_window_line_hook only for interesting constellations.
8577 (free_glyph_matrix): Fix memory leak.
8579 * window.h: Include blocker WINDOW_H_INCLUDED, include
8581 (struct window): phys_cursor_glyph as struct glyph. * window.c
8582 (make_window): Initialize it.
8583 (replace_window): Ditto.
8584 * dispnew.c (free_window_matrices): Remove freeing of
8586 (check_matrix_invariants): Renamed from check_current_matrix_...
8587 * xterm.c: All references to phys_cursor_glyph changed.
8589 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
8591 * xfaces.c: Comment update.
8593 * window.h (struct window): Make phys_cursor_glyph a struct glyph
8594 pointer. Remove phys_cursor_ascent, descent, etc.
8595 * dispnew.c (free_window_matrices): Free it.
8596 * window.c (make_window): Allocate it.
8597 (replace_window): Ditto.
8598 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
8599 (x_display_and_set_cursor): Fill it.
8600 (x_phys_cursor_in_rect_p): Use it.
8601 (x_draw_hollow_cursor): Ditto.
8602 (x_draw_bar_cursor): Ditto.
8603 (x_erase_phys_cursor): Ditto.
8605 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
8607 * xterm.c (XTget_display_info): Handle 3D facess.
8608 (draw_glyphs): Ditto.
8610 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
8612 * xfaces.c (Fset_face_attribute_internal): New face attribute
8614 (copy_face): Handle shadow_thickness.
8616 (merge_faces): Ditto.
8617 (compute_base_face): Ditto.
8619 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
8620 (struct display_info): Ditto.
8621 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
8622 * xdisp.c (compute_cursor_face): Set it.
8623 (advance_display_cursor): Clear it.
8625 * xdisp.c (init_string_cursor): Initialize face_id to -1.
8626 (init_string_cursor): Init face_id to zero.
8628 * dispextern.h (struct face): New member shadow_thickness.
8630 * xdisp.c (compute_cursor_face): Set limit for text property
8633 * dispnew.c (update_window_line): Try to resynch with current line
8634 to prevent mode line flickering.
8636 1997-10-26 Gerd Moellmann <gerd@acm.org>
8638 * dispnew.c (set_window_cursor_after_update): React again
8639 on cursor_in_echo_area >= 0.
8641 * xdisp.c (echo_area_display): Clear desired matrix before
8643 (display_menu_bar): Clear glyph row instead of hoping it is not
8644 enabled. This is safer.
8646 * dispnew.c (check_current_matrix_invariants): Check only
8649 * xdisp.c (try_window_id): Handle window end setting in case of
8650 display to end of window, but only non-text lines displayed.
8652 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
8653 (check_current_matrix_invariants): Check used counts.
8657 * dispnew.c (scrolling): Use hash codes from rows.
8659 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
8661 * dispnew.c (scrolling_window): Invalidate conflicting runs.
8663 1997-10-25 Gerd Moellmann <gerd@acm.org>
8665 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
8666 * dispnew.c (update_window): Use it.
8667 (clear_glyph_matrix): Clear it.
8668 * xdisp.c (try_window_id): Set it.
8670 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
8672 * xdisp.c (redisplay_internal): Increment glyph positions differently.
8674 * dispextern.h: More comments etc.
8676 1997-10-24 Gerd Moellmann <gerd@acm.org>
8678 * dispnew.c (set_window_cursor_after_update): Set cursor
8679 for cursor_in_echo_area == 0 to (0, 0).
8681 * dispextern.h (struct glyph_row): New flags continuation_line_p
8682 and displays_text_p.
8683 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
8684 * xdisp.c (display_line): Set them.
8685 (try_window_id): Move to start of continuation line to find out
8686 continuation_line_width.
8687 (first_unchanged_current_row): Don't retract row if continued,
8690 * xterm.c: Map X coordinates.
8692 1997-10-23 Gerd Moellmann <gerd@acm.org>
8694 * dispnew.c (buffer_posn_from_coords): Translate X for right to
8697 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
8699 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
8701 * xdisp.c (try_window_id): clear desired matrix if not successul.
8703 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
8705 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
8706 Set this to functions to be called before/after window updates.
8707 (direct_output_for_insert): Call them.
8708 (update_window): Ditto.
8709 (update_frame): Call update_begin/ update_end for windows.
8711 * xterm.c (XTupdate_window_begin): Called before window updates.
8712 (XTupdate_end): Called after window updates.
8713 (x_initialize): Set hooks to above.
8715 * xdisp.c (init_display_info): Initialize c and len of
8718 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
8719 fonts more than once.
8721 1997-10-22 Gerd Moellmann <gerd@acm.org>
8723 * xdisp.c (display_line): Handle most common case of current_x <
8724 last_visible_x separately.
8726 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
8728 * dispnew.c (update_window_line): Compare pixel widths of glyphs
8729 so that face extending space doesn't compare equal to normal space
8732 * xdisp.c (display_line): Make sure we have a position for
8733 a line end in an otherwise blank line if face is extended.
8735 * dispnew.c (direct_output_for_insert): Increment row end position.
8737 * window.c (Fpos_visible_in_window_p): Use old meaning of
8740 * xdisp.c (init_display_cursor_from_glyph_pos): New.
8742 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
8744 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
8745 start and end positions in rows.
8746 (increment_glyph_row_buffer_positions): Stop adjusting at
8747 glyphs with positions <= 0.
8749 * dispextern.h (struct glyph_pos): Structure desribing a text
8750 position including position in overlay.
8751 (struct glyph_row): Use it for start and end positions.
8752 (struct display_cursor): Use it.
8754 (display_line): Set row start and end positions.
8756 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
8759 1997-10-21 Gerd Moellmann <gerd@acm.org>
8761 * dispnew.c (update_window): Add scrolling_window again. It's
8762 necessary for scroll_step != 0.
8764 * xdisp.c (redisplay_window): Use vmotion for scroll_step
8767 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
8769 * xterm.c (XTupdate_end): Flush only for messages.
8771 * xdisp.c (try_window_id): Assert last_unchanged_row >=
8772 first_unchanged_row.
8774 * xterm.c (XTupdate_end): Flush if miniwindow.
8776 * dispnew.c (matrix_row_last_pos): New function.
8777 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
8778 Large comment moved to xdisp.c.
8780 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
8781 (skip_via_matrix): Check window_end_valid instead of
8784 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
8785 (update_window): scrolling_window commented out. It has negative
8786 effect most of the time.
8788 * xdisp.c (try_window_id): Correct parameters to
8789 scroll_glyph_matrix_range.
8791 * xterm.c (XTupdate_end): XFlush commented out.
8793 * window.h: Comments for window_end_pos/vpos.
8795 * xdisp.c (skip_to): assert current_buffer is the buffer
8796 of the window in which we are skipping.
8798 * dispnew.c (update_window_line): Optimized clear_end_of_line.
8800 * xterm.c (draw_glyphs): Bug fix. Return window relative X
8803 1997-10-20 Gerd Moellmann <gerd@acm.org>
8805 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
8806 a face extending glyph.
8808 * xdisp.c (try_window_id): Check if point will appear.
8809 (set_cursor_from_row): Set cursor position from a glyph row.
8811 * dispnew.c (update_window_line): Write entire line if hash
8812 codes of lines differ.
8814 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
8815 if glyph row has an infinite width glyph at its end.
8817 * xdisp.c (last_unchanged_current_row): Respect partially visible
8818 lines when looking for the last row displaying text.
8819 (try_window_id): Handle partially visible lines better.
8821 1997-10-19 Gerd Moellmann <gerd@acm.org>
8823 * dispnew.c (update_window): Remove unused variable.
8824 (update_window_line): Simplified.
8826 * xterm.c (x_get_char_font_and_encoding): Handle most common
8827 case at the beginning.
8829 * xdisp.c (advance_display_cursor): Dispatch on method and
8830 order if statements by expected call frequency. Fixed unclosed
8833 * xdisp.c (try_window_id): New implementation.
8835 * dispnew.c (increment_glyph_row_buffer_positions): Capture
8836 rows displaying a line end, only.
8838 1997-10-18 Gerd Moellmann <gerd@acm.org>
8840 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
8842 1997-10-14 Gerd Moellmann <gerd@acm.org>
8844 * xdisp.c (display_line): Mark empty lines not corresponding to
8845 text with position -1.
8847 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
8848 not within window matrix bounds.
8850 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
8851 (struct display_info): NGLYPHS_TO_IGNORE removed.
8852 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
8856 * xdisp.c (init_display_cursor): Set it.
8857 (display_line): Use it to set W->REGION_SHOWING.
8859 * xdisp.c (skip_via_matrix): Check for overlay arrow.
8861 * region-cache.h: functino prototypes with PROTO.
8863 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
8865 * xdisp.c (skip_via_matrix): Check for rows that don't contain
8868 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
8869 rectangle based on minimum character bounds.
8871 * keyboard.c (make_lispy_event): mouse clicks; don't do frame
8872 glyph position calculations.
8873 (make_lispy_movement): Use buffer_posn_from_coords and window
8874 relative coordinates.
8876 * xterm.c (construct_mouse_click): Remove #if 0 case.
8878 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
8881 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
8884 (redisplay_window): Remove code skipping using current matrix.
8886 1997-10-13 Gerd Moellmann <gerd@acm.org>
8888 * xdisp.c (redisplay_window): Use available current matrix to
8889 skip faster when only point is moved withing the window.
8891 * intervals.c: Include stdio.h.
8892 (find_interval): Trace to stderr to catch some nasty error
8893 that did not yet occur again with tracing.
8896 * dispnew.c (shift_glyph_matrix): Experimental code for handling
8897 cursor positioning on partially visible lines.
8898 (set_window_cursor_after_update): Ditto.
8900 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): bug fix.
8902 * window.h (struct window): start_y removed.
8904 * window.c (make_window): start_y removed.
8905 (replace_window): Ditto.
8907 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
8908 descent values of the last line processed by skip_to.
8909 (redisplay_window): Use them.
8910 (skip_to): Set them.
8912 * dispextern.h (struct display_cursor): New member METHOD.
8914 * xdisp.c: Use function member METHOD.
8916 * xdisp.c (set_next_stop_pos): Determine next position at which to
8917 check for face properties, invisible text properties, and overlays.
8918 (compute_cursor_face): Use it.
8919 (get_overlays_for_cursor): Ditto.
8920 (reseat_cursor): Ditto.
8921 (next_display_element): Ditto.
8923 Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
8925 * termhooks.h: Some hooks with prototypes.
8927 * term.c: Some hooks with function prototypes.
8929 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
8930 computing face if possible.
8932 * xdisp.c (next_display_element): Use face from glyph from display
8935 * emacs.c: FreeBSD headers for profiling removed.
8937 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
8938 display cursor, use DEC_POS instread.
8940 * xfaces.c (load_font): Use x_load_font to load fonts so that
8941 all fonts are in the font table.
8942 (unload_font): Don't XFreeFont.
8944 * dispnew.c (row_equal_p): Compare ascent, descent and visible
8947 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
8948 (x_erase_phys_cursor): Clear only visible part of row.
8949 (x_draw_bar_cursor): Set clipping.
8950 (x_draw_hollow_cursor): Ditto.
8951 (x_display_and_set_cursor): Remove clipping.
8952 (expose_window_tree): Take trunc border into account.
8953 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
8954 (expose_window): Use it.
8956 * xdisp.c (display_string): Catch case that we are called with
8957 current_x already beyond max_x.
8958 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
8959 (init_display_info): Subtract vertical border glyph from
8962 * scroll.c (scrolling_window_1): Removed.
8964 * dispnew.c (adjust_frame_glyphs): Split into two functions,
8965 based on redisplay method used.
8966 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
8968 (adjust_frame_glyphs_for_window_redisplay): Part for purely
8969 window based redisplay.
8971 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
8974 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
8975 Handle own storage for purely window based redisplay.
8976 (allocate_matrices_for_frame_redisplay): Formerly part of
8978 (allocate_matrices_for_window_redisplay): Ditto.
8980 * dispextern.h (struct glyph_matrix): window_top_y,
8983 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
8984 and optimize some common cases of window changes.
8986 * emacs.c (main): Remove own profiling code because 0.95 now
8989 Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
8991 * xterm.c (XTupdate_end): Draw horizontal border at right
8993 (expose_window): Draw vertical border.
8994 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
8997 * xdisp.c (redisplay_internal): Set update_mode_line if paused
8998 for non full width windows only if not window redisplay.
9000 * dispnew.c (update_window_tree): Or paused_p return of called
9003 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
9006 * window.c (Fset_window_configuration): adjust_glyphs being
9008 (Fset_window_configuration): Set frame garbaged if not all
9009 leaf windows reused.
9011 1997-08-21 Gerd Moellmann <gerd@acm.org>
9013 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
9014 that rows should really be cleared. Used for current matrices.
9016 * dispnew.c (scrolling_window): Bug fix.
9017 (line_dance_hook): Formerly line_dance_fn, take only one
9020 * dispextern.h (struct run): Remove current_vpos.
9022 * xterm.c (do_line_dance): Only one parameter.
9024 * xdisp.c (display_line): set continued_p.
9026 * dispextern.h (struct glyph_row): New flag continued_p.
9027 Fix truncated_on_left_p and truncated_on_right_p to be bits.
9030 Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
9032 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
9033 when calling skip_to for continued lines.
9035 * dispnew.c (change_frame_size_1): Set frame garbaged.
9037 * xterm.c (expose_window): Check enabled_p of rows.
9039 * xdisp.c (redisplay_internal): Compare line heights before and
9040 now for redisplay optimization 2 (hit).
9041 (display_line): Set this_line_pixel_height.
9043 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
9045 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
9046 (do_line_dance): Simplified and pixel corrected.
9048 * dispnew.c (scrolling_window): Simplified.
9050 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
9052 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
9053 to mode line row->x.
9055 Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
9057 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
9058 override font of face.
9059 (draw_glyphs): Correct return value.
9060 (XTclear_end_of_line): Compare differently with output cursor
9062 (x_draw_hollow_cursor): 2 parameters, window and row.
9064 * dispnew.c (update_window_line): If rows have different height
9065 or y, write entire line.
9067 * xdisp.c (compute_line_metrics): reset max_ascent and max_descent
9070 * xfaces.c (Fset_face_attribute_internal): Don't call
9071 frame_update_line_height.
9072 (merge_faces): Don't use default font if new font has different
9075 Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
9077 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
9078 unknown. Some fonts have min_width zero.
9079 (draw_glyphs): Don't draw underlines to the end of the display
9080 line if face is merely extended to that point.
9081 (draw_glyphs): Don't assume background is filled if
9082 just_foreground_p but extending to end of line.
9084 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
9085 for partially visible last lines.
9086 (x_clip_to_row): Ditto.
9087 (x_clip_to_row): Clip to display_height-1 if y + line_height >
9088 display_height since line_height is really a line distance.
9089 (x_display_and_set_cursor): If cursor on padding glyph, use
9090 min_bounds pixel width.
9092 Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
9094 * xterm.c (x_clip_to_row): Height value was 1 too large.
9095 (XTclear_end_of_line): Clip to display area.
9097 * xfns.c (x_figure_window_sizes): Add trunc border width
9098 to frame pixel width.
9100 * xdisp.c (next_display_element): Don't display overlay strings
9101 within invisible text.
9102 (skip_vertically_backward): Skip display lines.
9104 Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
9106 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
9108 * xdisp.c (next_display_element): Next invisible
9109 text check position computed differently.
9111 * dispextern.h (struct display_cursor): last_invisible_text_pos
9112 and display_ellipsis_for_invisible_p removed.
9114 * xdisp.c (next_display_element): Set last_invisible_text_pos
9115 to the last position at which invisible text was found. Don't
9116 decrement cursor.pos for newlines and cr with ellipsis. Set
9117 dpvec for `...' due to invisible text directly.
9118 (redisplay_internal): Don't assert that cursor is at PT after
9119 skip_to. It may be in invisible text.
9121 * keyboard.c (make_lispy_event): For mouse clicks, use
9124 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
9125 next_overlay_pos is reached. Use limit cursor.pos + 100 when
9126 checking for invisible text.
9128 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
9130 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
9132 * xfns.c (x_contour_region): Use pixel coordinates from window
9133 cursor instead of WINDOW_TO_FRAME_H/VPOS.
9135 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
9138 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
9140 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
9142 (note_mouse_highlight): Use it.
9144 * xdisp.c (echo_area_display): Ignore calls for terminal frames
9145 under a window system.
9147 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
9149 (update_window_line): Add width of face padding glyph to
9150 displayed widths of rows.
9152 * xterm.c (x_display_and_set_cursor): Set clipping after
9155 * window.c (Fset_window_configuration): Free only those
9156 window matrices not reused.
9157 (get_leaf_windows): Build vector of leaf windows.
9158 Corrupted archive restored from v77.
9160 * xdisp.c (display_string): stop at >= last_visible_x if truncating
9161 like display_line does.
9163 * xdisp.c (display_mode_line): Don't hscroll mode line.
9165 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
9167 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
9168 garbage between mode lines when splitting windows horiz.
9170 * dispnew.c (direct_output_for_insert): Bug fix.
9172 * dispextern.h (struct display_cursor): New member string_length.
9174 * xdisp.c (next_display_element): Return padding spaces.
9175 (init_string_cursor): take precision and field_width
9176 (display_string): Use string cursor, skip over invisible text.
9178 Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
9180 * xterm.c (x_clip_to_row): Clip to partially visible lines.
9181 (x_display_and_set_cursor): Call it.
9182 (draw_glyphs): Call it
9183 (draw_bitmap): Call it.
9185 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
9186 (allocate_leaf_matrix): Return flags.
9187 (row_equal_p): Compare enabled_p.
9189 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
9192 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
9193 (draw_glyphs): Clip height one pixel taller.
9195 * dispnew.c (direct_output_for_insert): Give up for hscrolled
9198 * xdisp.c (display_line): don't scroll mini prompt.
9200 * xdisp.c (echo_area_display): Call update_single_window if
9203 * dispnew.c (update_window_line): Call scrolling_window.
9204 (scrolling_window): work on enabled desired lines only.
9205 (update_single_window): Update a single window like update_frame
9206 does for all windows.
9207 (update_window, update_window_tree): Additional argument
9209 (update_frame): Pass no_scrolling_p to update_window_tree.
9210 (update_window): Don't call scrolling_window if no_scrolling_p.
9212 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
9213 Erase under hollow cursor.
9214 (x_display_and_set_cursor): Do nothing if cursor glyph row
9215 not enabled. Draw bar cursor 1 pixel smaller.
9217 * dispnew.c (adjust_frame_glyphs): don't set frame garbaged
9218 since update will follow soon.
9220 * xdisp.c (echo_area_display): Unitialized variable.
9222 * xterm.c (draw_bitmap): previously draw_truncation; draw
9223 overlay arrow bitmap.
9225 * xdisp.c (display_line): for truncated lines, consider everything
9226 up to the final \n as part of the line for cursor positioning.
9228 * xterm.c (draw_truncation): take FRAME_X_TRUNC_WIDTH into account.
9229 (x_after_update_window_line): clear trunc marks.
9231 * xterm.h (FRAME_X_TRUNC_WIDTH).
9233 * frame.h (FRAME_TRUNC_WIDTH): width of area at the left margin
9234 of a window reserved for truncation mark.
9236 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
9238 * dispnew.c (update_window_line): Call after_update_windwo_line-
9241 * xdisp.c (display_line): Set overlay_arrow_p in row.
9243 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
9245 * xterm.c (x_after_update_window_line): Draw truncation marks.
9247 * xdisp.c (display_line): Insert truncation for lines with
9250 * xterm.c (x_draw_row_borders): Convert y to frame coords.
9252 (x_display_cursor): Use default font width if width not
9255 * xdisp.c (echo_area_display): set row->y.
9257 * dispnew.c (set_window_cursor_after_update): Don't assume
9258 all rows are enabled.
9260 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
9262 (skip_in_display_line_to): Check cursor.position after call to
9263 next_display_element.
9265 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
9268 * xdisp.c (display_line): Set row->y here.
9269 (skip_in_display_line_to): Test for to_pos after all glyphs
9270 have been added to hpos so that hpos is at the end of all
9272 (start_display): Remove assertion.
9274 * dispnew.c (direct_output_forward_char): Bug fix, = instead of
9276 (update_window): Don't set row->y here.
9278 * xdisp.c (next_display_element): Don't translate control chars
9279 from display table entries.
9281 * dispnew.c (direct_output_for_insert): Set cursor before
9282 update end to prevent cursor flickering. Revert changes to
9283 setting cursor.endpos.
9285 Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
9287 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
9288 to PT because this prevents multi-byte characters from being
9291 * xdisp.c (skip_to, display_line): Advance cursor at end of
9294 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
9295 replaced by XRectangle.
9297 * dispnew.c (scrolling_window): New method.
9299 * xterm.c (do_line_dance): New implementation, new method.
9301 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
9302 visible part of line.
9304 * dispnew.c (update_window_line): Fill inverse video lines
9305 with infinite width space.
9306 (update_window): Handle completely empty matrices.
9307 (set_window_cursor_after_update): Bug fix.
9309 * xterm.c (draw_glyphs): Stop drawing at right window end.
9311 * dispnew.c (update_window_line): Don't ignore spaces, don't
9314 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
9315 the first glyph having width 0.
9317 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
9318 a glyph that extends to the end of the line.
9320 * xdisp.c (display_line): Insert one padding glyph
9322 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
9323 amount from info.current_x.
9324 (display_line): Ditto.
9326 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
9327 (change_frame_size_1): Correct cursor.x if frame gets too small.
9328 (update_window_line): Start at row->x.
9330 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
9333 * xterm.c (set_output_cursor): Use window relative X/Y.
9334 (global): Use window relative output cursor x/y.
9335 (draw_glyphs): Remove y param. Pass window relative x/y.
9337 * dispnew.c (update_window): Start rows at start_y.
9338 (update_window): Don't try scrolling because it wouldn't work
9339 with variable height lines, anyway.
9341 * dispextern.h (struct glyph_row): Remove shift_left_by,
9344 * window.h: (struct window): New member start_y.
9346 * window.c (replace_window): Initialize start_y.
9347 (make_window): Ditto.
9349 Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
9351 * xterm.c (draw_glyphs): Clip rows that would paint over
9354 * dispnew.c (update_window): Take mode line border into
9357 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
9358 of border around mode line.
9360 * xterm.c (x_draw_row_borders): Bug fix.
9361 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
9364 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
9365 around modeline instead of inverting it.
9367 * xterm.c (glyph_to_pixel_coords): Use current matrix.
9369 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
9370 window relative pixel coordinates as arguments.
9372 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
9373 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
9374 COORDS mit new arguments.
9376 Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
9378 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
9381 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
9383 (make_lispy_movement): Same.
9385 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
9386 with new parameter meaning.
9388 * window.c (Fcoordinates_in_window_p): Convert Lisp params
9389 from canon units to pixels.
9390 (coordinates_in_window): Pixel based.
9391 (Fcoordinates_in_window_p): Convert result pixel values back
9394 * window.h: phys_cursor_ascent + descent instead of height.
9396 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
9397 chars with charset width 1.
9399 * dispnew.c (direct_output_for_insert): Set updated_row.
9401 Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
9403 * dispextern.h (struct glyph): Padding flag removed.
9405 Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
9407 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
9409 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
9411 * dispnew.c (update_window_line): Use pixels.
9413 * xdisp.c (compute_line_metrics): Correct pixel_width by
9416 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
9417 removed. Remove references to it everywhere. Reverse_p in
9418 glyph_row -> right_to_left_p. Change references to it.
9420 Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
9422 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
9424 * xterm.c (XTinsert_glyphs): Implement it.
9426 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
9427 of a call from DIRECT_OUTPUT_FOR_INSERT.
9429 * window.h (struct cursor_pos): Keeps both matrix positions
9430 and pixel positions.
9431 (struct window): Use it.
9433 * dispnew.c (direct_output_for_insert): New version.
9435 * xdisp.c (redisplay_internal): Don't do anything if it has
9436 already be done directly.
9438 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
9441 Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
9443 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
9445 Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
9447 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
9448 (struct glyph): ASCENT, DESCENT.
9449 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
9450 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
9452 * xterm.c (XTget_display_info): Correct tab computation.
9454 * term.c (get_display_info): Correct tab computation.
9456 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
9457 Renamed from CHAR_CURSOR.
9459 Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
9461 * xdisp.c (display_text_line): Mostly pixel oriented.
9463 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
9465 * term.c (append_intermediate_glyph): Generate padding glyphs.
9467 * xdisp.c (display_text_line): More into final direction.
9469 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
9470 (XTget_char_info): Use tabs as multiples of spaces.
9472 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
9473 Use tabs as multiples of spaces.
9475 * dispextern.h (struct char_info ): WHAT field.
9477 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
9478 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
9480 Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
9482 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
9484 (init_char_info): Initialize with glyph row.
9486 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
9488 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
9490 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
9493 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
9496 * xdisp.c (display_text_line): Use CHAR_CURSOR.
9498 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
9500 (XTget_char_info): Ditto.
9502 * term.c (get_char_info): Intermediate glyph generation.
9503 (append_intermediate_glyph): Ditto.
9505 Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
9507 * dispnew.c (compute_char_cursor_face): Compute the face for a
9509 (init_char_cursor): Initialize a CHAR_CURSOR.
9510 (get_char_and_advance): Get next character to display.
9512 * dispextern.h (struct char_cursor): Cursor for iterating over
9513 display text of CURRENT_BUFFER.
9515 Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
9517 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
9519 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
9520 New member MAX_PIXEL_HEIGHT.
9522 * xterm.c (x_per_char_metric): Get per character metrics.
9523 (XTget_char_info): More cases covered.
9525 * term.c (get_char_and_info): Get next character and character
9526 display information.
9527 (get_char_info): Get character display information.
9529 * dispextern.h: Character display information.
9531 * xterm.c (x_get_char_font_and_encoding): Get font and
9533 (XTget_char_info): Get display information about a character.
9535 Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
9537 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
9538 zero if window is mini-window.
9540 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
9541 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
9543 * dispnew.c (assign_row): Assign row pixel height.
9544 (clear_glyph_row): Clear pixel height.
9545 (update_window): Use PIXEL_HEIGHT.
9547 * xdisp.c (display_string): Set row pixel height temporarily.
9548 (display_text_line): Ditto.
9550 * dispextern.h (GLYPH_PIXEL_WIDTH):
9551 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
9553 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
9554 line in default font.
9555 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
9557 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
9559 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
9562 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
9564 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
9565 (WINDOW_DISPLAY_PIXEL_HEIGHT):
9566 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
9567 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
9568 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
9569 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
9570 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
9571 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
9572 pixel values related to windows.
9574 Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
9576 * xterm.c (XTflash): Flash last line of frame.
9578 * dispextern.h (cursor_in_echo_area): Extern declaration.
9580 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
9581 freezes stem from 16-bit functions.
9583 * xterm.c (x_display_and_set_cursor): Don't display hollow
9584 cursor in mini windows.
9586 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
9587 (make_window): Ditto.
9589 * xterm.c (x_erase_phys_cursor): Erase cursor image.
9590 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
9591 and X_DISPLAY_BAR_CURSOR.
9592 (x_display_cursor): Use it.
9593 (x_update_window_cursor): Use it.
9595 * xdisp.c (display_text_line): Set cursor for window even if not
9598 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
9599 of X and Y to denote matrix positions.
9600 (x_display_cursor): Ditto.
9602 * dispnew.c (scrolling_window): Scrolling for windows.
9604 Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
9606 * dispnew.c (build_frame_matrix): Work on windows with update
9608 (build_frame_matrix_from_window_tree): Ditto.
9609 (build_frame_matrix_from_leaf_window): Ditto.
9611 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
9612 building frame matrix.
9613 (redisplay_internal): Set window update flags instead of
9614 building frame matrix.
9616 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
9617 building frame matrix.
9619 * window.c (make_window): Initialize new members.
9620 (replace_window): Ditto.
9622 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
9623 I don't believe this is really necessary.
9625 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
9628 Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
9630 * window.c (mark_window_cursors_off): Mark all cursors in
9633 * xterm.c (x_display_box_cursor): Window paraemter. Use
9635 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
9636 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
9637 (x_update_cursor): Work on windows.
9638 (x_display_bar_cursor): Ditto.
9639 (x_draw_single_glyph): Ditto.
9641 * xterm.h: Prototype for X_DISPLAY_CURSOR.
9643 * xterm.c (XTcursor_to): Void return type. Test for
9644 UPDATED_WINDOW. Call x_display_cursor with window.
9645 (x_display_cursor): Void return type. Window instead of frame
9648 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
9651 * window.c (window_rightmost_p, window_topmost_p): Based on
9654 * dispnew.c (adjust_frame_message_buffer): Allocate with
9655 FRAME_MESSAGE_BUF_SIZE.
9657 * window.h: PHYS_CURSOR_.* added.
9659 * frame.h (struct frame): Cursor information removed.
9661 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
9662 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
9664 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
9666 * window.c (window_internal_width): Scroll bars no longer
9669 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
9672 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
9675 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9676 (redisplay_internal): Ditto.
9677 (redisplay_window): Ditto.
9678 (redisplay_window): Ditto.
9679 (display_text_line): Ditto.
9680 (display_mode_line): Ditto.
9682 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9684 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
9685 (direct_output_for_insert): Ditto.
9686 (direct_output_forward_char): Ditto.
9687 (update_frame_1): Ditto.
9689 Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
9691 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
9693 (update_window): Set and clear it.
9695 * dispnew.c (update_window_line, update_window, scrolling_window):
9698 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
9699 bar for window borders.
9700 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
9702 (fill_up_glyph_row_with_spaces): Call above function.
9704 * xdisp.c (display_text_line): Don't add vertical bar for
9706 (display_string): Ditto.
9708 * window.c (make_window): Init CURSOR_VPOS/HPOS.
9709 (replace_window): Ditto.
9711 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
9713 * xfns.c (Fx_contour_region): Use selected window cursor position.
9714 (Fx_uncontour_region): Ditto.
9715 (Fx_select_region): Ditto.
9717 * frame.c (make_frame): Remove CURSOR_X/Y.
9719 * xdisp.c (redisplay_internal): Use window cursor position.
9721 * dispnew.c (update_frame_1): Use cursor position of selected
9723 (change_frame_size_1): Ditto.
9725 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
9726 (XTwrite_glyphs): Use cursor position of selected window.
9728 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
9731 * dispnew.c (set_cursor_to): Set window cursor position.
9732 (direct_output_for_insert): Use window cursor position.
9733 (init_display): Don't use frame cursor position.
9735 * window.h: CURSOR_VPOS/HPOS added.
9737 * frame.h (struct frame): CURSOR_X/Y removed.
9738 (FRAME_CURSOR_X): Removed.
9739 (FRAME_CURSOR_Y): Ditto.
9741 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
9742 (direct_output_forward_char): Ditto.
9744 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
9747 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
9749 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
9751 Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
9753 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
9754 of FRAME_LEFT_SCROLL_BAR_WIDTH.
9756 * dispextern.h: Changed function names.
9758 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
9760 (clear_window_matrices): Formerly two functions for desired
9762 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
9763 (update_frame): Return return value from UPDATE_FRAME_1.
9765 Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
9767 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
9770 * frame.c (set_menu_bar_lines): Adjust matrices.
9772 * dispnew.c (set_cursor_to): Set cursor position.
9774 * minibuf.c (read_minibuf): Build frame matrix.
9776 * xdisp.c (this_line_start_hpos): Renamed to
9777 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
9779 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
9782 * dispnew.c (build_frame_matrix): Don't clear rows of the
9784 (clear_window_records): Clear window rows.
9785 (clear_frame_records): Clear window and frame rows.
9786 (clear_glyph_matrix): Set all rows of a matrix to empty.
9788 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P. Update
9790 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
9792 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
9793 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
9795 * dispnew.c (assign_row): Assign one glyph row to another.
9796 (mirrored_make_current): Use it.
9797 (mirror_make_current): Use it.
9798 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
9799 used counters for the current glyph row.
9802 Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
9804 * lisp.h: Prototype for SCAN_BUFFER.
9806 * xdisp.c (redisplay_windows): Simplified.
9808 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
9810 (window_to_frame_hpos): Convert window to frame hpos with checks.
9811 (frame_to_window_vpos): Convert frame to window vpos with checks.
9812 (frame_to_window_hpos): Convert frame to window hpos with checks.
9814 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
9816 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
9818 * xdisp.c (redisplay_internal): Another instance of
9819 DISPLAY_TEXT_LINE with window relative VPOS.
9820 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
9822 * dispnew.c (init_desired_glyphs): Do it on window matrices,
9825 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
9826 (redisplay_internal): Ditto.
9828 * dispnew.c (cancel_window_line): Use window matrix. Changed
9829 name to CANCEL_WINDOW_LINE.
9831 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
9834 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
9836 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
9837 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
9838 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
9840 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
9841 window relative VPOS.
9842 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
9845 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
9846 MATRIX_BUFFER_POSITIONS.
9848 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
9850 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
9852 * dispnew.c (scroll_frame_lines): Make it work on window
9853 matrix. Change name to scroll_full_width_window.
9855 * xdisp.c (message2_nolog): Don't fwrite NULL message If
9858 Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
9860 * dispnew.c (init_desired_glyphs): Clear both frame matrix
9861 and window matrices.
9862 (adjust_window_charstarts): Use window matrix.
9863 (cancel_my_columns): Use window matrix.
9864 (direct_output_for_insert): Use window matrix, only.
9866 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
9867 (display_string): Call display_glyphs.
9868 (display_menu_bar_string): Display a string in a menu bar line.
9869 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
9870 (display_text_line): Use window matrix.
9871 (try_window): Use window relative positions.
9873 Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
9875 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
9877 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
9880 * window.h (WINDOW_TOPMOST_P): Added.
9882 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
9883 (redisplay_window): Ditto.
9884 (display_text_line): Ditto.
9885 (display_menu_bar): Ditto.
9886 (display_mode_line): Ditto.
9887 (display_mode_line): Use window matrix.
9888 (display_string): Use window matrix.
9889 (display_mode_element): Ditto.
9890 (echo_area_display): Don't display if frame has no pools yet.
9891 (echo_area_display): Work with window matrix for mini window.
9892 (redisplay_window): Use window marix for mini window.
9893 (display_text_line): Assume HPOS and VPOS are window relative and
9894 use that for DISPLAY_STRING.
9896 * dispextern.h: Prototype for prepare_desired_row.
9898 * dispnew.c (prepare_desired_row): Replacement for
9901 * dispnew.c (adjust_window_charstarts): Always allocate window
9903 (clear_glyph_row): Only reset used counters and flags.
9905 Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
9907 * dispnew.c (scroll_frame_lines): Don't assume first scolled
9909 (realloc_glyph_pool): Don't add 1 to the pool size.
9910 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
9912 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
9913 (line_draw_cost): Ditto.
9914 (update_line): Ditto.
9915 (update_line): Use SPACE_GLYPH.
9916 (count_blanks): Additional parameter LEN.
9918 * xdisp.c (display_text_line): Use SPACE_GLYPH.
9919 (display_text_line): Don't add null-glyph end marker.
9920 (display_string): Use SPACE_GLYPH.
9921 (display_string): Don't use null-glyph end marker.
9923 * term.c (clear_end_of_line): Use SPACE_GLYPH.
9925 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
9926 (fill_up_glyph_row_with_spaces): Ditto.
9927 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
9928 rows, instead of null-glyphs.
9929 (direct_output_for_insert): Don't add null-glyph end marker.
9931 * scroll.c (do_direct_scrolling): Change algorithm to construct
9932 vector of lines assigned. Call MIRRORED_LINE_DANCE:
9933 (do_scrolling): Ditto.
9935 * dispnew.c (mirror_line_dance): Mirror line assignments in a
9936 frame matrix in window matrices.
9937 (mirrored_line_dance): Do line assignments during scrolling.
9938 Maybe do corresponding assignments in window matrices.
9939 (check_window_matrix_pointers): Check that window rows and frame
9940 rows agree about glyph pointers.
9941 (check_matrix_pointers): Ditto.
9942 (mirrored_make_current): Make a row of a desired matrix current;
9943 maybe mirror the operation in window matrices.
9944 (mirror_make_current): Make window desired matrix row current when
9945 frame matrix row was made current.
9947 Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
9949 * dispnew.c (check_matrix_pointer_lossage): Check against
9950 pointer lossage in matrices.
9951 (get_glyph_matrix_row): Removed.
9953 * scroll.c (do_scrolling): Simplified.
9954 (do_direct_scrolling): Simplified.
9955 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
9959 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
9960 (rotate_vector): Removed.
9961 (rotate_pointers): Removed.
9962 (scroll_frame_lines): Simplified.
9964 Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
9966 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
9968 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
9970 (clear_glyph_row): Make a glyph row structure empty.
9971 (make_matrix_row_current): Make a glyph row current.
9972 (make_window_matrix_row_current): Perform analogous row swaps
9973 for window matrices.
9974 (update_line): Call make_matrix_row_current.
9976 Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
9978 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
9979 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
9981 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
9982 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
9984 * all files: use above new names.
9986 * dispnew.c (scroll_frame_lines): Simplified. Use
9987 SCROLL_GLYPH_MATRIX.
9988 (make_glyph_row_empty): Mark a glyph row empty.
9989 (increment_glyph_row_buffer_positions): Increment
9990 buffer positions in a glyph row.
9991 (increment_glyph_matrix_buffer_positions): Increment buffer
9992 positions in a range of rows.
9993 (scroll_glyph_matrix): Scroll a glyph matrix.
9994 (swap_glyphs_in_rows): Swap glyphs between rows.
9995 (swap_glyph_pointers): Swap pointers between rows.
9996 (glyph_row_slice_p): Return 1 if one row is a slice of another.
9997 (init_display): Initialize SPACE_GLYPH.
9998 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
10001 Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
10003 * xterm.c (dumprectangle): Use vectors in glyph rows.
10005 * xdisp.c (display_text_line): Use vectors in glyph rows.
10006 (display_string): Ditto.
10008 * scroll.c (do_scrolling): Use vectors in glyph rows.
10009 (do_direct_scrolling): Ditto.
10011 * alloc.c (mark_object): Use vectors in glyph rows.
10012 Mark for all frame types.
10014 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
10016 (get_glyph_matrix_row): Ditto.
10017 (matrix_row): Ditto.
10018 (rotate_pointers): Ditto.
10019 (scroll_frame_lines): Ditto.
10020 (preserve_other_columns): Ditto.
10021 (cancel_my_columns): Ditto.
10022 (update_line): Ditto.
10023 (direct_output_for_insert): Ditto.
10025 * dispextern.h (struct glyph_row): Use a vector of pointers
10026 instead of individual members. Use a vector of used counters.
10027 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
10028 (MATRIX_ROW_GLYPH_START): Ditto.
10029 (MATRIX_ROW_GLYPH_END): Ditto.
10030 (MATRIX_ROW_USED): Ditto.
10031 (MATRIX_ROW_SET_USED): Ditto.
10033 * dispnew.c (line_hash_code): Simplified.
10035 Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
10037 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
10038 CHANGE_FRAME_SIZE_1
10039 (preserve_other_columns): Void return.
10040 (cancel_my_columns): Void return type.
10041 (scrolling): Int return type.
10042 (do_pending_window_change): Void return type.
10043 (change_frame_size): Ditto.
10044 (bitch_at_user): Ditto.
10045 (init_display): Ditto.
10046 (syms_of_display): Ditto.
10048 * dispextern.h: add prototypes for REDRAW_FRAME,
10049 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
10050 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
10051 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
10052 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
10053 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
10054 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
10055 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
10057 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
10059 (cancel_line): Return void.
10060 (clear_frame_records): Return void.
10062 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
10063 (SET_CHAR_GLYPH): Fill a character glyph.
10064 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
10065 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
10067 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
10068 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
10069 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
10070 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
10071 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
10072 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
10073 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
10074 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
10075 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
10077 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
10079 * window.h (struct window): Add comment that no Lisp data may
10080 come below CURRENT_MATRIX.
10082 * alloc.c (mark_object): Change window mark code to stop with
10083 member CURRENT_MATRIX.
10085 Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
10087 * scroll.c (do_scrolling): Change algorithm to use pointers.
10088 (do_direct_scrolling): Ditto.
10090 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
10091 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
10092 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
10093 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
10094 Returns 1 if pool changed.
10095 (matrix_row): Additional check for lost pointers to glyph rows.
10096 (compute_matrices): Additional parameter DIM_P set means that no
10097 allocation should take place. Addtional parameter
10098 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
10099 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
10100 when window matrix changes. Additional parameter DIM_ONLY_P set
10101 to 1 to indicate that no allocation should take place.
10102 (adjust_frame_glyphs): Construct new glyph pools and glyph
10103 matrices. Optimize frame redraws.
10104 (free_glyphs): Free pools.
10105 (check_glyph_memory): Check pools not freed.
10106 (rotate_pointers): Rotate pointers in a vector of glyph rows.
10107 (scroll_frame_lines): Change algorithm to use pointers.
10108 (update_line): Ditto.
10110 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
10111 (global): All macro names changed from prefix FRAME_MATRIX to
10114 Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
10116 * dispextern.h (struct glyph_pool): Replacement for former
10117 FRAME_GLYPH_MATRIX.
10118 (struct glyph_matrix): No longer contains sizes of allocated
10121 * xdisp.c (redisplay_internal): Don't redisplay if frame has
10124 * frame.c (make_frame): Initialize pools.
10126 Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
10128 * scroll.c (do_direct_scrolling): Don't assume that the
10129 line moving algorithm has no intermediate steps.
10130 (do_scrolling): Ditto.
10132 * Makefile.in (alloc.o): Add dependency dispextern.h.
10134 * alloc.c: Include dispextern.h for glyph definitions.
10136 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
10137 is legal, return 0 otherwise.
10139 * window.h: Add comment that windows are marked specially.
10141 * alloc.c (mark_object): Mark windows specially.
10144 Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
10146 * dispextern.h (struct glyph): Add member OBJECT
10147 referencing a Lisp object from which a glyph was drawn.
10148 Member TEXT_POSITION renamed POSITION.
10149 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
10151 * alloc.c: Include dispextern.h
10152 (mark_object): Mark objects referenced from glyphs.
10154 * frame.c (make_frame): initialize DECODE_MODE_SPEC_BUFFER.
10156 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
10157 (do_scrolling): Ditto.
10159 * frame.h (struct frame): TEMP_MATRIX removed.
10160 DECODE_MODE_SPEC_BUFFER added.
10162 * window.h: TEMP_MATRIX removed.
10164 * scroll.c: OPHYS_LINES removed.
10166 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
10167 FRAME_PTR -> struct frame *.
10169 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
10170 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
10172 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
10173 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
10175 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
10176 (do_verify_charstarts): Removed.
10178 * frame.c (Fmake_terminal_frame): Adjust glyphs.
10179 (Fdelete_frame): Free glyphs.
10180 (make_frame): Initialize matrix fields in frame.
10182 * config.in (PROTO): added.
10184 * emacs.c (shut_down_emacs): check glyph memory.
10186 * window.c (Fdelete_window): Free window matrices.
10187 (Fset_window_configuration): Ditto.
10188 (Fdelete_window): Adjust glyphs.
10189 (Fsplit_window): Ditto.
10190 (change_window_height): Ditto.
10191 (Fset_window_configuration): Ditto.
10192 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
10193 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
10195 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
10197 * window.c: Include dispextern.h
10199 * scroll.c (do_scrolling): Use new glyphs.
10200 (do_direct_scrolling): Ditto.
10202 * xdisp.c: Some function prototypes.
10203 (redisplay_internal): Don't do anything if matrices not yet set.
10204 (redisplay_internal): Use new glyphs.
10205 (try_window_id): Ditto.
10206 (copy_part_of_rope): Ditto.
10207 (display_text_line): Ditto.
10208 (display_menu_bar): Ditto.
10209 (display_mode_line): Ditto.
10210 (display_string): Ditto.
10212 * xterm.c: Prototypes for some local functions.
10213 (dumpglyphs): Use new glyphs.
10214 (XTwrite_glyphs): Ditto.
10215 (dumprectangle): Ditto.
10216 (note_mouse_highlight): Ditto.
10217 (fast_find_position): Ditto.
10218 (show_mouse_face): Ditto.
10219 (x_draw_single_glyph): Ditto.
10220 (x_display_bar_cursor): Ditto.
10221 (x_display_box_cursor): Ditto.
10222 (x_new_font): Adjust glyphs when font change.
10224 * term.c (clear_end_of_line): Use new glyphs.
10225 (write_glyphs): Ditto.
10226 (insert_glyphs): Ditto.
10228 * Makefile.in (term.o): term.c depends on dispextern.h
10230 * term.c: Include dispextern.h
10232 * dispnew.c (direct_output_forward_char): Old glyph functions
10233 removed, new inserted.
10234 (line_hash_code): Use new glyphs.
10235 (line_draw_cost): Ditto
10236 (cancel_line): Ditto
10237 (clear_frame_records): Ditto.
10238 (init_desired_glyphs): Ditto.
10239 (get_display_line): Ditto
10240 (scroll_frame_lines): Ditto.
10241 (preserve_other_columns): Ditto.
10242 (adjust_window_charstarts): Ditto.
10243 (cancel_my_columns): Ditto.
10244 (direct_output_for_insert): Ditto.
10245 (update_frame): Ditto.
10246 (quit_error_check): Made empty.
10247 (scrolling): Use new glyphs.
10248 (count_blanks): Ditto.
10249 (count_match): Ditto.
10250 (update_line): Ditto.
10251 (init_display): Adjust glyphs initially.
10252 (change_frame_size_1): Adjust glyphs.
10254 * dispextern.h: Old glyphs removed, new added.
10256 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
10258 * xterm.h: Prototype for min_char_bounds.
10260 * window.h (struct window): Remove old glyphs, add new.
10262 * frame.h (struct frame): Remove old glyphs, add new.
10264 1999-07-20 Dave Love <fx@gnu.org>
10266 * buffer.c (syms_of_buffer): Make
10267 default-enable-multibyte-characters a user variable.
10269 1999-07-14 Richard Stallman <rms@gnu.org>
10271 * Version 20.4 released.
10273 1999-07-14 Richard Stallman <rms@gnu.org>
10275 * filelock.c (lock_file): Do nothing if purifying.
10277 1999-07-10 Richard Stallman <rms@gnu.org>
10279 * xterm.c (x_display_bar_cursor): Use the cursor-color
10280 to display the bar, not the cursor foreground pixel.
10282 1999-07-09 Andrew Innes <andrewi@gnu.org>
10284 * w32console.c (w32_use_full_screen_buffer): New variable.
10285 (syms_of_ntterm): Register it.
10286 (initialize_w32_display): Set initial frame size accordingly,
10287 respecting the LINES and COLUMNS environment variables if set.
10289 * w32inevt.c (w32_console_read_socket): Use it.
10291 1999-07-07 Kenichi Handa <handa@etl.go.jp>
10293 * callproc.c (Fcall_process): Decide coding system for decoding
10294 after we set to the target buffer. If the output goes to a
10295 unibyte buffer, suppress character code conversion.
10297 * fileio.c (Finsert_file_contents): If reading into a unibyte
10298 buffer, suppress character code conversion.
10300 * process.c (create_process): If the output goes to a unibyte
10301 buffer, suppress character code conversion.p
10303 1999-07-07 Andreas Schwab <schwab@gnu.org>
10305 * xdisp.c (line-number-display-limit): Doc fix.
10307 1999-07-05 Richard Stallman <rms@gnu.org>
10309 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
10310 (Fcall_process_region): Likewise.
10312 1999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
10314 * callproc.c (init_callproc): Set exec_directory if
10315 installation_directory is non-nil, without a test of exec_path.
10317 1999-07-01 Andrew Innes <andrewi@gnu.org>
10319 * w32xfns.c (drain_message_queue): New function.
10321 * w32term.h (drain_message_queue): Add extern.
10323 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
10324 of WaitForMultipleObjects when user input is allowed, so we can
10325 handle incoming window messages. Call drain_message_queue when
10326 there are messages waiting; this ensures that windows created
10327 indirectly from the lisp thread get processed properly, and don't
10328 hang other applications by failing to respond to broadcasts.
10330 1999-07-01 Andreas Schwab <schwab@gnu.org>
10332 * callint.c (Fcall_interactively): Ignore first element of
10333 event-symbol-elements property.
10335 1999-07-01 Richard Stallman <rms@gnu.org>
10337 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
10339 1999-07-01 Kenichi Handa <handa@etl.go.jp>
10341 * minibuf.c (read_minibuf): Set the multibyteness of the
10342 minibuffer before inserting `initial' string.
10344 1999-06-30 Richard Stallman <rms@gnu.org>
10346 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
10348 1999-06-29 Richard M. Stallman <rms@gnu.org>
10350 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
10351 Move the handling of MALLOC_CHECK_ envvar here.
10352 (main): Moved from here.
10354 1999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
10356 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
10357 function, assigned to the global __malloc_initialize_hook pointer.
10358 (main): Move malloc_set_state call into malloc_initialize_hook
10359 so that it happens as early as possible.
10361 1999-06-27 Richard M. Stallman <rms@gnu.org>
10363 * keyboard.c (read_key_sequence): Properly reinitialize
10364 fkey_map after translating thru Vkey_translation_map.
10365 After translating thru Vfunction_key_map, don't reset
10366 keytrans-start to 0.
10368 1999-06-24 Geoff Voelker <voelker@cs.washington.edu>
10370 * w32.c (get_emacs_configuration): Use GetVersionEx to
10371 handle NT5.0 correctly. Include build number in configuration.
10372 w32heap.c (osinfo_cache): New variable.
10373 (cache_system_info): Initialize osinfo_cache.
10374 w32heap.h (osinfo_cache): Declare.
10376 1999-06-24 Richard M. Stallman <rms@gnu.org>
10378 * casefiddle.c (casify_object): Use make_multibyte_string
10379 if we casify a multibyte string.
10381 1999-06-22 Ken'ichi Handa <handa@gnu.org>
10383 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
10384 del_range_byte instead of del_range_1, set `inserted' to the
10385 number of characters actually inserted.
10387 1999-06-17 Dave Love <fx@gnu.org>
10389 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
10391 1999-06-18 Paul Eggert <eggert@twinsun.com>
10393 * filelock.c (BOOT_TIME_FILE): New macro.
10394 (get_boot_time): Use it instead of hardwiring the file name.
10395 Check BOOT_TIME_FILE only after inspecting the kernel directly.
10397 1999-06-17 Dave Love <fx@gnu.org>
10399 * xdisp.c (invalid_eol_type): Make it unsigned.
10401 1999-06-17 Karl Heuer <kwzh@gnu.org>
10403 * process.c (send_process): Delete unsafe/redundant assignment.
10405 1999-06-17 Jason Rumney <jasonr@gnu.org>
10407 * w32term.c (dumprectangle): Handle wide characters properly.
10409 1999-06-16 Andrew Innes <andrewi@gnu.org>
10411 * s/ms-w32.h (strerror): Override the default implementation of
10412 strerror, so we can map winsock error codes.
10414 * w32.c (sys_strerror): New function.
10416 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
10418 1999-06-15 Ken'ichi Handa <handa@gnu.org>
10420 * buffer.c (syms_of_buffer): Don't make
10421 enable-multibyte-characters customizable.
10423 1999-06-15 Richard M. Stallman <rms@gnu.org>
10425 * editfns.c (Fuser_full_name): Doc fix.
10427 1999-06-14 Tak Ota <ota@atc.sel.sony.com>
10429 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
10430 (get_bitmap_with_cache): Check if CreateBitmap failed.
10431 Adjust cache size dynamically so cache is never larger than the
10432 system limit of GDI resources.
10433 Do cache clearing inline. Move global variables to local scope.
10436 1999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
10438 * unexsgi.c (unexec): Dump the .rodata section from memory
10439 under IRIX6.5 in order to be able to unexec with gcc.
10441 1999-06-11 Greg Hudson <ghudson@MIT.EDU>
10443 * indent.c (compute_motion): Fix boundary case.
10445 1999-06-11 Jason Rumney <jasonr@altavista.net>
10447 * w32term.c (cancel_mouse_face): New function. See equiv
10448 changes to xterm.c on 1996-10-31.
10449 (x_set_window_size): Use cancel_mouse_face.
10450 (w32_read_socket): Use cancel_mouse_face.
10451 Update frame position when size is restored.
10453 1999-06-04 Richard M. Stallman <rms@gnu.org>
10455 * lread.c (Vuser_init_file): New variable.
10456 (syms_of_lread): Set up Lisp variable.
10457 (Fload): Store the file name there, if var was t before.
10459 1999-06-04 Paul Eggert <eggert@twinsun.com>
10461 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
10462 doesn't work if the system date is changed, or if the system
10463 is suspended. Look at the last-modified time of
10464 /var/run/random-seed instead.
10466 1999-06-03 Ken'ichi Handa <handa@gnu.org>
10468 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
10469 japanese-jisx0208-1978 correctly.
10471 1999-06-03 Andrew Innes <andrewi@gnu.org>
10473 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
10474 as possible to be dumped, for safety.
10476 1999-06-02 Ken'ichi Handa <handa@gnu.org>
10478 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
10479 latin-jisx0201 correctly.
10481 1999-05-26 Ken'ichi Handa <handa@gnu.org>
10483 * charset.h (Vcharset_table): Comment fixed.
10485 1999-05-24 Richard Stallman <rms@gnu.org>
10487 * coding.c (syms_of_coding): Doc fix.
10489 * buffer.c (syms_of_buffer): Doc fix.
10491 * filelock.c (lock_if_free): After deleting a stale lock,
10492 try again to lock the file.
10494 1999-05-22 Andrew Innes <andrewi@gnu.org>
10496 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
10497 console window size.
10498 (w32_console_read_socket): Call maybe_generate_resize_event
10499 whenever input events are received, since we don't get told when
10500 the window size changes (as opposed to the buffer size, which we
10503 * w32console.c (clear_frame): Remember that the window width might
10504 be smaller than the screen buffer width.
10505 (write_glyphs): Remove redundant variable attrs. Use
10506 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
10508 1999-05-20 Andrew Innes <andrewi@gnu.org>
10510 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
10513 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
10514 frame loses focus, and that mouse button state is reset. Ditto
10515 when the menu bar is activated.
10517 1999-05-18 Richard Stallman <rms@gnu.org>
10519 * abbrev.c (Fdefine_abbrev): Doc fix.
10521 1999-05-13 Paul Eggert <eggert@twinsun.com>
10523 * filelock.c: Fix performance bug on hosts with large
10524 /var/adm/wtmp files with no boot records.
10526 (boot_time_initialized): New var.
10527 (init_filelock): Initialize it.
10528 (get_boot_time): Use it, instead of nonzero boot_time,
10529 to test whether boot_time is initialized.
10530 Don't invoke utmp routines when dumping.
10532 (get_boot_time): First, try to get the boot time from the
10533 current utmp file, as this can be much faster. Don't try to
10534 get the boot time from utmp and/or wtmp more than once.
10536 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
10537 New arg LATEST. All uses changed.
10539 1999-05-15 Andrew Innes <andrewi@gnu.org>
10541 * w32term.c (dumpglyphs): Use correct colours for drawing
10542 rectangles in place of missing fonts, and make them the right
10545 1999-05-14 Dave Love <fx@gnu.org>
10547 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
10550 1999-05-11 Andrew Innes <andrewi@gnu.org>
10552 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
10554 (w32_wnd_proc): Reinstall debugging output.
10555 (w32_wnd_proc): Reinstall SetForegroundWindow change.
10556 (syms_of_w32fns): Reinstall new initializer for
10557 Vw32_phantom_key_code.
10559 * w32fns.c (x_to_w32_charset): Do partial matching of charset
10560 names for most non-European charsets, to cope with wildcards or
10561 missing spec dates.
10562 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
10563 to avoid deadlock when activating the menu bar.
10565 1999-05-10 Ken'ichi Handa <handa@gnu.org>
10567 * search.c (boyer_moore): Get charset base value of `untranslated'
10568 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
10570 1999-05-10 Andreas Schwab <schwab@gnu.org>
10572 * fileio.c (Fread_file_name): Correct handling of dollars in file
10573 names. Protect dollars in strings put on the file-name-history.
10574 Substitute homedir by `~' also in default_filename.
10576 * xdisp.c (try_window_id): Fix computation of tab_offset when
10577 backing up over a character that is splitted across lines.
10579 1999-05-08 Kenichi HANDA <handa@etl.go.jp>
10581 * coding.c (code_convert_region): If eol format is inconsistent,
10582 change coding->symbol to the sibling coding system of Unix like
10585 1999-05-09 Richard M. Stallman <rms@gnu.org>
10587 * s/irix5-2.h (NO_WTMP_FILE): Define it.
10589 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
10591 1999-05-05 Andrew Innes <andrewi@gnu.org>
10593 * w32fns.c (w32_strict_painting): New variable.
10594 (w32_wnd_proc): Use it to select repaint rules.
10595 (syms_of_w32fns): Defvar it.
10597 1999-05-04 Andrew Innes <andrewi@gnu.org>
10599 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
10600 charsets to the standard Windows charset for Japanese.
10602 1999-05-04 Ken'ichi Handa <handa@gnu.org>
10604 * xterm.c (x_load_font): Fix typo (`>' -> `=').
10606 * ccl.h (struct ccl_program): New member stack_idx.
10608 * ccl.c (ccl_prog_stack_struct): Declare it as static.
10609 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
10611 (setup_ccl_program): Initialize ccl->stack_idx to 0.
10613 1999-05-03 Jason Rumney <jasonr@altavista.net>
10615 * w32term.c (dumpglyphs): Always fill background for italic fonts.
10617 1999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
10619 * dired.c (make_time): Make argument type be time_t.
10621 1999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
10623 * msdos.c (unibyte_display_via_language_environment): Add extern.
10625 1999-05-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10627 * xdisp.c (display_text_line): Convert unibyte char to multibyte
10628 if unibyte_display_via_language_environment is set.
10629 (unibyte_display_via_language_environment):
10630 Variable moved from xfns.c and elsewhere.
10631 (syms_of_xfns): Set up Lisp var.
10633 * xfns.c (unibyte_display_via_language_environment):
10634 Variable moved to xdisp.c.
10635 (syms_of_xfns): Don't set up Lisp var here.
10637 * msdos.c (unibyte_display_via_language_environment):
10638 Variable moved to xdisp.c.
10639 (syms_of_msdos): Don't set up Lisp var here.
10641 * w32fns.c (unibyte_display_via_language_environment):
10642 Variable moved to xdisp.c.
10643 (syms_of_w32fns): Don't set up Lisp var here.
10645 1999-05-02 Andrew Innes <andrewi@gnu.org>
10647 * s/ms-w32.h (HAVE_FSYNC): New macro.
10648 (fsync): Map to _commit.
10649 (ftruncate): Map to _chsize.
10651 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
10652 for ASCII, if enabled, to avoid memory allocation overhead for
10653 implicit Unicode conversion. Also, recognize that ASCII and
10654 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
10655 already contains the Unicode characters in that case.
10656 (construct_drag_n_drop): Remove old code that was
10657 trashing the drop location.
10659 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
10660 nlines to encoding_buffer_size (real bug was in a ccl program in
10661 lisp/international/coding.el).
10663 * w32reg.c (w32_get_string_resource): Check for name in current
10664 user area, and if not found look in the local machine area.
10666 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
10667 (Fw32_shell_execute): New function; used to support browse-url.
10668 (syms_of_w32fns): Register it.
10669 (w32_load_system_font): Force max width to be average
10670 char width for fixed-pitch fonts, to avoid unnecessary redisplay
10672 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
10674 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
10676 * unexw32.c (get_section_info): Dump back the entire EMDATA
10677 section if we can put Emacs' initialized data in a separate
10678 section, otherwise use the my_begdata/my_edata method.
10680 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
10682 * coding.c (decode_eol): Set produced/consumed values to zero if
10683 src_bytes is <= 0 on entry.
10685 1999-05-02 Jason Rumney <jasonr@altavista.net>
10687 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
10688 w32_clear_frame, clear_cursor, x_display_bar_cursor,
10689 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
10691 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
10692 (dumprectangle): Take into account the width of a left-side
10695 * w32proc.c (sys_kill): Attach to current foreground thread
10696 when grabbing focus; necessary on NT 5.0.
10698 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
10699 GetUpdateRect rather than BeginPaint.
10700 (w32_wnd_proc): Attach to current foreground thread
10701 when grabbing focus; necessary on NT 5.0.
10702 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
10703 debugging display messages.
10704 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
10707 1999-05-02 Kenichi HANDA <handa@etl.go.jp>
10709 * coding.c (setup_raw_text_coding_system): Call
10710 setup_coding_system to initialize the fields of struct
10711 coding_system correctly.
10713 1999-04-26 Kenichi HANDA <handa@etl.go.jp>
10715 * xterm.c (x_list_fonts): Fix previous change.
10717 1999-04-26 Richard Stallman <rms@gnu.org>
10719 * config.in (HAVE_LIBXP): Add #undef.
10720 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
10722 1999-04-12 Ken'ichi Handa <handa@gnu.org>
10724 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
10727 1999-04-12 Karl Heuer <kwzh@gnu.org>
10729 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
10731 1999-04-11 Ken'ichi Handa <handa@gnu.org>
10733 * fontset.c (Fset_fontset_font): Fix previous change.
10735 1999-04-09 Ken'ichi Handa <handa@gnu.org>
10737 * fontset.c (Fquery_fontset): Check for fontset aliases here.
10738 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
10740 1999-04-08 Richard Stallman <rms@gnu.org>
10742 * process.c (Faccept_process_output): Check validity of PROCESS.
10744 1999-04-08 Eli Zaretskii <eliz@gnu.org>
10746 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
10748 1999-04-07 Richard Stallman <rms@gnu.org>
10750 * xfns.c (x_set_font): Fix error message.
10752 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
10753 (Fnew_fontset, Fset_fontset_font): Check for them here.
10754 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
10755 Fix error message syntax.
10757 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
10758 from the base buffer.
10759 (Fset_buffer_multibyte): Copy new multibyte status
10760 into the buffer's indirect buffers.
10762 1999-04-07 Ken'ichi Handa <handa@gnu.org>
10764 * fns.c (base64_encode_1): Don't add unnecessary newline at the
10767 1999-04-06 Richard Stallman <rms@gnu.org>
10769 * dired.c (Ffile_attributes): Doc fix.
10771 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
10772 Convert 0200 to meta only in a unibyte string.
10773 (Fkey_description): Likewise.
10775 * eval.c (do_autoload): Preserve match data.
10777 1999-04-06 Kenichi HANDA <handa@etl.go.jp>
10779 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
10780 encode_coding to avoid carryover.
10782 * coding.c: Add comments for decode_coding and encode_coding.
10784 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10785 a composite character by skipping its leading code.
10786 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10789 * coding.c: Add comments for decode_coding and encode_coding.
10791 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
10792 a composite character by skipping its leading code.
10793 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
10796 1999-04-06 Eli Zaretskii <eliz@gnu.org>
10798 * msdos.c (dos_rawgetc): Don't zero out c if private translation
10800 (jp_kbd_translate_table): Support C-\.
10801 (it_kbd_translate_table): Map `>' correctly.
10802 (it_keyboard): Add `>'.
10804 1999-04-06 Richard Stallman <rms@gnu.org>
10806 * intervals.c (graft_intervals_into_buffer): Turn off
10807 inhibit_modification_hooks around calling Fset_text_properties.
10809 1999-04-05 Kenichi HANDA <handa@etl.go.jp>
10811 * xterm.c (dumpglyphs): Be sure to fill the whole background of
10814 1999-04-05 Eli Zaretskii <eliz@gnu.org>
10816 * msdos.c (jp_kbd_translate_table): Fix last change.
10818 1999-04-04 Eli Zaretskii <eliz@gnu.org>
10820 * msdos.c (struct kbd_translate): New struct, for key translation
10821 tables private to certain national keyboard layouts.
10822 (struct dos_keyboard_map): Add a pointer to a private translation
10824 (jp_kbd_translate_table): Private table for the Japanese
10826 (jp_keyboard): Japanese keyboard layout.
10827 (it_kbd_translate_table): Private table for the Italian keyboard.
10828 (it_keyboard): Use it_kbd_translate_table.
10829 (keyboard_layout_list): Add the Japanese keyboard.
10830 (dos_rawgetc): Use the keyboard-private translation table, if
10832 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
10834 1999-04-02 Kenichi HANDA <handa@etl.go.jp>
10836 * xdisp.c (redisplay_window): When we call compute_motion with
10837 HPOS got from w->last_point_x, call it with DID_MOTION 1.
10838 (display_text_line): Stop the loop for processing overlay strings
10839 when we reach the right edge of the window.
10841 1999-03-31 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10843 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
10844 let the data control whether string is unibyte.
10846 1999-03-30 Richard M. Stallman <rms@gnu.org>
10848 * macros.c (Fexecute_kbd_macro): Save real_this_command.
10849 (pop_kbd_macro): Restore the saved real_this_command.
10850 (Fcall_last_kbd_macro): Set real_this_command to the macro.
10852 1999-03-26 Richard M. Stallman <rms@gnu.org>
10854 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
10855 if buffer-file-name is nil.
10857 1999-03-25 Jason Rumney <jasonr@altavista.net>
10859 * w32select.c (Fw32_set_clipboard_data): Take into account line
10860 ends when calculating clipboard storage needed for non-ASCII text.
10862 1999-03-25 Andrew Innes <andrewi@gnu.org>
10864 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
10865 (epaths.h): Renamed from paths.h.
10867 ($(BLD)\filelock.obj):
10868 ($(BLD)\lread.obj):
10869 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
10871 1999-03-23 Ken'ichi Handa <handa@gnu.org>
10873 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
10874 ENCODE_ISO_CHARACTER for the previous change on this macro.
10876 1999-03-23 Kenichi Handa <handa@etl.go.jp>
10878 * xdisp.c (decode_mode_spec_coding): Handle integer value in
10879 eoltype correctly for backward compatibility.
10881 1999-03-20 Kenichi HANDA <handa@etl.go.jp>
10883 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
10884 invalid, produce the buffer internal byte sequence without encoding.
10886 1999-03-19 Karl Heuer <kwzh@gnu.org>
10888 * editfns.c (Fformat): Accept %i format.
10890 1999-03-17 Karl Heuer <kwzh@gnu.org>
10892 * filelock.c (get_boot_time): Test tempname, not filename.
10894 1999-03-17 Jason Rumney <jasonr@altavista.net>
10896 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
10899 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
10901 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
10903 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
10906 * w32fns.c (enum_font_cb2): Set the font height to be the
10907 character height, not the cell height.
10908 (Fw32_select_font): Initialize font dialog with current default font.
10909 (Vw32_system_coding_system): New variable.
10910 (w32_strict_filenames): Add comment.
10911 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
10912 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
10913 (syms_of_w32fns): Add w32-system-coding-system.
10915 1999-03-15 Richard M. Stallman <rms@gnu.org>
10917 * xterm.c (XTread_socket) <ConfigureNotify>:
10918 If cursor pos is outside the new frame size, mark cursor as off.
10920 1999-03-14 Ken'ichi Handa <handa@gnu.org>
10922 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
10924 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
10927 1999-03-14 Richard M. Stallman <rms@gnu.org>
10929 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
10932 1999-03-14 Jason Rumney <jasonr@altavista.net>
10934 * w32fns.c (w32_strict_fontnames): New variable.
10935 (Fx_create_frame): Formatting fix.
10936 (w32_load_system_font): Keep trying to load non-existant font
10937 if w32_strict_fontnames is nil. Formatting fix.
10938 (syms_of_w32fns): Add w32-strict-fontnames.
10940 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
10941 (dumpglyphs): Formatting fixes.
10943 1999-03-14 Geoff Voelker <voelker@cs.washington.edu>
10945 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
10947 1999-03-10 Karl Heuer <kwzh@gnu.org>
10949 * puresize.h (BASE_PURESIZE): Increase to 505000.
10951 1999-03-09 Richard M. Stallman <rms@gnu.org>
10953 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
10955 * filelock.c (init_filelock): New function.
10957 1999-03-09 Dave Love <fx@gnu.org>
10959 * fileio.c (Ffile_directory_p): Doc fix.
10961 1999-03-05 Richard M. Stallman <rms@caffeine.ai.mit.edu>
10963 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
10965 1999-03-08 Richard M. Stallman <rms@gnu.org>
10967 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
10968 to only the part that uses get_boot_time_1.
10970 1999-03-07 Dave Love <fx@gnu.org>
10972 * fileio.c (Finsert_file_contents): Use xfree.
10974 1999-03-06 Kenichi Handa <handa@etl.go.jp>
10976 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
10977 term.o, xselect.o): Depend on ccl.h.
10979 1999-03-05 Geoff Voelker <voelker@cs.washington.edu>
10981 * makefile.nt: Remove common multiple file compilation commands.
10983 1999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
10985 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
10986 newlines added when the arg NO-LINE-BREAK is nil.
10988 1999-03-04 Karl Heuer <kwzh@gnu.org>
10990 * search.c (Fstring_match, Fposix_string_match): Doc fix.
10992 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
10994 1999-03-04 Dave Love <fx@gnu.org>
10996 * term.c (term_init): Use xmalloc, not malloc.
10998 * callproc.c (Fcall_process): Use xmalloc, xfree.
11000 1999-03-03 Andreas Schwab <schwab@gnu.org>
11002 * eval.c (Fdefconst): Doc fix.
11004 1999-03-01 Kenichi Handa <handa@etl.go.jp>
11006 * coding.c: Comment for ISO 2022 encoding mechanism modified.
11008 1999-03-01 Eli Zaretskii <eliz@gnu.org>
11010 * w16select.c (get_clipboard_data): Always stop at the first null byte.
11012 1999-02-28 Richard M. Stallman <rms@gnu.org>
11014 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
11016 * cmds.c (internal_self_insert): Calculate column properly
11017 in overwrite-of-tab case.
11019 1999-02-27 Andreas Schwab <schwab@gnu.org>
11021 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
11022 malloc in glibc 2.1.
11024 1999-02-26 Richard Stallman <rms@gnu.org>
11026 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
11028 * epaths.in: Renamed from paths.in.
11029 This avoids a conflict with a system header file paths.h on GNU/Linux.
11031 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
11032 Use epaths.h istead of paths.h.
11034 1999-02-26 Andreas Schwab <schwab@gnu.org>
11036 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
11039 1999-02-25 Dave Love <fx@gnu.org>
11041 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
11043 1999-02-25 Richard Stallman <rms@gnu.org>
11045 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
11046 (WTMP_FILE): Default definition in case not defined.
11047 (get_boot_time_1): Test that file exists before trying to read it.
11049 1999-02-25 Ken'ichi Handa <handa@gnu.org>
11051 * keymap.c (push_key_description): If enable-multibyte-characters
11052 is nil and C is single byte, push C as is.
11054 1999-02-24 Kenichi Handa <handa@etl.go.jp>
11056 * keymap.c (push_key_description): If enable-multibyte-characters
11057 is non-nil, try to convert unibyte character to multibyte. For
11058 invalid multibyte character, show all bits by octal form.
11059 (Fsingle_key_description): Check the validity of charset for a
11062 1999-02-23 Richard M. Stallman <rms@gnu.org>
11064 * fileio.c (Ffile_regular_p): Undo previous change.
11066 * eval.c (Fdefconst): Doc fix.
11068 * filelock.c (get_boot_time): Don't use BUFSIZ.
11070 1999-02-22 Andrew Innes <andrewi@gnu.org>
11072 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
11073 (EXTRA_LINK): Do version test with strings.
11075 1999-02-22 Andreas Schwab <schwab@gnu.org>
11077 * fns.c (Fbase64_encode_string): Fix last change.
11079 * termhooks.h (event_kind): Add user_signal.
11081 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
11082 (syms_of_keyboard): Initialize them.
11083 (lispy_user_signals): New variable.
11084 (make_lispy_event): Handle user_signal event type.
11086 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
11087 (syms_of_emacs): Don't initialize them.
11088 (handle_USR1_signal, handle_USR2_signal): Set event type to
11089 user_signal instead of non_ascii_keystroke, and use plain integers
11090 as code instead of Lisp symbols.
11092 1999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
11094 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
11096 1999-02-21 Richard Stallman <rms@gnu.org>
11098 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
11100 * print.c (print_error_message): Don't crash if (cdr data)
11103 1999-02-21 Eli Zaretskii <eliz@gnu.org>
11105 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
11107 1999-02-20 Andrew Innes <andrewi@gnu.org>
11109 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
11110 run, since size can vary from run to run.
11112 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
11113 data is included, to enable profiling.
11114 ($(EMACS)): Map file not needed for emacs.exe.
11116 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
11117 as malloc before calling uninterrupt_malloc, for consistency.
11118 This also enables profiling to work on WINDOWSNT.
11120 1999-02-18 Richard Stallman <rms@gnu.org>
11122 * Makefile.in (emacs.o): Depend on termhooks.h.
11123 (filelock.o): Depend on systime.h.
11125 1999-02-18 Ken'ichi Handa <handa@gnu.org>
11127 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
11128 (Fdecode_big5_char): Likewise.
11130 1999-02-17 Richard Stallman <rms@gnu.org>
11132 * insdel.c (adjust_markers_for_replace): When doing an insertion
11133 (replacing a region of zero length), handle markers at the
11134 insertion point properly.
11136 1999-02-17 Andrew Innes <andrewi@gnu.org>
11138 * w32fns.c (Vw32_quit_key): New variable.
11139 (post_character_message): Use it.
11140 (syms_of_w32fns): DEFVAR it.
11142 1999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
11144 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
11146 1999-02-16 Richard Stallman <rms@gnu.org>
11148 * filelock.c (within_one_second): New function.
11149 (current_lock_owner): Use that.
11150 (get_boot_time): Use /proc/uptime if available.
11151 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
11152 (get_boot_time_1): New subroutine taken from get_boot_time.
11154 1999-02-16 Richard Stallman <rms@gnu.org>
11156 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
11157 (syms_of_emacs): Init and staticpro them.
11158 (handle_USR1_signal): Don't run any code, just queue up an event.
11159 (handle_USR2_signal): Likewise.
11161 1999-02-16 Eli Zaretskii <eliz@gnu.org>
11163 * dired.c (Ffile_attributes): If the file's size doesn't fit in
11164 an integer, return it as a float. Doc string fixed.
11166 1999-02-16 Richard Stallman <rms@gnu.org>
11168 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
11169 (syms_of_emacs): Init and staticpro them.
11170 (handle_USR1_signal): Don't run any code, just queue up an event.
11171 (handle_USR2_signal): Likewise.
11173 1999-02-15 Kenichi Handa <handa@etl.go.jp>
11175 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
11176 ASCII correctly. Signal error on invalid characters.
11177 (Fdecode_big5_char, Fencode_big5_char): Likewise.
11179 1999-02-15 Eli Zaretskii <eliz@gnu.org>
11181 * w16select.c (get_clipboard_data): Work around a bug in Windows95
11182 DOS box which doubles the reported size of text in the clipboard.
11184 1999-02-15 Kenichi Handa <handa@etl.go.jp>
11186 * coding.c (decode_coding_iso2022): Don't set
11187 coding->composed_chars to 0 here.
11188 (setup_coding_system): Set coding->composed_chars to 0 here.
11190 1999-02-10 Richard Stallman <rms@gnu.org>
11192 * fileio.c (Ffile_regular_p): Use lstat.
11194 1999-02-09 Richard Stallman <rms@gnu.org>
11196 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
11197 (unexec): Test this instead of specific systems.
11199 * m/macppc.h: New file.
11201 1999-02-08 Dave Love <fx@gnu.org>
11203 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
11205 1999-02-08 Ken'ichi Handa <handa@gnu.org>
11207 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
11208 should be set to coding->produced.
11210 1999-02-07 Paul Fisher <rao@gnu.org>
11212 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
11213 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
11215 1999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
11217 * editfns.c (Fformat): Doc fix.
11219 1999-02-06 Richard Stallman <rms@gnu.org>
11221 * process.c (syms_of_process): defsubr it.
11222 (Fprocess_running_child_p): New function.
11224 1999-02-05 Andrew Innes <andrewi@gnu.org>
11226 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
11227 recording drop position.
11229 1999-02-05 Ken'ichi Handa <handa@gnu.org>
11231 * coding.c (encode_coding_iso2022): Before writing out an invalid
11232 code, reset graphic planes and registers if necessary.
11234 * term.c (encode_terminal_code): Fix previous change.
11236 1999-02-04 Eli Zaretskii <eliz@gnu.org>
11238 * w16select.c (last_clipboard_text, clipboard_storage_size): New
11240 (set_clipboard_data): Save a copy of the text we put into
11241 clipboard in last_clipboard_text.
11242 (get_clipboard_data): If the clipboard text is identical to what
11243 last_clipboard_text holds, pretend there's no data in the clipboard.
11245 1999-02-03 Richard Stallman <rms@gnu.org>
11247 * s/gnu.h (NLIST_STRUCT): Add #undef.
11249 1999-02-03 Eli Zaretskii <eliz@gnu.org>
11251 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
11252 encoded, set its pointer and size as returned by encode_coding.
11254 1999-02-02 Ken'ichi Handa <handa@gnu.org>
11256 * fns.c (Fset_char_table_default): To handle the case that CH is
11257 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
11259 1999-02-02 Andrew Innes <andrewi@gnu.org>
11261 * w32fns.c (syms_of_w32fns): Change default value of
11262 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
11263 some mice works properly.
11265 1999-02-02 Eli Zaretskii <eliz@gnu.org>
11267 * w16select.c (set_clipboard_data): Correctly null-terminate the
11268 string to be put into the Windows clipboard. Use xbuf_addr.
11270 1999-02-01 Richard Stallman <rms@gnu.org>
11272 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
11274 1999-01-31 Richard Stallman <rms@gnu.org>
11276 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
11277 then don't send the signal if the shell owns the terminal.
11278 (Finterrupt_process): Doc change.
11280 1999-01-31 Andrew Innes <andrewi@gnu.org>
11282 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
11283 (copy_executable_and_dump_data): Use it to ensure alignment slop
11286 1999-01-30 Andrew Innes <andrewi@gnu.org>
11288 * w32.c (init_environment): Change argv[0] to contain the full
11291 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
11293 1999-01-29 Ken'ichi Handa <handa@gnu.org>
11295 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
11296 returned by x_new_font (the resolved one) but use the font name
11297 set in the fontset specification.
11298 (x_load_font): For the height of font, if normarl ascent and
11299 descent value are larger than those in max_bounds field, use the
11302 1999-01-28 Eli Zaretskii <eliz@gnu.org>
11304 * xdisp.c (decode_mode_spec_coding): Fix previous change.
11306 1999-01-27 Geoff Voelker <voelker@cs.washington.edu>
11308 * makefile.nt: Use full path to temacs.exe when dumping.
11310 1999-01-27 Jason Rumney <jasonr@altavista.net>
11312 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
11314 (enum_fontex_cb1, enum_fontex_cb2): New functions.
11315 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
11316 (w32_list_synthesized_fonts): New function.
11317 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
11318 available instead of EnumFontFamilies. List synthesized fonts if
11319 Vw32_enable_italics is non-nil.
11321 1999-01-27 Richard Stallman <rms@gnu.org>
11323 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
11324 Don't complain if ttcompat does not exist.
11326 * w32fns.c (x_set_frame_parameters): gcpro as needed.
11328 1999-01-27 Andrew Innes <andrewi@gnu.org>
11330 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
11331 the lwindow, rwindow and apps keys could not be used as function
11332 keys, because they were being passed to TranslateMessage which
11333 ignores them. Also, key was being changed to SPC.
11335 * makefile.nt: Do make version comparison as strings.
11337 1999-01-27 Eli Zaretskii <eliz@gnu.org>
11339 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
11340 strings, not characters.
11342 * coding.h: Likewise.
11344 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
11347 1999-01-26 Dave Love <fx@gnu.org>
11349 * emacs.c (main): Up-date copyright.
11351 1999-01-25 Dave Love <fx@gnu.org>
11353 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
11355 1999-01-25 Andreas Schwab <schwab@gnu.org>
11357 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
11359 1999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
11361 * xfns.c (x_set_frame_parameters): gcpro as needed.
11363 * window.c (Fset_window_point): If WINDOW is selected but the
11364 current buffer is not its buffer, don't use Fgoto_char.
11366 1999-01-22 Richard M. Stallman <rms@gnu.org>
11368 * syntax.c (scan_sexps_forward): Delete duplicate code
11369 to set prev_from_syntax, above start of main loop.
11370 At startinstring, check syntax when checking for a match.
11372 1999-01-22 Jason Rumney <jasonr@altavista.net>
11374 * w32bdf.c: New file.
11375 * w32bdf.h: New file.
11376 * makefile.nt: Add w32bdf.c and w32bdf.h.
11378 * w32gui.h: Include w32bdf.h.
11379 (W32FontStruct) Add bdf element.
11381 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
11384 * w32term.c (W32_TEXTOUT): New macro.
11385 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
11386 Simplify baseline calculation. Detect SJIS by font, not glyph.
11388 (syms_of_w32term): Remove "jisx0212-sjis" from
11389 w32-charset-to-codepage-alist.
11390 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
11391 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
11393 * w32fns.c (Vw32_bdf_filename_alist): New variable.
11394 (x_destroy_bitmap): Returns void not int.
11395 (x_set_border_pixel): Returns void.
11396 (w32_load_bdf_font): New function.
11397 (w32_load_system_font): New function, was w32_load_font. List
11398 fonts before loading. Explicitly set encoding for SJIS fonts.
11399 Set default_ascent to 0 as comment indicates.
11400 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
11401 (w32_unload_font): Support BDF fonts.
11402 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
11403 Autodetect whether to use koi8-r instead of iso8859-5.
11404 Associate "ksc5601.1987" with HANGUEL_CHARSET.
11405 Associate "ksc5601.1992" with JOHAB_CHARSET.
11406 (x_to_w32_charset): Make consistent with w32_to_x_charset.
11407 (w32_to_x_font): Add resolution.
11408 (x_to_w32_font): Use font resolution to calculate height if supplied.
11409 (w32_font_match): Handle wildcards anywhere within field.
11410 (enumfont_t): Remove unused head pointer.
11411 (enum_font_cb2): Dereference elfLogFont.
11412 (w32_list_bdf_fonts): New function.
11413 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
11414 valid frame. Remove MessageBox. Support BDF fonts.
11415 (Fw32_find_bdf_fonts): New function.
11416 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
11417 Sw32_find_bdf_fonts.
11419 1999-01-21 Andrew Innes <andrewi@gnu.org>
11421 * makefile.nt (temacs): Use del to delete file, not rm.
11423 1999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
11425 * keyboard.c (read_key_sequence): Fix previous change.
11427 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
11428 as the same. Treat "myname:0" as the same as those two.
11430 1999-01-19 Jason Rumney <jasonr@altavista.net>
11432 * w32fns.c (x_to_w32_charset): Add iso8859-9.
11433 (w32_to_x_charset): Fix charset mappings.
11435 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
11436 (dumpglyphs): Move definitions out of block containing goto.
11437 Remove redundant code for BIG5.
11438 Use w32_codepage_for_font instead of
11439 w32_codepage_for_charset. Add cast to int where float
11440 operation is assigned to int.
11441 (Vw32_charset_to_codepage_alist): New variable.
11442 (w32_codepage_for_charset): Removed.
11443 (w32_codepage_for_font): New function, replacing
11444 w32_codepage_for_charset.
11445 (syms_of_w32term): Add and initialize
11446 w32-charset-to-codepage-alist.
11448 1999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
11450 * xselect.c (x_handle_selection_clear): Don't clear the
11451 selection if Emacs still owns it through a different display.
11453 1999-01-17 Andrew Innes <andrewi@gnu.org>
11455 * w32proc.c: (w32_executable_type): Relax the check to identify
11456 cygwin-compiled applications, because the exact dll name varies
11457 with release. Now only require the name to start "cygwin".
11459 * w32heap.h: (ROUND_UP):
11460 (ROUND_DOWN): New macros.
11461 (need_to_recreate_heap): Renamed to using_dynamic_heap.
11462 (init_heap): New extern.
11463 (data_region_size):
11468 (w32_fatal_reload_error):
11469 (get_section_size): Obsolete externs removed.
11471 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
11473 (round_to_next): Obsolete function removed.
11474 (preload_heap_section): New variable.
11475 (data_region_size): Obsolete variable removed.
11476 (allocate_heap): Modified to determine end of static heap section
11477 used during preload, and use that as initial base address for
11478 dynamic heap instead of hard-coded value.
11479 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
11480 calls to commit or decommit pages when allocating from static heap
11481 section during preload.
11482 (recreate_heap): Obsolete function removed.
11483 (init_heap): New function to initialize internal sbrk heap
11484 variables. Uses static heap section during preload, otherwise
11485 calls allocate_heap to reserve a heap region dynamically.
11486 (round_heap): Use ROUND_UP macro instead of round_to_next.
11488 * unexw32.c: Major rewrite to support cleaner method of dumping; a
11489 static "bss" section is used for heap space during preload, and
11490 bss data is now written to the proper section area when dumping.
11491 (need_to_recreate_heap): Renamed to using_dynamic_heap.
11492 (heap_index_in_executable): Obsolete variable removed.
11493 (data_section): New variable.
11494 (data_start_va): Renamed to data_start.
11495 (data_start_file): Obsolete variable removed.
11498 (bss_section_static):
11499 (bss_start_static):
11501 (extra_bss_size_static):
11502 (heap_section): New variables.
11503 (_start): Remove code based on old unexec method. Call init_heap
11504 to initialize sbrk heap.
11505 (close_file_data): Update size of file when closing, so that
11506 unexec doesn't have to work out exact size in advance.
11507 (get_bss_info_from_map_file):
11508 (get_section_size): Obsolete functions removed.
11509 (rva_to_section): Fix minor bug, and add a work-around for a bug
11510 in very old linkers.
11511 (offset_to_section):
11512 (relocate_offset): New functions.
11515 (RVA_TO_SECTION_OFFSET):
11518 (OFFSET_TO_PTR): New macros.
11519 (get_section_info): Modify to support new unexec method;
11520 determines address ranges in process that need dumping, and COFF
11521 sections where data will be dumped. Allows for static and global
11522 bss data to be in separate ranges. No longer relies on knowledge
11524 (copy_executable_and_dump_data_section): Renamed
11525 copy_executable_and_dump_data. Completely rewritten to copy
11526 executable section by section, so that raw data areas can be
11527 expanded to hold dumped data as necessary. Allows for bss data to
11528 be in same section as initialized data. Reduces size of static
11529 heap section to that used during preload.
11530 (dump_bss_and_heap):
11531 (w32_fatal_reload_error):
11533 (map_in_heap): Obsolete functions removed.
11534 (unexec): Rounds off preload heap to nearest page rather than
11535 virtual allocation unit. Modified to match other changes.
11537 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
11540 * makefile.nt: (TEMACS_TMP): New macro.
11541 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
11542 processor to add static heap section in support of new unexec.
11544 * lastfile.c: Include config.h to pick up data layout pragmas.
11545 [WINDOWSNT]: Remove explicit pragma.
11547 1999-01-12 Kenichi Handa <handa@etl.go.jp>
11549 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
11551 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
11553 1999-01-11 Dave Love <fx@gnu.org>
11555 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
11557 1999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
11559 * keyboard.c (read_key_sequence): In key-translation-map and
11560 function-key-map, handle symbol with array as fn def.
11561 In function-key-map, handle symbol with keymap as fn def,
11562 and autoloaded definitions.
11564 * puresize.h (BASE_PURESIZE): Increment to 500000.
11566 * print.c (Qtemp_buffer_setup_hook): New variable.
11567 (syms_of_print): Init and staticpro that.
11568 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
11570 1999-01-11 Kenichi Handa <handa@etl.go.jp>
11572 * insdel.c (del_range_1): Call signal_after_change.
11573 (del_range_byte): Likewise.
11574 (del_range_both): Likewise.
11575 (del_range_2): Don't call signal_after_change.
11577 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
11580 1999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
11582 * eval.c (find_handler_clause): If SIG is nil (memory full error),
11583 never run the debugger, and don't bother checking the args
11584 to see whether the debugger should be run.
11586 1999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
11588 * keyboard.c (read_key_sequence):
11589 Tell get_keyelt to look handle autoloads.
11590 Handle symbols defined as keymaps, and autoloaded keymaps.
11592 1999-01-06 Kenichi Handa <handa@etl.go.jp>
11594 * search.c (search_buffer): Fix previous change.
11596 1999-01-06 Eli Zaretskii <eliz@gnu.org>
11598 * w16select.c (set_clipboard_data): Terminate the text with a null
11599 character. Don't allow to put binary data into the clipboard.
11600 Return zero in case of success, 1 or 2 otherwise.
11601 (get_clipboard_data): Only bail out if the null character is in
11602 the last 32-byte chunk of clipboard data
11603 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
11604 they save binary data, print a message in the echo area saying the
11605 text was not put into the clipboard.
11607 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
11609 1999-01-06 Andreas Schwab <schwab@gnu.org>
11611 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
11612 _BSD_SOURCE, the latter is always defined.
11614 1999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
11616 * fns.c (Frequire): Don't fail to unbind bindings.
11618 1999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
11620 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
11622 * charset.c (Ffind_charset_region): Fix doc typo.
11624 1998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
11626 * msdos.c (IT_write_glyphs): Convert unibyte characters to
11627 multibyte in unibyte buffers only.
11629 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
11630 and pass it to Fmake_sparse_keymap.
11632 1998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
11634 * alloc.c (MMAP_MAX_AREAS): New macro.
11635 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
11636 (init_alloc_once): Use that.
11638 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
11640 * alloc.c (lisp_malloc, lisp_free): New functions.
11641 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
11642 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
11643 (n_interval_blocks, n_float_blocks): New variable.
11644 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
11645 (n_marker_blocks, n_string_blocks): New variable.
11646 (init_intervals, make_interval): Set a count variable.
11647 Use lisp_malloc instead of setting allocating_for_lisp.
11648 (init_float, make_float, init_cons, Fcons): Likewise.
11649 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
11650 (init_marker, allocate_misc, init_strings): Likewise.
11651 (make_uninit_multibyte_string): Likewise.
11652 (gc_sweep, compact_strings): Decrement the count variables.
11654 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
11655 into the old_..._hook variables.
11657 1998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
11659 * keyboard.c: In each active map, for each menu bar item, use only
11661 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
11662 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
11663 (syms_of_keyboard): Staticpro and init it.
11665 * xmenu.c (single_keymap_panes):
11667 1998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
11669 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
11670 by complete_deferred_msg.
11671 (post_character_message): Cancel all deferred messages when
11672 quit_char is typed, in order to break out of potential deadlocks.
11673 (cancel_all_deferred_msgs): New function.
11674 (complete_deferred_msg): Don't abort if msg not found; may have
11676 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
11677 (Fw32_send_sys_command): Wait for system command to
11678 complete before returning.
11680 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
11681 not set async_iconified flag though.
11683 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
11684 (create_child): Use it.
11685 (syms_of_ntproc): Defvar it. Also fix docstrings for
11686 w32-start-process-share-console and w32-start-process-show-window.
11688 * unexw32.c (_start): Force system calls accessing unmounted
11689 devices to fail without prompting.
11691 1998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
11693 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
11694 even when starting the dumped Emacs.
11696 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
11697 (Fkey_description): Handle lists like vectors.
11699 1998-12-21 Kenichi Handa <handa@etl.go.jp>
11701 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
11702 because of the change of the second argument of Fread_char.
11704 * charset.c (Fcharset_after): Check range. If POS is out of
11707 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
11709 * lread.c (Fread_char): Change the meaning of the second argument.
11710 (Fread_event): Likewise.
11711 (Fread_char_exclusive): Likewise.
11713 * print.c (printchar): Fix previous change.
11715 * process.c (read_process_output): Decide the multibyteness of
11716 string given to a process filter by a coding system used for
11717 decoding the process output.
11719 1998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
11721 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
11722 nonascii-translation-table.
11723 * msdos.c (IT_write_glyphs): Likewise.
11724 * fns.c (concat): Likewise.
11725 * charset.c (unibyte_char_to_multibyte): Likewise.
11726 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
11728 1998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
11730 * doc.c (Fdocumentation): Change the doc string for prefix
11731 commands to make it a complete sentence in one line.
11733 1998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
11735 * s/irix6-5.h: New file.
11736 * s/irix6-0.h (IRIX6): Define this symbol.
11737 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
11738 (bcopy, bcmp, bzero): Likewise.
11739 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
11740 (C_SWITCH_MACHINE): New value for irix6.5.
11742 1998-12-15 Richard Stallman <rms@gnu.org>
11744 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
11745 Do free malloc'd memory even in case of failure. Use xfree, not free.
11746 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
11747 (base64_decode_1): Don't fail for short lines.
11749 * print.c (printchar): Outputting multibyte characters
11750 to echo area always makes it multibyte.
11752 * search.c (search_buffer): Don't use Boyer-Moore
11753 to search for an invalid multibyte code.
11754 In unibyte case, no need to check whether there are translations
11755 in more than one charset; just set charset_base to 0.
11757 1998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
11759 * print.c (printchar): Cancel previous change.
11761 1998-12-15 Kenichi Handa <handa@etl.go.jp>
11763 * callproc.c: Include "ccl.h".
11764 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
11765 bit in argument_coding.mode to tell encoding procedure to flush
11766 data. While encoding arguments, if argument_coding uses CCL
11767 program, initialize it again after encoding.
11768 (Fcall_process_region): Doc-string modified. Handle the case that
11771 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
11772 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
11773 Set `ic' to the head of this command.
11774 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
11775 code for an invalid code.
11776 (setup_ccl_program): If the arg VEC is nil, skip setting ups
11779 * charset.c (Qunknown): New variable.
11780 (init_charset_once): Intern and staticpro Qunknown. Initialize
11781 all elements of Vcharset_symbol_table to Qunknown.
11782 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
11783 unibyte characters only. For an invalid composition sequence, set
11785 (Ffind_charset_region): Call find_charset_in_str with an
11786 appropriate MULTIBYTE arg. If undefined charsets are found,
11787 include `unknown' is the return value.
11788 (Ffind_charset_string): Likewise.
11789 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
11790 (str_cmpchar_id): Max composite character code should be less than
11791 GENERIC_COMPOSITION_CHAR.
11793 * charset.h (find_charset_in_str): Update declaration.
11795 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
11796 final_char is invalid.
11797 (decode_coding): If coding->type is coding_type_ccl, call
11798 ccl_coding_driver even if SRC_BYTES is zero.
11799 (code_convert_region): Update `inserted' correctly after calling
11800 coding->post_read_conversion. Even after the code converter
11801 consumed all source text, call it once more if it is
11802 coding_type_ccl to flush out data.
11804 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
11805 CODING is handled by CCL program, call code_convert_region.
11807 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
11809 (string_byte_to_char): Likesize.
11811 * print.c (printchar): When outputting a multibyte character to
11812 echo area, always set message_enable_multibyte to 1.
11814 * process.c (read_process_output): If NBYTES is zero and
11815 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
11816 and try decoding again.
11817 (Fprocess_send_eof): If the coding system of PROCESS
11818 requires flushing, call send_process with null-string at first.
11820 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
11821 with MULTIBYTE arg 0.
11822 * w32select.c (Fw32_set_clipboard_data): Likewise.
11823 * xselect.c (lisp_data_to_selection_data): Likewise.
11825 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
11827 * search.c (Freplace_match): Set OPOINT clearly for the case
11828 where point is in the middle of the text to be replaced.
11830 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11831 if compute_motion fails to advance at all, don't back it up.
11833 1998-12-10 Geoff Voelker <voelker@cs.washington.edu>
11835 * w32.c (w32_get_long_filename): Handle root dirs correctly.
11837 * s/ms-w32.h (LOCALTIME_CACHE): Define.
11839 1998-12-09 Richard Stallman <rms@gnu.org>
11841 * insdel.c (insert_from_buffer_1): Properly count the size
11842 of output from conversion to multibyte even when input
11843 is split across the gap.
11845 1998-12-09 Karl Heuer <kwzh@gnu.org>
11847 * keyboard.c: Doc fixes.
11849 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
11851 1998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
11853 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
11854 characters, only convert CRLF to LF.
11856 1998-12-08 Geoff Voelker <voelker@cs.washington.edu>
11858 * makefile.nt: Do string comparision of _NMAKE_VER.
11860 1998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
11862 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
11863 coding.h, and disptab.h
11865 * msdos.c (Vdos_unsupported_char_glyph): New variable.
11866 (syms_of_msdos): DEFVAR_LISP it.
11867 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
11868 (internal_terminal_init): Set up insert_glyphs_hook and
11869 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
11870 (unibyte_display_via_language_environment): New variable.
11871 (syms_of_msdos): Devfar it.
11872 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
11873 Encode the character codes of the glyphs according to the
11874 terminal_coding in effect.
11876 1998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
11878 * fns.c (Fstring_as_unibyte): Doc fix.
11880 1998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
11882 * charset.h: Declare char_valid_p.
11884 1998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
11886 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
11888 * msdos.c (init_environment): Record the time we started up.
11889 (IT_reset_terminal_modes): Don't restore the screen if we exit too
11890 fast after startup (aka crash).
11892 1998-12-02 Geoff Voelker <voelker@cs.washington.edu>
11894 * w32.c (check_windows_init_file): Use decode_env_path when
11895 using EMACSLOADPATH.
11897 1998-12-02 Jason Rumney <jasonr@altavista.net>
11899 * w32term.c (dumpglyphs): Use unsigned char arrays.
11900 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
11901 for various languages.
11902 Compensate for fonts that have underhangs (e.g., Thai).
11904 * w32term.h (FONT_MAX_WIDTH): New macro.
11906 1998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
11908 * keyboard.c (Qlanguage_change): New variable.
11909 (syms_of_keyboard): Init it.
11910 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
11911 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
11912 keys; add name for Escape key; extend to 256 elements.
11913 (parse_modifiers): Make non-static.
11915 * keyboard.h (parse_modifiers): Declare prototype.
11917 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
11919 * w32fns.c (w32_last_error): Fix cut+paste error.
11920 (Vw32_phantom_key_code): New variable.
11921 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
11922 (syms_of_w32fns): Init and register them.
11923 (reset_modifiers): Use a more precise test for whether Emacs has
11924 keyboard focus. Synchronize state of all keys that can be used as
11925 modifiers, to overcome problems arising from hot-keys.
11926 (w32_key_to_modifier): Be careful not to call intern() to avoid
11927 requiring thread synchronization.
11928 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
11929 (w32_wnd_proc): Ensure lock key indicator lights are updated
11930 promptly on Windows 9x, by passing key events on to the system.
11931 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
11932 responding to Windows key events when not wanted.
11933 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
11934 Ctrl-NumLock into pause by the system.
11935 (w32_wnd_proc): Don't translate key combinations containing any
11936 modifiers other than shift (and capslock).
11937 (w32_wnd_proc): Reset modifier key states when receiving focus (we
11938 can't determine the key states until we have keyboard focus).
11939 (Fw32_toggle_lock_key): New function.
11940 (syms_of_w32fns): Defsubr it.
11942 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
11943 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
11944 (w32_console_toggle_lock_key): New function.
11946 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
11948 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
11950 * search.c (Freplace_match): Set OPOINT clearly for the case
11951 where point is in the middle of the text to be replaced.
11953 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
11954 if compute_motion fails to advance at all, don't back it up.
11956 1998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
11958 * xfns.c (Qouter_window_id): New variable.
11959 (syms_of_xfns): Initialize it.
11960 (x_report_frame_params): Set up outer-window-id parameter.
11962 * keymap.c (Fsingle_key_description): Fix previous change.
11964 1998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
11966 * lisp.h (Frequire): Update declaration.
11968 1998-11-26 Kenichi Handa <handa@etl.go.jp>
11970 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
11971 if the charset is ascii.
11972 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
11974 * charset.c (non_ascii_char_to_string): If C has modifier bits,
11975 make an appropriate one byte string.
11976 (char_bytes): Handle the case that C is a single byte char or has
11979 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
11981 * cmds.c (internal_self_insert): If C has modifier bits, insert
11982 appropriate one byte char.
11984 1998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
11986 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
11987 Clear text properties in the new string.
11989 1998-11-24 Felix Lee <flee@cygnus.com>
11991 * process.c (read_process_output): Call signal_after_change.
11993 1998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
11995 * buffer.c (syms_of_buffer): Doc fix.
11997 * keyboard.c (syms_of_keyboard): Doc fix.
11999 1998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
12001 * frame.c (Fset_mouse_position): Doc fix.
12003 1998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
12005 * keymap.c (Fmake_keymap): Doc fix.
12007 1998-11-17 Kenichi Handa <handa@etl.go.jp>
12009 * category.c (word_boundary_p): If C1 or C2 are composite
12010 characters, test their first components.
12012 1998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
12014 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
12015 don't do save-excursion, just restore selected window.
12017 * window.c (window_loop): For UNSHOW_BUFFER,
12018 always do consider minibuffer windows.
12020 1998-11-16 Kenichi Handa <handa@etl.go.jp>
12022 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
12024 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
12026 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
12028 * s/bsdos4.h: New file.
12030 1998-11-16 Kenichi Handa <handa@etl.go.jp>
12032 * Makefile.in (abbrev.o): Depend on charset.h
12033 (bytecode.o): Depend on charset.h.
12035 * bytecode.c: Include charset.h.
12037 * abbrev.c: Include charset.h.
12039 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
12040 the first component.
12042 1998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
12044 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
12046 1998-11-11 Richard Stallman <rms@gnu.org>
12048 * xterm.c (XTread_socket): Fix previous change in case F == 0.
12050 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
12052 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
12053 (INTERRUPT_INPUT): #define commented out.
12055 * m/aviion-intel.h: New file.
12057 1998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
12059 * fns.c (MAX_ALLOCA): New macro.
12060 (Fbase64_encode_region, Fbase64_encode_string,
12061 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
12062 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
12064 1998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
12066 * insdel.c (byte_combining_error): Error message improved.
12068 * charset.c (char_valid_p): Handle a composite character correctly.
12070 1998-11-11 Kenichi Handa <handa@etl.go.jp>
12072 * charset.c (str_cmpchar_id): Check the byte sequence for
12073 composition more rigidly.
12074 (Fcompose_string): Allow DEL to be composed. Signal error if STR
12075 contains an invalid multibyte sequence.
12077 * xterm.c (x_list_fonts): Don't change the value of maxnames.
12079 1998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
12081 * w32term.h (struct w32_display_info): New element faked_key.
12082 (WM_EMACS_SETKEYBOARDLAYOUT):
12083 (WM_EMACS_REGISTER_HOT_KEY):
12084 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
12085 (LEFT_WIN_PRESSED):
12086 (RIGHT_WIN_PRESSED):
12087 (APPS_PRESSED): New console keyboard modifier flags.
12089 * w32term.c (convert_to_key_event): Removed.
12090 (is_dead_key): Copied to w32fns.c.
12091 (w32_read_socket): Generate language_change_event. Modify to work
12092 with keyboard handling changes in w32_wnd_proc.
12094 * w32proc.c (sys_kill): Set extended key flag when faking
12095 Ctrl-Break keystrokes.
12096 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
12097 arbitrary locale property using a numerical index.
12098 (Vw32_valid_codepages): New variable.
12099 (enum_codepage_fn):
12100 (Fw32_get_valid_codepages):
12101 (Fw32_get_console_codepage):
12102 (Fw32_set_console_codepage):
12103 (Fw32_get_console_output_codepage):
12104 (Fw32_set_console_output_codepage):
12105 (Fw32_get_codepage_charset):
12106 (Fw32_get_valid_keyboard_layouts):
12107 (Fw32_get_keyboard_layout):
12108 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
12109 handling functions.
12110 (syms_of_ntproc): Register them.
12112 * w32inevt.c: Include w32term.h and w32heap.h.
12114 (Vw32_enable_caps_lock):
12115 (Vw32_enable_num_lock):
12116 (Vw32_pass_lwindow_to_system):
12117 (Vw32_pass_rwindow_to_system):
12118 (Vw32_lwindow_modifier):
12119 (Vw32_rwindow_modifier):
12120 (Vw32_apps_modifier):
12121 (Vw32_scroll_lock_modifier):
12122 (w32_key_to_modifier): Add externs.
12123 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
12124 Scroll Lock as potential modifiers; exclude numpad keys from
12125 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
12127 (is_dead_key): Copy from w32fns.c.
12128 (w32_kbd_patch_key): Comment attempt to improve handling of
12129 dead-keys, and system bug relating to same on Windows NT. Work
12130 around the bug by calling ToUnicode and then converting to the
12132 (map_virt_key): Removed obsolete variable.
12133 (lispy_function_keys): Add extern.
12134 (key_event): Major rework of keyboard input handling: optionally
12135 recognize Windows keys and Apps key as modifiers; optionally treat
12136 NumLock, CapsLock and ScrollLock as function keys; let system
12137 translate keystrokes to characters to avoid system bugs relating
12138 to dead-key handling; preserve shift distinction for control
12139 characters. Remove some obsolete code.
12141 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
12144 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
12145 (Vw32_pass_lwindow_to_system):
12146 (Vw32_pass_rwindow_to_system):
12147 (Vw32_lwindow_modifier):
12148 (Vw32_rwindow_modifier):
12149 (Vw32_apps_modifier):
12150 (Vw32_enable_num_lock):
12151 (Vw32_enable_caps_lock):
12152 (Vw32_scroll_lock_modifier): New variables.
12153 (modifier_set): Return toggle state for Scroll Lock.
12154 (w32_key_to_modifier): New function. Returns chosen modifier bit
12156 (w32_get_modifiers): Returns modifier flags for
12157 non-keyboard input events.
12158 (construct_console_modifiers): Renamed from construct_modifiers;
12159 recognize Windows and Apps keys as modifiers.
12160 (w32_get_key_modifiers): New function. Returns modifier flags for
12161 keyboard input events.
12162 (map_keypad_keys): Make non-static. Use second arg as extended
12164 (w32_grabbed_keys): New variable.
12165 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
12166 (register_hot_keys):
12167 (unregister_hot_keys):
12169 (w32_parse_hot_key):
12170 (Fw32_register_hot_key):
12171 (Fw32_unregister_hot_key):
12172 (Fw32_registered_hot_keys):
12173 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
12174 (post_character_message): New function.
12175 (w32_msg_pump): Handle new messages for using hotkeys and changing
12176 keyboard layout/language.
12177 (w32_wnd_proc): Major rework of keyboard input handling:
12178 optionally recognize Windows keys and Apps key as modifiers;
12179 optionally treat NumLock, CapsLock and ScrollLock as function
12180 keys; let system translate keystrokes to characters to avoid
12181 system bugs relating to dead-key handling; preserve shift
12182 distinction for control characters; forward keyboard
12183 layout/language changes to lisp; detect and convert hot-key events
12184 to normal keystrokes.
12185 (syms_of_w32fns): Register new functions and variables.
12186 (w32_last_error): New function for use in debugging.
12188 1998-11-10 Kenichi Handa <handa@etl.go.jp>
12190 * category.h (CATEGORY_SET): Adjusted for the change of
12192 (CATEGORY_SET): Likewise.
12194 * charset.c (cmpchar_component): New arg NOERROR. Check
12195 composition char ID more strictly.
12196 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
12197 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
12199 (Fcompose_string): Signal error if STR contains a rule-based
12200 composition character.
12202 * charset.h (cmpchar_component): Proto-type adjusted.
12204 1998-11-09 Kenichi Handa <handa@etl.go.jp>
12206 * charset.c (string_to_non_ascii_char): Return correct length for
12207 a charset of dimension 2 and composition character.
12209 1998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
12211 * keymap.c (Fsingle_key_description): Handle generic characters.
12213 * process.c (Fprocess_status): Doc fix.
12215 1998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
12217 * charset.c (init_charset_once): Fix previous change.
12219 1998-11-06 Kenichi Handa <handa@etl.go.jp>
12221 * charset.c (string_to_non_ascii_char): Fix previous change.
12222 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
12224 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
12225 character correctly.
12226 (STRING_CHAR): Handle an invalid charater correctly.
12228 1998-11-05 Kenichi Handa <handa@etl.go.jp>
12230 * charset.c (string_to_non_ascii_char): Fix previous change.
12232 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
12234 * editfns.c (Fstring_to_char): Don't return a multibyte character
12235 if STRING is a unibyte string.
12237 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
12240 * xdisp.c (display_text_line): Check validity of a multibyte character.
12241 (display_string): Likewise. Handle an invalid character correctly.
12243 1998-11-05 Karl Heuer <kwzh@gnu.org>
12245 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
12246 If nothing to do, return immediately.
12247 (syms_of_insdel): Initialize combine_after_change_buffer.
12249 1998-11-05 Richard Stallman <rms@gnu.org>
12251 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
12253 1998-11-04 Geoff Voelker <voelker@cs.washington.edu>
12255 * w32term.c (w32_enable_unicode_output): Rename from
12256 w32_no_unicode_output.
12257 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
12260 1998-11-04 Jason Rumney <jasonr@altavista.net>
12262 * w32fns.c (w32_list_fonts): Report an error if a frame has not
12265 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
12267 1998-11-04 Kenichi Handa <handa@etl.go.jp>
12269 * charset.c (string_to_non_ascii_char): Change the check for the
12270 varidity of multibyte form.
12271 (update_charset_table): Check validity of BYTES. Don't set
12272 bytes_by_char_head here.
12273 (init_charset_once): Set bytes_by_char_head completely.
12275 * frame.c (do_switch_frame): Cancel previous change.
12277 * print.c (print_string): Check validity of a character.
12280 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
12282 * m/ews4800.h, s/ux4800.h: New files.
12284 1998-11-03 Theodore Jump <tjump@tertius.com>
12286 * makefile.nt: Compile multiple source files when possible.
12288 * w32faces.c (Qmouse_face): Replace definition with extern decl.
12290 1998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
12292 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
12293 so don't rely on it succeeding.
12295 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
12296 LOGFONT struct if x font doesn't specify the charset.
12297 (x_to_w32_charset): Change >= to == when testing results of
12300 1998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
12302 * fns.c (Frequire): New arg NOERROR.
12304 1998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
12306 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
12308 1998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
12310 * xfaces.c (Qmouse_face): Replace definition with extern decl.
12311 (syms_of_xfaces): Initialization deleted.
12313 * textprop.c (Qmouse_face): Variable definition moved here.
12314 (syms_of_textprop): Initialize it.
12316 * data.c (set_internal): For built-in maybe-local vars,
12317 when BINDFLAG is set, do not mark them as local.
12319 1998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
12321 * insdel.c (replace_range): Fix previous change.
12323 1998-10-31 Kenichi Handa <handa@etl.go.jp>
12325 * editfns.c (Fsubst_char_in_region): Fix previous change.
12326 (Ftranslate_region): Fix previous change.
12328 * fns.c (Fbase64_decode_region): Fix previous change.
12330 * frame.c (do_switch_frame): Update minibuf_window if necessary.
12332 * insdel.c (byte_combining_error): New function.
12333 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
12334 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
12335 CHECK_BYTE_COMBINING_FOR_INSERT.
12336 (insert_from_buffer_1): Likewise.
12337 (adjust_after_replace): Check the posibility of inhibitted byte
12338 combining correctly.
12339 (replace_range): Before signaling an error for inhibitted byte
12340 combining, recover the buffer in a safe state.
12341 (del_range_2): Check the posibility of inhibitted byte combining
12344 1998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
12346 * xselect.c (Vselection_coding_system): Doc fix.
12348 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
12349 when we have both char and byte position. Fix type clashes.
12351 * eval.c (Fsignal): Use a separate format string when passing
12352 error message string to fatal, in case it contains %'s.
12354 * editfns.c (Fchar_after): Fix type clashes.
12356 * charset.c (Fchar_bytes): Doc fix.
12357 (char_bytes): Fix returned value to match returned type.
12358 (syms_of_charset): Fix type clash in initialisation of
12361 1998-10-29 Geoff Voelker <voelker@cs.washington.edu>
12363 * w32console.c (initialize_w32_display): Use buffer coords
12364 instead of buffer size (which may be larger than the window).
12366 * fileio.c (init_fileio_once): New function.
12368 * emacs.c (main): Invoke init_fileio_once.
12370 1998-10-28 Paul Eggert <eggert@twinsun.com>
12372 * xterm.c (XTread_socket): Check the returned value of
12373 XmbLookupString more carefully.
12375 1998-10-28 Kenichi Handa <handa@etl.go.jp>
12377 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
12378 (DECODE_CHARACTER_DIMENSION1): Likewise.
12379 (DECODE_CHARACTER_DIMENSION2): Likewise.
12380 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
12382 * editfns.c (Fsubst_char_in_region): Fix previous change.
12383 (Ftranslate_region): Fix previous change.
12385 * insdel.c (check_markers): Check if markers are at character boundry.
12386 (adjust_markers_for_insert): Fix previous change.
12387 (count_combining_before): Don't limit the check at BEGV.
12388 (count_combining_after): Don't limit the check at ZV.
12389 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
12390 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
12391 (insert_from_string_1): Likewise.
12392 (insert_from_buffer_1): Likewise.
12393 (adjust_after_replace): Inhibit bytes combined across region
12394 boundary. Update end_unchanged correctly.
12395 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
12396 end_unchanged correctly.
12397 (del_range_2): Inhibit bytes combined across region boundary.
12398 Update end_unchanged correctly.
12400 1998-10-27 Geoff Voelker <voelker@cs.washington.edu>
12402 * w32.c (check_windows_init_file): Also look in load path specified
12405 * w32console.c (Fset_message_beep): Recognize 'silent.
12406 (w32_sys_ring_bell): Do nothing for the 'silent sound.
12408 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
12410 * w32select.c (Vnext_selection_coding_system): New variable.
12411 (syms_of_w32select): DEFVAR_LISP it.
12412 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
12413 non-nil. Always convert multibyte strings.
12414 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
12415 non-nil. Always convert a string that includes non-ASCII characters.
12417 1998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
12419 * fns.c (Fbase64_decode_string): Doc fix.
12420 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
12423 1998-10-27 Dave Love <fx@gnu.org>
12425 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
12426 newline in doc string.
12428 1998-10-27 Kenichi Handa <handa@etl.go.jp>
12430 * editfns.c (Fsubst_char_in_region): Correctly handle the case
12431 that byte combining before happens.
12432 (Ftranslate_region): Likewise.
12434 * insdel.c (adjust_after_replace): Correctly handle the case that
12435 both byte combining before and byte combining after happen.
12436 (replace_range): Likewise.
12438 1998-10-26 Kenichi Handa <handa@etl.go.jp>
12440 * category.c (syms_of_category): Doc-string modified.
12442 * coding.c (code_convert_region): Kill the work buffer created by
12443 pre-write-conversion.
12445 1998-10-25 Jason Rumney <jasonr@altavista.net>
12447 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
12449 1998-10-23 Kenichi Handa <handa@etl.go.jp>
12451 * coding.c (code_convert_region): While preserving the orignal
12452 point, pay attention to the byte combining problem.
12454 * fns.c (Fbase64_decode_region): Pay attention to the byte
12457 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
12458 combined_before_bytes and combined_after_bytes into account.
12459 (count_combining_after): Handle the case that LENGTH is zero.
12460 (adjust_after_replace): Record deletion at correct buffer
12461 position. Handle the case that LEN is zero.
12462 (replace_range): Record deletion at correct buffer position.
12463 (del_range_2): Call adjust_makers_for_replace to adjust makers for
12466 1998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
12468 * alloc.c (Fgarbage_collect): Block input around most of the function.
12470 1998-10-21 Kenichi Handa <handa@etl.go.jp>
12472 * coding.c (setup_coding_system): Fix setting up
12473 coding->spec.ccl.valid_codes for CCL based coding system.
12474 (code_convert_region): Set point to FROM before inserting the
12475 result of pre-write-funciton. Preserve original point.
12476 (code_convert_string): If coding->type is coding_type_ccl, do
12477 conversion even if the length of conversion region is zero.
12479 * fontset.c: Include frame.h before fontset.h.
12480 (list_fonts_func): Fix prototype.
12482 * frame.c: Include frame.h before fontset.h.
12484 * xterm.c: Likewise.
12486 1998-10-21 Jason Rumney <jasonr@altavista.net>
12488 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
12489 general macros. Don't call x_list_font directory, instead call a
12490 function set in list_fonts_func.
12492 * fontset.h (list_fonts_func): Fix prototype.
12494 1998-10-20 Jason Rumney <jasonr@altavista.net>
12496 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
12498 * w32faces.c: Update comments referring to obsolete structs.
12499 (allocate_face, copy_face, face_eql, load_font,
12500 Fpixmap_spec_p, free_frame_faces, new_computed_face,
12501 frame_update_line_height, merge_faces, compute_base_face,
12502 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
12504 * w32fns.c: (Vx_pixel_size_width): New global variable.
12505 (unibyte_display_via_language_environment): New global variable.
12506 (x_set_font): Add support for setting fontsets.
12507 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
12508 font names to match xlfd-tight-regexp.
12509 (w32_load_font): Rewrite based on x_load_font.
12510 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
12511 `iso8859-1' rather than `ansi'.
12512 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
12513 end. Move charset into `charset registry' field.
12514 (enum_font_cb2): Check charsets match. Include width in font list.
12515 (w32_list_fonts): Rewrite based on x_list_fonts.
12516 Moved from w32term.c to have access to enumfont_t struct.
12517 (Fx_list_fonts): w32 specific version eliminated. Include
12519 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
12520 functions for fontset support - adapted from x_ equivalents.
12521 (syms_of_w32fns): New lisp variables initialised. Function
12522 pointers for fontset.c set up.
12524 * w32term.c: Include fontset.h. Define codepage macros.
12525 Add ENCODE_BIG5 macro from coding.c.
12526 (w32_no_unicode_output): New variable.
12527 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
12529 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
12530 (dumpglyphs): Rewrite based on xterm.c equivalent.
12531 (x_new_font): Use functionality provided in fontset.c.
12532 (x_new_fontset): New function based on the one in xterm.c.
12533 (syms_of_w32term): Add w32-no-unicode-output flag.
12535 * w32term.h: Remove redundant font_info struct definition.
12536 (Vx_pixel_size_width_font_regexp,
12537 unibyte_display_via_language_environment): Declare variables.
12538 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
12540 (w32_output): New fields font_baseline and fontset.
12541 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
12543 * w32xfns.c: Include charset.h and fontset.h.
12545 1998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
12547 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
12549 1998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
12551 * msdos.c (mouse_init): Reset the button press/release info of the
12553 (mouse_preempted): New variable.
12554 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
12555 (XMenuActivate): Preempt the mouse during menu-handling loop.
12556 Release the current time slice while idling in the menu-handling
12557 loop. Leave the loop only if the user pressed, then released the
12558 same button. Discard all mouse events that are pending in the
12559 event queue before exiting.
12561 1998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
12563 * editfns.c (Fformat): Increase buffer size for floating format.
12565 1998-10-17 Kenichi Handa <handa@etl.go.jp>
12567 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
12568 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
12569 Declare auto-fill-chars as a Lisp variable and initialize it.
12571 * charset.h (Vauto_fill_chars): Extern it.
12573 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
12575 1998-10-16 Kenichi Handa <handa@etl.go.jp>
12577 * casefiddle.c (casify_object): Use make_string instead of
12578 make_specified_string to cope with byte-combining situation.
12580 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
12581 1 when encountered with a code of the range 0x80..0x9F.
12583 1998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
12585 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
12586 trying $TMP and $TEMP, since the former is always set in msdos.c.
12587 (Fcall_process_region) [DOS_NT]: When looking for a place to put
12588 the temporary files, check $TMPDIR as well.
12590 1998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
12592 * process.c (exec_sentinel, read_process_output):
12593 Restore waiting_for_user_input_p after running Lisp code.
12595 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
12596 (command_loop): Likewise.
12598 1998-10-14 Kenichi HANDA <handa@etl.go.jp>
12600 * data.c (Faset): Fix previous change.
12602 * fns.c (Ffillarray): Fix previous change.
12604 * insdel.c (adjust_markers_for_combining): This function deleted.
12605 (adjust_markers_for_replace): Correctly adjust marker positions.
12606 Don't record these adjustment because they were recorded already.
12607 (combine_bytes): Don't adjust markers here.
12609 1998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
12611 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
12613 1998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
12615 * keyboard.c (Fclear_this_command_keys): New function.
12616 (syms_of_keyboard): defsubr it.
12618 * macros.c (Fexecute_kbd_macro): Set real_this_command.
12620 1998-10-12 Kenichi Handa <handa@etl.go.jp>
12622 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
12624 * charset.c (Fstring): Call make_string instead of
12625 make_string_from_bytes.
12626 (Ffind_charset_region): Include `composition' in the returned list
12627 if the region contains any composite characters.
12628 (Ffind_charset_string): Include `composition' in the returned list
12629 if the string contains any composite characters.
12630 (find_charset_in_str): Handle CMPCHARP arg correctly.
12632 * coding.c (shrink_decoding_region): If a charset other than ascii
12633 is initially designated to G0, don't shrink the region.
12634 (shrink_encoding_region): Likewise.
12636 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
12637 byte-combining situation.
12639 * fns.c (clear_string_char_byte_cache): New function.
12640 (Ffillarray): Handle multibyte string correctly.
12642 * lisp.h (clear_string_char_byte_cache): Extern it.
12644 * xselect.c (lisp_data_to_selection_data): Call
12645 find_charset_in_str with CMPCHARP arg 0.
12646 * w16select.c (Fw16_set_clipboard_data): Likewise.
12647 * w32select.c (Fw32_set_clipboard_data): Likewise.
12649 1998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
12651 * keyboard.c (parse_menu_item): For top level of menu bar,
12652 accept ordinary commands, and treat them just like a keymap.
12654 1998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
12656 * xdisp.c (redisplay_window): Clear w->window_end_valid
12657 before running the window-scroll-functions hook, if appropriate.
12659 1998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
12661 * data.c (Fstring_to_number): Don't recognize floating point
12664 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
12665 (check_all_windows): New function for debugging tests.
12666 (syms_of_window): Initialize it.
12668 * window.c (Qwindow_configuration_p): New variable.
12669 (Fwindow_configuration_frame): New function.
12670 (syms_of_window): defsubr it.
12671 (Fset_window_configuration): Return t if frame is live.
12672 Use Qwindow_configuration_p.
12674 * xfns.c (check_x_display_info): Don't use selected_frame
12677 1998-10-09 Geoff Voelker <voelker@cs.washington.edu>
12679 * w32fns.c (x_create_bitmap_from_file): Skip special files.
12681 1998-10-08 Kenichi Handa <handa@etl.go.jp>
12683 * buffer.h (inhibit_modification_hooks): Extern it.
12685 * buffer.c (inhibit_modification_hooks): New variable.
12686 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
12688 * charset.c (invalid_character): Prepend `0' to octal
12689 representation. Give error sufficient args.
12691 * coding.c (code_convert_region): Set inhibit_modification_hooks
12692 to 1 before calling Fset_text_properties.
12694 * insdel.c (signal_before_change): If inhibit_modification_hooks
12695 is nonzero, do nothing.
12696 (signal_after_change): Likewise.
12698 1998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
12700 * process.c: Doc fixes.
12702 1998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
12704 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
12706 1998-10-07 Geoff Voelker <voelker@cs.washington.edu>
12708 * w32.c (init_ntproc): Check for Windows init file.
12709 (term_ntproc): Do not check for it here.
12711 1998-09-28 Kenichi Handa <handa@etl.go.jp>
12713 * coding.c (check_composing_code): Fix previous change. Now it
12714 alwasy returns 0 or -1.
12715 (decode_coding_iso2022): Adjusted for the above change.
12716 (encode_coding_iso2022): When encoding the last block, flush out
12717 tailing garbage bytes.
12718 (setup_coding_system): Delete unnecessary code.
12719 (shrink_decoding_region): Check translation table. If ASCII
12720 should be translated, give up shrinking.
12721 (shrink_encoding_region): Likewise.
12722 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
12723 (SHRINK_CONVERSION_REGION): New macro.
12724 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
12726 (code_convert_region): In the case of encoding, always calulate
12727 correct character number.
12728 (code_convert_string): Call SHRINK_CONVERSION_REGION.
12729 (code_convert_region1): Don't delete text properties here.
12731 * insdel.c (adjust_after_replace): Don't delete text properties here.
12733 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
12735 1998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
12737 * emacs.c (sort_args): Fill extra space with NULL ptrs.
12739 1998-09-26 Kenichi Handa <handa@etl.go.jp>
12741 * coding.h (struct coding_system): New member composed_chars.
12743 * coding.c (check_composing_code): If the current composing
12744 sequence doesn't end properly, return -1.
12745 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
12746 (DECODE_CHARACTER_DIMENSION1): Likewise.
12747 (decode_coding_iso2022): Check validity of a composing sequence.
12748 (code_convert_string): If the length of text to be converted is
12749 shrunk to zero, don't perform code conversion.
12750 (shrink_decoding_region): Fix previous change.
12752 * editfns.c (Fformat): Check format control characters.
12754 1998-09-25 Kenichi Handa <handa@etl.go.jp>
12756 * coding.c (decode_eol): While decoding DOS-like eol, handle a
12757 single CR code correctly.
12758 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
12759 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
12761 1998-09-23 Geoff Voelker <voelker@cs.washington.edu>
12763 * w32fns.c (w32_color_map_lookup): New function.
12764 (x_to_w32_color): Approximate colors ending in numbers if necessary.
12766 1998-09-22 Kenichi Handa <handa@etl.go.jp>
12768 * ccl.c (ccl_driver): Report correct CCL program counter on error.
12770 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
12772 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
12774 1998-09-22 Kenichi Handa <handa@etl.go.jp>
12776 * callint.c (Fcall_interactively): Don't use input method when
12777 reading a character in the case of `c' code letter.
12779 1998-09-21 Dave Love <fx@gnu.org>
12781 * editfns.c (Fsave_restriction): Doc fix.
12783 1998-09-21 Richard Stallman <rms@gnu.org>
12785 * lread.c (build_load_history): Do add to Vload_history
12786 even when dumping Emacs.
12788 1998-09-18 Kenichi Handa <handa@etl.go.jp>
12790 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
12791 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
12792 cause error if the program is going to output some bytes. When
12793 outputing a string to notify an error, check the case that
12796 * coding.h (CODING_FINISH_INTERRUPT): New macro.
12798 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
12799 user or the CCL program executed an invalid command, return
12800 CODING_FINISH_INTERRUPT.
12801 (code_convert_region): Pay attention to the converters return
12802 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
12804 1998-09-16 Kenichi Handa <handa@etl.go.jp>
12806 * coding.c (code_convert_region): Update beg_unchanged and
12807 end_unchanged after we delete the source text.
12809 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
12810 position if it is FROM.
12811 (adjust_markers_for_combining): New function.
12812 (combine_bytes): Call adjust_markers_for_combining instead of
12813 adjust_markers_for_replace.
12814 (adjust_after_replace): Record deletion of combining after bytes
12815 with the correct position.
12816 (replace_range): Likewise. Record the actual deletion after
12817 recoding deletions of combining bytes.
12819 * xdisp.c (message_log_check_duplicate): Count byte length of the
12820 latest message correctly.
12822 1998-09-12 Richard Stallman <rms@gnu.org>
12824 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
12825 instead of SET_PT_BOTH.
12826 (try_window_id, display_text_line): Likewise.
12828 1998-09-12 Karl Heuer <kwzh@gnu.org>
12830 * data.c (Fmake_local_variable): Doc fix.
12832 1998-09-10 Dave Love <fx@gnu.org>
12834 * print.c (Fwith_output_to_temp_buffer): Doc fix.
12836 1998-09-10 Richard Stallman <rms@gnu.org>
12838 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
12839 (bcopy, bcmp, bzero): Add #undef.
12841 * keyboard.c (command_loop_1): When switching to selected window's bfr,
12842 first exit if selected frame is dead (no live frames remain).
12843 (read_key_sequence): Likewise.
12845 1998-09-10 Karl Heuer <kwzh@gnu.org>
12847 * emacs.c (main): Mention --display and --eval in help.
12849 1998-09-07 Paul Eggert <eggert@twinsun.com>
12851 * editfns.c (emacs_memftime): New function.
12852 (Fformat_time_string): Use it to handle null bytes in formats
12855 1998-09-08 Kenichi Handa <handa@etl.go.jp>
12857 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
12858 (Ffind_charset_string): For unibyte string, return (ascii).
12860 * editfns.c (Fsubst_char_in_region): Call replace_range with the
12863 * insdel.c (adjust_after_replace): Don't add combining bytes to
12864 the args given to adjust_point. Handle correctly the case that
12865 there are both before and after combining bytes.
12866 (replace_range): Likewise.
12868 1998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
12870 * fns.c (base64_decode_1, base64_encode_1): New functions.
12871 (Fbase64_decode_string, Fbase64_encode_string): New functions.
12872 (Fbase64_decode_region, Fbase64_encode_region): New functions.
12874 1998-09-07 Karl Heuer <kwzh@gnu.org>
12876 * eval.c (error): After enlarging buffer, write to it, not to buf.
12878 * fns.c (Fwidget_put): Return VALUE instead of garbage.
12880 1998-09-07 Kenichi Handa <handa@etl.go.jp>
12882 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
12883 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
12884 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
12886 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
12887 chars in produced byte sequence.
12888 (Ffind_operation_coding_system): Doc-string fixed.
12890 * insdel.c (count_combining_after): Check also preceding bytes at
12891 POS if all characters in STRING are not character head.
12893 1998-09-06 Paul Eggert <eggert@twinsun.com>
12895 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
12896 Don't assume that localtime and gmtime return non-NULL.
12898 1998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
12900 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
12901 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
12904 1998-09-06 Richard Stallman <rms@gnu.org>
12906 * editfns.c (Fformat): Detect incomplete format spec at string's end.
12908 * lread.c (Fload): Handle case where openp finds a magic file
12909 but it has no `load' handler or that handler calls `load'.
12910 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
12912 1998-09-04 Dave Love <fx@gnu.org>
12914 * buffer.c (enable-multibyte-characters): Doc fix.
12916 1998-09-02 Geoff Voelker <voelker@cs.washington.edu>
12918 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
12920 1998-09-01 Kenichi Handa <handa@etl.go.jp>
12922 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
12923 address in buffer from byte-position.
12925 1998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
12927 * w16select.c (Vnext_selection_coding_system): New variable.
12928 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
12929 Vselection_coding_system.
12930 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
12931 Vnext_selection_coding_system if non-nil.
12932 (Fw16_get_clipboard_data): Always convert a string that includes
12933 non-ASCII characters. Use Vnext_selection_coding_system if
12936 1998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
12938 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
12941 1998-08-31 Kenichi Handa <handa@etl.go.jp>
12943 * xterm.c (x_load_font): If SIZE is 0, don't use a name
12944 x_list_font returns.
12946 1998-08-31 Paul Eggert <eggert@twinsun.com>
12948 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
12949 Handle leading '-' uniformly for zeros, infinities, and NaNs.
12951 1998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
12953 * msdos.c (IT_cmgoto): When tracking echo area messages with the
12954 cursor, save and restore previous cursor position in the
12957 1998-08-31 Kenichi Handa <handa@etl.go.jp>
12959 * charset.c (unibyte_char_to_multibyte):
12960 Vnonacii_translation_table will convert a 7-bit charcater.
12961 (multibyte_char_to_unibyte): Handle the case that
12962 Vnonacii_translation_table converts a multibyte charcater to a
12963 unibyte charcter of less than 128.
12964 (init_charset_once): Initialize nonascii_insert_offset and
12965 Vnonacii_translation_table.
12967 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
12968 processing if CODING requires flushing.
12969 (encode_coding): Likewise.
12970 (code_convert_region): Likewise.
12971 (code_convert_string): Likewise.
12973 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
12974 to convert a character less than 160 to multibyte.
12975 * insdel.c (copy_text): Likewise.
12976 (count_size_as_multibyte): Likewise.
12977 * xterm.c (dumpglyphs): Likewise.
12979 1998-08-29 Paul Eggert <eggert@twinsun.com>
12981 * data.c (arith_driver, float_arith_driver): Compute (- x) by
12982 using negation, not subtraction; this makes a difference with
12983 IEEE floating point arithmetic (and also if integer arithmetic
12984 is ones' complement or signed-magnitude!).
12986 1998-08-29 Karl Heuer <kwzh@gnu.org>
12988 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
12990 1998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
12992 * charset.c (Fchar_bytes): Add \n\ in doc-string.
12994 1998-08-28 Paul Eggert <eggert@twinsun.com>
12996 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
12997 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
12998 path only if we're not building with Motif.
13000 1998-08-28 Kenichi Handa <handa@etl.go.jp>
13002 * insdel.c (adjust_after_replace): Fix the code to record undo
13003 information for the case that `before combining' happens. Remove
13004 text properties which are added to the new text by
13007 * coding.c (code_convert_region1): Remove all text properties of
13010 1998-08-28 Kenichi Handa <handa@etl.go.jp>
13012 * charset.h (CHAR_BYTES): New macro.
13014 * charset.c (Fchar_bytes): Now always return 1.
13015 (char_bytes): New function.
13017 * editfns.c (Fposition_bytes): If the arg POSITION is out of
13019 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
13022 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
13023 * fns.c (concat): Likewise.
13024 * insdel.c (count_size_as_multibyte): Likewise.
13025 * xdisp.c (message_dolog): Likewise.
13027 1998-08-27 Kenichi Handa <handa@etl.go.jp>
13029 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
13030 correctly. They are for SS2 and SS3 respectively.
13031 (ccl_coding_driver): Fix previous change.
13033 1998-08-26 Paul Eggert <eggert@twinsun.com>
13035 * xterm.c (fixup_locale): New function. For now, it resets
13036 LC_TIME to "C" (reverting the 1998-08-07 change), and also
13037 resets LC_MESSAGES to "C".
13038 (x_term_init): Use it to fix up the locale after setlocale
13041 1998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13043 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
13044 case it was prototyped the old way.
13046 1998-08-25 Kenichi Handa <handa@etl.go.jp>
13048 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
13049 returns a null string. This happens when dxpc 3.7 is being used.
13051 1998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
13053 * keyboard.c (input-method-previous-message): Doc fix.
13055 * coding.c (file-coding-system-alist,
13056 select-safe-coding-system-function): Doc fix.
13058 1998-08-23 Kenichi HANDA <handa@etl.go.jp>
13060 * coding.c (detect_coding_iso2022): Don't check the byte length of
13061 succeeding codes (0xa0..0xFF) if the codes follows single shift
13064 1998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
13066 * coding.c (detect_coding_system): If detect_eol_type returns
13067 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
13070 See ChangeLog.7 for earlier changes.