From unknown Sun Jun 22 11:38:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8323: 23.3; Hl-Line mode Resent-From: Konrad Podczeck Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Mar 2011 22:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8323@debbugs.gnu.org Cc: Reitter David , fx@gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130083324927755 (code B ref -1); Tue, 22 Mar 2011 22:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Mar 2011 22:34:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2A9Q-0007Dc-8W for submit@debbugs.gnu.org; Tue, 22 Mar 2011 18:34:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2A9N-0007D8-U0 for submit@debbugs.gnu.org; Tue, 22 Mar 2011 18:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2A9H-00027n-7U for submit@debbugs.gnu.org; Tue, 22 Mar 2011 18:34:00 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:51931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2A9H-00027c-4u for submit@debbugs.gnu.org; Tue, 22 Mar 2011 18:33:59 -0400 Received: from [140.186.70.92] (port=38391 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2A9F-0006hk-T9 for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2011 18:33:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2A9E-00026p-7o for bug-gnu-emacs@gnu.org; Tue, 22 Mar 2011 18:33:57 -0400 Received: from grace.univie.ac.at ([131.130.3.115]:45910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2A9D-00026X-MG; Tue, 22 Mar 2011 18:33:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev2; h=Mime-Version:To:Cc:Message-Id:Date:Subject:Content-Transfer-Encoding:Content-Type:From; bh=SoWJhBKXVKq8Ylq0YznPK4VM568Y/XR6CSIRNhMZHRA=; b=KTaqa8lItxUc3pxSmsKMSVZ1Pq/TLkTuKSPbYL0w4DX8ayvHfCmR6svY4Al99i0DFrtvE4eoLM27MPqJdPas1srYX1u/5EH+ax/QbHog+/eZJw+r61ycxcYh9uBj/Hk3PxDA7dLPLBRZmKrL3wDELUlpjebvQ9FowGEuEUYpl+8=; Received: from justin.univie.ac.at ([131.130.3.111] helo=justin.univie.ac.at) by grace.univie.ac.at with esmtp (Exim 4.73) (envelope-from ) id 1Q2A98-0001JJ-Dk; Tue, 22 Mar 2011 23:33:50 +0100 Received: from [84.113.246.143] (helo=[10.0.1.3]) by justin.univie.ac.at with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.73) (envelope-from ) id 1Q2A98-0007cb-9x; Tue, 22 Mar 2011 23:33:50 +0100 From: Konrad Podczeck Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 22 Mar 2011 23:33:49 +0100 Message-Id: Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-Univie-Virus-Scan: scanned by ClamAV on justin.univie.ac.at X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) I observed the following with Emacs 23.3: Turn Global-Hl-Line mode on, and open any text file. Then do M-x occur = Ret, some word Ret, so as to get two windows, one with the text file, = the other with the occur buffer. Now by default, the variable = HL-Line-Sticky-Flag is set to non-nil, which, according to the = documentation of that variable, means that the current line is = highlighted in all windows. However, this seems not to work: Switching = between the two windows, you see only the current line in the selected = window to be highlighted. This becomes a problem, in particular, when one does M-x = next-error-follow-minor-mode in the window with the occur buffer. After = this, moving the down or up arrow key in the occur buffer window leads, = as it should, the cursor in the other window to move to the = corresponding line there, but as that line, even though it becomes the = "current line", does not become highlighted, there is some visibility = problem, which would disappear would HL-Line-Sticky-Flag being set to = non-nil work as advertised. Konrad In GNU Emacs 23.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.35) of 2011-03-10 on black.porkrind.org Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--host=3Dx86_64-apple-darwin' = '--build=3Di686-apple-darwin' '--with-ns' = 'build_alias=3Di686-apple-darwin' 'host_alias=3Dx86_64-apple-darwin' = 'CC=3Dgcc -mmacosx-version-min=3D10.5'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) From unknown Sun Jun 22 11:38:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8323: 23.3; Hl-Line mode Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Jun 2011 20:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Konrad Podczeck Cc: Reitter David , 8323@debbugs.gnu.org, fx@gnu.org Received: via spool by 8323-submit@debbugs.gnu.org id=B8323.130912003213950 (code B ref 8323); Sun, 26 Jun 2011 20:28:02 +0000 Received: (at 8323) by debbugs.gnu.org; 26 Jun 2011 20:27:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QavvE-0003cx-1k for submit@debbugs.gnu.org; Sun, 26 Jun 2011 16:27:12 -0400 Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QavvB-0003ci-Lq for 8323@debbugs.gnu.org; Sun, 26 Jun 2011 16:27:10 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5QKR3wT018101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 26 Jun 2011 16:27:04 -0400 Received: by furball (Postfix, from userid 1000) id 6E5411605E7; Sun, 26 Jun 2011 16:27:03 -0400 (EDT) From: Chong Yidong References: Date: Sun, 26 Jun 2011 16:27:03 -0400 In-Reply-To: (Konrad Podczeck's message of "Tue, 22 Mar 2011 23:33:49 +0100") Message-ID: <87liwol4o8.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Konrad Podczeck writes: > Turn Global-Hl-Line mode on, and open any text file. Then do M-x occur > Ret, some word Ret, so as to get two windows, one with the text file, > the other with the occur buffer. Now by default, the variable > HL-Line-Sticky-Flag is set to non-nil, which, according to the > documentation of that variable, means that the current line is > highlighted in all windows. However, this seems not to work: Switching > between the two windows, you see only the current line in the selected > window to be highlighted. hl-line-sticky-flag is not intended to affect global-hl-line-mode, only the local mode. However, it's simple enough to add a similar mechanism for the global mode (global-hl-line-sticky-flag), so I've done that. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 26 16:27:31 2011 Received: (at control) by debbugs.gnu.org; 26 Jun 2011 20:27:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QavvX-0003dV-Da for submit@debbugs.gnu.org; Sun, 26 Jun 2011 16:27:31 -0400 Received: from vm-emlprdomr-05.its.yale.edu ([130.132.50.146]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QavvW-0003dI-4d for control@debbugs.gnu.org; Sun, 26 Jun 2011 16:27:30 -0400 Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-05.its.yale.edu (8.14.4/8.14.4) with ESMTP id p5QKROij015061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 26 Jun 2011 16:27:24 -0400 Received: by furball (Postfix, from userid 1000) id 38F151605E7; Sun, 26 Jun 2011 16:27:24 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 8323 Date: Sun, 26 Jun 2011 16:27:24 -0400 Message-ID: <87ei2gtk2b.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.71 on 130.132.50.146 X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) close 8323 thanks