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 20:42:59 +0200 Message-ID: <8335aa25l8.fsf@gnu.org> References: <871qqcdfvr.fsf@localhost> <83h6z5psqe.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38160"; 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 19:43: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 1oxYEw-0009lG-Og for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 19:43:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxYEc-0005Js-Sn; Tue, 22 Nov 2022 13:43:06 -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 1oxYEa-0005H7-8b for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 13:43:04 -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 1oxYEZ-0006Xv-0A for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 13:43:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxYEY-0007O3-GM for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 13:43: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: Tue, 22 Nov 2022 18:43: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.166914257528380 (code B ref 59141); Tue, 22 Nov 2022 18:43:02 +0000 Original-Received: (at 59141) by debbugs.gnu.org; 22 Nov 2022 18:42:55 +0000 Original-Received: from localhost ([127.0.0.1]:52543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxYEQ-0007Ng-Pc for submit@debbugs.gnu.org; Tue, 22 Nov 2022 13:42:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxYEO-0007NT-HB for 59141@debbugs.gnu.org; Tue, 22 Nov 2022 13:42:53 -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 1oxYEI-0006W6-WD; Tue, 22 Nov 2022 13:42:47 -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=7+521LzQLa0d0z/FyzN2eHYQY6BE4Fgh+r4sorCpvUc=; b=sH4oaSgFHQhy Zca3WibSPm2uG3lxFwEQhGVMStmBu1MbX739x9Ih3qHlNdVMMYnYkEeCS1Z004JOBAqvgt/litR/0 0YcCQEdIhY735D7gbRw1o2tPxjdVWkEMnNbFINkfbaB5BqUJk8WyZU6GCFg4YFZtlmdeaBuJX2kpX /+8e7nY8XmqkrsfuCE9ymM+KvuDuEjU74SxCew9LeQeMzAmZadTDOSVdvvMw8CLCS9yUX/Iq4zOCt YlaASsCRdetiWNk7YObIRaJYN6LpltJzMsvf/uS827Ei0NnDXeOxyGxlR9GJ3qONMqlE2qml9y+hf PcaYhPJvLgE3GoCuUoI3Og==; 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 1oxYEH-0001vk-D2; Tue, 22 Nov 2022 13:42:46 -0500 In-Reply-To: <86h6yrx9dd.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 22 Nov 2022 19:35:34 +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:248668 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 19:35:34 +0200 > > >> (progn > >> (insert "ab") > >> (let ((o (make-overlay 1 2))) > >> (overlay-put o 'after-string "!")) > >> (let ((o (make-overlay 2 3))) > >> (overlay-put o 'invisible t))) > >> > >> The problem is that "!" from 'after-string' is not displayed, > >> even when it's on the text that is not invisible. > > > > There's no bug here. after-string is displayed when the end position of the > > overlay is reached, and in this case the end position is invisible, so it is > > skipped. > > If really there is no way to display a string overlay before the invisible overlay, > this is fine because when a new option will be added, the ellipsis overlay > will be added to the end of the line, and the invisible overlay will start > at the beginning of the next line. 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)))