From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#59141: 28.1.90; Face :extend when all the line but trailing \n is invisible Date: Thu, 10 Nov 2022 01:36:14 +0000 Message-ID: <87a64zlhf5.fsf@localhost> References: <871qqcdfvr.fsf@localhost> <874jv8o9e4.fsf@gmail.com> <865yfovz6f.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2964"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59141@debbugs.gnu.org, =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 10 02:36:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oswUX-0000WP-If for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Nov 2022 02:36:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oswU8-0000v6-7e; Wed, 09 Nov 2022 20:36:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oswU6-0000uc-1i for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 20:36:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oswU5-0002xg-QP for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 20:36:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oswU5-0000qm-Iw for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2022 20:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2022 01:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59141 X-GNU-PR-Package: emacs Original-Received: via spool by 59141-submit@debbugs.gnu.org id=B59141.16680441433240 (code B ref 59141); Thu, 10 Nov 2022 01:36:01 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 10 Nov 2022 01:35:43 +0000 Original-Received: from localhost ([127.0.0.1]:41452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oswTm-0000qC-JW for submit@debbugs.gnu.org; Wed, 09 Nov 2022 20:35:42 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:50329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oswTk-0000py-MJ for 59141@debbugs.gnu.org; Wed, 09 Nov 2022 20:35:41 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 31AD6240103 for <59141@debbugs.gnu.org>; Thu, 10 Nov 2022 02:35:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668044135; bh=1n5om157zAthhGBFcNCszdhg4ZURcAnmL7Jcf5CljgE=; h=From:To:Cc:Subject:Date:From; b=UH/TbTxkCeKLMhd0fYmdCzCL1KVeRVL0KT3v+hFTYgsf9ZgS5oUm/GZc0H7iM7OIz HdRCM+jVV473x+0ZRCgJmuRXaJ7z3ON2ZvJG+CvqH3qu0I9IUD6YRdO7yYcpMcq+TR zVuUzOpMgw4yhfNmHtHmCH0V/3yG74qEuviJvojZcXs2zhu2v8SIrl6Vzcm6pRbN/o tGtSAbRCOVxKhA3SuJnmpwkuobW5ALASDl7pJDTZmhrYcxq1NpGUiH0rOMsO3x9WUP hqVDhBllMXWfysmOR5diHHFZY3X6gwT4WKdmj2kBomKyvyxTAtO60JA0tihYQqwYWw 5kpv5g0drwl/g== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N74Cn5N9fz6tpT; Thu, 10 Nov 2022 02:35:33 +0100 (CET) In-Reply-To: <865yfovz6f.fsf@mail.linkov.net> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:247475 Archived-At: Juri Linkov writes: > Here is an experimental patch for outline.el > that demonstrates a possible way to fix this: > > diff --git a/lisp/outline.el b/lisp/outline.el > index a646f71db8..73ae707821 100644 > --- a/lisp/outline.el > +++ b/lisp/outline.el > @@ -930,7 +930,8 @@ outline-flag-region > ;; We use `front-advance' here because the invisible text begins at the > ;; very end of the heading, before the newline, so text inserted at FROM > ;; belongs to the heading rather than to the entry. > - (let ((o (make-overlay from to nil 'front-advance))) > + (let ((o (make-overlay from (1+ to)))) > + (overlay-put o 'display "\n") Note that 'font-advance is there for a reason. Also, what will happen with ellipsis when there is 'display property? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at