From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Q: Invisible text spec + define minor mode macro Date: Wed, 21 Apr 2021 11:55:43 +0200 Message-ID: References: <83eef4q9or.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="11684"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 21 11:56:42 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lZ9b7-0002wN-Q4 for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Apr 2021 11:56:41 +0200 Original-Received: from localhost ([::1]:44484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ9b6-0002EI-Th for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Apr 2021 05:56:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ9aH-0001kd-1B for emacs-devel@gnu.org; Wed, 21 Apr 2021 05:55:49 -0400 Original-Received: from mail-vi1eur06olkn2098.outbound.protection.outlook.com ([40.92.17.98]:54336 helo=EUR06-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ9aE-0002lL-OE; Wed, 21 Apr 2021 05:55:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VE7d3Az37X5c8mLsiFwl0NvZ5/eJ/LzVQhWhLH93aNnFuvwqp5ooSPtTrhPEIyCTcNdeM4RKmkFCiQcpdvcDCh+vLlGaD+D8Wdc9hM2EYI4UI4zGBP4QSn5NPJgDaDoSAQEq8hxtWMaPG9Jlx42PtYBZCiXGcjXU7lYY+noNSlS3gNMt23ornPc/QQIZ7aiapTh/4fKpVKeXb7chsu43xN6Uxtk0dZbwojDx4jRNaFTTynbNXapLFLPp6fqL2o8j3URAnmha+REWUCTt7o9oSyEdhp/mlgneXTHi9Kz2ZCzovbhz5TM2UlE7tddUM7VbJ8nkhYKDEyEqmiDBYvU+tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YZRX7n/KAlN9JYs9TDOzUcowBQBS4LQ+LvfakT3aH7k=; b=ApirQogncmIz7fLubKaS5y9WIyexLTZmB7oZ0fPFUkUi6oFxbrFRPtJvQ4bDU7dsEg85nxlbj+aU5y+ZV1eShksLWs3S9sdz8HOhYti5M7YuIlN3EOcMMmzpkWxMtnfsilmVfL+VeEyRjfBizILbEm/IS8to9EUKjVNUTASZWcSiNt9azuSH3EBg0vrqxktZ3cYHdTy3dLT1daEBj72UPtksyFaRCFlOy70RGFR6alSqj4cgJTQVUt9rDqYwHY1Qa0UHcaLIbbJDtbkBf7akA843OWpCwGIcCgBqdISxzT+St8cvedxRcwh8F0PyT5rjuRA+9U9qX0SodcfQy0WhYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YZRX7n/KAlN9JYs9TDOzUcowBQBS4LQ+LvfakT3aH7k=; b=fn3A6LerWGGZ2JL4v7wLcXGyPEi3S5yR0AOnYhvjX4YqTlvaEmBIKGJADyB7mPwopCpREO0VeILfL50/aKOYtwySBuOlqkZn/JjTLTYxReRGqlonPrxrJLDB5PhQMMeRay7CjsXR9CZDHpqlG6mgIlZsYbOHk8Tr2AAY8DaI/SvgI4igAq4Rj+PWAdPtSWofLcVOVVvGlxaXTRkQDKT2O6My3zK8boC9VdzAcU/ghNkBh/4IwPWqTkm0R3xQ4KVqSTeUfzbG/sJOUbApiSQxcwgVxHi9Wm7CqsOJ9Dp4I8kAva1DqppI5c8ZPHq7HeMpImsnOI3Nu5aUPXfJRypGMQ== Original-Received: from AM7EUR06FT031.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::45) by AM7EUR06HT051.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::455) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Wed, 21 Apr 2021 09:55:44 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc36::50) by AM7EUR06FT031.mail.protection.outlook.com (2a01:111:e400:fc36::374) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Wed, 21 Apr 2021 09:55:44 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1F7DE98F7DD61AB2B69DFC1C944AA6DF568855811E979E710F7009777617F4E8; UpperCasedChecksum:E7F67C89E95B87E0F680F87CD76AF1250B93C7297B563033C1A942AA7EB65C9E; SizeAsReceived:7476; Count:46 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::2103:e705:bc0c:5a8b%6]) with mapi id 15.20.4042.024; Wed, 21 Apr 2021 09:55:43 +0000 In-Reply-To: <83eef4q9or.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 21 Apr 2021 12:16:36 +0300") X-TMN: [Mq3sE1o/cQbiXAoHi8GnwmHG51EsEEwv] X-ClientProxiedBy: AM5PR0101CA0020.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::33) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82tuo0neqo.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from HP-Laptop.homepc (81.232.177.30) by AM5PR0101CA0020.eurprd01.prod.exchangelabs.com (2603:10a6:206:16::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Wed, 21 Apr 2021 09:55:43 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 8dd62fd1-ebf8-43cf-7895-08d904aba0dd X-MS-TrafficTypeDiagnostic: AM7EUR06HT051: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nktzeINjGDFjbZkjfDBfjD6YwxczzqJXR9C6jFxU1xgwlPUO7kITHM82gkuMHhwu0yqadEeBLcKOi3YKGybd5U4yp5YbtvHNBB9Zz+hfUDsedlXbASC94vYF4jyEllg1rDMywTRfJLnbEHDxcS+z0z1VBhRLdgy3rIJ0XYOgj3G/oEvjFWFaMLg5h+7Zw+HZWB+ybuH4+s7hheP5MfCJ2D38gFNmABM4fIoEkjQjQ8ezRdx+V+9eXcO0MI5X+WX60jSIaar2zqvtBzVgm6fnmAC+kqQBsZguYAX7k3dif0m4tXGkE1q0Hq3T9OAvKwbrpUuz1psXp6TZuNHXwzJxze5/f7gJigd6I9qrp1qARwputfGVXb+1O9gTrRL/EG+WIHR+ppdLYgw1Oxq39/G+6Q== X-MS-Exchange-AntiSpam-MessageData: 7WxbV5FQaw8f7jq9qq7hQl2my096stw3APNKZt3F8sn6qk+782hFcY4WB01YKNn/8bYCaeG8bOOkI49CEyLeARJbh4PbNnRTjSE+vznzWEZECt6c+yvvcS3SwRls+x4WLgdVGLj3dBvKnwIV/8NgXA== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8dd62fd1-ebf8-43cf-7895-08d904aba0dd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2021 09:55:43.7569 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT031.eop-eur06.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7EUR06HT051 Received-SPF: pass client-ip=40.92.17.98; envelope-from=arthur.miller@live.com; helo=EUR06-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268225 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Date: Wed, 21 Apr 2021 10:04:17 +0200 >> >> I am not sure what is going on here. I have this minor mode defined, >> as shown yesterday, where I just iterate through a buffer and try to >> make certain lines invisible. >> >> It seems that visibility property updates only for about 2 ~ 3 pages of >> text. When I bring text into visible portion of screen and re-run the >> mode, it is updated as it should. Does it have to do something with how >> invisible text is rendered? > > In general, text being invisible or not has nothing to do with > rendering it, it only has to do with the exact form of the invisible > property and buffer's invisibility spec. Ok, that is how I understood the docs. I haven't mixed with the invisibility spec, I have just put 'visibility' property to 't' which should with default spec make text invisible. It works, but just for a part of text. If I scroll to the part of buffer where it didn't work, and disable/enable mode then that part will work, inclusive all the previously "seen" parts. I see no logic in that. You can check yourself the code and test file I attached. It is embarassingly simple, I don't understand what would be wrong there :-(, but maybe I missunderstand something.