From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#59141: 28.1.90; Face :extend when all the line but trailing \n is invisible Date: Fri, 11 Nov 2022 10:13:38 +0200 Organization: LINKOV.NET Message-ID: <868rkham65.fsf@mail.linkov.net> References: <871qqcdfvr.fsf@localhost> <874jv8o9e4.fsf@gmail.com> <865yfovz6f.fsf@mail.linkov.net> <87a64zlhf5.fsf@localhost> <86fserqmm0.fsf@mail.linkov.net> <87y1si9rrh.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12396"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 59141@debbugs.gnu.org, =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 11 10:19:26 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 1otQC6-00033N-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Nov 2022 10:19:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otQBy-0005oA-LL; Fri, 11 Nov 2022 04:19:18 -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 1otQBj-0005nt-8z for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 04:19:03 -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 1otQBj-0006ir-0t for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 04:19:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otQBi-00010G-I1 for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 04:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Nov 2022 09:19:02 +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.16681583233826 (code B ref 59141); Fri, 11 Nov 2022 09:19:02 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 11 Nov 2022 09:18:43 +0000 Original-Received: from localhost ([127.0.0.1]:45094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otQBO-0000zd-OK for submit@debbugs.gnu.org; Fri, 11 Nov 2022 04:18:42 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otQBL-0000zN-K7 for 59141@debbugs.gnu.org; Fri, 11 Nov 2022 04:18:40 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 24292C0003; Fri, 11 Nov 2022 09:18:31 +0000 (UTC) In-Reply-To: <87y1si9rrh.fsf@localhost> (Ihor Radchenko's message of "Fri, 11 Nov 2022 01:58:10 +0000") 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:247578 Archived-At: >>> Also, what will happen with ellipsis when there is 'display property? >> >> Then ellipsis could be added to (overlay-put o 'display "...\n"). > > Then, changes to `buffer-invisibility-spec' will not affect the overlay. Frankly speaking, I don't understand why the problem can't be solved simply by adding a newline without any faces or text properties before the next outline heading. So for example, the problem with shortdoc discussed in bug#53981, can be solved just by adding a newline: diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el index 18b758a9ca3..6000f1f5375 100644 --- a/lisp/emacs-lisp/shortdoc.el +++ b/lisp/emacs-lisp/shortdoc.el @@ -1385,7 +1385,7 @@ shortdoc-display-group ;; There may be functions not yet defined in the data. ((fboundp (car data)) (when prev - (insert (make-separator-line))) + (insert (make-separator-line) "\n")) (setq prev t) (shortdoc--display-function data)))) (cdr (assq group shortdoc--groups))))