From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: gdb-ui and hl-line-mode Date: Wed, 28 Dec 2005 22:42:11 +0200 Message-ID: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1135802551 8123 80.91.229.2 (28 Dec 2005 20:42:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Dec 2005 20:42:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 28 21:42:28 2005 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eri7s-0007xU-J2 for ged-emacs-devel@m.gmane.org; Wed, 28 Dec 2005 21:42:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eri9D-00084U-A0 for ged-emacs-devel@m.gmane.org; Wed, 28 Dec 2005 15:43:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eri94-00084B-8c for emacs-devel@gnu.org; Wed, 28 Dec 2005 15:43:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eri92-00083q-O7 for emacs-devel@gnu.org; Wed, 28 Dec 2005 15:43:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eri92-00083j-DS for emacs-devel@gnu.org; Wed, 28 Dec 2005 15:43:36 -0500 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Eri9G-0006ar-DV for emacs-devel@gnu.org; Wed, 28 Dec 2005 15:43:50 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-85-164.inter.net.il [80.230.85.164]) by nitzan.inter.net.il (MOS 3.7.2-GA) with ESMTP id CHS22669 (AUTH halo1); Wed, 28 Dec 2005 22:42:11 +0200 (IST) Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48453 Archived-At: Some people, when they debug a program, like to have the current line in the source window to be clearly visible. One way to do that in Emacs is to turn on the hl-line-mode in the source buffer, but the results are strange: if you step through the code when the source window is the currently selected one, the highlighted line stays one step behind the fringe arrow and the cursor (e.g., the arrow points to line 10, whereas line 9 is highlighted); switching to another window and back fixes the overlay position. And if you step with the source window is not the selected one (e.g., you type `next' commands into the GUD buffer), the highlight overlay does not move at all; however, if you switch to the source window, the highlight overlay is correctly moved to the current source line. Is this some snafu with post-command hook being run a tad too early?