unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12956: 24.2; Move hl-line-mode to display engine so performance reason.
@ 2012-11-21 22:17 Oleksandr Gavenko
  2012-11-22  3:45 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Oleksandr Gavenko @ 2012-11-21 22:17 UTC (permalink / raw)
  To: 12956

From http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12927

> > Also I found that "(global-hl-line-mode 1)" slow down scrolling in CC-mode
> > enabled buffers in two or more times. Do I need report a bug?

> No, this is expected.  hl-line-mode adds itself to post-command-hook,
> and moves its overlay after each command that changes the current
> line.  What this does is completely disable the redisplay
> optimizations used when only the cursor moves without any other
> changes to the text, because moving an overlay requires a thorough
> redisplay of the window, which is more expensive.

> The only bug report that I can think of is a feature request to move
> hl-line-mode into the display engine, because the display engine
> knowns very well where's the current line (when it decides where to
> display the cursor), and can do this highlighting better and much more
> efficiently.

-- 
Best regards!





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

* bug#12956: 24.2; Move hl-line-mode to display engine so performance reason.
  2012-11-21 22:17 bug#12956: 24.2; Move hl-line-mode to display engine so performance reason Oleksandr Gavenko
@ 2012-11-22  3:45 ` Eli Zaretskii
  2012-11-22 21:00   ` Juanma Barranquero
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2012-11-22  3:45 UTC (permalink / raw)
  To: Oleksandr Gavenko; +Cc: 12956

> From: Oleksandr Gavenko <gavenkoa@gmail.com>
> Date: Thu, 22 Nov 2012 00:17:02 +0200
> 
> >From http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12927
> 
> > > Also I found that "(global-hl-line-mode 1)" slow down scrolling in CC-mode
> > > enabled buffers in two or more times. Do I need report a bug?
> 
> > No, this is expected.  hl-line-mode adds itself to post-command-hook,
> > and moves its overlay after each command that changes the current
> > line.  What this does is completely disable the redisplay
> > optimizations used when only the cursor moves without any other
> > changes to the text, because moving an overlay requires a thorough
> > redisplay of the window, which is more expensive.
> 
> > The only bug report that I can think of is a feature request to move
> > hl-line-mode into the display engine, because the display engine
> > knowns very well where's the current line (when it decides where to
> > display the cursor), and can do this highlighting better and much more
> > efficiently.

This is a duplicate of 12953.





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

* bug#12956: 24.2; Move hl-line-mode to display engine so performance reason.
  2012-11-22  3:45 ` Eli Zaretskii
@ 2012-11-22 21:00   ` Juanma Barranquero
  0 siblings, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2012-11-22 21:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 12956, Oleksandr Gavenko

On Thu, Nov 22, 2012 at 4:45 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> This is a duplicate of 12953.

It's already merged.

    Juanma





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

end of thread, other threads:[~2012-11-22 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-21 22:17 bug#12956: 24.2; Move hl-line-mode to display engine so performance reason Oleksandr Gavenko
2012-11-22  3:45 ` Eli Zaretskii
2012-11-22 21:00   ` Juanma Barranquero

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