all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: 9470@debbugs.gnu.org
Subject: bug#9470: 24.0.50; Possible bidi-related slowness
Date: Sat, 10 Sep 2011 16:10:39 -0400	[thread overview]
Message-ID: <E1R2Tst-0008MA-Jc@fencepost.gnu.org> (raw)
In-Reply-To: <m3vct0422v.fsf@stories.gnus.org> (message from Lars Magne Ingebrigtsen on Sat, 10 Sep 2011 21:41:44 +0200)

> From: Lars Magne Ingebrigtsen <larsi@gnus.org>
> Cc: 9470@debbugs.gnu.org
> Date: Sat, 10 Sep 2011 21:41:44 +0200
> 
> > That setting just tells Emacs to display text starting at the left
> > margin of the window.  It doesn't stop reordering R2L text for
> > display
> > (see the node "Bidirectional Display" in the ELisp manual).
> 
> Hm.  Then why isn't that the default, then?

Because, if the paragraph consists of mostly R2L text, displaying it
from the left margin would not be TRT, it looks ugly.

Left-to-right paragraphs _are_ the default in modes where we know in
advance that we will be displaying predominantly L2R text, such as in
any mode that inherits from prog-mode.  But in modes that display
human-written text paragraph direction is determined dynamically as
part of redisplay, and that can be very expensive when you are near
the end of a large buffer that is a single paragraph.

> > Anyway, what do you mean by "article buffer"?  (I don't use Gnus.)
> > What does it display?  If it displays text of a single article,
> > then
> > how come you gave me text is an infinite sequence of identical
> > lines?
> 
> It displays the text of a single article.
> 
> This particular article was mainly composed of 197K lines looking
> like
> that.  There was a paragraph at the beginning.
> 
> (It was an IMAP bug report.)

Then I don't see how can I fix this specific case.  The bidi display
must know the paragraph direction in order to DTRT.  Ideas are
welcome.  Doing something simple, like force left-to-right paragraph
direction if paragraph start isn't found in N lines, doesn't sound
right, as this will cause different display depending on how far we
are from the text beginning.  Hmmm...





  reply	other threads:[~2011-09-10 20:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-10 18:28 bug#9470: 24.0.50; Possible bidi-related slowness Lars Magne Ingebrigtsen
2011-09-10 18:45 ` Christoph Scholtes
2011-09-10 19:15   ` Eli Zaretskii
2011-09-10 20:28     ` Christoph Scholtes
2011-09-10 19:26 ` Eli Zaretskii
2011-09-10 19:25   ` Lars Magne Ingebrigtsen
2011-09-10 19:41     ` Eli Zaretskii
2011-09-10 19:41       ` Lars Magne Ingebrigtsen
2011-09-10 20:10         ` Eli Zaretskii [this message]
2011-09-10 20:11           ` Lars Magne Ingebrigtsen
2011-09-10 20:34             ` Eli Zaretskii
2011-09-10 20:42               ` Lars Magne Ingebrigtsen
2011-09-10 20:53                 ` Eli Zaretskii
2011-09-11  3:06                   ` Stefan Monnier
2011-09-11  4:59                     ` Eli Zaretskii
2011-09-11  5:18                       ` Stefan Monnier
2011-09-11  6:25                         ` Eli Zaretskii
2011-09-12  2:49                           ` Stefan Monnier
2011-09-12  7:21                             ` Eli Zaretskii
2011-09-13  2:21                               ` Stefan Monnier
2011-09-17 15:22                   ` Eli Zaretskii
2011-09-18  7:33                     ` Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=E1R2Tst-0008MA-Jc@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=9470@debbugs.gnu.org \
    --cc=larsi@gnus.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.