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 YMF6Eyt9kWUJVAAAkFu2QA (envelope-from ) for ; Sun, 31 Dec 2023 15:39:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0G0MECt9kWUDIgAA62LTzQ (envelope-from ) for ; Sun, 31 Dec 2023 15:39:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="WIblZ/35"; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1704033579; 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=HCmUfLn9k7WEZ9y54HvgF2KGdJO2IQlUikCKqo1Gw88=; b=qaTG0POQBcu5ZzYL58hzDuC2EML/Dbij2NUUNSSl4swdcAC4r3ZvpLDuEURWeyMRN8EAEl kUNZd4TRJHKRF/TaeWWAjPHd/3q+mOzqpwhLEcZan2mMM/Bp9l/ZyD6Vg3l9xkhU1qWlBZ TQUomCaGacvsEEJbf5yk9xkBDN0rDbXy7BjKuI40kUyZIrMwuUdaOpeUI5qTgI3HBYSjt7 36xTn/sSxvHPm3zJ+y5JVtbB5hlM9ihHRFS+K2eNkbKg2+bqeqF1eRY19Z2TqQyyGGTSxS GSoBDiN1/fcexaCW7Bznh+WjZ7QFKKnRN8Z2bcIumlEZDcpIxTTpWWJZ4WbFYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704033579; a=rsa-sha256; cv=none; b=E7gSc1lc7UcFr6Wi9ubxDTfaid4QFSWax4pmMkX3reKLi4LN5vWn0b9HKn6bLrDg8SGSdH DPsZgLuul+cJNL/oqpndwnfZyZ9ZQuUaxFbhdGFezoW74PosRxH6arxP90OFp2d0VAYfvl wSQFTEPg/rJH9xKtUu9JZJTQ6A1HQymzGj8CrzqFp8URq0xyPizafhd1udHGhRkdQgPKTk 4gdjU1rN3In6tdwwz+bC0i5cCpINBiHsQk6BH5btTJD/JcJ4ct/3bdDPv7/n1wBMRULSql uaP/ZaHofMVLyS3Pw8oM3PZ/SmBXBnI8J4HNPH4ccpxeRilOdZ5onT30NOONtw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="WIblZ/35"; 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=posteo.net 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 ED15918DDA for ; Sun, 31 Dec 2023 15:39:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJwyI-0007Nq-2N; Sun, 31 Dec 2023 09:39:22 -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 1rJwyA-0007NZ-Pk for emacs-orgmode@gnu.org; Sun, 31 Dec 2023 09:39:16 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJwy9-0008Uk-0o for emacs-orgmode@gnu.org; Sun, 31 Dec 2023 09:39:14 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BD275240101 for ; Sun, 31 Dec 2023 15:39:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704033551; bh=vR60YubkYhCrmiCh2udg0Z/J3i6WGVv1U0MXpLA9VTA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=WIblZ/35ZhkWNgaDCS88OrGFUCbrPb1KZ5+qmMTHgJJahXZqkY2JMUN5afrcFD3/N u1rA79sr94e6xR4L9cv1uhcoBUi2utlnMNmJz1L1w3a8Swx+/HKykW3hueFxTo/hFc M7pnhfaxE/KIQ5SlhjYaEh9EXCIlfZ9O3WphhSSve2miT5bquPlli4qrO6dqR7HCst auHXlYTeKMg1rkekqS153Hir6ggXAO9PRA4tdt1qH0jNSVV+2QddfZXLMWZPRCyPmC RbdHZxlYAE7bfr+3x5VT112+im0NmneOqhdPvjVbcfUghwZSKH7UfF4ElfnfhIqw6A YIThF5ehcMy3Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T31vz2XYSz9rxP; Sun, 31 Dec 2023 15:39:10 +0100 (CET) From: Ihor Radchenko To: dark.key8799@151e.ai Cc: emacs-orgmode@gnu.org Subject: Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization In-Reply-To: <5f4cdb77-8f43-4f2d-91a7-bc4ce57df8ad@app.fastmail.com> References: <5f4cdb77-8f43-4f2d-91a7-bc4ce57df8ad@app.fastmail.com> Date: Sun, 31 Dec 2023 14:42:24 +0000 Message-ID: <87r0j277sf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.65 X-Spam-Score: -8.65 X-Migadu-Queue-Id: ED15918DDA X-Migadu-Scanner: mx12.migadu.com X-TUID: 15ZtPIUsvxOG dark.key8799@151e.ai writes: > 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 I do not see why we shouldn't add such a hook. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at