unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#9209: bidi slowdown
@ 2011-07-31  2:35 emacs user
  2011-07-31  3:03 ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: emacs user @ 2011-07-31  2:35 UTC (permalink / raw)
  To: 9209

when using vm, I still see significant slowdowns in cursor motion in
the vm-summary buffer when bidi is on.  this is with a 3000+ lines
long buffer with the summary of the messages in the inbox.  please let
me know if there is any additional information I can provide.

2011-07-22  Eli Zaretskii

	Fix a significant slow-down of cursor motion with C-n, C-p,
	C-f/C-b, and C-v/M-v that couldn't keep up with keyboard
	auto-repeat under bidi redisplay in fontified buffers.

2011-07-28  Eli Zaretskii

	* buffer.c (init_buffer_once): Set bidi-display-reordering to t by
	default.

In GNU Emacs 24.0.50.1 (i386-apple-darwin11.0.0, NS apple-appkit-1138.00)
 of 2011-07-29 on dhcp-10-249-70-250.xx.edu
Windowing system distributor `Apple', version 10.3.1138
configured using `configure  '--with-ns' '--without-x''





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-07-31  2:35 bug#9209: bidi slowdown emacs user
@ 2011-07-31  3:03 ` Eli Zaretskii
       [not found]   ` <CAK16+CffRn4sqirrbc6A6uRH6N-fZ_Behv+=OXH5m3LCKL1YhA@mail.gmail.com>
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-07-31  3:03 UTC (permalink / raw)
  To: emacs user; +Cc: 9209

> Date: Sat, 30 Jul 2011 22:35:25 -0400
> From: emacs user <user.emacs@gmail.com>
> 
> when using vm, I still see significant slowdowns in cursor motion in
> the vm-summary buffer when bidi is on.  this is with a 3000+ lines
> long buffer with the summary of the messages in the inbox.  please let
> me know if there is any additional information I can provide.

Yes, I need an example of the buffer text.  Also, does it matter
whether point is near the beginning or the end of the buffer (or in
any other particular place)?

In general, the bidi display _is_ slower, because it does more, but I
hope to get it to be tolerable.

Thanks.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
       [not found]   ` <CAK16+CffRn4sqirrbc6A6uRH6N-fZ_Behv+=OXH5m3LCKL1YhA@mail.gmail.com>
@ 2011-07-31  6:22     ` Eli Zaretskii
  2011-07-31  9:50       ` emacs user
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-07-31  6:22 UTC (permalink / raw)
  To: emacs user; +Cc: 9209

Please keep 9209@debbugs.gnu.org on the CC list, so that this
discussion gets recorded in the bug tracker.

> Date: Sun, 31 Jul 2011 00:00:26 -0400
> From: emacs user <user.emacs@gmail.com>
> 
> I checked and it's perfectly OK near the beginning of the buffer, and
> very slow near the end.

OK.  Next, please tell which cursor keys are slow to respond.  Are C-f
and C-b slow?  Are left and right arrow significantly slower than C-f
and C-b?  What about C-n/C-p resp up- and down-arrows?  Finally, what
about PageUp/PageDown and C-v/M-v?

Please also try setting the variable bidi-paragraph-direction to
left-to-right, and see if that solves the problem.

Thanks.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-07-31  6:22     ` Eli Zaretskii
@ 2011-07-31  9:50       ` emacs user
  2011-07-31 10:04         ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: emacs user @ 2011-07-31  9:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 9209

it seems that c-p is slower than c-f, c-b and c-n, M-v and c-v which
are all also slow.  setting bidi-paragraph-direction to left-to-right
does seem to fix the problem.

On Sun, Jul 31, 2011 at 2:22 AM, Eli Zaretskii <eliz@gnu.org> wrote:
> Please keep 9209@debbugs.gnu.org on the CC list, so that this
> discussion gets recorded in the bug tracker.
>
>> Date: Sun, 31 Jul 2011 00:00:26 -0400
>> From: emacs user <user.emacs@gmail.com>
>>
>> I checked and it's perfectly OK near the beginning of the buffer, and
>> very slow near the end.
>
> OK.  Next, please tell which cursor keys are slow to respond.  Are C-f
> and C-b slow?  Are left and right arrow significantly slower than C-f
> and C-b?  What about C-n/C-p resp up- and down-arrows?  Finally, what
> about PageUp/PageDown and C-v/M-v?
>
> Please also try setting the variable bidi-paragraph-direction to
> left-to-right, and see if that solves the problem.
>
> Thanks.
>





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-07-31  9:50       ` emacs user
@ 2011-07-31 10:04         ` Eli Zaretskii
  2011-07-31 21:00           ` emacs user
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-07-31 10:04 UTC (permalink / raw)
  To: emacs user; +Cc: 9209

