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: Tue, 22 Nov 2022 21:16:27 +0200 Organization: LINKOV.NET Message-ID: <86tu2qx0j8.fsf@mail.linkov.net> References: <871qqcdfvr.fsf@localhost> <83bkpdpf92.fsf@gnu.org> <8335app826.fsf@gnu.org> <831qq9p7b7.fsf@gnu.org> <87bkpc4e06.fsf@gmail.com> <865yfkoz1n.fsf@mail.linkov.net> <87mt8vnn6h.fsf@gmail.com> <86leoebv1q.fsf@mail.linkov.net> <87leoev6j0.fsf@gmail.com> <864jv26l0g.fsf@mail.linkov.net> <87zgctajf5.fsf@gmail.com> <86fsely0q3.fsf@mail.linkov.net> <87cz9prxbg.fsf@gmail.com> <86sfidsbrx.fsf@mail.linkov.net> <86bkozbf3r.fsf@mail.linkov.net> <838rk3117m.fsf@gnu.org> <86h6yrx9dd.fsf@mail.linkov.net> <8335aa25l8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="794"; 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, yantar92@posteo.net, abdo.haji.ali@gmail.com, kevin.legouguec@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 20:31:27 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 1oxYzO-000Aak-Pr for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 20:31:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxYz1-0000d9-Mz; Tue, 22 Nov 2022 14:31:03 -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 1oxYz0-0000cv-Dd for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 14: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 1oxYz0-0000Sn-5s for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 14:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxYyz-00007e-S7 for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 14:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 19:31: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.1669145455456 (code B ref 59141); Tue, 22 Nov 2022 19:31:01 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 22 Nov 2022 19:30:55 +0000 Original-Received: from localhost ([127.0.0.1]:52560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxYyt-00007I-Iz for submit@debbugs.gnu.org; Tue, 22 Nov 2022 14:30:55 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:39399) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxYyq-000074-BA for 59141@debbugs.gnu.org; Tue, 22 Nov 2022 14:30:54 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 0F9226000B; Tue, 22 Nov 2022 19:30:43 +0000 (UTC) In-Reply-To: <8335aa25l8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 22 Nov 2022 20:42:59 +0200") 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:248671 Archived-At: > Does the below produce what you want? > > (progn > (insert "ab") > (let ((o (make-overlay 2 3))) > (overlay-put o 'after-string "!")) > (let ((o (make-overlay 2 3))) > (overlay-put o 'invisible t))) Thanks, this is a possibility. Maybe not easy to use since for an ellipsis overlay will need to get the boundaries of the invisible outline overlay. Or maybe simpler to put 'after-string' on the same invisible overlay like this: @@ -973,6 +974,8 @@ outline-flag-region ;; belongs to the heading rather than to the entry. (let ((o (make-overlay from to nil 'front-advance))) (overlay-put o 'evaporate t) + (when (eq outline-minor-mode-use-buttons 'ellipsis) + (overlay-put o 'after-string "…")) (overlay-put o 'invisible 'outline) (overlay-put o 'isearch-open-invisible (or outline-isearch-open-invisible-function