unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: David Reitter <david.reitter@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: redisplay - very long lines
Date: Mon, 16 Feb 2009 21:27:14 +0200	[thread overview]
Message-ID: <ueixyw5bh.fsf@gnu.org> (raw)
In-Reply-To: <3FEE1ADD-7471-4EA4-AE55-9175C9218B6E@gmail.com>

> From: David Reitter <david.reitter@gmail.com>
> Date: Mon, 16 Feb 2009 08:44:23 -0500
> 
> The redisplay code seems to be unable to deal efficiently with very  
> long lines, that is, lines that go beyond the currently displayed  
> window.

This is a known limitation of the Emacs display engine, but IIRC it
has nothing to do with display margins.  The same slowdown happens if
your display is as wide as the longest line.

> Would it be possible to add a termination condition in move_it_to to  
> stop after leaving the window vertically or horizontally (with  
> truncate-lines)?

If we can tolerate an incorrect display, maybe.  The invisible part of
the line could in principle include characters and faces whose
presence may have global effects on the rest of the displayed portion,
such as faces that use larger fonts, to say nothing of inline images.

But it's been a while since I last took a good look at display code,
so perhaps I'm misremembering something, or maybe things changed.




  reply	other threads:[~2009-02-16 19:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16 13:44 redisplay - very long lines David Reitter
2009-02-16 19:27 ` Eli Zaretskii [this message]
2009-02-16 23:02   ` David Reitter
2009-02-17  4:16     ` Eli Zaretskii
2009-02-17 13:40       ` Stefan Monnier
2009-02-17 19:41         ` Eli Zaretskii
2009-02-17 21:21           ` David Reitter
2009-02-18  4:09             ` Eli Zaretskii
2009-02-18  4:50               ` David Reitter
2009-02-18 18:47                 ` Eli Zaretskii
2009-02-18 19:44                   ` Stefan Monnier
2009-02-18 19:50                     ` David Reitter
2009-02-18  2:26           ` Stefan Monnier
2009-02-18  4:17             ` Eli Zaretskii
2009-02-18  4:56               ` Stefan Monnier
2009-02-18 18:46                 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2009-02-17 17:16 grischka
2009-02-17 19:37 ` Eli Zaretskii
2009-02-18 20:41   ` grischka
2009-02-19  4:15     ` Eli Zaretskii
2009-02-19 16:30       ` grischka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ueixyw5bh.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=david.reitter@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).