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 ms5.migadu.com with LMTPS id I7seBdAm22IKkgAAbAwnHQ (envelope-from ) for ; Sat, 23 Jul 2022 00:38:08 +0200 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 OFv6A9Am22LkGwEA9RJhRA (envelope-from ) for ; Sat, 23 Jul 2022 00:38:08 +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 5014EEE5E for ; Sat, 23 Jul 2022 00:38:07 +0200 (CEST) Received: from localhost ([::1]:57350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF1HZ-0001Bm-Tr for larch@yhetil.org; Fri, 22 Jul 2022 18:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEpSb-0006Lt-1w for emacs-orgmode@gnu.org; Fri, 22 Jul 2022 06:00:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEpSY-0008Kq-JG for emacs-orgmode@gnu.org; Fri, 22 Jul 2022 06:00:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9C8FA24010B for ; Fri, 22 Jul 2022 12:00:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1658484034; bh=U9PCjTDExGR2zapTeCvYxH3I9YEtkvicd5RDhOZLNFk=; h=From:To:Subject:Date:From; b=XRnZ/iHMBG7ME9mPueTSxkWdfCeqnV8WHvyHiCLs5PLE6arYA95FDoNdSyS26GQD9 GhFc2PX12Jtu+TOBul+IGSefyksNZy7pC/RrdXocWsw5clRhElnhaYTKKWk+j/HSbq bqDlBGmDmbQrfo4PD2syA4PXdQjZIHD9PVgRFlE3nslSsMY7dz+IHWFlR3zPWnFXaL nDvuINtWJY5an5i7EP205Y01OVeBKMqPUQ+tXc/OGB7smwdZNGIRJ5mMIfiXIJiYnS pnOU1qfwbhoX9dgZj1sDuyoKgq0nJhGvaCQzt4Bat7ZixNwDNSUtaYp6eiQYr/QrWW rUShpGFCEFxvQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Lq4gj3wb4z9rxT for ; Fri, 22 Jul 2022 12:00:32 +0200 (CEST) From: Elias Kueny To: emacs-orgmode@gnu.org Subject: [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/)] Date: Fri, 22 Jul 2022 09:41:14 +0000 Message-ID: <87zgh1qxfk.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=185.67.36.66; envelope-from=elias.kueny@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_H2=-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-Mailman-Approved-At: Fri, 22 Jul 2022 18:37:13 -0400 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=1658529487; 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=/DOQjh7HMZewpshxUZlD9lhLrZv/gkFNLkSBrp10/Fc=; b=hpHspR8wZGBbdm5YCOujw/brZc5NplLn0zpUq/M3rF/l32vPu9aj1ZPniAuqO4M3l+D3bd G7sizkXtjDkjr4sVa9lSjJZ/9YqZ0ZANJfwVtdSHU3LHoeoRFDyRPvXrmHphfoominrwHf LQaUSXOOWTJ0ApNwgazbMjBmNgquL34l22oZthlGfXPlmIWQPhrfy4lW9l96qSNBh3lHsA XZGq69qXBS3WkuTBEMmZT3LxCuRPJ2q8Z+qmMM1aMTiGKIK3YdAK6cSAc676Z0eTCg8fxF Xpnqsbz9egn8u7vtM6skQS7+eZ4p0YFEUk7nXhn1HjCynErLesme9InuoExt+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658529487; a=rsa-sha256; cv=none; b=n/wD94bKVUYOF4RqJOQyvic0oqwWUN3w7v2DSSPVccCWQu9Qih5kFFGlnTo2M6VhBZnJbq 4ikMH3abC0cWJccwRtU4QFAurC6uGESiXOXvvDNDieDdJH9Q5nbfq3EbPsjLXkH6AxGNFl BeHo7lr3OlOVy3DX9cePGlLsx5V8dAuwwatFwOAd3lgS0wO+ImpxbIEFgLVqxWxplMCmfL OmIqAUoJGc6vlNu0ojwJlgpe6E4QjsQ1mRIOE9SxzLdeN849leMQzPX6bVdi7QePRT2kMC zgEKyBM2D4mP3EMWnkyjo+Si8GtPpnh9d5KnzTJ7ilX1cwfo05i1W7BOlYPCDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="XRnZ/iHM"; dmarc=pass (policy=none) header.from=posteo.net; 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: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="XRnZ/iHM"; dmarc=pass (policy=none) header.from=posteo.net; 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: 5014EEE5E X-Spam-Score: -2.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: Mxb0rbTHyAtN Hello, 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. Emacs : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.4) of 2022-04-09 Package: Org mode version 9.5.4 (9.5.4-gb3b17c) Best regards, Elias