From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kPRhGeAh/2M7FAAAbAwnHQ (envelope-from ) for ; Wed, 01 Mar 2023 10:58:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wIJJGeAh/2OnTQEAauVa8A (envelope-from ) for ; Wed, 01 Mar 2023 10:58:56 +0100 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 0B62741A61 for ; Wed, 1 Mar 2023 10:58:56 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="oo4Ng/ff"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677664736; 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=D2dsoXALQ9WbAo+A2cvQnGAAXbaDZh6ODeDweWLKFe4=; b=hp+UH3DerFem7nz4wd4F7HzqmckOa6/bDtceEzKlsxOezuajBTRIzcJzcqFkvqPb+p/CmM qayA+xgvDUE5FXXoVlwVbF6Mw/OD2bZNwT7zx88ca3aJgDNRCZ0X9bO5WcG3QEse1CYLYL EEAOS3vq4NsG9lXTV++C4flC9jIDEjzCZIJZ1Tfjsulww9kj7l9hvkZoR4N+A03UbC1Ez4 uMTdjictIoG73uSexmc2ikAD8FCmsK9MU14ZA8Fz9XHvMoPn/HKo+2py59w1Yv/x9Ao3xU 5mSkTRMRwwnlp6L07cFasYEQvQoaNITI4cL9+kCmfs60C3B+Fvb+51+YBtsYhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="oo4Ng/ff"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677664736; a=rsa-sha256; cv=none; b=EayHn/W4ADknFGoSUqlX9TYmRlNL7Ij2tiiji90Qo+a4FdO83B2gD1M5XNVyNVGrNRYsGd uUjAwm1N0MT5W7SJ4cTCcHYIyXRYO7Vublp/O0eQaJ6UNy8shdm7z1KaU671BETsHPxYT8 fM/eOvFv4VkR2RVAlF8opDnNFsK6MLZN07YwnUXJhErOnBPnIoTBEhmmdzN6FE8Q4b1izp GXUAEve6WjS7ce+sVLL8IxozG30jSqf/BFOY4XZk1zYqID3MWG+9I4PRzW0xkmKpwibCpJ 8LNSyW7Aw9VqNSR3a/1pOJpI17PQf37MM4aks6lg4n0UH5uPaT3nlKNplFWLxA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXJE1-00044o-7t; Wed, 01 Mar 2023 04:58:17 -0500 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 1pXJDy-00044F-ON for emacs-orgmode@gnu.org; Wed, 01 Mar 2023 04:58:14 -0500 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 1pXJDw-00044g-GW for emacs-orgmode@gnu.org; Wed, 01 Mar 2023 04:58:14 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 950242407B4 for ; Wed, 1 Mar 2023 10:58:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1677664690; bh=naemP/X3gb4tsDvL5sUlxY/gk8TwlOvkUJy3t9egvg4=; h=From:To:Cc:Subject:Date:From; b=oo4Ng/ffvXCyCJzxdFaaB681dn1YEQyf2c5gKmXAN4hZS1kiN3O5je/rmBcCrhOWK MUY6GyQeVdtzwJ077ouuisjX2PW3zQLg0vYwcoNKWP26D1ASXR5eSAFL3XzLO84vn6 JSXx2bb/kysCAaYa6B2zg7an6T6SQPLIvy+K6fRe+2d9XZtqh3GnDTqUmw2kdAFhXV LsqZEREYwU6NFDmmjBcvDvxY2seYXDkG97saOCUF04yVqX1xrYpUj3KTNINVMpo08t wJpi9ii7Y5ASRkc7Rimm9/HEQbkTjM7qWljJexhofKogIK/Ufg+9BkOWeEc0zO54Eh cftKUlybRWubQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PRV6T46jxz9rxP; Wed, 1 Mar 2023 10:58:09 +0100 (CET) From: Ihor Radchenko To: Timothy Cc: gnuric@pm.me, emacs-orgmode@gnu.org Subject: Re: [FR] Allow to #+include files verbatim without any processing (was: Have export treat file: paths in INCLUDED file relative to the INCLUDING file's dir) In-Reply-To: <87mt4xvn4w.fsf@tec.tecosaur.net> References: <87h6v9gpno.fsf@pm.me> <87ilfmxen5.fsf@localhost> <87mt4xvn4w.fsf@tec.tecosaur.net> Date: Wed, 01 Mar 2023 09:58:51 +0000 Message-ID: <87356o7pyc.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_H2=-0.001, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Spam-Score: -4.67 X-Spam-Score: -4.67 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 0B62741A61 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 X-TUID: js39QXNTHwO3 Timothy writes: > Hi Ihor, > >> This sounds like a reasonable request. >> What we may do here is allowing a new parameter :verbatim > > From a read of the original email, it sounds like a `:dir' parameter could also > solve this use case, and allow for a bit more flexibility. Sure, but is this particular use-case common? Do people generally need to leave the links as is, but adjust everything else? `org-export--prepare-file-contents' does the following: 1. Indents everything from beginning of requested part of the file down to the first heading, if #+INCLUDE keyword itself is indented. 2. Updates the link paths 3. Removes the blank lines at the beginning/end of the included region 4. Adjusts heading levels, promoting when INCLUDE is inside another heading 5. Changes footnote references and definitions to make them unique and not clash with other files included -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at