From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10395: 24.0.92; line-prefix text inherits face properties from the preceding line rather than following text Date: Thu, 22 Mar 2012 15:32:53 +0800 Message-ID: <877gydrsyi.fsf@gnu.org> References: <83obuosuhm.fsf@gnu.org> <87ipkokm0e.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1332401669 3212 80.91.229.3 (22 Mar 2012 07:34:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2012 07:34:29 +0000 (UTC) Cc: David Edmondson , 10395@debbugs.gnu.org, Miles Bader To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 22 08:34:27 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 1SAcXR-000152-SZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Mar 2012 08:34:26 +0100 Original-Received: from localhost ([::1]:53982 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAcXR-0004j5-9J for geb-bug-gnu-emacs@m.gmane.org; Thu, 22 Mar 2012 03:34:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAcXP-0004ij-1L for bug-gnu-emacs@gnu.org; Thu, 22 Mar 2012 03:34:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAcXJ-0007F2-3b for bug-gnu-emacs@gnu.org; Thu, 22 Mar 2012 03:34:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAcXJ-0007Es-0I for bug-gnu-emacs@gnu.org; Thu, 22 Mar 2012 03:34:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SAd14-0004p8-7p for bug-gnu-emacs@gnu.org; Thu, 22 Mar 2012 04:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Mar 2012 08:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10395 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10395-submit@debbugs.gnu.org id=B10395.133240345818473 (code B ref 10395); Thu, 22 Mar 2012 08:05:02 +0000 Original-Received: (at 10395) by debbugs.gnu.org; 22 Mar 2012 08:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:60511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SAd0K-0004nq-8h for submit@debbugs.gnu.org; Thu, 22 Mar 2012 04:04:17 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:55694) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SAczy-0004n4-A9 for 10395@debbugs.gnu.org; Thu, 22 Mar 2012 04:04:14 -0400 Original-Received: from [155.69.17.60] (port=58581 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SAcW6-0002fb-SL; Thu, 22 Mar 2012 03:33:03 -0400 In-Reply-To: <87ipkokm0e.fsf@gnu.org> (Chong Yidong's message of "Sat, 07 Jan 2012 15:30:25 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) 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 (newer, 2) 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:57953 Archived-At: Chong Yidong writes: >> So my vote is to leave this as it works now, and maybe document this >> to avoid surprises. > > Agreed about leaving this alone for now, though I'd rather not commit to > documenting it as "the" behavior just yet. > > OTOH, the "expected" behavior would be for the line-prefix not to > inherit face properties at all, much like overlay before-strings. Whoops. Looks like there's a realistic situation in which this pops up, and looks bad: Bug#4281. I committed a fix for that (revno 107654), before remembering about the discussion in this thread and the decision to leave it alone. I guess I could revert the fix. But first, is there a work-around for Bug#4281? The line prefix applied by org-indent-set-line-properties does have an explicit `face' property, but that didn't seem to stop the global-hl-line-mode highlighting from leaking into the prefix.