From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0N6/MRG/+Ga6zAAAe85BDQ:P1 (envelope-from ) for ; Sun, 29 Sep 2024 02:44:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 0N6/MRG/+Ga6zAAAe85BDQ (envelope-from ) for ; Sun, 29 Sep 2024 04:44:33 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=U+VGwvZ1; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727577873; 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=XjavxNr9uFmKdFTauZ6D7Oee5YC9/gN2tfSnKRrLRwY=; b=fuvLYx3KloMVGrmB7GTlRSRBPj4nI1LhLpTxHh4iogyVwPYRsgyijenOtW7AHmtIz7jAQm cA8Ebk41TZDhdf5HqBaXd58IiMxW7AzG3v7fHnGUO1MGoAHPnqQ9p6SpyOfY9wVgBQVJTF ScS0HUAQ7f4K49uV6R2gifFk9AndPEeX/Yo5L+5xKRr7Pc84LfgwkBooncKq/y4RKelJSx 4E7hbXKmhUF+/pVv9nUM9QGNfpdA3r+spEe3NLRS9S7U5oPkAnpVQirtoKb3Rxd8o2i+nY Ejw7A0A+TnFGwY9eZTd2xxFD0dBeq7YGVtBEWjcN3B0v2/XJthQwL/fuZX4UqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=U+VGwvZ1; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727577873; a=rsa-sha256; cv=none; b=Smk4wOHm2GUB+WG2otSyUXdAtjTXgGNYw/eZUu6wMNNaXJBdDDXYyWSMiFIVwgvULtXAst 5vepVLBY37szDleU2hVOv8cbCOGAS+58xMi9IjjopfEvA0TQy9Mu/VNao2VuoQpmRHlHN+ ZBJRRgkzQ68/9nc4pdoLMmHj9alr56caLoq3sZP2SDXiDaEzbTIrZw1DqW4Mc6uTeXGcTU glT8kXwBuVxyFba9M/cR6epBaM7mvBPEQeosIVIK0oKVH/q3j00M2dian4I6dVriWiLccW ewLtkr0+ctiebYEYOrrzIy+or3w2T1oDB4q9vaetNPGwT1DNPVgibuGj7jRcow== 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 920A07A08 for ; Sun, 29 Sep 2024 04:44:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1suju9-0006UP-4z; Sat, 28 Sep 2024 22:43:25 -0400 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 1suju6-0006UB-QS for emacs-orgmode@gnu.org; Sat, 28 Sep 2024 22:43:22 -0400 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1suju5-0006mm-1f for emacs-orgmode@gnu.org; Sat, 28 Sep 2024 22:43:22 -0400 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6cb2d2a7d48so23589726d6.3 for ; Sat, 28 Sep 2024 19:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727577799; x=1728182599; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=XjavxNr9uFmKdFTauZ6D7Oee5YC9/gN2tfSnKRrLRwY=; b=U+VGwvZ1V7rAj0/xZpkqVgz7am5yWVC2NfqdoVDhT3hotpxL1SCXwidcoI3CUtHmb2 M0XWE6OuVofOzvbA5+412rhYBsJPJBlhU14UYRtA6R2LMtBkJRUQ9sLzsdPmqCNOKC5a VTU1cdIf6zy9j6wUofm7HjFHTnA7ylSRTNCvIb0nr489fR019UKTYgba3LR+seUFsbc7 oL2yaNu7YqHfUhp1b9q4q5r0dNmUVxRidUg0e937GABg/C6KVt1q8x3zBKNsYO80Fx+O HgHX93jfrd0dREyGFn1zZAYsaIDHGYmOz+Wx/lNFFiEajiddVWne8x9yvaufwJDB96ZQ q2Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727577799; x=1728182599; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XjavxNr9uFmKdFTauZ6D7Oee5YC9/gN2tfSnKRrLRwY=; b=bH6U6XQpIx9T4yAFOb7zScMXbyxrMatyn5DNO9LLKYmHt3pO3fPOoNkUSvu+nHuNn9 HxWjCyiowfxJoSbxVbfnJskqIX2Ny5EtgPqprmvkxU2EWUqNp0rjZYwQHYyy2i1y40iZ 728Xfzz4k6jPNH6t2KZw353ymqCZjQw2urLcxAxn1e2t4zAFUR/JECfCPx0HFJsdt2KD J5ty/hCFqozuZFRsMpW8VlBXMBK+RL42kiGqyolmLch15YPJAnNkM3fqLD+GqTQNCeK0 6SJGziu1KjlXphd3cGNoOezFWShvYmJ6OM3dVdYyo4RyFW2uW7Ldczy8Ppf/8/ATJM3/ DuSA== X-Gm-Message-State: AOJu0YwuZ0GB3hxfuRKA6gqSh33uVAiPAtuT4e4h+M+dvz2t82kXDa5R jXa9iByfvXmg8InR2zPT4Qecj//Mpz65NiRsIIba2GJRxHt9fz4YgkHXdg== X-Google-Smtp-Source: AGHT+IHJbsFrXgaE40DKf1pSHkMvN6ojXpJKINhkcpoO0WD+H6PHetSESxtCHskhgsUuT4KP0N8ksQ== X-Received: by 2002:a05:6214:3f88:b0:6c7:c75e:681 with SMTP id 6a1803df08f44-6cb3b5e2611mr148557606d6.13.1727577798650; Sat, 28 Sep 2024 19:43:18 -0700 (PDT) Received: from pierrot.dokosmarshall.org ([70.22.187.146]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6cb3b61362asm25696026d6.35.2024.09.28.19.43.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 19:43:18 -0700 (PDT) From: Nick Dokos X-Google-Original-From: Nick Dokos To: emacs-orgmode@gnu.org Subject: [BUG] org-babel-header-arg-expand is rather cavalier about "appropriate context" [9.8-pre (release_9.7.10-127-g07dd3b @ /usr/local/share/emacs/site-lisp/org/)] Date: Sat, 28 Sep 2024 22:43:17 -0400 Message-ID: <87zfnrb2nu.fsf@pierrot.dokosmarshall.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f2f; envelope-from=ndokos@gmail.com; helo=mail-qv1-xf2f.google.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, 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: 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-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.93 X-Spam-Score: -5.93 X-Migadu-Queue-Id: 920A07A08 X-TUID: r6JuoCbD9rwW Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ This was reported by user @Addlai on Emacs SE. See https://emacs.stackexchange.com/questions/82276/stop-org-cycle-from-prompting-for-header-args `org-babel-header-arg-expand' is added to the hook `org-cycle-tab-first-hook' so when a TAB is pressed, the function is called to check whether the context is approrpiate to call `org-babel-enter-header-arg-w-completion'. But the only thing it checks is whether the preceding character is a colon and whether we are in a source block (by calling `org-babel-where-is src-block-head'), so if one presses TAB inside a python source block after a colon, the context is deemed "appropriate" and you are asked for a header arg. It should probably check that it's *on* the header line of the source block, not just that it is *inside* the header block. Emacs : GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.0) of 2024-08-09 Package: Org mode version 9.8-pre (release_9.7.10-127-g07dd3b @ /usr/local/share/emacs/site-lisp/org/) -- Nick