From unknown Tue Aug 19 05:10:54 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#14542 <14542@debbugs.gnu.org> To: bug#14542 <14542@debbugs.gnu.org> Subject: Status: 24.3.50; Simultaneous use of display and invisible properties Reply-To: bug#14542 <14542@debbugs.gnu.org> Date: Tue, 19 Aug 2025 12:10:54 +0000 retitle 14542 24.3.50; Simultaneous use of display and invisible properties reassign 14542 emacs submitter 14542 Jambunathan K severity 14542 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 03 00:36:51 2013 Received: (at submit) by debbugs.gnu.org; 3 Jun 2013 04:36:51 +0000 Received: from localhost ([127.0.0.1]:48359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjMVm-0004kn-Eu for submit@debbugs.gnu.org; Mon, 03 Jun 2013 00:36:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54541) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjMVk-0004kQ-NX for submit@debbugs.gnu.org; Mon, 03 Jun 2013 00:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjMTn-0006IO-Ir for submit@debbugs.gnu.org; Mon, 03 Jun 2013 00:34:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_XBL,TO_NO_BRKTS_PCNT,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjMTn-0006IE-Fv for submit@debbugs.gnu.org; Mon, 03 Jun 2013 00:34:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjMTi-00088Q-MJ for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 00:34:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjMTd-0006Hj-Q2 for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 00:34:42 -0400 Received: from mail-pb0-x22f.google.com ([2607:f8b0:400e:c01::22f]:51571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjMTd-0006He-IQ for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2013 00:34:37 -0400 Received: by mail-pb0-f47.google.com with SMTP id rr4so5089198pbb.34 for ; Sun, 02 Jun 2013 21:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=P1M8XMFmzk7H7iMDUPxcPMdBxvi6g5s6ysXuya7c+YU=; b=gAgWpZIpidbzpYqj8JcDVDJIxDZKZfmBepqzSFel8kYz6CiXXzg5mG+/tXAlVOCSaR oSKNV+z7R+zHDcQaVZwRGPnPbgXTH4RWx5ofp6FkDK9suTt3YgYDIr1mhVzkBbcJX51C PTSQqF3AWl620FbgXGOoZBB70ZOnhUgZAjPfxdIZA2SWiQIMMoV3O7orSPY5GOXHJV7d mbVkzowMS8hYZ8r2e/JX6W/XA2HqabBK9mzkmBVYxGwfn4vvON3YAraBXkgZhBoz/nZP wcbrt3GRRI/RK5ZsYFt77uJ+nZEZWxhtyJzkmgete2lIjUV2xm7heCF4V1cbSnD9n/Ur Pprg== X-Received: by 10.66.123.72 with SMTP id ly8mr22547040pab.159.1370234076562; Sun, 02 Jun 2013 21:34:36 -0700 (PDT) Received: from debian-6.05 ([115.242.228.116]) by mx.google.com with ESMTPSA id v7sm57246398pbq.32.2013.06.02.21.34.34 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 02 Jun 2013 21:34:35 -0700 (PDT) From: Jambunathan K To: bug-gnu-emacs@gnu.org Subject: 24.3.50; Simultaneous use of display and invisible properties Date: Mon, 03 Jun 2013 10:04:51 +0530 Message-ID: <87y5ar4xsk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) I have a piece of text that has both invisible and display property set. The underlying buffer text is invisible but the display engine displays the overlay string. i.e., In the example below, I can see {org-defkey} in my monitor. The underlying character "1..." etc is hidden. This bug is merely to check whether the above behaviour is as intended or a "unknown" side-effect. I have looked at (info "(elisp) Replacing Specs"). I am not sure whether the 'invisible property counts as a display spec. I think it is worth clarifying the desgin or implementation detail in the Elisp manual. Just in case it matters, the 'display property is added right after (insert ...) operation. The invisible property is added as part of font-lock operation. ,---- (text-properties-at (point)) | (invisible t fontified t display | #("{org-defkey}" 0 12 | (face font-lock-function-name-face))) `---- ,---- (overlays-at (point)) | nil `---- ,---- C-u C-x = | position: 122 of 2707 (4%), column: 4 | character: 1 (displayed as 1) (codepoint 49, #o61, #x31) | preferred charset: ascii (ASCII (ISO646 IRV)) | | There are text properties here: | display [Show] | fontified t | invisible t | | [back] `---- GNU Emacs 24.3.50.2 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2013-06-03 on debian-6.05 Bzr revision: 112824 rgm@gnu.org-20130602182638-wbn53t13ukjyzxq5 Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Important settings: value of $LANG: en_IN locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 03 11:51:35 2013 Received: (at 14542) by debbugs.gnu.org; 3 Jun 2013 15:51:36 +0000 Received: from localhost ([127.0.0.1]:49196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjX2l-0007Qa-2H for submit@debbugs.gnu.org; Mon, 03 Jun 2013 11:51:35 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:33416) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UjX2j-0007Pv-3T for 14542@debbugs.gnu.org; Mon, 03 Jun 2013 11:51:33 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MNT00200QM3JK00@a-mtaout20.012.net.il> for 14542@debbugs.gnu.org; Mon, 03 Jun 2013 18:49:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MNT0016DQMM7GP0@a-mtaout20.012.net.il>; Mon, 03 Jun 2013 18:49:34 +0300 (IDT) Date: Mon, 03 Jun 2013 18:49:30 +0300 From: Eli Zaretskii Subject: Re: bug#14542: 24.3.50; Simultaneous use of display and invisible properties In-reply-to: <87y5ar4xsk.fsf@gmail.com> X-012-Sender: halo1@inter.net.il To: Jambunathan K Message-id: <83fvwzxkhh.fsf@gnu.org> References: <87y5ar4xsk.fsf@gmail.com> X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 14542 Cc: 14542@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > From: Jambunathan K > Date: Mon, 03 Jun 2013 10:04:51 +0530 > > > I have a piece of text that has both invisible and display property set. > The underlying buffer text is invisible but the display engine displays > the overlay string. i.e., In the example below, I can see {org-defkey} > in my monitor. The underlying character "1..." etc is hidden. > > This bug is merely to check whether the above behaviour is as intended > or a "unknown" side-effect. It's undefined behavior. What you see is a consequence of how the display engine implements application of text properties. When the same buffer or string position has more than one property change, the display engine applies them in this order: . 'fontified' . 'face' . 'display' . 'invisible' . 'composition' When 2 properties remove text from display in different ways, the result depends on the order. > I have looked at (info "(elisp) Replacing Specs"). I am not sure > whether the 'invisible property counts as a display spec. It doesn't. Display specs are limited to 'display' properties (and not all of them are "replacing"). The 'invisible' property just makes the text invisible on display. > I think it is worth clarifying the desgin or implementation detail > in the Elisp manual. Not sure we should leak the implementation into the documentation. This code is unaltered since it was written 13 years ago, and I don't think I ever heard any questions about this particular situation. I guess it's sufficiently rare. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 15 00:20:43 2013 Received: (at 14542-done) by debbugs.gnu.org; 15 Nov 2013 05:20:43 +0000 Received: from localhost ([127.0.0.1]:53731 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhBph-0002mR-Ny for submit@debbugs.gnu.org; Fri, 15 Nov 2013 00:20:42 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:52633) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VhBpe-0002m7-IJ for 14542-done@debbugs.gnu.org; Fri, 15 Nov 2013 00:20:39 -0500 Received: by mail-pb0-f45.google.com with SMTP id mc8so3073598pbc.4 for <14542-done@debbugs.gnu.org>; Thu, 14 Nov 2013 21:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=J031GXewnaACqsprHRq7ZhAivpOG36ggI7TgI07VQ78=; b=U3fu+yQ4eUmaSY1Smk38Mlj768AiIYJTrhnaibrKKQYw2EgPsGxpCpYmkd/aJXTQpd RzZYaqA2eI6TqCwntIFx+hwYkneoIVUp6ws+YDdRhBlrRs8lCH2Ad9FXB0tecagTY9Kv zobiiRlhSu984/kvz7ylu0cXQQZoqmseKd3sR3lnUp3F1KT6/Wz1LyYcwXzupiztEPg8 2LmTTIpu+uhe+EyzzRKi2VvAirLxB/M1A8cP4P2NiQkJHy3hjWkqN4pOUdeSp+s5ljup DMGVV30I4DsmqmFbPvZLpTYTY75bZY9Ntd1zkZK3/vHCc4BFyGwrIdVeHuD474kwbBfb 0H7A== X-Received: by 10.66.121.68 with SMTP id li4mr4977303pab.33.1384492833013; Thu, 14 Nov 2013 21:20:33 -0800 (PST) Received: from debian-6.05 ([115.241.27.214]) by mx.google.com with ESMTPSA id py4sm1648822pbb.33.2013.11.14.21.20.30 for <14542-done@debbugs.gnu.org> (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 21:20:32 -0800 (PST) From: Jambunathan K To: 14542-done@debbugs.gnu.org Subject: Re: bug#14542: 24.3.50; Simultaneous use of display and invisible properties References: <87y5ar4xsk.fsf@gmail.com> Date: Fri, 15 Nov 2013 10:50:18 +0530 In-Reply-To: <87y5ar4xsk.fsf@gmail.com> (Jambunathan K.'s message of "Mon, 03 Jun 2013 10:04:51 +0530") Message-ID: <87vbzufdgt.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14542-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) OP here. Closed. From unknown Tue Aug 19 05:10:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Dec 2013 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator