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 oJF4GbPvk2XaewAAkFu2QA (envelope-from ) for ; Tue, 02 Jan 2024 12:12:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GLSNFLPvk2WiqQAA62LTzQ (envelope-from ) for ; Tue, 02 Jan 2024 12:12:51 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pp+jNA2g; 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=1704193971; 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=yZqcm6Jiw9dLfJc+hidagqL0D7nz5xuQVnCofdtgW4A=; b=ar1zmJKOS8dQh1Zt/7cTOxQRZ+MZfs6DgLzrKgviTXuAjlCY/NeqofxviU0CS7/8HC60R0 /jLGiMYT0jiSEvg5mUEgSN28bpU7ENjBiN9TDCEKbDJeCG4VXcIEx3SbK3Ri14xs7odub8 zFYVJVqMJZR7k3RXcxWGBcJ4Rkbti1YjdNXvendBfZecDJDOdK3ANBPIkDQo9s0/gg94iY GzO+x8NFQiQrdKb1Vowezm9NvTRk6z2QF1PMJ4V4cxFBisIX6usuK2otaCrld1zEZwfHxq GW7UN8mZJ4DqgmXAsF19Ivc3HDwQKhd6CpNjeSAWAuVKBZl0UsuO/klVOTDo2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1704193971; a=rsa-sha256; cv=none; b=ZgeQ0mmTDYQfuKDM+6V9ppW7PzQr/uM39ZS6N8J3QDrAxKNqoFyfZubAkqXnpi86tzyn21 qw+g5xyFELdLrJhEzMaCQbnjNr/w074LAOjD7L8fsn1u2ldJl//9TbWOdqohMLZELRO1QF cidfJG8iiccLcdwZd+Ddubvo4t3R3fszyigHgGipkI5e6DBr6atKTJtQbewKH/6M2KlGFW +D6tJALZywCaPtyqRSgpbq8dM+SRStt7l4xy6E/MYcaaEdTL+HB2byvreRjyU9cQ5csP0n zd35DjJY3CriLLf8BJHKZeY9caL4CeGRrm/USyoESbyCXePH9tuW6QDqGyyTXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pp+jNA2g; 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 E314B3AC89 for ; Tue, 2 Jan 2024 12:12:50 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKcgo-0004iI-TW; Tue, 02 Jan 2024 06:12:06 -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 1rKcgj-0004hE-Tz for emacs-orgmode@gnu.org; Tue, 02 Jan 2024 06:12:02 -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 1rKcgh-0000Yy-EV for emacs-orgmode@gnu.org; Tue, 02 Jan 2024 06:12:01 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 07C75240103 for ; Tue, 2 Jan 2024 12:11:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1704193912; bh=dLX2wpitI+ACilazsPdhtahfjd1XFaMfne2Bdfscr3U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=pp+jNA2ggFosCSHx5Pq7wEsK8pNPXodJt/kKoyVr0kX9wBuIaT4cNM8ucJXJ/b+8d lCAavxK14/uuTF+AkiOJd/Ljq7sSE45U/leVO1Y+pSUoEG+03+IpYOqtXHyqLviqzp 2hr56leiJBsZdxu/W51t+Ip4kHgonOQs47kwCsfMqVwYnCB/3ikP0kRQ+DR9YeaXF3 sG6zM07Skki56yjCpiuggNKSGauWIiyxuRAU1kmNeFuO4g4F9X/xYiauQTH3Xe2Ih2 LE+gRSDIQrHMEYHUNVtZ/tCKRUqcxoeyNxgdXAD9jh9EidfQcVaCF3HxnqCnia21ma b+7Ubls/pQCBQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4T49Cp6BCwz6v0S; Tue, 2 Jan 2024 12:11:50 +0100 (CET) From: Ihor Radchenko To: dark.key8799@151e.ai Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Re: Suggestion to add hook to be run when org-indent completes a buffer's initialization In-Reply-To: References: <5f4cdb77-8f43-4f2d-91a7-bc4ce57df8ad@app.fastmail.com> <87r0j277sf.fsf@localhost> Date: Tue, 02 Jan 2024 11:15:02 +0000 Message-ID: <87o7e43s21.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.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=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -7.03 X-Spam-Score: -7.03 X-Migadu-Queue-Id: E314B3AC89 X-Migadu-Scanner: mx11.migadu.com X-TUID: W6bktoSouC52 dark.key8799@151e.ai writes: >> I do not see why we shouldn't add such a hook. Patches welcome! > > Would this work? Yes, but please address some minor comments. > +(defcustom org-indent-post-buffer-init-hook nil > + "Hook run after org-indent finishes initializing a buffer. > +The function(s) in in this hook must accept a single argument representing > +the initialized buffer." > + :group 'org-indent > + :type 'hook) By convention, abnormal hooks (hooks that require arguments) are named as *-functions, not *-hook. Also, when adding new customizations, we generally announce them in etc/ORG-NEWS. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at