From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 qLRGNMH6P2ToNgEASxT56A (envelope-from ) for ; Wed, 19 Apr 2023 16:29:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QCAwM8H6P2TboAAAG6o9tA (envelope-from ) for ; Wed, 19 Apr 2023 16:29:21 +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 883EC15F80 for ; Wed, 19 Apr 2023 16:29:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pp8nI-0006AW-0F; Wed, 19 Apr 2023 10:28:24 -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 1pp8nH-0006AL-2U for emacs-orgmode@gnu.org; Wed, 19 Apr 2023 10:28:23 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pp8nF-0004MZ-4s for emacs-orgmode@gnu.org; Wed, 19 Apr 2023 10:28:22 -0400 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2470e93ea71so2326454a91.0 for ; Wed, 19 Apr 2023 07:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681914499; x=1684506499; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JgO9nBAQcLz4nAjpM6hqpg+I4v7/dC2tIfTTAer9v3Q=; b=rxKSn4de7uDv2GW6uOBtGjIcsNQZ1D8wNetUurZBJVguwIOohUr3fTaywk7lscjvfo 6nN+Tq2vlQhWRAw/Usm2uyL6LNvfc9zzk1/L4QakBPU45YVKaJPvMjqSqhqcEE0jla5p jdM9La2rejuKppKqbXof17jUJrJM019KIS9xfzr1quyIGRVZFwbC6fbjaUByhrpH2uds QY38Am2a28P8uBCDULAupxkiNbfvH0uN3D+kOy7pZNcHuIRRS+SbqNToJ/2brgICzfr8 /kAcWMqWnYT8XPddX2T1uz+y/ihfT2Y0iBl+E/y+RJgx8KRGIbN9F/5PaYAZypkd83fh 5Y1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681914499; x=1684506499; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JgO9nBAQcLz4nAjpM6hqpg+I4v7/dC2tIfTTAer9v3Q=; b=Ys8LcgXonuck/IgmFmsrF8P03F9dViLeho7EqloaLLdArfFSMvoGOjEMzTxc2IfAl0 gnyA4me/F2xbJOs4d1vkfHzMwxcx2oRG6h2oqPqJYnl5EIEqNt8SwdMi0JdF+mTF0XqJ +3m4xQLN0AVURqtpy1VxYJCkYrvE3wBY8yuVsj4hwQNEPrlQShivJdEsnvfIpmxPx3zI J2G3d5PScVN5CqAaOKGbSzeGMaKNrlfMkKrUVPgz1PZ3Ue3tyKhI0lEKLCytRnIRnoFW X+RKeFdW1xGsDyPdeXGdRSKNvvQXKYmjH3oSVK7H1Byhqu7S3Sr/DkEEQp5pT/qqSYZH bT2w== X-Gm-Message-State: AAQBX9eBpp2pLfOjrVYJUCQUnz6L6SxK80XLfPyR8jSUV/B+mGZBBs8C 2GO6M3EZdxGeToLjxrjsm/5yyjx8cepX1RPQJ0I= X-Google-Smtp-Source: AKy350bXEnuind3/2GUBeQcrEuVJBiWPMWC1+aUN7fX3J7Fgtk1YKa1yQPAXR5fAj+36vvssMy1ki/BjTV8ck+PTBos= X-Received: by 2002:a17:90b:3a89:b0:249:7958:ea36 with SMTP id om9-20020a17090b3a8900b002497958ea36mr3398514pjb.19.1681914498732; Wed, 19 Apr 2023 07:28:18 -0700 (PDT) MIME-Version: 1.0 References: <87v8hulqcv.fsf@localhost> In-Reply-To: <87v8hulqcv.fsf@localhost> From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= Date: Wed, 19 Apr 2023 16:28:07 +0200 Message-ID: Subject: Re: [BUG] Org publish makeindex doesn't work on symlinked path [9.6.4 ( @ /home/bence/src/org-mode/lisp/)] To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=begnoc@gmail.com; helo=mail-pj1-x102b.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, 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-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=1681914561; a=rsa-sha256; cv=none; b=RK5l0T5IS4OKB2UfQ/vAk+3/Y+2bhWuroJO8OHEjle16W5jiH2+4Eb5K9ekv2Ya1NzMQOy K4pA8mGAZ4jAsns7zDfzldVPOQsTFGFo3VAFuxWHIlsaf5vfOLOcpeR4WwyBhYb8fPLi4n vw51/d8MHyshtKbFWyKO3zCAcjCfyKGij4qMoLG9t1B9tev10ofObIqteei6pstnGUdSnO wcys9342flw8D/NRhSWn+Dlw3Kdrt6sSqGyw2hb+qaQvghm586OsnXE7YEUVCGt67jOfeR 7qp1J/GyhoebdFH/lvBIyHl1l1oBPqZqdmaGSU/i+dKpRJm/tn0WRfiextYCiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rxKSn4de; 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=1681914561; 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=JgO9nBAQcLz4nAjpM6hqpg+I4v7/dC2tIfTTAer9v3Q=; b=b7lRVeVhnJHm440HvG7v+xs0z0Zo+tiVCIdL6uEvM2p+VmkcNe//VfuXrFsdREm+F2Jwvl 5aGFLa68XE6CZ7qZMA4TRwOFrdfKfepZGVy0atsOBcW210F1JXc2IM8m7HY5oTIWT+sRvV G3ZlLHksjatMBfelw7dV8DIQF9NPaxtfnnu0Vp2PLBeCG8TTPuONKHBFfAW4fcikAW/0aH B2g/jHhX+7mR8LwGuaTDGzlCkbPptQGcjQSaSEcKPHMjP16NShM0js2pjOS+H7T3WBf3/H HkLP/2eXNVMcByDXsmiaS4iflHwzown0G+XgHZriXYhFL2++rd/VXTAIRyL0EQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.44 X-Spam-Score: -6.44 X-Migadu-Queue-Id: 883EC15F80 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=rxKSn4de; 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-TUID: n339zJbdShPB Hi Igor, > 5. emacs -Q /path/to/README.org > 6. Open the second relative file link When I do this then when I push `C-x C-f' I see that I'm in the non-symlinked path. And that shows up in the source block evaluation as well. In fact even if I do ``` emacs -Q /tmp/org-publish-symlink-repro/shortcut/something/index.org ``` I end up in the "real" directory. I'm not sure what's governing this behavior in emacs. What I suspect now is the culprit is that the linked directory is on a different BTRFS subvolume. In my original case. Can you try changing the line ``` (let ((base-dir default-directory)) ``` to ``` (let ((base-dir "/tmp/org-publish-symlink-repro/shortcut/something/")) ``` and see what happens then? BR, Bence On Mon, Apr 17, 2023 at 1:04=E2=80=AFPM Ihor Radchenko wrote: > > Bence F=C3=A1bi=C3=A1n writes: > > > When performing an `org-publish' if the `:base-directory' property > > contians a symlink in its path, then the `theindex.inc' file is not > > populated. > > > > I created a repo to help reproduce the bug: > > https://github.com/bencef/org-publish-symlink-repro > > I tried to reproduce starting from emacs -Q, and I am unable to. > > I did > 1. cd /tmp > 2. git clone https://github.com/bencef/org-publish-symlink-repro > 3. cd org-publish-symlink-repro > 4. ln -sf /tmp/org-publish-symlink-repro/long/path/to ./shortcut > 5. emacs -Q /path/to/README.org > 6. Open the second relative file link > 7. C-c C-e C-f P x > > All the files are published correctly, including the index. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at