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 ULs8EjkY/mPh/wAAbAwnHQ (envelope-from ) for ; Tue, 28 Feb 2023 16:05:29 +0100 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 ELo3EjkY/mO0zgAAauVa8A (envelope-from ) for ; Tue, 28 Feb 2023 16:05:29 +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 E83F91EFAC for ; Tue, 28 Feb 2023 16:05:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX1Wi-00061w-Gr; Tue, 28 Feb 2023 10:04:24 -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 1pX1WU-0005Xa-Ct for emacs-orgmode@gnu.org; Tue, 28 Feb 2023 10:04:13 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX1WS-0003jG-DP for emacs-orgmode@gnu.org; Tue, 28 Feb 2023 10:04:10 -0500 Received: by mail-lj1-x230.google.com with SMTP id by8so10563306ljb.7 for ; Tue, 28 Feb 2023 07:03:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=OJrZxaTjg2f4JZae0DPm4UchZhpxXpZkCBtDFCu0VSY=; b=SleyX+kmUvOFuX5ZfKIyInbS1NP0ppKkav2qzM0W8b5IRXQnRnKSPsdwHp5nQaWfs6 UcS2I7rkg3eaXOTZ5cFoQaPDNOAhtnQj34cB+sciKEd6pR74tvBTfcI6FkR5099/TkpW VMFVWiZGTJqSZAWe8aBHxps4ihAGCVK/7Bm6px19Sub/DaxcJZE1wnHcTPTKtUaQNJBE ooxvH8kEpHb1H4GmC04jQCtsiH0J4UaDp53YPxmvVhYyIzD2nb8k62t/Nfa6nVeXJN45 GHO0rgoi5O7AVZG/ujxedwZFRQrgDHlYJU8MgmC7LgOdyU2o+ysn2Pj9GPpu6bmeRDU5 Mi4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OJrZxaTjg2f4JZae0DPm4UchZhpxXpZkCBtDFCu0VSY=; b=OjPtt/TxGGBky0GjnZd4yLRKcPWz3R5JMa76BP0T6eWSmV2YVdGBovb24/owTDrVxD wel7MFRQL6bvap3y9HWee/TzPTMO4ckQG/8i47p7lS8IYxYR/5K678DUidn/bAOrChN9 xqDqh8D1kwS0upaqWHgIbfeCfB4vtMYP1dds+7LfxPrROGeXwW2iky6/1AHGHpyqHGCb cIjvpwyrbp2JTgUI5smgxei5wFvV5UUwk179avVHO/s8fnjsmtA4HSWtWPzM/PS9pfTq SPRtNygWjpx4l8pPYWiFFXnZ8b6p1ww1r2+URdGTkL/q1UGlsUn21j3AV0vV4NyE3t42 tnXQ== X-Gm-Message-State: AO0yUKVlzhb1F/k4kDSy3K4hL4F+HN+UJbH0v3nPwr4eKzaazIAsFyn0 pzK1kDQ/5r6Qi/sGxvguHMM= X-Google-Smtp-Source: AK7set/CCE0ZSrsXHfbHADgtigVgkx4nvf0BCFK/TKBsLekQcuYcq9szJzYa5DccV5d9m7bW/y6DXg== X-Received: by 2002:a05:651c:11d4:b0:293:4fda:22d1 with SMTP id z20-20020a05651c11d400b002934fda22d1mr845175ljo.46.1677596636335; Tue, 28 Feb 2023 07:03:56 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id p10-20020a2eb98a000000b002935f85760bsm1241313ljp.71.2023.02.28.07.03.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Feb 2023 07:03:55 -0800 (PST) Message-ID: Date: Tue, 28 Feb 2023 22:03:53 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: Have export treat file: paths in INCLUDED file relative to the INCLUDING file's dir Content-Language: en-US To: gnuric@pm.me, emacs-orgmode@gnu.org References: <87h6v9gpno.fsf@pm.me> From: Max Nikulin In-Reply-To: <87h6v9gpno.fsf@pm.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=manikulin@gmail.com; helo=mail-lj1-x230.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, NICE_REPLY_A=-0.092, 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=1677596728; a=rsa-sha256; cv=none; b=Zcbi6SmAoCRI/2hVKL1Y0uTq6wTdQZvbSPCBICkXzvJ3fBZ8uvjFyT+zqi6JdoYZExA5PB HMz+3j7quKlmo7vuIhJES3ftaTP5L5XQQdp+CSwqFXcjJUA+dbdbOy/hmoH3Ok7KFpAy8x TN6RI7Umzjsb8mbBM6vISl3XumFBngDP+hyPzfogLyoLEU+Ssa0QSgot3k48JNxKJNSF8r E0VG4rjfdhJcB2As+AnUyshiO6ZuMdBwv70hLBI7+o72C+HMIvO46CbhzNr3Dkej9RGxd6 Gq9cLXX5zofeHqPcosKve81RfjLhGPG/T1povIg43i5vNrfK7A1zvH2yRICVJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SleyX+km; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677596728; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=OJrZxaTjg2f4JZae0DPm4UchZhpxXpZkCBtDFCu0VSY=; b=sA+wImQPZI1S0UCQQl3hJUFk4/5K76YUv3yWxyQVrwW8ORO6KgpTRb8C3I8UhfMPpBcSCC 5B3XI+MhkdZZsSAOrQ53BOKRXCtqi9vj9HKg9XnmsGauxEmr0ptPbYVipNqAlTdL4t/01F JZzYREV1E/zwhPkrGz2Tv2FbHS+EXSz6BcgVHsDQDfBjA53IWLV/niNzu6XavtlFR2vLsQ SG7BCEMULKnMqEtqpF6cDNLRQ8CCWYszgqOgnbSYGnO1J0ipvYSN1/dYydIua38UPX3X16 z9LY490oQoCZTl4KTgHByLmF949hlDdqEEbRqIvNQwHcxve3tf1rYFuQveajxg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.89 X-Spam-Score: -1.89 X-Migadu-Queue-Id: E83F91EFAC Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SleyX+km; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: qa05uAc0h5xR On 26/02/2023 08:52, gnuric@pm.me wrote: > (basically similar to what #include > directive in C preprocessor would do, e.g.). As of now, the above > s.org exports to s.html which has the file: link converted to > > file:///home/user/media/s/media/s01_image.png Doesn't cpp behave in a similar way? grep --include=*.h -r '' h-0.h include-1/ h-0.h: h-0.h:#include "include-1/h-1.h" h-0.h: h-0.h:extern int h0; include-1/h-1.h: include-1/h-1.h:#include "include-2/h-2.h" include-1/h-1.h: include-1/h-1.h:extern int h1; include-1/include-2/h-2.h: include-1/include-2/h-2.h:extern int h2; cpp -nostdinc h-0.h # 1 "h-0.h" # 1 "" # 1 "" # 1 "h-0.h" # 1 "include-1/h-1.h" 1 # 1 "include-1/include-2/h-2.h" 1 extern int h2; # 3 "include-1/h-1.h" 2 extern int h1; # 3 "h-0.h" 2 extern int h0; So in a file residing in ./include-1/ reference to "include-2/h-2.h" means ./include-1/include-2/h-2.h, not ./include-2/h-2.h