aboutsummaryrefslogtreecommitdiffstats
path: root/src/xdisp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (next_element_from_buffer): Change assertion at the endGerd Moellmann1999-12-311-3/+2
| | | | | because it doesn't hold when there's an overlay string at the end from which we deliver an image.
* (dump_glyph_row): Adapt to changes in struct glyph.Gerd Moellmann1999-12-281-2/+2
|
* (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGEDGerd Moellmann1999-12-281-1/+1
| | | | if MODIFF > 1.
* All codes adjusted for the change of struct glyph.Kenichi Handa1999-12-271-18/+14
|
* (redisplay_window) <optional new window start>: CheckGerd Moellmann1999-12-151-1/+3
| | | | that window start is in [BEGV..ZV].
* (it_props): Add an entry for composition.Kenichi Handa1999-12-151-22/+181
| | | | | | | | | | | | | | | | | | | (face_before_or_after_it_pos): For composition, check face of a character after the composition. (handle_composition_prop): New function. (get_next_display_element): Adjusted for the change of CHAR_STRING. (set_iterator_to_next): Handle the case that it->method == next_element_from_composition. (next_element_from_composition): New function. (message_dolog): Adjusted for the change of CHAR_STRING. (set_message_1): Likewise. (check_point_in_composition): New function. (reconsider_clip_changes): If point moved into or out of composition, set b->clip_changed to 1 to force updating of the screen. (disp_char_vector): Delete codes for a composite character. (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
* Don't duplicate Qheight, Qwidth definitions done elsewhere.Dave Love1999-11-241-7/+4
|
* (ensure_echo_area_buffers): New.Gerd Moellmann1999-11-141-8/+23
| | | | | (with_echo_area_buffer): Use it. (setup_echo_area_for_printing): Ditto.
* Remove conditional computation on USE_TEXT_PROPERTIES.Gerd Moellmann1999-11-071-10/+6
| | | | | (resize_mini_window): Fix computation of needed mini-window height.
* (display_line): Set charpos of first glyph in blankGerd Moellmann1999-11-021-5/+5
| | | | | lines not corresponding to any text to -1, even if no glyphs are filled in in that line.
* (resize_mini_window): Compute needed height differently.Gerd Moellmann1999-10-311-1/+2
|
* (append_space): Return non-zero if space was appended.Gerd Moellmann1999-10-311-9/+10
| | | | | (display_line): Set charpos of first glyph to -1 only if that glyph is the space added by append_glyph.
* * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing ifGerd Moellmann1999-10-261-3/+2
| | | | Vterminal_frame is selected and Vwindow_system is non-nil.
* (echo_area_display): Put previous change in #if 0.Gerd Moellmann1999-10-261-0/+2
|
* (echo_area_display) [HAVE_X_WINDOWS]: Do nothingGerd Moellmann1999-10-191-8/+3
| | | | if selected_frame is equal to Vterminal_frame.
* Add support for large files, 64-bit Solaris, system locale codings.Paul Eggert1999-10-191-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" when dumping, so that the dumped Emacs doesn't have stray locale info. (dired.o): Depend on systime.h. (editfns.o): Depend on coding.h. * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Include <config.h> before any system include files. * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xterm.c: Do not include <stdlib.h>, as <config.h> does this now. * callproc.c (Fcall_process): Synchronize messages locale before invoking strerror. Decode resulting string with locale-coding-system. * coding.c (Vlocale_coding_system): New var. (syms_of_coding): Adjust to above change. (emacs_strerror): New function. * coding.h (emacs_strerror, Vlocale_coding_system): New decls. * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, HAVE_STRSIGNAL): New macros. (BITS_PER_LONG): Default to 64 if _LP64 is defined. <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. * dired.c: Include "systime.h". (Ffile_attributes): Do not cast s.st_size to int; this loses information if int is 32 bits but st_size and EMACS_INT are larger. Treat large device numbers like large inode numbers. * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. * editfns.c: Include coding.h. (emacs_strftime): Remove decl. (emacs_strftimeu): New decl. (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. Use emacs_strftimeu instead of emacs_strftime. (Fformat_time_string): Convert format string using Vlocale_coding_system, and convert result back. Synchronize time locale before invoking lower level function. Invoke emacs_memftimeu, passing ut, instead of emacs_memftime. * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, Vprevious_time_locale): New variables. (main): Invoke setlocale early, so that initial error messages are localized properly. But skip locale-setting if LC_ALL is "C". Fix up locale when it's safe to do so. (fixup_locale): Moved here from xterm.c. (synchronize_locale, synchronize_time_locale, synchronize_messages_locale): New functions. (syms_of_emacs): Accommodate above changes. * fileio.c (report_file_error): Convert strerror output according to Vlocale_coding_system. (Finsert_file_contents): Check for arithmetic overflow in computations that depend on file size. Report IO errors with emacs_strerror, not strerror. * fns.c (Fgethash): Declare dflt parameter. * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H is defined; that's config.h's job. * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, default these values to long, BITS_PER_LONG, and unsigned long. (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. (code_convert_string_norecord, fixup_locale, synchronize_messages_locale, synchronize_time_locale, emacs_open, emacs_close, emacs_read, emacs_write): New decls. All Emacs callers of open, close, read, write changed to use emacs_open, emacs_close, emacs_read, emacs_write. * lread.c (file_offset, file_tell): New macros. All uses of ftell changed to file_tell. (saved_doc_string_position, prev_saved_doc_string_position): Now of type file_offset. (init_lread): Do not fix locale here; fixup_locale now does this. * m/amdahl.h, s/usg5-4.h: (NSIG): Remove. (NSIG_MINIMUM): New macro. * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/umips.h, s/usg5-4.h: (SIGIO): Do not undef. (BROKEN_SIGIO): New macro. * m/ustation.h: (SIGTSTP): Do not undef. (BROKEN_SIGTSTP): New macro. * s/gnu-linux.h: (SIGPOLL, SIGURG): Do not undef. (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. * s/ptx4.h: (SIGINFO): Do not undef. (BROKEN_SIGINFO): New macros. * m/delta.h, s/ptx.h, s/template.h: Doc fix. * mktime.c, strftime.c: Update to glibc 2.1.2 version, with some Emacs-related changes merged. * print.c (float_to_string): Prepend "-" to representation of a NaN if the NaN is negative. * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. (wait_reading_process_input): Use emacs_strerror, not strerror. * process.c (status_message, sigchld_handler): Synchronize locale, then use strsignal istead of sys_siglist. * w32proc.c (sys_wait): Likewise. * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h, s/usg5-3.h, s/xenix.h: (open, close, read, write, INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. * sysdep.c (sys_read, sys_write, read, write, sys_close, close, sys_open, open): Remove. (emacs_open, emacs_close, emacs_read, emacs_write): Always define; the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO macros are no longer used. (emacs_open): Renamed from sys_open. Merge BSD4_1 version. (emacs_close): Renamed from sys_close. (emacs_read): Renamed from sys_read. (emacs_write): Renamed from sys_write. (sys_siglist): Do not declare if HAVE_STRSIGNAL. (dup2): Do not print error on failure; the real dup2 doesn't. (strsignal): New function, defined if !HAVE_STRSIGNAL. * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO is defined. (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. (strsignal): Declare if !HAVE_STRSIGNAL. * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. (ElfW): Define in terms of ElfExpandBitsW. * w32proc.c (sys_siglist): Remove decl. * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply with ANSI C. (display_string): Declare face_string_pos arg. * xfns.c (Fx_show_tip): Declare timeout param. * xterm.c: No need to include locale.h. (x_alloc_lighter_color, x_setup_relief_color): Pass arg as double, not float, for compatibility with ANSI C. (fixup_locale): Move to emacs.c. (x_term_init): Do not setlocale or fixup locale; the main program does this now.
* (handle_fontified_prop): GCPRO pos.Dave Love1999-10-141-0/+3
|
* (display_menu_bar): Use MENU_FACE_ID instead ofGerd Moellmann1999-10-061-3/+3
| | | | MODE_LINE_FACE_ID.
* (resize_mini_window): Do nothing if frame is an XGerd Moellmann1999-09-291-1/+2
| | | | frame that hasn't been initialized yet.
* (display_prop_end, invisible_text_between_p): UseGerd Moellmann1999-09-261-23/+9
| | | | next_single_char_property_change.
* (add_to_log): Moved from xfaces.c. Remove frameGerd Moellmann1999-09-231-0/+31
| | | | parameter.
* (resize_mini_window): Use grow_mini_window andGerd Moellmann1999-09-231-22/+11
| | | | shrink_mini_window.
* (sync_frame_with_window_matrix_rows): Disable frame rowsGerd Moellmann1999-09-201-0/+7
| | | | | whose corresponding window rows have been disabled in try_window_id.
* (compute_window_start_on_continuation_line): Handle caseGerd Moellmann1999-09-201-14/+38
| | | | | | | | | that window start is out of range. (handle_display_prop, handle_single_display_prop): Replace marginal area specifications like `left-margin' with `(margin left-margin)'. (Qmargin): New. (syms_of_xdisp): Initialize Qmargin.
* (echo_area_display): Turn off code that returnedRichard M. Stallman1999-09-181-0/+5
| | | | without doing anything when using a terminal frame.
* (resize_mini_window): Temporarily set the selectedGerd Moellmann1999-09-161-0/+12
| | | | | window's or Vminibuf_scroll_window's height to "fixed" around the call the change_window_height.
* (resize_mini_window): Don't report changed windowGerd Moellmann1999-09-151-1/+2
| | | | height if it actually hasn't changed.
* (display_echo_area_1, try_window_id): Remove unusedGerd Moellmann1999-09-141-3/+0
| | | | variable(s).
* (redisplay_window): Make sure start_at_line_begGerd Moellmann1999-09-131-2/+2
| | | | is always set correctly.
* (move_it_in_display_line_to): Make type consistent with declaration.Dave Love1999-09-131-1/+1
|
* (QCfile): Move here from xfns.c.Gerd Moellmann1999-09-131-40/+52
| | | | | | | | (syms_of_xdisp): Initialize it. (message2_nolog): Change for Lisp_Object selected_frame. (message3_nolog, message_with_string, message, setup_echo_area_for_printing, truncate_echo_area, prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
* (resize_mini_window): Add parameter exact_p. ResizeGerd Moellmann1999-09-121-16/+67
| | | | | | | | | | | to exact size if exact_p is non-zero. (display_echo_area_1): Call resize_mini_window with new parameter. (redisplay_internal): Ditto. (resize_echo_area_axactly): New. (hscroll_window_tree): Choose cursor row from desired or current matrix. (redisplay_internal): Hscroll before updating.
* (run_window_scroll_functions): If hook functions switchRichard M. Stallman1999-09-121-2/+10
| | | | buffers, switch back after.
* (Qwhen): Replaces QCwhen.Gerd Moellmann1999-09-081-5/+5
| | | | | (syms_of_xdisp): Initialized it instead of QCwhen. (handle_single_display_prop): Use it instead of QCwhen.
* (handle_single_display_prop): Change conditionalGerd Moellmann1999-09-071-5/+2
| | | | display property to `:when FORM . VALUE'.
* ChangeGerd Moellmann1999-09-051-40/+42
| | | | | `top-line' and `top_line' to `header-line' and `header_line'. Likewise for similar spellings.
* (row_containing_pos): New.Gerd Moellmann1999-09-051-146/+175
| | | | | | (try_window_id): Use it. Change spelling of `toolbar' to `tool_bar' or `tool-bar'. Likewise for upper-case etc.
* Use XCAR and XCDR instead of XCONS.Gerd Moellmann1999-09-031-98/+55
| | | | | | | | | | | (Vresize_mini_config, resize_mini_frame, resize_mini_initial_height): Removed. (syms_of_xdisp): Remove references to these variables. (resize_mini_window): Don't save window configuration, freeze window starts instead. Enlarge window until displaying an empty buffer, then shrink it. Make the function externally visible. (redisplay_window): Treat frozen window start like forced start, but accept point outside of the window.
* (get_next_display_element): Display incomplete multibyteKenichi Handa1999-09-031-14/+26
| | | | sequence (e.g. \222\300) by octal form.
* (try_window_id): Reset first_unchanged_at_end_rowGerd Moellmann1999-09-021-6/+13
| | | | if we have displayed to the bottom of the window.
* (window_box_width): Use FRAME_FLAGS_AREA_COLS instead ofGerd Moellmann1999-08-301-2/+2
| | | | | | 2 * that value. (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
* (resize_mini_window): Don't resize ifGerd Moellmann1999-08-251-1/+8
| | | | | | Vmax_mini_window_height is nil. Otherwise, use a default if Vmax_mini_window_height is not ot a number. (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
* (try_window_id): Remove typo.Gerd Moellmann1999-08-251-1/+1
|
* (try_window_id): Recognize case that PT == ZV and inGerd Moellmann1999-08-251-2/+12
| | | | | | unchanged text at the bottom when computing the cursor position. (message3_nolog): Raise frame only if minibuffer_auto_raise is set.
* (redisplay_window): Don't ever test just_this_one_pGerd Moellmann1999-08-241-34/+70
| | | | | | | | before calling try_window. (echo_area_display): If height has changed, update other windows. (resize_mini_frame, resize_mini_initial_height): New. (resize_mini_window): Save/restore window configuration differently.
* (redisplay_internal): Clear garbaged frames afterGerd Moellmann1999-08-231-64/+93
| | | | | | | | | | | | | | | resizing mini-window. (unwind_with_echo_area_buffer): Use set_buffer_internal_1 instead of set_buffer_internal. (with_echo_area_buffer): Ditto. (Vresize_mini_config): New. (resize_mini_window): Use it to save restore original window configuration (syms_of_xdisp): Initialize it. (reconsider_clip_changes): New. (redisplay_internal, redisplay_window): Call it. (mark_window_display_accurate, redisplay_internal): Set current matrix' buffer, begv, zv.
* (resize_mini_window): Do it for truncate-lines t asGerd Moellmann1999-08-211-59/+75
| | | | | | | | well. (redisplay_internal): Resize mini-window only if text might have changed. (display_echo_area): Reset displayed echo_area_buffer to nil at the end if we're displaying a nil message.
* Call change_frame_size and do_pending_window_change withGerd Moellmann1999-08-211-303/+775
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new parameter. Remove conditional compilation on NO_PROMPT_IN_BUFFER. (get_next_display_element): Display \r as ^M. (minibuffer_scroll_overlap): Removed because not used anywhere. (unwind_redisplay): Return nil. (clear_garbaged_frames): New. (redisplay_internal): Use it. (echo_area_display): Ditto. (resize_mini_window): Mew. (display_echo_area_1): Use it to resize echo area window. (redisplay_internal): Use it to resize active mini-window. (echo_area_glyphs, echo_area_message, echo_area_glyphs_length, previous_echo_glyphs, previous_echo_area_message, previous_echo_area_glyphs_length): Removed. (Vmessage_stack, echo_area_buffer, echo_buffer, display_last_displayed_message_p, Vwith_echo_area_save_vector): New. (message2_nolog): Use set_message and clear_message. (message3): Rename parameter len to nbytes to make clear what it is. (message3_nolog): Ditto. Use set_message and clear_message. (update_echo_area): Rewritten. (with_echo_area_buffer): New. (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. (setup_echo_area_for_printing): New. (display_echo_area, display_echo_area_1): New. (current_message, current_message_1): New. (push_message, restore_message, pop_message, check_message_stack): New. (truncate_echo_area): Rewritten. (truncate_message_1): New. (set_message, set_message_1, clear_message): New. (echo_area_display): Rewritten. (redisplay_internal): Check for needed echo area update differently. (redisplay_preserve_echo_area): Rewritten. (redisplay_window): Check for mini-window displaying echo area message differently. (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. Remove initialzation of removed variables. (init_xdisp): Remove references to removed variables.
* (unwind_redisplay): New. Resets flag redisplaying_p.Gerd Moellmann1999-08-171-9/+25
| | | | | | | | (redisplay_internal): Register unwind_redisplay with register_unwind_protect. (try_window_reusing_current_matrix): If new start > old start, give up if start pos of first reusable row is not equal to new start.
* (Qshow_trailing_whitespace): Removed.Gerd Moellmann1999-08-171-15/+19
| | | | | | | | | | | | | | | | (Vshow_trailing_whitespace): Added. (init_iterator): Remove initialization code for show_trailing_whitespace_p. (redisplay_internal): Don't try cursor movement in this_line if showing trailing whitespace. (redisplay_window): Likewise for cursor movement in current matrix and try_window_id. (try_window_reusing_current_matrix): Likewise. (trailing_whitespace_p): Return 0 if trailing whitespace is in front of point. (display_line): Use Vshow_trailing_whitespace instead of former iterator member show_trailing_whitespace_p. (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.