> Date: Sun, 31 Jul 2011 05:50:05 -0400
> From: emacs user <user.emacs@gmail.com>
> Cc: 9209@debbugs.gnu.org
> 
> it seems that c-p is slower than c-f, c-b and c-n, M-v and c-v which
> are all also slow.  setting bidi-paragraph-direction to left-to-right
> does seem to fix the problem.

Thanks.

What is the name of the vm summary buffer?  Is that name fixed when vm
is used?

I think bidi-paragraph-direction should be automatically set to
left-to-right.  The question (being discussed on emacs-devel) is how
to do that, given that vm is not bundled with Emacs.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-07-31 10:04         ` Eli Zaretskii
@ 2011-07-31 21:00           ` emacs user
  2011-08-01 21:01             ` Uday Reddy
  0 siblings, 1 reply; 14+ messages in thread
From: emacs user @ 2011-07-31 21:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Uday S. Reddy, 9209

On Sun, Jul 31, 2011 at 6:04 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> Date: Sun, 31 Jul 2011 05:50:05 -0400
>> From: emacs user <user.emacs@gmail.com>
>> Cc: 9209@debbugs.gnu.org
>>
>> it seems that c-p is slower than c-f, c-b and c-n, M-v and c-v which
>> are all also slow.  setting bidi-paragraph-direction to left-to-right
>> does seem to fix the problem.
>
> Thanks.
>
> What is the name of the vm summary buffer?  Is that name fixed when vm
> is used?

it is INBOX-summary where INBOX is the inbox file name, so it varies among users

>
> I think bidi-paragraph-direction should be automatically set to
> left-to-right.  The question (being discussed on emacs-devel) is how
> to do that, given that vm is not bundled with Emacs.

perhaps Uday can help...?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-07-31 21:00           ` emacs user
@ 2011-08-01 21:01             ` Uday Reddy
  2011-08-02  5:42               ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Uday Reddy @ 2011-08-01 21:01 UTC (permalink / raw)
  To: emacs user; +Cc: Uday S. Reddy, 9209

emacs user writes:

> > What is the name of the vm summary buffer?  Is that name fixed when vm
> > is used?
> 
> it is INBOX-summary where INBOX is the inbox file name, so it varies among
> users 

The default name is "<folder-name> Summary"

> >
> > I think bidi-paragraph-direction should be automatically set to
> > left-to-right.  The question (being discussed on emacs-devel) is how
> > to do that, given that vm is not bundled with Emacs.
> 
> perhaps Uday can help...?
> 

There is of course the `vm-summary-mode-hook'.  You can set various things
there.

Cheers,
Uday





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-01 21:01             ` Uday Reddy
@ 2011-08-02  5:42               ` Eli Zaretskii
  2011-08-02 18:37                 ` Uday S Reddy
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-08-02  5:42 UTC (permalink / raw)
  To: Uday Reddy; +Cc: u.s.reddy, user.emacs, 9209

> Date: Mon, 1 Aug 2011 22:01:34 +0100
> From: Uday Reddy <usr.vm.rocks@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,
>     9209@debbugs.gnu.org,
>     "Uday S. Reddy" <u.s.reddy@cs.bham.ac.uk>
> 
> > > I think bidi-paragraph-direction should be automatically set to
> > > left-to-right.  The question (being discussed on emacs-devel) is how
> > > to do that, given that vm is not bundled with Emacs.
> > 
> > perhaps Uday can help...?
> > 
> 
> There is of course the `vm-summary-mode-hook'.  You can set various things
> there.

Would it make sense for VM to do that automatically as part of
preparing the summary buffer, i.e. as part of vm-summary-mode?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-02  5:42               ` Eli Zaretskii
@ 2011-08-02 18:37                 ` Uday S Reddy
  2011-08-02 19:30                   ` Eli Zaretskii
  0 siblings, 1 reply; 14+ messages in thread
From: Uday S Reddy @ 2011-08-02 18:37 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: u.s.reddy, Uday Reddy, user.emacs, 9209

Eli Zaretskii writes:

> Would it make sense for VM to do that automatically as part of
> preparing the summary buffer, i.e. as part of vm-summary-mode?

Sure.  At the moment, unibyte/multibyte settings are done when a buffer is
created.  We could do set other things similarly.

What needs to be done? set bidi-paragraph-direction to 'left-to-right?
Can't the effect be achieved by doing setq-default initially?

Cheers,
Uday





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-02 18:37                 ` Uday S Reddy
@ 2011-08-02 19:30                   ` Eli Zaretskii
  2011-08-02 20:10                     ` Uday S Reddy
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2011-08-02 19:30 UTC (permalink / raw)
  To: Uday S Reddy; +Cc: usr.vm.rocks, user.emacs, 9209

> Date: Tue, 2 Aug 2011 19:37:55 +0100
> From: Uday S Reddy <u.s.reddy@cs.bham.ac.uk>
> Cc: Uday Reddy <usr.vm.rocks@gmail.com>,
>     user.emacs@gmail.com,
>     9209@debbugs.gnu.org,
>     u.s.reddy@cs.bham.ac.uk
> 
> What needs to be done? set bidi-paragraph-direction to 'left-to-right?

