From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8P+DHTSqj2XjlQAAkFu2QA (envelope-from ) for ; Sat, 30 Dec 2023 06:27:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id EPlBGTSqj2V1igAA62LTzQ (envelope-from ) for ; Sat, 30 Dec 2023 06:27:16 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=151e.ai header.s=fm1 header.b=RGkbqM6W; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=pCs+Jdm1; 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"; dmarc=pass (policy=none) header.from=151e.ai ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703914036; 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=VaGXVPUyCXRL2I1T39xD7waXdQc/0ZoYbug9o3pVBiU=; b=d+41vitTJvyxod8w8mb8DkmwMhcCO71S2ycvGpVayeHwfvlM9V1wXPJqHOF3Cz7PwB0M10 pDYz/5WUPzKaVYUDA9Yx24jeLf0MqgKAaankLgSyIwYNDdU8vC84RUrowP+iEty/E3a9Sv bv8uNZA5RD7R2FoXkGZtiDddtNgw0CLXNYk0qiDVFxc4c0FZp4xZLpI8AoWoohskvXCZTB JkH5eaxfkm4UQ6FZdaIxQN6Z7gP4AMf+5dB8zs9uflorn5v8mWeGApfL3C01Q847qic+lF 6TeELpJSV8ugtmawRLrCwQxCtDqgIqwu2f3Y7tCbndCw+eClfo7YEz7vmnLSuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=151e.ai header.s=fm1 header.b=RGkbqM6W; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=pCs+Jdm1; 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"; dmarc=pass (policy=none) header.from=151e.ai ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703914036; a=rsa-sha256; cv=none; b=sIm2MgFLNYQELiulkhbteHctdGygm4PhZ4pqUR3PjILbm+Bue0jiAnk8ZgqU0z7ma8UyB2 5UBX+fjUr1T5YexuEyoKVTeFAK9SPZjL9qjIHTJB55DOZKZXaY2qyZjuP7wwankfNjWC0h 8NXefdIy1wEt4P1lK67zEmozCabN5Njx1E4P8ZBEewRS9iW3pc/nR5mzXAMeNul3Sn1m/1 AOf8wYIovUvFAUyAcoglLLY3rzxEf3X0D1xVi+zC4rj8p0lNzRqmTA479mTIPgsYLwHb3R OnqCDwkpPk5zo02sJedIorUml5GufG3FfsAC0Y4q5dc2jJXhxUEB5WzpDCIIjg== 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 3695B12EA2 for ; Sat, 30 Dec 2023 06:27:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJRrT-0002VN-OX; Sat, 30 Dec 2023 00:26:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJRrS-0002Uz-4v for emacs-orgmode@gnu.org; Sat, 30 Dec 2023 00:26:14 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJRrP-0006qW-C0 for emacs-orgmode@gnu.org; Sat, 30 Dec 2023 00:26:13 -0500 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id DE03A5C01A3 for ; Sat, 30 Dec 2023 00:26:07 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute7.internal (MEProxy); Sat, 30 Dec 2023 00:26:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=151e.ai; h=cc :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1703913967; x=1704000367; bh=VaGXVPUyCXRL2I1T39xD7waXdQc/0ZoY bug9o3pVBiU=; b=RGkbqM6WaftjsCyHXsMM4mPTDVJxCmkvqlYW6VR7c+Iex0En hQM8BOZ1HnmqAjIkTdrf9NabvcC3xjwdTpDb4qzyK9pyNZJHBsPBLyI3F3IOEUrq gNKiuD5yvpihfu7zTerM/6+BPkCvqLrbFgflhkumd87riNqaQpvECwxG5JgOoVw3 0aA8Vwi+KbdvwXkBBYCZvqlyk7YP/Yul2uBN5++gPg0iPIaItFNq/zXAkyn36v6R i0YVR24fj2bybkLZA6r+W1wUR3VF16RLKjAoA+UtEfHtUeQ88FoFAqCgKE1v0Cvu VmuwQo2SU9UTYwsS9dIlDoRT5n6rMWT80sdrjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1703913967; x=1704000367; bh=VaGXVPUyCXRL2I1T39xD7waXdQc/0ZoYbug 9o3pVBiU=; b=pCs+Jdm1Do2bNpPVm9sDgzToZ1+dKn39yMprd2ldcAAg74dTyZ5 M1Xn6l7MsLJ/i5KByVaxgb7m3AcBE/Ep+FTC0v32tDRDZsreHM5b2p/cu5V4H79A RNZcMKsZz/fWVKttlU3pHhQqzhwDz+y/HR/8bs/huTzaiovBfkd4CTwtlliCosMR TaQwsG3GOEnzRZ/3VNBd1TJszte96VbZ0YhWeFYd2jhSvROsfgezMMdWewCFQ1nV E5mQNQcW566TOg5fndtOH6JGVAkiL1FZ+WL5msbo4vY6TPPeLlVAKr29Sy9L8YEH P47I1uuOENxOptnVotei7i2FiKQsNPHwubw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdefgedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpegurghrkhdrkhgvhiekjeelleesudehudgvrdgrihenucggtffr rghtthgvrhhnpefgvdfhgeevheekveegleefvddvhefffefhjeeitdfgjeeggfdvhfdvvd egheekffenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuggrrhhkrdhkvgihkeejleelseduhe duvgdrrghi X-ME-Proxy: Feedback-ID: i35d941ae:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8D1AEC60091; Sat, 30 Dec 2023 00:26:07 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1364-ga51d5fd3b7-fm-20231219.001-ga51d5fd3 MIME-Version: 1.0 Message-Id: <5f4cdb77-8f43-4f2d-91a7-bc4ce57df8ad@app.fastmail.com> Date: Sat, 30 Dec 2023 13:24:28 +0800 From: dark.key8799@151e.ai To: emacs-orgmode@gnu.org Subject: Suggestion to add hook to be run when org-indent completes a buffer's initialization Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=dark.key8799@151e.ai; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.06 X-Spam-Score: -7.06 X-Migadu-Queue-Id: 3695B12EA2 X-TUID: fdByA52WAyYV The org-modern-indent package relies on org-indent having finished preparing a buffer to add its own customizations. Currently it relies on a timer mechanism to watch org-indent-agentized-buffers and execute once a buffer has been prepped by org-indent. That leads to some downstream issues in particular use-cases (https://github.com/jdtsmith/org-modern-indent/issues/11) Although there are some workarounds for the particular issue above, a cleaner solution would be org-indent calling some hook at the end of the preparation. As per link above, jdtsmith proposes to add such call in org-indent-initialize-buffer: ;; Job is complete: un-agentize buffer. (unless interruptp (setq org-indent-agentized-buffers (delq buffer org-indent-agentized-buffers)) (run-hook-with-args 'org-indent-buffer-init-finished buffer)) ;; <-- added -- Alexandre Avanian