From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 WBkuKUoHqGL5RgAAbAwnHQ (envelope-from ) for ; Tue, 14 Jun 2022 05:58:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2CkMKUoHqGLDWQAAauVa8A (envelope-from ) for ; Tue, 14 Jun 2022 05:58:02 +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 48BCC39E4D for ; Tue, 14 Jun 2022 05:58:02 +0200 (CEST) Received: from localhost ([::1]:45676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o0xgm-0008Pe-WE for larch@yhetil.org; Mon, 13 Jun 2022 23:58:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0xgB-0008PW-2s for emacs-orgmode@gnu.org; Mon, 13 Jun 2022 23:57:23 -0400 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:42682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o0xg9-00077R-Cp for emacs-orgmode@gnu.org; Mon, 13 Jun 2022 23:57:22 -0400 Received: by mail-qt1-x82b.google.com with SMTP id k18so5312139qtm.9 for ; Mon, 13 Jun 2022 20:57:21 -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:content-transfer-encoding; bh=JsJIm43DfgUD3pp8nR/qo76AgF7SsDfXhkmNvoSKRuw=; b=YIcELHEUiD6+Sr504qXVujSrTK37Om3H+Uu3iwPxp1i8Kilqia8n1MXLCthbGASnM3 eIQAtSDNRMQADP5EvGQSIfewcoglrMvbImx/XalBtdM39fLgr6YbWO7enWpsTbw2ClBk l9c7ACThiXeUIRKoFiDEuejJo7T/ZcCOLHBFHdWZfEdvf6ePuDHO5bhOfCXBJL9RVKqh Ms17snFU1LLe+wsIIXx52MARqqnmrTRfazM9LOgIiIi5EeJBkI08N4dfh+ain5wewlrL 9j7a0bUzuUpp47+JCNL4iqatIPWw/YCJU9S8SNHKB65Lo6rIP6ItZYBh/RNJmLVtucZ5 L6hw== 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:content-transfer-encoding; bh=JsJIm43DfgUD3pp8nR/qo76AgF7SsDfXhkmNvoSKRuw=; b=Gp313se9FOhRVm6MtAGQS/KmYNO++B7Aq0wPdb5h2C8rnz250UjwZeYXvlY4rU7h9T 9EUyHje3WinQgg+eFp2rDYJOosLzptryKdgySYGaYYU8xeMktfIshqM4UCzC8U5ALUND Zc5kcGeORjf6nxshz/XKl7QV3zyKIYV5JZQy1utInMsxTxZwyslZhGLJEGYbrnuInoIs NdvKGYPdzIuuDUifbp+AQMC7+rZQI2e4yPXxR/lU6HXyzeKKstk57oOkVZ/az9yOxQH9 JB3j5GVDfRMBED+x0zda9BRslYoyZMc6E4PN6q9v9Sqbw9HoINmuXWPrEnUYBT5TYiOR GMQA== X-Gm-Message-State: AOAM532ElktoylrVvy7PM9a/m66lqbcNGqo/guuPGWlmjlTHq5l7B32O 6yjFfNpmOif2I3yfEp0+NuA= X-Google-Smtp-Source: ABdhPJz335/4BuuxRmM4tDGlIaiVlyRKgC2FRENbSS6+XCE7qTvE7/9z7Z2XAKQisQsabwy1ljV2pA== X-Received: by 2002:ac8:590b:0:b0:305:35:9f6a with SMTP id 11-20020ac8590b000000b0030500359f6amr2640408qty.122.1655179040241; Mon, 13 Jun 2022 20:57:20 -0700 (PDT) Received: from localhost (22.b2.a86c.ip4.static.sl-reverse.com. [108.168.178.34]) by smtp.gmail.com with ESMTPSA id t15-20020a05620a0b0f00b006a6d7c3a82esm7789394qkg.15.2022.06.13.20.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 20:57:19 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [Patch] ob-tangle.el: New value 'ascii' for the header argument ':comments' In-Reply-To: <87wndna1lp.fsf@posteo.net> References: <87o7z0tltj.fsf@posteo.net> <87bkuzdahc.fsf@localhost> <87wndna1lp.fsf@posteo.net> Date: Tue, 14 Jun 2022 11:58:30 +0800 Message-ID: <87y1xzq4k9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82b; envelope-from=yantar92@gmail.com; helo=mail-qt1-x82b.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=1655179082; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JsJIm43DfgUD3pp8nR/qo76AgF7SsDfXhkmNvoSKRuw=; b=ThqlOMNEO0EoE3P+V/LoCerdSu8z6KsPJBZVYF2vfHPGmxWPpj45TMU9DvC0NfVRk9+hNz DGqJ2GUZbNmFHRG8/3KlMOZ4t68YyGbbiCdjadonet7540k/Uzv0JaujIIfMKz2CAyEcO1 WDPx93dN/KUpXcH4+rNugU3EKm+jnPgwFduySFPJ887FJx/q2oe/0whXWO2W+b6mZMxR1c 75ycFekNbsMZHF00pMGWAxGNQRf3MZukgQLVRKnaXyH1tUnLLoyPZhEegVTDEFtDOhAb9V PbA/C8DL8fc17qXpnA9JzfdIMcHP1qHrgeIWpRMxg800tdd9BbF0lgfBwG/0Fw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655179082; a=rsa-sha256; cv=none; b=BEYpLmpfDarhncMh3HF0g8Z7EQJbPmvq10oYAfTwwGvoOVi07DKN/9gC12+OiZ/m0GN+C8 JdDx767Jx8GUYg0X9WI09bxByfxkXNIro97bhiN+DF9FZbGYkQTO8WMmBvj0UNW6sgYgW+ DONOwnmO2t8Qro0n8hXtZrkFiPuBpmw/mDQUrDNcosDdw66Ny225Ui1rzxyypPHxcPDDiJ 8cxab1+q+/qQGFqspZLLc+ElfYyZaPYw8BwQQCMttSQ29Aaq+T5/WUBGL9PYIsPeCWRQ2P fHIG2KTUmI+W0ifCZ2PK4x8rb3DY9tYxhs+r6wW/A61WYAAE0R++Gc46J8rQCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YIcELHEU; 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: -4.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YIcELHEU; 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: 48BCC39E4D X-Spam-Score: -4.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: yrDvBbPnQQWq Juan Manuel Mac=C3=ADas writes: > My first approach was actually to define some options for > org-babel-process-comment. But I noticed that a header with properties, > for example: > ... > > I think the culprit is the '(match-end 0)' in > org-babel-tangle-single-block: > > ... > (org-back-to-heading t) ; Sets match data > (match-end 0)) ;; <=3D=3D=3D=3D=3D=3D=3D=3D=3D > (error (point-min))) I think that the existing code can be improved. Relying on the undocumented behavior of (org-back-to-heading) is not ideal. Not to mention code blocks before first headline. It would be great if you rewrite the existing code to suite both the defaults and the proposed behavior. Best, Ihor