From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +GCVOZih72HG8AAAgWs5BA (envelope-from ) for ; Tue, 25 Jan 2022 08:07:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0Ps0Npih72FmNQEAauVa8A (envelope-from ) for ; Tue, 25 Jan 2022 08:07:04 +0100 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 25FF52736F for ; Tue, 25 Jan 2022 08:07:04 +0100 (CET) Received: from localhost ([::1]:59976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCFur-0005m3-7q for larch@yhetil.org; Tue, 25 Jan 2022 02:07:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCFa2-0005K7-8p for emacs-orgmode@gnu.org; Tue, 25 Jan 2022 01:45:30 -0500 Received: from mail-db8eur05olkn2109.outbound.protection.outlook.com ([40.92.89.109]:28705 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 1nCFZz-0005YL-0Z for emacs-orgmode@gnu.org; Tue, 25 Jan 2022 01:45:25 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LZSeu1Gaf2ZLVKCh5eUNDfI+RI+zyZT0RiXySYh+8vgDewDLsYtISqM/5K99GYt7ufE5tEn18IfWCLt4MN2jYoQd0DmiRMdbRNLthn9kBhFhrs0SIOq3aLKrNfWOgUdl9y8p5zBU3x5vc4gqnq5UdpeQacA/sBYDTdlH8dg9eRQraqlW0DL3wCfG2jvjrKm8Y3JC04G5avbKQmqB5BSrZbHP/5aS1OJkY1QHDEOkSD6ANlBOmgzfqoy8UlMFCb3DZvGxeNpJyNcu/GG5Gcueh3wt6UXSaO/gA7gpx6f3LkWX8nuzv91eL9bPkz64m9mkIfgz4m/Gj6clyhWPWM200w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oxAIrgwoRqWovouZZnbsZEv39SM1vW5/Yz6FmsUVW0s=; b=ZfBIlq9I2m7P3pEZAyvnRPj1HXrZdAm9B26/6MtdaGqPsO+bZP3hlAYTUy7EXAPW5Rp80j53Fq0JOUCbJZEkd23sC5sIkW9P3X7/WvMrbokS7IRJ5wvEnHU+1o72pNVBHyThobYsjklHxtEnKWIJTvhaNGATzhHGpwPQ6+I1iPyBk8K6Vnb8J3YpU6I6a8R7Mhkd6J+80DLgukYnEB5qGj25UhVCdwJct1A/h4tbsRZ4iHG4zjT8aKX5kNEDiS4xSBHTg+fd8kXWhe5VLA/wPRoRutIDMJUn2APP3a1RHH5ZFjlvfutUPY0EwY8rfYJC5r1gxKbtEctQFVsEkHAteg== 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=oxAIrgwoRqWovouZZnbsZEv39SM1vW5/Yz6FmsUVW0s=; b=Fnqv18zKwzexpUySLiO4dd9yJJQioV+W6NJkF4h/YRk5Bi5v8cy1hXZte2juanqYpTBrOEKJsMFzdb3M5l3mnVOCGMNrcbx1lEHx2WFGrysIyND0tlXOVOf9hE7dgiOSvaSO0fw8tLdg8J1Y2g7c8Zg+N9kfdOEQtWwfLV4F35FaCdIc426YlV7CvrBoOZRYsz09PGg2ANrtoMmpUkuTtKGP4u826Em5HwBxdxhFf/2N4xMVRcR/Zry82pmxdZx9K2MY2EGixjx8MDkXxi58s46I8gWYXudNZ5CEjmGiSxQgTsFAZLUU9gj/vt44lYByYdHv9wxFeA4lW3OnwVDPXA== Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by HE1PR0902MB2043.eurprd09.prod.outlook.com (2603:10a6:7:1d::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.8; Tue, 25 Jan 2022 06:26:11 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a%5]) with mapi id 15.20.4909.019; Tue, 25 Jan 2022 06:26:11 +0000 From: Arthur Miller To: emacs-orgmode@gnu.org Subject: What would be "cheapest" way to toggle emphasized text? Date: Tue, 25 Jan 2022 07:26:10 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Content-Type: text/plain X-TMN: [b1lZViiMIiuPe2pyVdmM1pk+RQcF3aKZ] X-ClientProxiedBy: HE1PR0501CA0035.eurprd05.prod.outlook.com (2603:10a6:3:1a::45) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <877daojpq5.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c41917fc-fad0-4ccd-8fca-08d9dfcb9487 X-MS-TrafficTypeDiagnostic: HE1PR0902MB2043:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pjz8XUfH3qg1nRbG2oMbfkgL9kbN4O3p/PWQ4RBBYks7Ejny+N2+mCgMjm09t1neR9y5PDY+QYvvT/aKmwuI0M/yyCRABCjKRxHByOGjDlEPvlT68EGEUMXbc0Z4siSFGwp8LjXOawzGA2FUz41QXo2CFGMdxePZAzYLbNzUUZSejlV1OZo/uMMfhKmJIcJyBMBi+atv3D32LEbuOanfG15Du79tGzdAfrI18lkWeQR/h9shYtUOD4ocNuaP2DB+oW4f6Y11vAzdsQSxI6c7Yh7gGZ2CF8NHScQKREG1ekcnR4CUyv6a+tebxNDzhS/pK2e61AsuwqakXpM0CnrlvlCgJUARKLCc8rRvm8fjYdlcfdwmZIuj755rczwkmYg/y+Pdr4uEDKEmGIQtA4xKQNijRw8okibyvrOSRLS7FV2VOcxVrzqIahVCAIrzCOES4WXb3gIzuhzHNQOAaXfH0/U+xD3KpM0Gv+iAw/xUUxmXYXauvzZjMvEY84ftmubnuX9/MXisBtzk0Mad5IYb5T3u/UbXZDYVN4Tna14s/OiAM8wLiNlg9zcDEGGGqhRW+z8S/z3v/UpTpldZ9yuppQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PPYLe6/6nZvpV0jfx+lWMwQW0WdGtaegrhveDaCG+O60vUar3WNNXXvjyWml?= =?us-ascii?Q?5GIY4lMYefEjLCvuDZ5GU0v6z7nCznLTnHjvvZP1NCtUdutw2iIQQlZ9Hbqq?= =?us-ascii?Q?xYXpW40ftBTWpJUCZpBMkO8XGgN0ppGkrhhUy4i6LwzgLHlQyFRxJTyD8Zhm?= =?us-ascii?Q?/bfitOzYwvjfg3OqMAPo+hCSm5p0Nua5HchYBmpGkPuPb3Q9kucz2+ZOZPH7?= =?us-ascii?Q?p1FQAWKQm4wch1binGutxdNIu7pEdwtbSDA+vkRWvw+Ub2s64GUNnUEJLT7X?= =?us-ascii?Q?amTCMo+yCXkOvFOVnev5bL3e6W3FJwNtq0BaLwRRf4mpgXnZ6K2LtO5uM5P/?= =?us-ascii?Q?WWzQQHRsEptPxqW2tPqaB+svKCfuoUuuM1QPd6Rbdop//w2Jdys/cfTDH24K?= =?us-ascii?Q?s3U6fZ36w3anpsqTjINydh147ncUsSQspCElUsKRNI2tte+xYc8okM1+pOUU?= =?us-ascii?Q?HUV6CQ6Ub1qP40UGELYBSVnSszbTRCwD4olG9Gkj29Rbs3ddZuNxjjnA4uy6?= =?us-ascii?Q?KHqjngRCWYEw78T3rjv1mFwEQ6cPeam00/OxH19PFUm0OKFjwJCrlsB/xtiT?= =?us-ascii?Q?/IyStkxAsrv8o7O9/DoLDV66yz3HqE2utAK6MoKSqiMdxRxynLZjG0RxTlPi?= =?us-ascii?Q?EiYvXrQeWnltWhccOSd2+zCsCcSDXxnUjZj1ofauhFNC8/uenlwQiJ/N32R0?= =?us-ascii?Q?3rFw4TJ5EEnsqPseYGftW2ZsLDhCTNaUOW+nU4uD+eH6oFx64Oeg7x4eKOyV?= =?us-ascii?Q?bCQhEXeCbS860bFWajoh87RmR4R3yOWuZrGIWnQ2LLXjeNyq0Mz9g3kZ/28E?= =?us-ascii?Q?TgxMF0F3chE+QwstVzIUhsQK6MddL2HFChysWW6wqrJ2dOR8j0LNQqfsv+Fz?= =?us-ascii?Q?H2RSvKvJVrAeyJIdYLEzTcYiIwBr1rftFcrFmIi32iwk9E6zTOSJG3e9Q27r?= =?us-ascii?Q?DxLB+P4eAURvcuzEbOKFRw=3D=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: c41917fc-fad0-4ccd-8fca-08d9dfcb9487 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2022 06:26:11.7277 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0902MB2043 Received-SPF: pass client-ip=40.92.89.109; 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, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643094424; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=oxAIrgwoRqWovouZZnbsZEv39SM1vW5/Yz6FmsUVW0s=; b=S5AQ8pSsq8gB2/2Ljc4evuk2y78cmba82bhq3RzjzCEnY5tC/wsPnX8l6wK11E/75qvnHn 7cZmYBJr7hjih0EYvEIyJKNh4grVR8GnhTvk6iV+NzIvTh6NHhQIKg7HpIBYWu++sGEMAv Wjuil9hxRFJyMTlxpK0mu0zlwIXcMLK4VDf5l12DbQycXzcem3kmNJkG8ATywXcdeBbFOf PEZv5D6A5i5lkq+zvD/DvAjH1bQsqJtxblLmLWVa0jkSV0E6tpPAwC5++VLuKggsUZJxyi R4XBBi4jNnxSYeYVTg057qaSEIYvwqJ5qWT7ddtAdVIoSdo7mSzIG7dtttu4zw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1643094424; a=rsa-sha256; cv=pass; b=TDA7jmWRfSihvAwGfVQpKTUXwgirh0IyXp9oIfeG3Edogu/i/fYy4loXQ84LmuDUmksvR/ k3+H2Wg1rG73ncX7G9w3XwlfxV1QcMKsAoSllG2WbfHEW+gmqtFKUCviJJ//smo5CEo3kv 2u+kOhpuhJs3U+NK9kkXQfBvbVwewas9i1DQKri/bhQtMVcst5yxZQOsTdORqHguhxH6Zb pw9k46CSGs690a7Jr8wPHYPXEsH1L+FpcEkys5qflIf5aqSMDGvNG/akDJjq/MVYNRZmQ1 UqnsSH7hSvtJGB807T92XphKZTfw+QcofE96He+H1Ee5pdzoiW6c4lhmiH7yGg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=Fnqv18zK; 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+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=Fnqv18zK; 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+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 25FF52736F X-Spam-Score: -9.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: PCD4X1gVrLBp Hello, can anybody tell me what is the reason why org-mode has to be restarted when 'org-fontify-emphasized-text' is changed? If I would like to have an interactive "toggle" to control rendering of emphasized text, is there any "cheaper" way to achieve that but to restart org-mode? #+begin_src emacs-lisp (defun org-mode-toggle-emphasized-text () (interactive) (setq org-fontify-emphasized-text (not org-fontify-emphasized-text)) (org-mode-restart)) #+end_src I have tried to go through the buffer and reset text properties for org-emphais text property and to re-fontify buffer but I didn't manage to find any way but to restart the org-mode. I would like to skip all the work done in initialization if possible. Thanks for help