From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Haji-Ali 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 12:30:13 +0000 Message-ID: References: <871qqcdfvr.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="18451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59141@debbugs.gnu.org, kevin.legouguec@gmail.com, juri@linkov.net To: yantar92@posteo.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 11 13:31:22 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 1otTBq-0004fc-HH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Nov 2022 13:31:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otTBZ-0008Rv-03; Fri, 11 Nov 2022 07:31:05 -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 1otTBW-0008RW-Sq for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 07:31: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 1otTBW-0004ka-Kk for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 07:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otTBW-0005KC-4G for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 07:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Nov 2022 12:31: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.166816983217634 (code B ref 59141); Fri, 11 Nov 2022 12:31:02 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 11 Nov 2022 12:30:32 +0000 Original-Received: from localhost ([127.0.0.1]:45230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otTB1-0004Zi-Ad for submit@debbugs.gnu.org; Fri, 11 Nov 2022 07:30:31 -0500 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:56138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otTAx-0004A8-V1 for 59141@debbugs.gnu.org; Fri, 11 Nov 2022 07:30:29 -0500 Original-Received: by mail-wm1-f45.google.com with SMTP id t4so2860890wmj.5 for <59141@debbugs.gnu.org>; Fri, 11 Nov 2022 04:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=1mh4v7DG3R7Dukbj7y/Eu5OsAUvbrIcRwdNHoiWUrao=; b=LlZ2ni0HO2g9QS+kIxz7caNCj129O0D0BVgBPwnwCkgqjr7ZpB01dxSNhPc7zCOn5F sUxfj+DA4mfQpuTY7F9oHlx/MqljtNMASGumWlR4Glt4bRKTodfIIVpEG1Me25HD3gWk x8GDoEw6Udv0en5BAbCIIJ7GjrB6sa8ZLIqc96eOu5F1wIjq9JbPePvrl7uRii7UprT6 DmLcq+4M2h5PIK+JxAMuJ3h8lUCA/ylgg2zM06zHclHa15ikDOQmk/Bi1iz/j4d+2MDw T6AmH6grkehVh44dGzMDqg97JDHz7ExhzciZjA3wrp7iSvfDQ5VbRLc9WttunTKTQe1e AgVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:in-reply-to:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1mh4v7DG3R7Dukbj7y/Eu5OsAUvbrIcRwdNHoiWUrao=; b=kWBpP2B7nUVKk3lPpiEAl/A5BD2yFq4RYHs1KMnRgQ7rKYQ5UNRATYmNKlJOIpes19 n2+31PjPBdhU848cTMtoOqFTppGl3hbxcR2rG9Cc/Y/dTS3jrsVJKUQKOErClK/74Sc/ k5smbkAd5qTdzMiDiv3GVP6b9ToXtdDiDU8bRrggvars/rYYJOJExn2xKRQEKyiNvYeM WYTS/ZdMew5OdFif0vEQNZikfouLmTmFVgY+Wbx+jlU6vIr2ejQZGlKozkRm5Af84SMx wvw5gxaUAIboTwm0mTTVJTbA17io4VvkqKhTJhFjLnJM4NIHnmx+xxB2GjvsJ1HkQR1E DeNg== X-Gm-Message-State: ANoB5pmaS767hqzTDos5eHAZxu6su9aOw6oHxz9lEl8kVvkQCMm9XBPv Trvtxw/WSSSibh/OaBf+HEU= X-Google-Smtp-Source: AA0mqf6A2Q4emkRRdQ1v7QX3SIpXpEIRsV8aHZRNtolrSO32VB6TkTVZTmxJ/eUlHhb4wWp8BvXzmA== X-Received: by 2002:a05:600c:5022:b0:3cf:96da:3846 with SMTP id n34-20020a05600c502200b003cf96da3846mr1095039wmr.10.1668169821683; Fri, 11 Nov 2022 04:30:21 -0800 (PST) Original-Received: from localhost ([137.195.26.27]) by smtp.gmail.com with ESMTPSA id e24-20020a05600c219800b003cfd42821dasm46810wme.3.2022.11.11.04.30.20 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 Nov 2022 04:30:21 -0800 (PST) In-Reply-To: <87y1si9rrh.fsf@localhost> 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:247581 Archived-At: I've tried Juri's solution of adding an overlay 'display property with "...\n" and at least the final result is what I would expect (the entry is fully hidden including the extended background). One difference in behaviour is that point cannot be after "..." on the same line (only before) but I am not sure that's a serious drawback. Adding the 'display property could be done conditionally if looking-at "\n" (or if the line's face has an :extend property). Note that when the 'display is "\n" only, the ellipses are not shown. Nevertheless, both behaviours go against the documentation of `invisible-p` where it says that if t, "the text would be replaced by an ellipsis", so I am not sure if showing the 'display text is unintended. One solution could be a modification to overlay rendering where an invisibility-spec that has (atom . t) could be replaced by ellipses but (atom . "text") would be replaced by "text" and then "text" could be "...\n" in the situation under consideration. I seem to recall that org-fold had this behaviour, but I am not sure. -- Al