From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AMZ3OkJa22Lr5wAAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 04:17:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QFFsOUJa22IGYQAAG6o9tA (envelope-from ) for ; Sat, 23 Jul 2022 04:17:38 +0200 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 7646827AAB for ; Sat, 23 Jul 2022 04:17:37 +0200 (CEST) Received: from localhost ([::1]:56792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF4hz-0003Qa-Vb for larch@yhetil.org; Fri, 22 Jul 2022 22:17:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF4hB-0003P3-1B for emacs-orgmode@gnu.org; Fri, 22 Jul 2022 22:16:46 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:40581) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oF4h6-0005Si-Ow for emacs-orgmode@gnu.org; Fri, 22 Jul 2022 22:16:43 -0400 Received: by mail-pf1-x429.google.com with SMTP id y141so5808692pfb.7 for ; Fri, 22 Jul 2022 19:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=O7H4bIAKUraq4Dpgzd60hSOCvUSIflYM+gdumLXZqho=; b=j5TT8Ts5lGHgRlXzBRFV5+GTHCw8c7UI8lqZrUEVVgO74Y7R+LuQZ/modyEVWyKMer hx264NXXzSSdCtLhaKBYXsvGXUx/6+5IuUlBsJ4o0KBQ/Zt5UMi0H9jBNB7SHTTfmP8g oifWQnhqU38B1OuCSqqCOlBUx3xvsTd8IbNRauHwMhfyTF3OzdzD1mRUSHVQaMzXIRZt 0e8yrb5NSwX93GMOOHMVJMsxu5suguwCWKwjoLQwxuZ2htKgXa8UD8jFX4jlfwzY/sJg tt62HjXR2KnF7+H+C5M6NmZy+647K9xrqzNY2jgwvarB/VsYZnI4xDW8jg6m9jGUME2h Kr1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=O7H4bIAKUraq4Dpgzd60hSOCvUSIflYM+gdumLXZqho=; b=aRH9BBH/hqS/UJtFooXeHi6uyHTFH2W6i2fbS6mHdchGFrC3DSAIKetJVqNK5RyJkv Vh5z+qCkrmxhGLAgOPH/TBFZ/lPYzhWbEpdjJJUcxpaLVNQqqNR9kdBHBQSW4dMTqLOs PHCs2TdlVN2gK946U3EdO6H59CRT8nLOp4jCdYTrpP2kBZcWf1nuaMh3XsMgFHX95qf8 mtcSMK+S/RdoIxzXdYGP5C7mC/rwThi37Es9xWflxruIk2/BqWLrqaxE6oZXdVD7BOZR pZZkBMrJ2ee6Oitsopdo1WvT/BmV/8iVYtisuPf02nfTN6bybeZgTf5cW4/hSs390IrA U8Nw== X-Gm-Message-State: AJIora87Zssj5bHqCLGTb9Dz05PA5M5ZoKD7sANpYzJMDAag2y+JZanV kzZnNtCM4/0Yk1fviLgqjq93GofPj24cEg== X-Google-Smtp-Source: AGRyM1u06D80PChZaZOY2ZUbX4eogczs0mrp1zeIx89kE3E+kJqwpaj80ndF5PJ+S5kcxr1LdWsLXg== X-Received: by 2002:a63:b05:0:b0:41a:58f:f2ba with SMTP id 5-20020a630b05000000b0041a058ff2bamr2145957pgl.543.1658542598122; Fri, 22 Jul 2022 19:16:38 -0700 (PDT) Received: from localhost ([1.83.155.1]) by smtp.gmail.com with ESMTPSA id z6-20020a17090ad78600b001f21dd80496sm4089006pju.56.2022.07.22.19.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 19:16:37 -0700 (PDT) From: Ihor Radchenko To: Elias Kueny Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Comment links for tangled source blocks at the file root are broken [9.5.4 (9.5.4-gb3b17c @ /home/user/.emacs.d/straight/build/org/)] In-Reply-To: <87zgh1qxfk.fsf@posteo.net> References: <87zgh1qxfk.fsf@posteo.net> Date: Sat, 23 Jul 2022 10:17:44 +0800 Message-ID: <87zgh0o9mf.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=yantar92@gmail.com; helo=mail-pf1-x429.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658542657; 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=O7H4bIAKUraq4Dpgzd60hSOCvUSIflYM+gdumLXZqho=; b=gWaCiEqu7jNJODYTetHZwW6se7zV18yOSSvqxrB4OiqFAE/VYN9U3ItaMVIlpQ5e1nIkeS m50apfZAYpxV3d7OM8Twuu8J26quAL4KIJY6CRl/OXV2jmSJ1mKMlg6Radddyo0Msyg0K7 VNh8IlmXGwPXPnkXz9ILHTNi49ueOOo5hnDlGKTPGtimHJHz5LtTVz2Z7YdE6QZq+2HUkW D8FGUukOepFleXu0xm6IXpla+ZMbSeZOSMqoqNl/6ZuQfGRC5ZUUwANwpZHN9dBlfIDCxJ ES2AkNkcflxyKhOPgJQWfhbCBZ3kx/ehEQ/e/SecQ1rqw5qiYEKgVWnTncosBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658542657; a=rsa-sha256; cv=none; b=ku4PIptVQeyAZPtz636iQTzeh3UhMDGzX5WXqza0ouCWKpsI35+k7r+ZJXULkcXzqroMRQ op5vTC4fnVoM/Ph1/DHpBN4DkEr1y+Qd0qXBmAu51a8dYQZ3s67aVf2om1vmG2Fl4nYyMS qC1SCmHn8klNQILOGi3Fxp3/JipW1Mu7EMqRtHc3VnNRudFR5mIPDZNFk7EVxXPPVdNukM 1/H6DCs6PJ+tipnzrwesNPgurtk3c1epG7Bx1kdA4QF0q2vqzl+XtJCL+x1ZbZIRO6MUW1 SFM0laevB9wgwRWNc28jkR55mioE6gz+DYBM3aHGrkxPNJH1kWtfHxf5TQJeDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=j5TT8Ts5; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -9.23 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=j5TT8Ts5; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 7646827AAB X-Spam-Score: -9.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: /Tikyab5yK+v Elias Kueny writes: > There seems to be an issue with using ":comments link" when the source block is at the root of the org file instead of under a heading. This happens using emacs -Q. > > A file containing something like this: > #+begin_src elisp :tangle yes :comments link > (message "test") > #+end_src > > tangles to: > ;; [[file:test2.org::+begin_src elisp :tangle yes :comments link][No heading:1]] > (message "test") > ;; No heading:1 ends here > > I don't think the "+begin_src" part is meant to be here. Then org-babel-detangle looks for a "* +begin_src elisp :tangle yes :comments link" heading and fails to detangle. Thanks for reporting! Fixed on bugfix via c779b7aa0. Best, Ihor