From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#12953: Implement line highlighting (=?UTF-8?Q?=C3=A0?= la hl-line) in the display engine Date: Wed, 21 Nov 2012 16:49:29 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1353513059 21212 80.91.229.3 (21 Nov 2012 15:50:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 15:50:59 +0000 (UTC) Cc: gavenkoa@gmail.com To: 12953@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 21 16:51:11 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 1TbCZw-0002NB-Gf for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2012 16:51:08 +0100 Original-Received: from localhost ([::1]:49564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCZm-0006Xw-1k for geb-bug-gnu-emacs@m.gmane.org; Wed, 21 Nov 2012 10:50:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCZi-0006XE-Cz for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 10:50:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbCZc-0006ea-Ji for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 10:50:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCZc-0006eW-F3 for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 10:50:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TbCao-0004y5-NJ; Wed, 21 Nov 2012 10:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: gavenkoa@gmail.com, bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Nov 2012 15:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12953 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Bug-Gnu-Emacs X-Debbugs-Original-Xcc: gavenkoa@gmail.com Original-Received: via spool by submit@debbugs.gnu.org id=B.135351310519072 (code B ref -1); Wed, 21 Nov 2012 15:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Nov 2012 15:51:45 +0000 Original-Received: from localhost ([127.0.0.1]:59302 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbCaX-0004xZ-9A for submit@debbugs.gnu.org; Wed, 21 Nov 2012 10:51:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37013) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TbCaV-0004xS-7y for submit@debbugs.gnu.org; Wed, 21 Nov 2012 10:51:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbCZD-0006a6-Oc for submit@debbugs.gnu.org; Wed, 21 Nov 2012 10:50:27 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:59125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCZD-0006a2-LY for submit@debbugs.gnu.org; Wed, 21 Nov 2012 10:50:23 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCZ7-0006VN-PZ for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 10:50:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TbCZ1-0006Mi-Ud for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 10:50:17 -0500 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:49615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TbCZ1-0006Lw-NR for bug-gnu-emacs@gnu.org; Wed, 21 Nov 2012 10:50:11 -0500 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so3225678bkc.0 for ; Wed, 21 Nov 2012 07:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=zM6e2u0EuCPzVyaRbhulH4xQ6O4ZZm5mcBWwP3/2+oc=; b=0Ma5VtwDEmytqQN7vTlsF6yc1gp3sQCpMCGWMsAm6vz22ilKR8lBTKFa+gORmU66SZ 7LHrr3+KAnFL8dVV+V2RjLGrrRdNbkLm+XMjFH9pN9BnU50fYyZXouR9POqfHWe6rVb9 W7g2oucrYXuyKDzyXpedbU1FzsstQ/k0d0AeIislvEquPPbd6TmNlu1n3nA21yNzEcoJ SrJO96hsItV5rtfy14EZD1AfrdAXPYBq3EIkw8fbaCZhSxWbxvIiPBJMmLQV0gJLISQc yyJ2pibFwSDqUxxPDjaYXr4dOR6JdhCOfA8+t5pY8kv91b912jFOMcV6LMdtvkaKfH2e s6sQ== Original-Received: by 10.204.147.207 with SMTP id m15mr7136840bkv.54.1353513010286; Wed, 21 Nov 2012 07:50:10 -0800 (PST) Original-Received: by 10.204.34.70 with HTTP; Wed, 21 Nov 2012 07:49:29 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:67273 Archived-At: Package: emacs Version: 24.2.50 Severity: wishlist X-Debbugs-Cc: gavenkoa@gmail.com ---------- Forwarded message ---------- From: Eli Zaretskii Date: Tue, Nov 20, 2012 at 9:47 PM 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). To: Oleksandr Gavenko Cc: 12927@debbugs.gnu.org > 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.