From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +FpvAfUNC2SaRQAASxT56A (envelope-from ) for ; Fri, 10 Mar 2023 12:01:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iOpoAfUNC2RTvAAA9RJhRA (envelope-from ) for ; Fri, 10 Mar 2023 12:01:09 +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 A01E5C990 for ; Fri, 10 Mar 2023 12:01:08 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KZl7XqSS; 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=1678446068; 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=VWuQI18UCvclyZnr/QOad64hPa8MZ/JnuYhxuQ9Pl0w=; b=b0/TUr7WOQmS55pGTuvpqOaFK9UDpcqfYmmraun2yos0oTGD92nMi8Ds+6Ydqc0N3ZAiEf ONVw8G75lcuvvJvqOIsphssdiVrBuZDkR1U8KOjeQcBqBNf1xB/AnU8joFioUGT9M66mpL EhzmPvtogHyfjp8ofFHtGdwdvXSYkRyhvgq+sc0c4gQf/z0dIVE5xtHaVF6l3AjgFe53Rc aK/CM1OJZpDuJ0rcRUsihDUgGEXFCgMnAy+35gSAMszsysJTn1+eiQhI/Hy3pvfmK9sGpG 1GT1N3xSZAbuRbcdn1na/355y/CfubZwIrP7YkJTKIM9MDCm9Ab6bNSVoBLHZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678446068; a=rsa-sha256; cv=none; b=b6mJocNUzbuJttUV03k9ZXkB1eSG1a2Y0heI/Tb1haSGRruRGs1WCbq2rh70OzstupA+mz ozIjZTNEX9w/wjSuim/wDHvb0s2/rP5FiKn02GD0u8j7eDHrZVj+2s03Clf+pZg1eRUXWM giWKZcQGDFqBwfkSQvYK2M6vO6OZo5LRs1V1mzOYhRE3NuK95mvIb9OpndvcXDCVVMUSN/ 68Fbc3ppL/bET1bGCJifIGESq3ZOdD08imffn7zJBhKPTLx0I19ysJtmy+CBr8i3c0/2Hn JRK04C3U8ZHJZWtlMRDuzF0fbusxXU3dFIIaUzREYuMdaL8EN3q41/WgRx6QcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=KZl7XqSS; 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paaUC-0000dS-LP; Fri, 10 Mar 2023 06:00:32 -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 1paaU6-0000Re-Hn for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 06:00:27 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paaU4-0002wf-A6 for emacs-orgmode@gnu.org; Fri, 10 Mar 2023 06:00:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 52266240283 for ; Fri, 10 Mar 2023 12:00:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678446022; bh=+rQTPVTnVuKndTbo+/Ug1Nvw2XKc4VlOqOnorouUSUM=; h=From:To:Cc:Subject:Date:From; b=KZl7XqSSguQN2OZZdHVWD0+AvWrwP5lUb02UtXoy3667ObsgxmzJz7juAmJafpUAs 38aDRpQF/9ZXfJ3ReNIF2IoWaNiIxWyQWzPbMwUecZSzqtakg27GuCHoniZdjCtUJK tZqndZyUhmv3bBLgZO03Vpabnphx9P6ZrLQP8sYZdR6CEiCDXymycU5WcBxo6qqE0n RvVsTBSJLCX6PqXnm8k23hgbhsX1/npQNOfTqd7WT6nWMa7g3OUVNYM4vylhPDd9Vs 1jt9WGns0OQ47zm2t/sLX92+7Lnt9OQKQj0ykEkf96xx74SFjo6XKPBzwp/uilLFE+ acp+iM3P6EK8g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PY34424P5z9rxF; Fri, 10 Mar 2023 12:00:20 +0100 (CET) From: Ihor Radchenko To: Farblos Cc: emacs-orgmode@gnu.org Subject: Re: [ENHANCEMENT] Make `org-babel-do-in-edit-buffer' environment detectable In-Reply-To: <9eaf7099554d488d921e64c4b2852a0d@vodafonemail.de> References: <9eaf7099554d488d921e64c4b2852a0d@vodafonemail.de> Date: Fri, 10 Mar 2023 11:01:45 +0000 Message-ID: <87cz5gzx7q.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H2=-0.001, SPF_HELO_NONE=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: X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: A01E5C990 X-Spam-Score: -7.49 X-Migadu-Spam-Score: -7.49 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-TUID: AeCMQzsDQw9J "Farblos" writes: > For this and similar use cases (run/do not run some major mode hook only in Org source environment), it would be helpful to have a documented dynamic variable (`org-in-babel-environment'?) set by `org-babel-do-in-edit-buffer' or the like that one could query as We have org-edit-prep:lang functions that do initial setup in individual languages. However, they will be applied both when you call `org-babel-do-in-edit-buffer' and in C-c '. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at