From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 22:25:32 +0200 Message-ID: <831qq9p7b7.fsf@gnu.org> References: <871qqcdfvr.fsf@localhost> <83h6z5psqe.fsf@gnu.org> <83bkpdpf92.fsf@gnu.org> <8335app826.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9151"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59141@debbugs.gnu.org, yantar92@posteo.net, juri@linkov.net, kevin.legouguec@gmail.com To: Abdul-Lateef Haji-Ali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 11 21:26:23 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 1otabX-0002B4-CP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Nov 2022 21:26:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otabE-00070u-IB; Fri, 11 Nov 2022 15:26: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 1otabC-0006yh-Uv for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 15:26: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 1otabC-0006tU-I1 for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 15:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otabC-000137-DW for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 15:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Nov 2022 20:26: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.16681983534016 (code B ref 59141); Fri, 11 Nov 2022 20:26:02 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 11 Nov 2022 20:25:53 +0000 Original-Received: from localhost ([127.0.0.1]:46822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otab3-00012i-0j for submit@debbugs.gnu.org; Fri, 11 Nov 2022 15:25:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otab1-00012V-6m for 59141@debbugs.gnu.org; Fri, 11 Nov 2022 15:25:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otaav-0006rk-1x; Fri, 11 Nov 2022 15:25:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MNhereVJgnM0XSG2+OldX7Zk2isNPVZ2/4Uzwg+aq/Q=; b=bxR2DnBY+hMN VHgc4WzataorEutM8wruYFURsaXckgi0p/0usRj0Vqb9HnfwyrCEb5jzakbnA+8ZF1Q4s+OR+2Qfn R/PDAw5ipXXyjqX12rcZtiiUGcIEaPpAc8pZB3ID+optl77KK/CW8DzxKPyaS7rDlQmTR1j+i6kAP ce5OuprKRK21kuoq+H7WgpuKgdxmRi94sSa3QcNE3QgnhAkxA1DuajHzG56VRAGNhEC37nyct4MTv 1kdSymHV9tDWaLTufVn/KNTCHKrTJD2Sx09bVaU0YRk9zWo3/AvrrwSt2a7JrsjlmcCM2PRH6HCTj c61mFEF41f7iGt1ji7UWeA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otaaf-0003s7-6U; Fri, 11 Nov 2022 15:25:43 -0500 In-Reply-To: (message from Abdul-Lateef Haji-Ali on Fri, 11 Nov 2022 20:17:26 +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:247618 Archived-At: > From: Abdul-Lateef Haji-Ali > Cc: yantar92@posteo.net, 59141@debbugs.gnu.org, kevin.legouguec@gmail.com, > juri@linkov.net > Date: Fri, 11 Nov 2022 20:17:26 +0000 > > >> The suggested solution is have an outline entry include the new line character (so that the whole extended lines is hidden). The displayed text after the invisible text would then be "...\n". > > ,---- > > | * A* B > > `---- > > > > because the newline will be hidden > > At the moment, if the new line is included in the entry then the output would be > ,---- > | * A...* B > `---- > > However, if the displayed text after the invisible text is changed to "...\n" instead of "..." (through `display` or better yet through a change to invisibility-specs as I suggested) then the output is correct. You are basically suggesting to hide the entire buffer text and instead display something else via display properties. That's not what outline modes do. The solution to this problem is simple: don't use the :extend attribute for these faces. That's all. This attribute is not intended for what you want to achieve here. A whole bunch of problems automatically gets resolved if you don't use :extend.