Yes, in the summary buffer.

> Can't the effect be achieved by doing setq-default initially?

You mean, for all of Emacs?  It's possible we will do just that, but
even so VM should not rely on that, because some user could revert the
default setting.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-02 19:30                   ` Eli Zaretskii
@ 2011-08-02 20:10                     ` Uday S Reddy
  2011-08-02 23:25                       ` Uday Reddy
  2011-08-09  0:58                       ` emacs user
  0 siblings, 2 replies; 14+ messages in thread
From: Uday S Reddy @ 2011-08-02 20:10 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Uday S Reddy, usr.vm.rocks, user.emacs, 9209

Eli Zaretskii writes:

> > What needs to be done? set bidi-paragraph-direction to 'left-to-right?
> 
> Yes, in the summary buffer.

Ok, Eli, please try the revision 882 in the 8.2.x branch.

Cheers,
Uday





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-02 20:10                     ` Uday S Reddy
@ 2011-08-02 23:25                       ` Uday Reddy
  2011-08-09  0:58                       ` emacs user
  1 sibling, 0 replies; 14+ messages in thread
From: Uday Reddy @ 2011-08-02 23:25 UTC (permalink / raw)
  To: Uday S Reddy; +Cc: usr.vm.rocks, user.emacs, 9209

Uday S Reddy writes:

> Ok, Eli, please try the revision 882 in the 8.2.x branch.

Oops, I meant "emacs user" above.

Uday





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-02 20:10                     ` Uday S Reddy
  2011-08-02 23:25                       ` Uday Reddy
@ 2011-08-09  0:58                       ` emacs user
  2011-08-09  2:56                         ` Eli Zaretskii
  1 sibling, 1 reply; 14+ messages in thread
From: emacs user @ 2011-08-09  0:58 UTC (permalink / raw)
  To: Uday S Reddy; +Cc: usr.vm.rocks, 9209

sorry for the delay.  when using the version of vm suggested by Uday,
the slowness is gone and things work fine (thanks Uday!).  if I do
describe variable in the summary buffer I get:

bidi-paragraph-direction is a variable defined in `C source code'.
Its value is left-to-right
Local in buffer RMAIL Summary; global value is nil

BTW, bidi in emacs is an absolutely wonderful addition, thanks for
doing this...!  cheers, E


On Tue, Aug 2, 2011 at 2:10 PM, Uday S Reddy <u.s.reddy@cs.bham.ac.uk> wrote:
> Eli Zaretskii writes:
>
>> > What needs to be done? set bidi-paragraph-direction to 'left-to-right?
>>
>> Yes, in the summary buffer.
>
> Ok, Eli, please try the revision 882 in the 8.2.x branch.
>
> Cheers,
> Uday
>





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#9209: bidi slowdown
  2011-08-09  0:58                       ` emacs user
@ 2011-08-09  2:56                         ` Eli Zaretskii
  0 siblings, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2011-08-09  2:56 UTC (permalink / raw)
  To: emacs user; +Cc: u.s.reddy, 9209-done, usr.vm.rocks

> Date: Mon, 8 Aug 2011 18:58:57 -0600
> From: emacs user <user.emacs@gmail.com>
> Cc: Eli Zaretskii <eliz@gnu.org>, usr.vm.rocks@gmail.com, 9209@debbugs.gnu.org
> 
> sorry for the delay.  when using the version of vm suggested by Uday,
> the slowness is gone and things work fine (thanks Uday!).  if I do
> describe variable in the summary buffer I get:
> 
> bidi-paragraph-direction is a variable defined in `C source code'.
> Its value is left-to-right
> Local in buffer RMAIL Summary; global value is nil

Thanks.  So I'm hereby closing this bug report.

> BTW, bidi in emacs is an absolutely wonderful addition, thanks for
> doing this...!  cheers, E

Thank you.





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-08-09  2:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-31  2:35 bug#9209: bidi slowdown emacs user
2011-07-31  3:03 ` Eli Zaretskii
     [not found]   ` <CAK16+CffRn4sqirrbc6A6uRH6N-fZ_Behv+=OXH5m3LCKL1YhA@mail.gmail.com>
2011-07-31  6:22     ` Eli Zaretskii
2011-07-31  9:50       ` emacs user
2011-07-31 10:04         ` Eli Zaretskii
2011-07-31 21:00           ` emacs user
2011-08-01 21:01             ` Uday Reddy
2011-08-02  5:42               ` Eli Zaretskii
2011-08-02 18:37                 ` Uday S Reddy
2011-08-02 19:30                   ` Eli Zaretskii
2011-08-02 20:10                     ` Uday S Reddy
2011-08-02 23:25                       ` Uday Reddy
2011-08-09  0:58                       ` emacs user
2011-08-09  2:56                         ` Eli Zaretskii

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).