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: Tue, 22 Nov 2022 21:36:50 +0200 Message-ID: <83y1s2zsq5.fsf@gnu.org> 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> <86tu2qx0j8.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59141@debbugs.gnu.org, yantar92@posteo.net, abdo.haji.ali@gmail.com, kevin.legouguec@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 20:37:17 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 1oxZ53-00084i-2w for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 20:37:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxZ4p-0001mV-QT; Tue, 22 Nov 2022 14:37: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 1oxZ4o-0001mA-EE for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 14:37: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 1oxZ4n-0001N3-Ss for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 14:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxZ4n-0000GD-LJ for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 14:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 19:37: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.1669145806965 (code B ref 59141); Tue, 22 Nov 2022 19:37:01 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 22 Nov 2022 19:36:46 +0000 Original-Received: from localhost ([127.0.0.1]:52566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxZ4Y-0000FV-A3 for submit@debbugs.gnu.org; Tue, 22 Nov 2022 14:36:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxZ4W-0000FF-4C for 59141@debbugs.gnu.org; Tue, 22 Nov 2022 14:36:44 -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 1oxZ4Q-0001K7-AT; Tue, 22 Nov 2022 14:36:38 -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=01ia3kX+n8Efmotef2PDg39DO+qUwORJ8GLIMZyosR4=; b=MxHK58R7z/+K f6RZznQrUeO51b6F1lYhRmbtHSPENvqV9vfxWieOr1Yi6BKTpayN2xRz4JTpudCTItzdCfjkU2sJl ikiifHqqvXPlcYnFvpqra/gMRwqTrr/+yz7+3apk5MzAQl4o7EfQAH2fM4hWnvx3X8thdtMtLy+VS NTCiNOO9dEghMGhfm+4QuMVc2fIOWo7j6PPv1zZva76KEYc+wAndJGshaFpI3HRgt8GOJe4cFrhEf ErVe6moFJWurEHIfgEvrGX4UubNH/A2MdCFfL5tE/N4GLfIjICKDj2/y8GfFlYu+GdwAbSlIYTfDz tsLc6odWpfPQ1MfC1s1GAA==; 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 1oxZ4N-00028l-NZ; Tue, 22 Nov 2022 14:36:37 -0500 In-Reply-To: <86tu2qx0j8.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 22 Nov 2022 21:16:27 +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:248672 Archived-At: > From: Juri Linkov > Cc: kevin.legouguec@gmail.com, 59141@debbugs.gnu.org, > abdo.haji.ali@gmail.com, yantar92@posteo.net > Date: Tue, 22 Nov 2022 21:16:27 +0200 > > > 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. I don't think you need the exact boundaries. All you need is to make sure the START of the after-string overlay is in invisible text. It doesn't matter where its END is.