From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#23510: Strange redisplay in global highlighted mode moving the scroll bar Date: Mon, 16 May 2016 23:33:01 +0200 Message-ID: <87shxhbsdu.fsf@gmx.net> References: <583a66be-763b-1a75-45be-b892eeacb48e@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463434483 30683 80.91.229.3 (16 May 2016 21:34:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 21:34:43 +0000 (UTC) Cc: 23510@debbugs.gnu.org To: Angelo Graziosi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 16 23:34:32 2016 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 1b2Q9i-0003jX-Va for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 23:34:27 +0200 Original-Received: from localhost ([::1]:47503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Q9i-0005eI-Ea for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 17:34:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Q9O-0004zL-Dc for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2Q9J-00078x-Vb for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:34:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Q9J-00078s-TI for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b2Q9J-0005HV-Mj for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 17:34:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2016 21:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23510 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23510-submit@debbugs.gnu.org id=B23510.146343441220263 (code B ref 23510); Mon, 16 May 2016 21:34:01 +0000 Original-Received: (at 23510) by debbugs.gnu.org; 16 May 2016 21:33:32 +0000 Original-Received: from localhost ([127.0.0.1]:54473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2Q8q-0005Gl-5j for submit@debbugs.gnu.org; Mon, 16 May 2016 17:33:32 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:51336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2Q8n-0005GV-O5 for 23510@debbugs.gnu.org; Mon, 16 May 2016 17:33:30 -0400 Original-Received: from rosalinde ([89.245.97.238]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M2tXS-1btyGS34v0-00sg1Z; Mon, 16 May 2016 23:33:22 +0200 In-Reply-To: <583a66be-763b-1a75-45be-b892eeacb48e@alice.it> (Angelo Graziosi's message of "Sat, 14 May 2016 09:42:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:TlOZTz8t/lI4OycvhA/rfCGT6LU84/YLTII4UNQfyptYcsycFhk 4LdCjRlGH2yYrZj4h2r5jzLia+Iize9FHWFElh7h6qPyc6EjSikAkMPXTonftZbwzi86IGy cpztDECru4RAc8dQPadEuOLsfjrAaWo/dNwotatek7GN+1tGYu7qlCqvICxw6IH/thHnazW bEKPQYdjlqHb6zUNaGYrw== X-UI-Out-Filterresults: notjunk:1;V01:K0:fCZpAqf9KsI=:65ieu98Z0MXRvrTg8U5f9v 2Fg1Tk67obCTmSshLvkpSngMbyVtxJVof1aGm3Rl7P9DKZZ2P2bng16AFSv3GhwfLSJ55YuXD uDcxvBOYebFT/0r5lrxj0KYHULy7ODlOn+UwTJJMvSTQRe5durnutLbo9HohKJKCcy67dG7gI YyHo5YMSLsfum08s+uJm2JTWZF4dWF+I3+kwen1BoGiZgmDUe/YkvqQT2jI9KMNnka3k89T9C PpnLB9pDrrO1lxwjp6W1n85/1dWmpGjxW+YHmRBhaTCe3SRYI0XpCCkHCeGqsordRiBHZrwJQ 3ziGmwBS5/Aa5RUx2kmiifFJ/YZVrARPaW4V/Njswj2tocQM+q0snGU/Q5p7a7MN7VKfxtNoV htE8HfNAC0+xpKA6N03utoX8Vg9OGt1QbZfD0TMEYEHJPTq2+fKKv3SyUQ+pmJvOqXTqByroP /D/xRGOSPpudy4t9u4XyJgw4IgN1OAheJjTV9scdc88IfQyM+L7r1bOMCLHPANnVV9lCVYsxf iK+OKh3oiLPHZKvgEbf1BFMH7rIbZtZ+HAaxeX5LghyxwbDwFokfzaQF+mEr70ACTVpoI04eh /sBTZWuAXlMjp/qt7+SKV3t6S63qlkE8i+lce2okWsqakDvSHNO4tLHGmh/c6xXTPm7jfJH4Y mrYcVrFR6bT2goEa5IsDcCPQ0ZyMNIbHF7R6u0Fi30+aJRMveRiHB2FMLlTLznBwoPtInO4RZ VpQIloyYG98clVSgby1oBIsNNfD5fdgS+rVkAjvTV6EeePq4SIVPNoLOv0h7a4U1Ok1ClcE+ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118332 Archived-At: On Sat, 14 May 2016 09:42:13 +0200 Angelo Graziosi wrote: >> If my fix is found acceptable > > I have tested the patch with this init.el file: > > ;; > (global-hl-line-mode 1) > > > and it seems to work.. I take it you mean you see no flickering? That would confirm the patch fixes problem you reported. You should also see, when you make the frame have two (or more) windows, that the current line of only the selected window is highlighted; this is the default behavior without the patch and should obtain with the patch as well. > Any other configuration for testing? The default for global-hl-line-mode, which you tested with the above, is for the value of global-hl-line-sticky-flag to be nil; if you set it to non-nil, then when you make the frame display two (or more) windows, the current line is highlighted in all of them. A difference between the behavior of the existing version of hl-line.el and the behavior with my patch is that, in the former, the current line of each window displaying a different buffer becomes highlighted only as soon as that window is selected (and remains highlighted when another window is selected), while with my patch, the current line in all live (visible) windows is highlighted at once. So this is a new feature and the question is, do you prefer this behavior to the original behavior? (If all the windows display the same buffer, then with non-nil global-hl-line-sticky-flag the highlighting appears in all of them simultaneously both with and without the patch.) It would be helpful if you'd also test the behavior of the patch with the buffer local hl-line-mode. Here, the default is for the value of hl-line-sticky-flag to be non-nil, which means that if the same buffer is displayed in two (or more) windows of a frame, the current line is highlighted in each of these windows, and in addtion, when you select a window displaying a different buffer, the line in the previously selected window (displaying the buffer in which hl-line-mode was enabled) remains highlighted. If you set hl-line-sticky-flag to nil, then only the current line of the selected window is highlighted. These behaviors of hl-line-mode should still be the same with the patch. But without the patch, setting hl-line-sticky-flag to nil results in flickering of the highlighted line when moving the scroll bar with the mouse; with the patch, there should be no flickering. Steve Berman