From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id otlQDiNvgWBGHwAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 14:42:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SCnWCCNvgWA1NgAAB5/wlQ (envelope-from ) for ; Thu, 22 Apr 2021 12:42:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F164FF29 for ; Thu, 22 Apr 2021 14:42:10 +0200 (CEST) Received: from localhost ([::1]:39012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZYen-0007LA-Jc for larch@yhetil.org; Thu, 22 Apr 2021 08:42:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZYZ1-0003k4-Bf for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 08:36:12 -0400 Received: from mail-db8eur05olkn2032.outbound.protection.outlook.com ([40.92.89.32]:21192 helo=EUR05-DB8-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 1lZYYy-0007zX-Tv; Thu, 22 Apr 2021 08:36:11 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KzmCSw2v00j80bFcghd+Jmm7NTMqzbl4QQyPRxEao+C755CPDXNv3LC5FJ15zIqXGyeQcvCmpqArAJrXBuzKG6ZJ6UXJ6PmS/8Too4GCXYYlcm+76YnHLu/6+uzRFyKjyRC28Pv4EIlSUlXoUkCTUtqfVypdV8XiBO4nPl6HVbn32F2/0WMze+hmWbGasyceoWguyJXKFUTaMRr0CYNvTXP/PmcSAxd8WgC6AzZukUU01gecLIWzRAKlkhfbiQ+a7esewRd3UpnzlQPiKWfnVEOptGA+Gz956aJBt7eijxDor0zvgr11GuMVpdN7+HUn5SNbBS00z6XgT6FAGO2FmQ== 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=EdS53f0T8MWcA3R8AGvSRWozWO7wbL1xyLNQMANFuAo=; b=d4LTBvDkRkUXz6yny7RQKQ1n5dQLRdNc+tm8BAFDdDwBeKsOA/uHY773mDtpJvPY5b9e46C/W3uGid+GBh9PBi8FHd0AN29fkpY3TYx3l1xbvCZTHattMpi7SldZJd9UpABTgjBR7I8L9NaeSAiqIkrJuoFuNqNThxBkjfGNXiG9CICT14UgPoU1yJ2aqScG0D4fvFUWGKC8BUvTXzjryXj4dtmi2XkBW06wZszP+PmLJpGGhJBEfYndiC+F6lTJNfKTS57voeGDXrVqsFO6d6gV3Jfdo9rq/kaijJmFUR49fJCxFMEsQxTNMhCR+o1noL/18nsSv67eFcfu7xLqOA== 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=EdS53f0T8MWcA3R8AGvSRWozWO7wbL1xyLNQMANFuAo=; b=Sw+zYp6WzVvoWIiqb0HPPfgdimU6jDuYEWVfCMyNMosX0q0K4es0F5lfkgzZnKfY349W2QMsZhGijcEepNC1pLpORAn+k0fr8jS18jpUoLh5ra+ZU8PuCm87KaQ4MTrnrmGNSvPgIielLUOD6KaWIF5GkPfll8EnAEdEUYVpAcVnpOExJcP9rU9UDuqggHm+tNx6fNOHzrxXh63/WfYEDpM5OkMDaFJf4m1oGoMYdb8nq0he0EC/jJx4lhLz7zxlsIuEKu16D+axHZ+5o9/FJkfqVe2gWk5k/kleMcFNe2uG8cZMpsvnHaaraB80PdqReXQHK2als6NKYU652eqvwg== Received: from DB8EUR05FT063.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::45) by DB8EUR05HT130.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::442) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Thu, 22 Apr 2021 12:36:05 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:fc0f::42) by DB8EUR05FT063.mail.protection.outlook.com (2a01:111:e400:fc0f::195) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Thu, 22 Apr 2021 12:36:05 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:4466CFFD325D087119142478D278A2D7354DA61DB7F44A41AA311F9EA53A84A4; UpperCasedChecksum:FE2567EED4E84F02F6B7EE9537BACD8CBD2C73B3741C8B2C4F42196E2D4F317C; SizeAsReceived:7733; Count:46 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591%7]) with mapi id 15.20.4065.021; Thu, 22 Apr 2021 12:36:05 +0000 From: Arthur Miller To: Eli Zaretskii Subject: Re: bug#47937: 27.1; Invisible text property updated only for a portion of buffer References: <83sg3jpk3l.fsf@gnu.org> <83r1j3pil1.fsf@gnu.org> <83o8e7pgzj.fsf@gnu.org> <83mttqq0j9.fsf@gnu.org> Date: Thu, 22 Apr 2021 14:36:03 +0200 In-Reply-To: <83mttqq0j9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Apr 2021 09:46:34 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Content-Type: text/plain X-TMN: [WXuOL9iqGt+UjmDBOkHREmjiBJEJc7Qz] X-ClientProxiedBy: AM6PR10CA0054.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::31) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82o8e6a43w.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from HP-Laptop.homepc (81.232.177.30) by AM6PR10CA0054.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Thu, 22 Apr 2021 12:36:04 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 3f6e5afc-2013-4a2c-c56b-08d9058b3211 X-MS-TrafficTypeDiagnostic: DB8EUR05HT130: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Lb93QR+Rhd8ZoisyUXVJ6LPOzBiZQwZ4yJ0ucJg+GGQ9RWBYS9r4dPn16uTQxxDB8iOgANxEuQCTF3KK6c+g6ea3WwV3YRHUUdxNfBw2yxm6W6UWww/6K4N2cwltU6cdToXcD8+jKwI4EObeetbQFVjTL6AqYQpvJOnxh0IxqalzMbZOkL+wMGl6dFCI87As71n88SxQPtE5iB4FceNTKHryg1zn7jW9LZ8M7EGt0R9N+Np1szjEiFAe++U12YXGp7ZSqPUtPEIejZAFG9SrjL6s0/73FgX+wPL/18e+C9tRt6rCKNHW5xchbeSy9UjXLM7fONVOukco3hDx1v9uMjeVErLfI72nMX+NhPvqMDsCtCyV5vRMH5S8RG/CMoZqdFce2QhHHlMLMUXwZ2cpQ== X-MS-Exchange-AntiSpam-MessageData: 5PPBB6NYgWBSRgyxiD5V6bx98vZWhTyxe4Xxm83ENiMXbbYOJwcjUumh5xUcikKjJPDnCJv5qTK49uwIeM6vkmvu/48iji47lXeNULqosldOhGPUDdiwVXfsH/aF6Bn9/TLce8vLTsiJUlk2rB/j6w== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f6e5afc-2013-4a2c-c56b-08d9058b3211 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2021 12:36:05.7742 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT063.eop-eur05.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: DB8EUR05HT130 Received-SPF: pass client-ip=40.92.89.32; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-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-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619095330; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EdS53f0T8MWcA3R8AGvSRWozWO7wbL1xyLNQMANFuAo=; b=hr1yVev8fospWTYOy02iN6ia7PTFztg8o6QtNSQu3qlM7of0pcCVFaHCLclI0lCG9AKRiu g8BDeON9VTe7gee/1NrQNUSrFrArkvyzjJD4Y9GW44gzB9/z8VxWk01S2M3P6E1wX/1sRI 3stphqsAKHZVFqzW8L+Ymh6RfurMcC4Z4iFK5sC6OAE95LfvuYcQKYh6OCrwzlzC7U2XTj gWWpjvDf2ArLBJOALOJBSV7NFxmyHY0ciC71zULRBao/98wM53x6mjlneRzzatcUCmu55x 3/ebQt5f5X2N34NetqRxJTuVnm/GHVp//+YABbUrgNaqQtY6RDBzQhy54YLnRw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1619095330; a=rsa-sha256; cv=pass; b=qeF3Ol0+oubS46Fe8gI2bvqNGYbsxnO5X2Bh4adWvtKfcmrFWVicQ2lVq44vbiJVOmoJnZ +XCq3fE3OBV32tooAd1lH3WguzxWLofEyWBTU31uvUeKhSPctAQGJoKph66kTQjv2f1X0T 7BMb0vadhZZeEGaKk63Jz8KidONhVaV4mEI0kHZedPYMiIyEloeQx91eLmLtZz7carREtc OmBMUWptlsEfpgB2A2c9iasdT1VQqyQ3tVEvn6bK8vy/eJCf50IA85I04ZauuMDIedFfo/ 2AF4gPDbOJUnH4CpVHt3aPLhMrO2o2D1pKqIunUqdZS9EU4ODxw0pzqf7MksgQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=Sw+zYp6W; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=Sw+zYp6W; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 8F164FF29 X-Spam-Score: -4.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: tjRT6pAVthZn Eli Zaretskii writes: >> From: Arthur Miller >> Cc: 47937@debbugs.gnu.org >> Date: Wed, 21 Apr 2021 22:10:45 +0200 >> >> >> Because you have font-lock-mode turned on. And JIT font-lock begins >> >> by wiping out all the text properties. >> > >> > I should clarify this, I guess: this is specific to Org buffers, see >> > org-unfontify-region. And "all text properties" is an exaggeration: >> > it removes many properties, but not all of them. >> >> Allright, thank you for the excellent clarification. I guess I should go >> for custom visibility spec instead of plain invisible property, so that >> my text property survive font lock. >> >> Please close the bug and thanks. > > I'm closing the bug, but I suggest to take this up with Org > developers, because I think org-unfontify-region removes too many > properties in a way that is too indiscriminate. They should ideally > only remove the properties they themselves add. I just today looked at the function, and I see docs says it should remove fontification from links, which can partly be set to invisible since org mode hide markup, so it is probably legit what they do. I am not sure if that function runs on entire buffer. I'll CC this to org-mail list so we can see what they say. I am not really at home with font-lock and text properties, but as it seems to me from this experience, is that proper way would be to use visibility spec, and create custom property, since so many different modes vill fight for default 'visibility property. However I was lazy, so I just made sure to fontify entire buffer before I do my thing, but it is not very robust approach :).