From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 IxySChW+LGS8igAASxT56A (envelope-from ) for ; Wed, 05 Apr 2023 02:17:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4A2RCBW+LGTGGgAAauVa8A (envelope-from ) for ; Wed, 05 Apr 2023 02:17:25 +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 C5C98B2D1 for ; Wed, 5 Apr 2023 02:17:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjqpB-0004OC-Bt; Tue, 04 Apr 2023 20:16:29 -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 1pjqp9-0004O2-9g for emacs-orgmode@gnu.org; Tue, 04 Apr 2023 20:16:27 -0400 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjqp7-0003wz-I4 for emacs-orgmode@gnu.org; Tue, 04 Apr 2023 20:16:27 -0400 Received: by mail-lj1-x236.google.com with SMTP id bx10so17351601ljb.8 for ; Tue, 04 Apr 2023 17:16:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680653780; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JeF2hnAj0iSinUg4azhoVm+iGoi3koTHHsxmFNbJ2Rw=; b=e0fqh8VaJRG//0xGxX39u9LyWcNeN7STfhHjY5wmJ3KKvywb4rsPrjnwOrb45fSm7q 254mYK2CSaEmAhOqTLPWGN2K4kgk62sxz6z3yu0EAX3M6Ej57/U5VCoZgRIEqw2GOUAJ 1ld3xbljMM7XPh1wBsv8UL/PGuA3n5iuoxBjFcCDQ4+zJLISY9jUR4g/+G5HThwRRLty U+bIsQlWpIKoW8rEyxqJZE87zPEeJUVRI13lOUBYqwIenFd7pMRynThyHoIcHMXSVUAi QUDsft0VIHmdrLdLVYSnXWcy4BH7CEU7o11NYd1D6g0gGQRKEXnhTX0lYYE6RVSPPDB4 prQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680653780; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JeF2hnAj0iSinUg4azhoVm+iGoi3koTHHsxmFNbJ2Rw=; b=dEQIVLYCe6FgoppwhHRFtuG3xdJOv2P8TWuBwV2XD+khld8UYkOGvKrLeb16f8ttJ4 kJVn02NdrUJw8PxAQqeYloMcW+dZVN8elzmdkVuz4dqCB7zakvAxfln01YVKXL61k/bx CNiY2PZSfOlC6Vriykr9p1l/GvDsxOhrBCivnrZ5f8ZveULJll88F0Fw1fkU5xisorBi u6hRICBnIKNeiiLGhCE2ilHJFaIFuhdwaRB90GbLp8NdluDAMWDxknVs1qmqjqEuqXkr aPfamlvrkFzasn6GaYKmJcJ+tGXgV1mf/VQQDABgZ3CEhh+V5Irh+NGrWpyReIU70sYE c1Rw== X-Gm-Message-State: AAQBX9dRhW/lRSp6JellCy3rbI+npCOAq5QfHD5vJVp9ddQFMceqdVtj Mcr858V6DLU2efYuANVsvNzObKzzrEx+vyOXZl4= X-Google-Smtp-Source: AKy350YUhao0DPrCb/8G7Fp2ONuG+BN/iQshr3yKU0GNYiQ/T/A+vlWM4FlkNn6vqbAgO8zFg2PeDd1DAuHHnfNFV9c= X-Received: by 2002:a2e:80cd:0:b0:29e:fcb3:b37e with SMTP id r13-20020a2e80cd000000b0029efcb3b37emr1130374ljg.4.1680653779664; Tue, 04 Apr 2023 17:16:19 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:444f:b0:25b:6460:577b with HTTP; Tue, 4 Apr 2023 17:16:18 -0700 (PDT) In-Reply-To: <874jpwautk.fsf@localhost> References: <87h6v9gpno.fsf@pm.me> <87ilfmxen5.fsf@localhost> <87mt4xvn4w.fsf@tec.tecosaur.net> <87ttz5a2zt.fsf@pm.me> <87sfdilgyb.fsf@localhost> <871ql23r92.fsf@pm.me> <87cz4lb9ya.fsf@localhost> <874jpwautk.fsf@localhost> From: Samuel Wales Date: Tue, 4 Apr 2023 17:16:18 -0700 Message-ID: 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) To: Ihor Radchenko Cc: gnuric@pm.me, orgmode@tec.tecosaur.net, emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=samologist@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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.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=1680653845; a=rsa-sha256; cv=none; b=ZIJribxO4QnHGjqKYrBaM1w8iLUslV7xmTUoLt8vWnWJRRDRV7W8y6e9dEoA3lNPpuJAHO YEeKB7Owp4rIydAb95uSVz6PnRGNweYVknrn+2nTEdhWBGQqIXrx25eKCIzrqvVEq7sT5H q9POeIedlTNVjl4iX6PZ4I+m+o2qMorZYXwspWa40vnaWrh6BfZeuooLa2rq85es8FZ8ZN gqWUbwANgFhTexKLvZlIZoKrMYyPKp2AIruNQfCLeafJ5RAKIXzsZAYvqej4Rl1zF4KqyH CDKIO3tFDqjeMc6Gna49kCbfsSlDAEctmB8SZmjZxZ56KhnbOg4C21XciYNlNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e0fqh8Va; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680653845; 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=JeF2hnAj0iSinUg4azhoVm+iGoi3koTHHsxmFNbJ2Rw=; b=hldRS3u+JDGc1ya/Jh/zaM63QAcAp3+o9YhMQaW7NPllt3gaRGxuTJYnZrPlsdSdhSvMXz nL7UlFZzU6ijJFo/NlW5ZzJT2y9IDwLJZeSJewOI+I9yCZ46RsaK8VFxK8ACUV6TNLwN7L Hi5fmyr8ChO8UqbwiXjwouPYvxpsGq4Vq8gXjiMLGwDReq48bkz7XSpjhuWOCr4lTRwXWE o4cf0nCFrPuPDAGilIoOZOKlJc5dSHHrwHzLERzMqLrp8ivwYMd3u7hGmZxeqxaylO7/wC 1umOEMKhKrAvgBl/6rAMRu/kH3pb4RQJkaBrgOpXeV6xOl3NdtVtpAXam5yiJA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=e0fqh8Va; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -11.25 X-Spam-Score: -11.25 X-Migadu-Queue-Id: C5C98B2D1 X-TUID: LRc+spkvg277 ah thanks. i didn't mean to require specifying the current file. that would be brittle to renaming hte file. i was thinking maybe i could use nil or some macro trick or a new feature of include to just say current file. not a pressing need though. On 4/4/23, Ihor Radchenko wrote: > Samuel Wales writes: > >> off topic, but is it possible to leverage such a default into being >> able to include a paragraph [or a section] from the current file? >> istr this required specifying both dir [fixed with this default] and >> the file basename. > > You can just include the same file. > > For example, try the following "1.org" file: > ---- > #+include: "./1.org::*Heading" :only-contents t > * Heading > Text. > ---- > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com