From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12927: 24.2; global-hl-line-mode and "scroll-conservatively=1000" take jump up-down the text when hold DOWN key (in *info* buffer). Date: Tue, 20 Nov 2012 22:47:56 +0200 Message-ID: <83y5hwuhkz.fsf@gnu.org> References: <87d2za1uod.fsf@gavenkoa.example.com> <83pq39y24j.fsf@gnu.org> <83mwycw4kf.fsf@gnu.org> <87zk2c57v9.fsf@gavenkoa.example.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1353444536 9169 80.91.229.3 (20 Nov 2012 20:48:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2012 20:48:56 +0000 (UTC) Cc: 12927@debbugs.gnu.org To: Oleksandr Gavenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 20 21:49:07 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Taukj-0002ls-7G for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 21:49:05 +0100 Original-Received: from localhost ([::1]:55088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaukY-0007o8-UD for geb-bug-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 15:48:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaukW-0007nq-8w for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 15:48:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaukV-0007ej-6z for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 15:48:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaukV-0007ef-3P for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 15:48:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tauld-0003yU-N4 for bug-gnu-emacs@gnu.org; Tue, 20 Nov 2012 15:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Nov 2012 20:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12927 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12927-submit@debbugs.gnu.org id=B12927.135344457215240 (code B ref 12927); Tue, 20 Nov 2012 20:50:01 +0000 Original-Received: (at 12927) by debbugs.gnu.org; 20 Nov 2012 20:49:32 +0000 Original-Received: from localhost ([127.0.0.1]:57427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TaulA-0003xk-AG for submit@debbugs.gnu.org; Tue, 20 Nov 2012 15:49:32 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:48340) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Taul7-0003xZ-5B for 12927@debbugs.gnu.org; Tue, 20 Nov 2012 15:49:30 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MDT008000BJIO00@a-mtaout22.012.net.il> for 12927@debbugs.gnu.org; Tue, 20 Nov 2012 22:48:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MDT008GD0GF7Z70@a-mtaout22.012.net.il>; Tue, 20 Nov 2012 22:48:16 +0200 (IST) In-reply-to: <87zk2c57v9.fsf@gavenkoa.example.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:67249 Archived-At: > From: Oleksandr Gavenko > Cc: 12927@debbugs.gnu.org > Date: Tue, 20 Nov 2012 22:36:58 +0200 > > > Should be fixed in revision 110927 on the emacs-24 branch. Please > > test. > > I don't familiar with bzr: > > $ bzr up > $ bzr info -v > Repository checkout (format: 2a) > Location: > repository checkout root: . > checkout of branch: bzr://bzr.savannah.gnu.org/emacs/trunk/ > shared repository: /home/user/devel/emacs/emacs-bzr This is the trunk, not the emacs-24 branch. I committed the fix to the emacs-24 branch. You can wait until the changes from the branch are merged onto the trunk, and test then. Or you can checkout the branch, like so: $ cd /home/user/devel/emacs/emacs-bzr $ bzr branch bzr://bzr.savannah.gnu.org/emacs/emacs-24 This will create an emacs-24 directory under /home/user/devel/emacs/emacs-bzr, and you can then build it and try the fix. > 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.