From unknown Fri Jun 20 07:29:16 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#40857 <40857@debbugs.gnu.org> To: bug#40857 <40857@debbugs.gnu.org> Subject: Status: Invisibility specs do not apply to specified spaces Reply-To: bug#40857 <40857@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:29:16 +0000 retitle 40857 Invisibility specs do not apply to specified spaces reassign 40857 emacs submitter 40857 Cl=C3=A9ment Pit-Claudel severity 40857 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 25 19:19:01 2020 Received: (at submit) by debbugs.gnu.org; 25 Apr 2020 23:19:01 +0000 Received: from localhost ([127.0.0.1]:60542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSU4a-0002GR-Rj for submit@debbugs.gnu.org; Sat, 25 Apr 2020 19:19:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:36024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSU4Z-0002GK-75 for submit@debbugs.gnu.org; Sat, 25 Apr 2020 19:18:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44738) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSU4Y-0007ui-Pd for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 19:18:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSU4Y-0000p4-Bc for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 19:18:58 -0400 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:38192) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSU4X-0000oq-W8 for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 19:18:58 -0400 Received: by mail-qt1-x836.google.com with SMTP id i68so11248008qtb.5 for ; Sat, 25 Apr 2020 16:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=O/dTdpWKc3tkb3NwJsO9Jd3/E/flrhu5DiuTpzAcMwk=; b=om+dug6X8NRvtKleQ86ESIJDzIoLxM3RqdWzOkjat/MjrM6wYn/NMeYHw+nruSWlEv K8CeJWTfy9ThbTFyUDlphHiRAJxJzSCmkHuJC5YMpH62Bjv0yfA0gWQUmx8qGSuBvDpk P/bzm8sTUyuQtriVusquRyz3MS37hpdY8VmVZ7VyxLdd9igXtdjROa8Ppp58pTK4wvfa +yKBD+tYkoq2Y/hbvLhOGZ/biubGEZEAJ180GCl90Ejt5YHi3N2Gc96gs8dB97gVYPCF 7dzRLxziFrnOFp0NWJt3GKhVeAuWCImaHRlLrf4vyIivn0CW+np9hERHuW8EJsgcQ2Uj VTbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=O/dTdpWKc3tkb3NwJsO9Jd3/E/flrhu5DiuTpzAcMwk=; b=ZYKLiMgdSBW43QP4BCuINeet9dGzSdjPo5xAnXQ3qOL0vHDY9gkl2ZzK8Dt/tR+pTk 7DBGlsVnuPY/QhIbwiR28ppZMeR/Gp7kNyFyz7okRkLul/6OdhEP7/mOZyKDSlyxlotu omFNWwC8T0CD18S0nOoPv5dyF4Hlw8u7d1IUHlsi81kzqyoiyHwUSfnP/NK59mwpBrqr wZ6oYessvAWIsox6mZJcryQf2AvdHjmksiCQDsGbnjpmFC6xwuH0krDnNY021VHeWH+3 FxswUyaFH6mHG6WlJY+CtB1ZLyXLuNA7ThryNS3GqAg0wHN2/6Lh2iTDyioYj3/98tor jzAw== X-Gm-Message-State: AGi0PuZKfZKa5ueXD8cwHG6Nd9BkK8b06mBzJKGCeKaecipwEvigVX5x /gRTMLO54b6XK0rO6HQ7YyF5tpaw5Vs= X-Google-Smtp-Source: APiQypKpVSlJigBUpEkmd2U6n2oEDekm+SIPVnzs4HGLv1E9U/vbH/ZHmPGdVeZC5cXfLc5kTamhDw== X-Received: by 2002:ac8:1a4d:: with SMTP id q13mr16624880qtk.137.1587856736920; Sat, 25 Apr 2020 16:18:56 -0700 (PDT) Received: from ?IPv6:2601:184:4180:66e7:54d6:bfeb:aa49:9d3b? ([2601:184:4180:66e7:54d6:bfeb:aa49:9d3b]) by smtp.googlemail.com with ESMTPSA id g25sm6503398qkl.50.2020.04.25.16.18.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 25 Apr 2020 16:18:56 -0700 (PDT) To: bug-gnu-emacs From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Subject: Invisibility specs do not apply to specified spaces Message-ID: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> Date: Sat, 25 Apr 2020 19:18:55 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x836.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::836 X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -2.3 (--) Consider the following program: (with-current-buffer (get-buffer-create "*spaces*") (erase-buffer) (let ((indent (propertize " " 'display '(space :width 3)))) (put-text-property (point) (progn (insert indent "r1\n") (point)) 'invisible 'a) (put-text-property (point) (progn (insert indent "r2\n") (point)) 'invisible 'b)) (add-to-invisibility-spec 'a) (pop-to-buffer (current-buffer))) The first record (r1) is hidden, but not the indentation that precedes it; so, instead of looking like this: r2 The buffer looks like this: r2 (This is because the invisible property doesn't apply to the display spec.) It's easy to fix when the replacing display spec is a string (by putting the same invisibility spec on the string), but there doesn't seem to be a way to add an 'invisible property to the specified space. Clément From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 11:21:21 2020 Received: (at 40857) by debbugs.gnu.org; 26 Apr 2020 15:21:21 +0000 Received: from localhost ([127.0.0.1]:33923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSj5k-0002JK-6o for submit@debbugs.gnu.org; Sun, 26 Apr 2020 11:21:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSj5h-0002J6-Pz for 40857@debbugs.gnu.org; Sun, 26 Apr 2020 11:21:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44425) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSj5b-0002mz-Hj; Sun, 26 Apr 2020 11:21:03 -0400 Received: from [176.228.60.248] (port=4429 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSj5a-0006XY-51; Sun, 26 Apr 2020 11:21:03 -0400 Date: Sun, 26 Apr 2020 18:20:55 +0300 Message-Id: <83tv165l48.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-Reply-To: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Sat, 25 Apr 2020 19:18:55 -0400) Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40857 Cc: 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Clément Pit-Claudel > Date: Sat, 25 Apr 2020 19:18:55 -0400 > > Consider the following program: > > (with-current-buffer (get-buffer-create "*spaces*") > (erase-buffer) > (let ((indent (propertize " " 'display '(space :width 3)))) > (put-text-property (point) (progn (insert indent "r1\n") (point)) 'invisible 'a) > (put-text-property (point) (progn (insert indent "r2\n") (point)) 'invisible 'b)) > (add-to-invisibility-spec 'a) > (pop-to-buffer (current-buffer))) > > The first record (r1) is hidden, but not the indentation that precedes it; so, instead of looking like this: > > r2 > > The buffer looks like this: > > r2 I don't think this is a bug. A "replacing" display property in effect forces the display engine to ignore the entire chunk of text "covered" by that display property, so the fact that this chunk of text is in this case invisible is never seen, nor acted upon. Once the display engine is done producing the stretch of white space for the display property, it jumps to the end of the text "covered" by the property, and continues from there. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 12:04:52 2020 Received: (at 40857) by debbugs.gnu.org; 26 Apr 2020 16:04:52 +0000 Received: from localhost ([127.0.0.1]:33992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSjm0-0003Pm-2L for submit@debbugs.gnu.org; Sun, 26 Apr 2020 12:04:52 -0400 Received: from mail-qt1-f169.google.com ([209.85.160.169]:39835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSjly-0003Pa-UU for 40857@debbugs.gnu.org; Sun, 26 Apr 2020 12:04:51 -0400 Received: by mail-qt1-f169.google.com with SMTP id o10so12260777qtr.6 for <40857@debbugs.gnu.org>; Sun, 26 Apr 2020 09:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dTp/6/UdMi6sddL8Nh/1+r/JYicfivs5AfxzkbQSOuI=; b=BxNE7JTlqJenfi9uTxqBOtttnIheEdzJ9jpFf1BWyNMC11VVsP1UkOn2TX/cK9KTv2 O4z8vXKXR0JPODwoqb6mUShZGX1BiMcB7PWo4S8cShX8jkLaeYSGbbJvTx+eMgooUJ6f UXkt3Y+Eh0VyajOKvQBy2vJlWRF4yQhLAu2b/bBDbxCL7ZS5irBpp+pWoVBagX9W9gKw Q4jwBurVtsMqftSXqR85BC8Gg5on1uuEMOfr+gIBDTPrscDROPqon8upsWbD2QxGyEeh Qc5Kv7Sftffnprr/9BvY847p59Z6TK8wp9cLz5QnAgVAXWBo8t9xCIziFJtJ/vYFroDj PasQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dTp/6/UdMi6sddL8Nh/1+r/JYicfivs5AfxzkbQSOuI=; b=DbbrAwwKyJ+Ebm6graVo7wAgypl4s8PX4ZQp2A1j3G+HUFW1dvkYxh2pVvPzffEAe4 VTEsmE1I1cHfWgCjn4/WYYvfpNArG3w8el6n5Xu/bogIkAQSgtMX1HNmLhRmnBZwuVMn 6otAqrala92bYowPzC2eT7wWiP/hA5C54NIIyF4/Xqz2dEsTzfu7+2MInUWr/vQudZrz dGCCdxPN8ryfrtY1nVdGZSCPdOp5YSDjFnBE6VZIfAEWPh6gSZiAjk9j2eVp6YNgSkWh 1H4uLkfN2boU/8StSEqIOPw4XilDPckxXCsFQmuHf74Q1lQuXMgF09zBZf93dhCtgUC2 KYfQ== X-Gm-Message-State: AGi0PuYxUJSItCqOBJTMeEhS+Tu3pDdocLeCIDzhbLALasevdEEO5lmE gKqpQTWTAklfpV1DpR0VajcEg7Sw X-Google-Smtp-Source: APiQypKp6z+B7RGqBdoU0QKfBLZCIinSETMxLh6rK9KHgQKeeeCfCT3qCshDru+2kPe0W7i1Gq2jgQ== X-Received: by 2002:ac8:7183:: with SMTP id w3mr19119003qto.307.1587917085348; Sun, 26 Apr 2020 09:04:45 -0700 (PDT) Received: from ?IPv6:2601:184:4180:66e7:54d6:bfeb:aa49:9d3b? ([2601:184:4180:66e7:54d6:bfeb:aa49:9d3b]) by smtp.googlemail.com with ESMTPSA id s14sm8352274qts.70.2020.04.26.09.04.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Apr 2020 09:04:44 -0700 (PDT) Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces To: Eli Zaretskii References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> <83tv165l48.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Message-ID: <8f5a6c90-6292-1ba1-ad14-020575d02d52@gmail.com> Date: Sun, 26 Apr 2020 12:04:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <83tv165l48.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40857 Cc: 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) On 26/04/2020 11.20, Eli Zaretskii wrote: >> From: Clément Pit-Claudel >> Date: Sat, 25 Apr 2020 19:18:55 -0400 >> >> Consider the following program: >> >> (with-current-buffer (get-buffer-create "*spaces*") >> (erase-buffer) >> (let ((indent (propertize " " 'display '(space :width 3)))) >> (put-text-property (point) (progn (insert indent "r1\n") (point)) 'invisible 'a) >> (put-text-property (point) (progn (insert indent "r2\n") (point)) 'invisible 'b)) >> (add-to-invisibility-spec 'a) >> (pop-to-buffer (current-buffer))) >> >> The first record (r1) is hidden, but not the indentation that precedes it; so, instead of looking like this: >> >> r2 >> >> The buffer looks like this: >> >> r2 > > I don't think this is a bug. Indeed not. As I said in the original method, and as you summarized: (This is because the invisible property doesn't apply to the display spec.) The feature request is to have a way to add an invisible property to specified spaces. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 13:15:03 2020 Received: (at 40857) by debbugs.gnu.org; 26 Apr 2020 17:15:03 +0000 Received: from localhost ([127.0.0.1]:34809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSkrv-00069b-9d for submit@debbugs.gnu.org; Sun, 26 Apr 2020 13:15:03 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSkrt-00068W-Fd; Sun, 26 Apr 2020 13:15:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47349) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSkro-00024F-8I; Sun, 26 Apr 2020 13:14:56 -0400 Received: from [176.228.60.248] (port=2683 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSkf1-0007OD-DR; Sun, 26 Apr 2020 13:01:44 -0400 Date: Sun, 26 Apr 2020 20:01:36 +0300 Message-Id: <83imhm5ggf.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-Reply-To: <8f5a6c90-6292-1ba1-ad14-020575d02d52@gmail.com> (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Sun, 26 Apr 2020 12:04:43 -0400) Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> <83tv165l48.fsf@gnu.org> <8f5a6c90-6292-1ba1-ad14-020575d02d52@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40857 Cc: 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) severity 40857 wishlist thanks > Cc: 40857@debbugs.gnu.org > From: Clément Pit-Claudel > Date: Sun, 26 Apr 2020 12:04:43 -0400 > > > I don't think this is a bug. > > Indeed not. As I said in the original method, and as you summarized: (This is because the invisible property doesn't apply to the display spec.) Not because it doesn't apply to the display spec, because it at all is not considered when a display property is on the same text as invisible property. > The feature request is to have a way to add an invisible property to specified spaces. Ah, okay. Didn't realize this was a feature request. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 13:25:18 2020 Received: (at 40857) by debbugs.gnu.org; 26 Apr 2020 17:25:18 +0000 Received: from localhost ([127.0.0.1]:34823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSl1p-0006Ql-Vm for submit@debbugs.gnu.org; Sun, 26 Apr 2020 13:25:18 -0400 Received: from mail-qk1-f182.google.com ([209.85.222.182]:38854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSl1o-0006QY-9z for 40857@debbugs.gnu.org; Sun, 26 Apr 2020 13:25:16 -0400 Received: by mail-qk1-f182.google.com with SMTP id o19so15782066qkk.5 for <40857@debbugs.gnu.org>; Sun, 26 Apr 2020 10:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lr9kKWUhRuOpD5R4pBsCJ5Z9+cjNTLmEVCRbX5HQZxw=; b=X72gLhV1y4VGJf05BC/2n9unWe9ucD/i92hcOJ3ejfBjI2xcP4B5iYKIqTzdP/hw1R WezKogZryHMK2yKr4doyIx2V+XBFD0NmChnDehtrJrAvNo7M/vPIKqsCJJprUqd1aqON 4VWepH/50bOYIklXxwVUeiiMarRPlqkme69/boubehNXTzRVU2C9/n9GPJ8WfDiC3HWz 0v5GqwBixvPBfxSJo+JQTuqPqG+NzX00086TjQMJGr2FXd3D8lTjDdRYYjRPR0m+BNyv 5xGpQfd4BqxRb/ldDnncjJxQhftfrjyefW54NrCtzx+OU2ky2j44fEvyAyeQXz7Aii0p R6FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lr9kKWUhRuOpD5R4pBsCJ5Z9+cjNTLmEVCRbX5HQZxw=; b=Kw266pVGty/ZoxQ8VD1ceyUw4JEiU+8fIiY+c6nK1GcZbDBxSZxUD7pn8ZLP19wwt6 6AYsWZ2qgF/y7WevTy5eVuLv9zs9ADH8y4xrBP23TCul3MnGe5NQx2Bv9JlHjLrRa37W rHvJN+m/eLoHGJ+x9uCja08mj16tIXHcrbQwt1r51wK8g0AKDcEtqya+mxSZsbOL0i65 FZXCZK+s/toNzeH0bCnnCCwGu6OxQXmj5RR4s6bxHa13UNRidrfC5cyLSWAeVC0MNUD5 +9f0FgcoLTl6+wyFv2iDAjC+RdVH7oYhPHp/9LjIJL/g2mNZHmLXxC+EiiAMZIf0eijr 06Qg== X-Gm-Message-State: AGi0PuY23dqacEwnYmhkEBc/nJwBLPXHxLqcE7BTNBOWRPnEwE+kZZKv /yK8Cc5HUcq8yt7MpJzxhB31oS1NjTk= X-Google-Smtp-Source: APiQypK5w02Zd+SuSES+yPcto1W+6mXJABYOwsUjYp4cTEUtF3o+j1EVLVcbLhBdawdHWOR4QMVPwQ== X-Received: by 2002:a05:620a:5f7:: with SMTP id z23mr10749768qkg.76.1587921910754; Sun, 26 Apr 2020 10:25:10 -0700 (PDT) Received: from ?IPv6:2601:184:4180:66e7:54d6:bfeb:aa49:9d3b? ([2601:184:4180:66e7:54d6:bfeb:aa49:9d3b]) by smtp.googlemail.com with ESMTPSA id h3sm7893125qkf.15.2020.04.26.10.25.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 Apr 2020 10:25:10 -0700 (PDT) Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces To: Eli Zaretskii References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> <83tv165l48.fsf@gnu.org> <8f5a6c90-6292-1ba1-ad14-020575d02d52@gmail.com> <83imhm5ggf.fsf@gnu.org> From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Message-ID: Date: Sun, 26 Apr 2020 13:25:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <83imhm5ggf.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40857 Cc: 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) On 26/04/2020 13.01, Eli Zaretskii wrote: >> The feature request is to have a way to add an invisible property to specified spaces. > > Ah, okay. Didn't realize this was a feature request. Sorry, it's because I wasn't clear. Specified spaces are very convenient for displaying tabulated lists, and the buffer-invisibility-spec is supposed to be particularly useful for displaying database records, but in practice these two don't work together. It would be great if they did. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 13:45:40 2020 Received: (at 40857) by debbugs.gnu.org; 26 Apr 2020 17:45:40 +0000 Received: from localhost ([127.0.0.1]:34844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSlLX-0000Zp-Qt for submit@debbugs.gnu.org; Sun, 26 Apr 2020 13:45:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSlLW-0000Zb-47 for 40857@debbugs.gnu.org; Sun, 26 Apr 2020 13:45:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48197) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSlLQ-0002X8-PE; Sun, 26 Apr 2020 13:45:32 -0400 Received: from [176.228.60.248] (port=1586 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSlLP-0004lM-Un; Sun, 26 Apr 2020 13:45:32 -0400 Date: Sun, 26 Apr 2020 20:45:25 +0300 Message-Id: <83a72y5efe.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel In-Reply-To: (message from =?utf-8?Q?Cl=C3=A9ment?= Pit-Claudel on Sun, 26 Apr 2020 13:25:09 -0400) Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> <83tv165l48.fsf@gnu.org> <8f5a6c90-6292-1ba1-ad14-020575d02d52@gmail.com> <83imhm5ggf.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40857 Cc: 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > Cc: 40857@debbugs.gnu.org > From: Clément Pit-Claudel > Date: Sun, 26 Apr 2020 13:25:09 -0400 > > > Ah, okay. Didn't realize this was a feature request. > > Sorry, it's because I wasn't clear. Specified spaces are very convenient for displaying tabulated lists, and the buffer-invisibility-spec is supposed to be particularly useful for displaying database records, but in practice these two don't work together. It would be great if they did. I still haven't abandon the hope that such feature requests will draw volunteers other than myself... From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 15:02:12 2020 Received: (at 40857) by debbugs.gnu.org; 26 Apr 2020 19:02:12 +0000 Received: from localhost ([127.0.0.1]:34934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSmXc-0002Wb-FP for submit@debbugs.gnu.org; Sun, 26 Apr 2020 15:02:12 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:41715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSmXa-0002WL-IB for 40857@debbugs.gnu.org; Sun, 26 Apr 2020 15:02:10 -0400 Received: by mail-ot1-f45.google.com with SMTP id c3so22360323otp.8 for <40857@debbugs.gnu.org>; Sun, 26 Apr 2020 12:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bRj8Yy47O/SkdP7nVU7LkGCdTnvzODtZS7Ey0s4tGdw=; b=Rrn3Oj3VF6pcOiyjZ2OOGy38uBENiXjKPRLbscCgFj8Qtj3gsFxEoOe0Qm8NQ0jZwe dSSypGZ92ia3ki4ptmhJujNkCw3oX0iaSDFCYUNMdNHaA3INV543I4kb1EL0nZKyvkLB eVvm2l1QhIZc9OyR5t/iN5/16R6UamabTHisYwo6mFJ7nO09TEXfNybSqos+qNmHVPJp M46+TlAxq/Y/vRA4EgrEd8SPe0vi10spOh8pTuGoA8YUlXUPwOS8zKsVGlzSQCWeA98j rFijCV4kkhrFiy2PwgVf570GuZgtmJvWpSgxbvsz/Vc0hCbAEpsdq7iRmdtzIAh+Nt0o sOaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bRj8Yy47O/SkdP7nVU7LkGCdTnvzODtZS7Ey0s4tGdw=; b=phRwpMfjMbCrRKJU8eflwuCh+wnTRrUSyfJpcbMQj+QDDFH8fVtbmFDYMeENNLAT3A FR30CBjjtQMyzho7KZ6JLSn9aLk/xlJptTdr9VuOderiN2E/QAErMnycloKRpXoXutFT UBU8yjAx/tHPcxj2dQ8oYtW0sJuecjh5ZzQIFac6yelysU/aqyrA54lqSf4ZiKYXoOzU 7U4BV9U+UzOOIdDxMEtxGjh6ACIfbF7HHrbNx3a48U4ILkmOqwF7xLSt6bCP/hUkqYWv QOHTOJLcC0c3hOV0PwZayIPQ0yU0oWBa3tlqS3tQGkeLKi+3gG8wfSRyCgVGhXRWSXRB RkvA== X-Gm-Message-State: AGi0PuZRigPpbh3vzjkNgVHCYgZpWm/72MX/jEpE1IiPUQEExoYQnF0r Pc9ELkjsBIrPWOythiI+IE5Zk7rIAXYBxyH18qo= X-Google-Smtp-Source: APiQypLntcCm7vexJ9NtO5PNVM/u3igxwCsK9QetwXn1kgXHDgwtwrhJ+QOY6rw9iJgoW4LfiqyALAZmlfGGU+TJllA= X-Received: by 2002:aca:bb83:: with SMTP id l125mr13255391oif.122.1587927725065; Sun, 26 Apr 2020 12:02:05 -0700 (PDT) MIME-Version: 1.0 References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> <83tv165l48.fsf@gnu.org> In-Reply-To: <83tv165l48.fsf@gnu.org> From: Pip Cet Date: Sun, 26 Apr 2020 19:01:29 +0000 Message-ID: Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40857 Cc: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= , 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) On Sun, Apr 26, 2020 at 3:22 PM Eli Zaretskii wrote: > I don't think this is a bug. A "replacing" display property in effect > forces the display engine to ignore the entire chunk of text "covered" > by that display property, That's only true for text properties: a display property on an empty overlay is ignored. So it would be consistent with that to ignore display text properties on invisible strings. The right fix, I think, is to apply the patch in bug#40845, possibly extending it to pass in an "invisible" flag to the Lisp code that calculates the actual display spec to be used. From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 27 11:20:15 2020 Received: (at 40857) by debbugs.gnu.org; 27 Apr 2020 15:20:15 +0000 Received: from localhost ([127.0.0.1]:37900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT5YN-0005Lv-4G for submit@debbugs.gnu.org; Mon, 27 Apr 2020 11:20:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33446) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jT5YL-0005Lg-Su for 40857@debbugs.gnu.org; Mon, 27 Apr 2020 11:20:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37663) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jT5YG-0000aC-IM; Mon, 27 Apr 2020 11:20:08 -0400 Received: from [176.228.60.248] (port=4593 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jT5YF-0008G9-Mb; Mon, 27 Apr 2020 11:20:08 -0400 Date: Mon, 27 Apr 2020 18:20:03 +0300 Message-Id: <83lfmh3qho.fsf@gnu.org> From: Eli Zaretskii To: Pip Cet In-Reply-To: (message from Pip Cet on Sun, 26 Apr 2020 19:01:29 +0000) Subject: Re: bug#40857: Invisibility specs do not apply to specified spaces References: <1f66e993-8835-4777-7252-9b6de7331fc7@gmail.com> <83tv165l48.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40857 Cc: cpitclaudel@gmail.com, 40857@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > From: Pip Cet > Date: Sun, 26 Apr 2020 19:01:29 +0000 > Cc: Clément Pit-Claudel , > 40857@debbugs.gnu.org > > On Sun, Apr 26, 2020 at 3:22 PM Eli Zaretskii wrote: > > I don't think this is a bug. A "replacing" display property in effect > > forces the display engine to ignore the entire chunk of text "covered" > > by that display property, > > That's only true for text properties: a display property on an empty > overlay is ignored. Can you show a Lisp snippet for that? I don't think I have a clear idea of the use case. > The right fix, I think, is to apply the patch in bug#40845, possibly > extending it to pass in an "invisible" flag to the Lisp code that > calculates the actual display spec to be used. I explained elsewhere why I think we shouldn't move display functionalities to Lisp, except as the last resort, more or less.