From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6HU5HZ1Jz2DtRAAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 15:58:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wEfBGJ1Jz2AIKAAA1q6Kng (envelope-from ) for ; Sun, 20 Jun 2021 13:58:53 +0000 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 AF106CB18 for ; Sun, 20 Jun 2021 15:58:52 +0200 (CEST) Received: from localhost ([::1]:59818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luxyM-0007YW-Kw for larch@yhetil.org; Sun, 20 Jun 2021 09:58:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luxxu-0007YL-No for emacs-orgmode@gnu.org; Sun, 20 Jun 2021 09:58:22 -0400 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:39889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luxxt-0004ya-4G for emacs-orgmode@gnu.org; Sun, 20 Jun 2021 09:58:22 -0400 Received: by mail-ed1-x534.google.com with SMTP id c7so14343934edn.6 for ; Sun, 20 Jun 2021 06:58:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version:content-transfer-encoding; bh=8Wv3alSNQn/+OWS/U2bsGKpR2/xIRMyVdQbZkpqQx8I=; b=F++vvUwwY96lSKrzsc2AGTwWpHfPBQhVjgmt5xZEP4L6tJ4WH8FngpkavQrZCw7+yR Xmr22bD+CpnwfMEJKeT/eJZuFzYzlb9k/km6p/dr1pbpbGMcVsY9LKyBUsEo396plFFx zCLHwIJNKOypIL6ZqST4nGzl9DcqRGWZr1ypDMKTTgq/cgqhT7R2xrUcTEXkhZyXAw95 1JH7XXMMjcbvQKgrHV1zI9UtFR5PCi8sDE7xJA3Z+uvJedqZ8If+S1EYa+59ig5rZxTD OQ7E3KeUaVu+MY1D2in+u+O0uzI+hoNpgU+kfOYYJ+35gYVCT4950jaD8yEQoRAdtDxq z/Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version:content-transfer-encoding; bh=8Wv3alSNQn/+OWS/U2bsGKpR2/xIRMyVdQbZkpqQx8I=; b=qGVtSeQchL4z4WZADwDZpmjoACGJc4d6z5B1t8DNg/tiDG0mmMu06yiEELVBNyQB4M gyb4mjG08VeS6iZikpbVnw+t7UqNfPnoGmZmlxiPvom/Rei6il69oioaNbcQ7XzEdD4f amyC05rVsdd9B+ptmUDs9iKGT/6VEzchl213iL2Rnn81e1h6pCVtXSoHJSBY8mBht8Df L+UlZgysJi9YEM3+wyTXOt6KxFVcQ9EWClFlXaYxFLiBipm/1vkbBFeEl6mVrQ/sSFis mVFYi+igaeSXbtqfs9Hoxg/VTMj/UsQf5RhqtVLXCx4YiRLSY1sigYcLfAWLidAyOYic bVWg== X-Gm-Message-State: AOAM530rW5aIuBpvMtrrxbCBcOouE2o3MPW3vfh8hMW080IH2AGhnPD2 4aZXxtbIobd/jczjl2Qf7yU= X-Google-Smtp-Source: ABdhPJyyI3fd2HzNFfgUx2OZxK2wQIkI78mBOdx6bqNt2vtt1YRxHKPgSabezCUZw5zryXoLzbv3Ww== X-Received: by 2002:a05:6402:34d2:: with SMTP id w18mr15886846edc.292.1624197499361; Sun, 20 Jun 2021 06:58:19 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id x17sm2524557edr.88.2021.06.20.06.58.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 06:58:18 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: Remove all Org metadata with header argument `:comments org' In-Reply-To: <87mts7j8we.fsf@posteo.net> References: <87mts7j8we.fsf@posteo.net> Date: Sun, 20 Jun 2021 21:58:18 +0800 Message-ID: <87czsgk58l.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=yantar92@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624197532; 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=8Wv3alSNQn/+OWS/U2bsGKpR2/xIRMyVdQbZkpqQx8I=; b=VZ94vrIud24nbLDbGGzYla2U93YZpI5pvFbxxr3+OQzyp4MKeiEZT84WiKAKBzm+xsG2GR bUZB/Ittl5flyCulQ7ZbOzwxaZy5fGVDLOkrOcTp8S+yU3bXKGfLJWbg5mvs58mKeocDhv TrHn4k755/e/bLKzcsnh2HYSakEItz14xxQpgeJ/HeHcUXB0TF7gO5C+xdVDzhhRbyUTCj B8lru+oEYTtmeDL1ngkw2TxzFW7wRb8YtEOY4RUbR0X8zfSQsxsKKHO1XfJLPrX4hI3kiJ /zQAewY2daSPdfK7w0wWdLmUASwhzJBm34loptUZ1+lVg5187SfNJSHffOuNhg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624197532; a=rsa-sha256; cv=none; b=czOhiAg81p2ydSvogvhRyaoSjpp+WKzthUuS8gLq+c2izQ8ACffdaHUY4ZlPbfhXi4itYz 8xW7nUZ2DlQf+dACplSSyyUrAvUBm9wA/oDbeJtVRskyMVqW6+3cAx2BXN8A1NMsEtSp6W Yf6pJfb0cS3ODL6mdCz8WM0mBQHuDVA1gNWL2NyprqTfGa6ZVfF4+TEZebiEZsGrwAHbjl nmane74bNidkXuOOdiktz3NxvrNf8GBYKTghtZul6UH56Im53BN6VntyzfoIH0b/J92xI1 OjfCNkhirQvoxQhD3ehJF/OkutpfDjUHYacYgYkznoEMsxjAt8QZQ565/eu1YQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=F++vvUww; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=F++vvUww; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: AF106CB18 X-Spam-Score: -2.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: ipsABPLBJNAj Juan Manuel Mac=C3=ADas writes: > I am writing an *.el file from an *.org file (and then I run > org-babel-tangle). With the header argument `:comments org' not only the > text in my org file is converted to comments (my desired goal) but also > the drawers, keywords and other Org metadata. Since I don't see that all > that stuff is necessary in a source file, wouldn't it be better to get > rid of it during the tangle process, leaving only pure content as > comment strings? Maybe converting the Org file content to plain text > with ox-ascii, or something like that? > > What do you think? You can customise org-babel-process-comment-text to something like (lambda (string) (org-export-string-as string 'ascii t)). Untested though. Best, Ihor