From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 UAzqJ8wZlGRFHwAASxT56A (envelope-from ) for ; Thu, 22 Jun 2023 11:52:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wL7rJswZlGTkSgAAG6o9tA (envelope-from ) for ; Thu, 22 Jun 2023 11:52:12 +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 712D517972 for ; Thu, 22 Jun 2023 11:52:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCGy4-0002I7-A0; Thu, 22 Jun 2023 05:51:08 -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 1qCGy2-0002Gj-TC for emacs-orgmode@gnu.org; Thu, 22 Jun 2023 05:51:06 -0400 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 1qCGxz-00043s-Ro for emacs-orgmode@gnu.org; Thu, 22 Jun 2023 05:51:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 31F67240105 for ; Thu, 22 Jun 2023 11:51:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687427461; bh=+B0L5TWzzItVlwcwiuKK+TK157V864tWK0ARpJ5VeHY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=UkHXsHnlmNcEKHnU9FgR+x6j+QuJrv3pi/zYYDg5l6obUArROoR+pAxeCFyL9H5d+ 5rHOoJT/EMCLWtnFrwdudPyni3qnS05QZRWGUwOItFONtDyIS7ymGWWEp8jHzmMEVE ronWyetUpwBQvPSIrPdpFzjkPbolUDuhfm5PE7ylMOPMaSwbwE7NuA96cTuHLymUuy XWElyR7duXfL5eaRAa+xZAehfpOQeDWRwnEp9jGxh8jRUv9xl2urR8P9qUy1WHNGUe BVuVkruC3oQI7r2vfEgUF+nDxCZ7ByUUJodiRK7TrUMiDayLhv+A7IcWKXG4ei10pm P8aGwZ4IUKM0Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qmwc43Wwrz9rxY; Thu, 22 Jun 2023 11:51:00 +0200 (CEST) From: Ihor Radchenko To: Nick Dokos Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-babel-tangle: Header arg `:comments org' produces no comment in the output [9.7-pre (release_9.6.6-418-g294a4d @ /home/nick/src/emacs/org/org-mode/lisp/)] In-Reply-To: <87bkh8k3at.fsf@alphaville.usersys.redhat.com> References: <87bkh8k3at.fsf@alphaville.usersys.redhat.com> Date: Thu, 22 Jun 2023 09:55:52 +0000 Message-ID: <87r0q3ddnb.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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687427532; a=rsa-sha256; cv=none; b=us5Zn87Mq9Awv7rG4s/Rn9Qcm9BAfeO6+PJissK43xX1Q6gq4QY/yVSA/uS+5iUUYaB4l6 Tvc1b4cyouhgBTBmTJc3S1+/PntHIzT/lcUjdknpDuESUYggdFTOrXsglvowmSwTrl8ZDe u47nnnCfkC3OTlAMT+hUDpS751GJcSoTq72u6txbwJvneaNxThN5Yk/bnfCaEdB9YWzdNK Pf4KcbYIUr9qI5iDX6NFnYI04nYldJ5DRpjo6AQTUbAP/M6Tc7diOWRDeTOG+i6BOM+RBt BAFg/BwFJYODURHB+H4eDadkeHJZGLpm5+SwGPOslnMPewOx7Pluig35/d3ZSA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UkHXsHnl; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687427532; 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=LFF3M5RcwVblfVIwCaSGI3//6UbS2OUS16HhorF4/qc=; b=c1Y36PjBM2M2gmv/tumeRZdBZLpkOagi/R7HPM8y7j6XF1t4fVjg4/1ffb/oN1m39dfIUm BMm7G+qRtpgA6sI+Nr4aXU8iCGkiRHKABj55FIrvPCbhadATujXeZx76JzJWAL7sH7AGLe AdmOenMlpR35ZPZUTwjYbbEwRcLxtr62hKEpltxPpcuphJqJmf87KBUGkigIXjVEft4D8f /bWNxKpxZ4+prpBHUjBtunH5xMeG7vOdf5ofcTH4yYlzFHizmRr56UBF1XhexZ03l1E+4n K6IWupnEtgPV+M6Soke8sHcTwTzhykTVSqILPYhlZomxXk+f2MeBhPnw5RimCw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UkHXsHnl; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -10.02 X-Spam-Score: -10.02 X-Migadu-Queue-Id: 712D517972 X-TUID: HDpSxyCqtWZu Nick Dokos writes: > Here's an ECM: > ... > I narrowed it down to this snippet of code in `org-babel-tangle-single-block': > ... > and bisecting fingered this commit: > ... > Apparently, `org-back-to-heading' sets match data differently now: `(match-end 0)' gets the end of the line, > Before the patch, it got the beginning of the line. Thanks for the report and for the detailed analysis! Fixed, on bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=79ec91584 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at