From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AMKuKvUwlWacFQAAqHPOHw:P1 (envelope-from ) for ; Mon, 15 Jul 2024 14:23:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AMKuKvUwlWacFQAAqHPOHw (envelope-from ) for ; Mon, 15 Jul 2024 16:23:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Yjy36jYT; 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=1721053429; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=XiH8w6Km9VbPlp6YdEKTIIJ06sOwojhMuEJA5m8RAe0=; b=UmdOvKyYpMrfT585TaANl12mAstAujZIdL1jKFLLkXU32b52uVsLXbEpCYXV0bHp84deHH KpQdjuvnKZGnb9FG/fyiwxNWDYZLpo7YrIeeoR/Mu4oaKA1cb1ktqavafW6Q0f+EMNk8pk 8YVPaapEMNsMdyoQfvNsrsUSOZ1drghaQilLIQnAVJvUCrj2EMMNJ1OJGDbnH24wVzXqbi vAboD08vIkejrpE2RzJKqbB+rUSKRqoWlKlhwz8vkpL4eWiS218LPaRhGq8Z2RpxxSRxYm 0J4XILk+GAkmUcLajDR82d/TqBSIDYloyscLrJAycqNXl+OYESrQHXiT9AwImg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721053429; a=rsa-sha256; cv=none; b=OunNByAZPy4C7j1UOUDHZcvMnGzbuUvZp0TyIUcQD8AMO+f7By7goIVqGIh22Eid9Yysr0 XA9KjivFL9kneqBDzH6+6abRl1OS/CPN/9OzlRS0AKovFaPwDGfRlsU5eirjX2C3CafqmN N6+7l4E3s3NnjFA60GevNHP09Ctuk+m4v+DfkzbISKUjm6lhTm87q1UrXl/eP1j1ry0CRM 69GG5OnmSiSpUvBQtezPHssWibWsxWoAYEwDLDOP9WwxPPr4WhfznrL9/rmc6WimpwCPjO p+WjUbzNsFqzGgzMkOFOI23bk/MUuI505ayuyEPl2mgDv5SWFlddX3A9mDqJ0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=Yjy36jYT; 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" 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 79B5C7EAF8 for ; Mon, 15 Jul 2024 16:23:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTMbK-0001k0-19; Mon, 15 Jul 2024 10:22:50 -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 1sTMbI-0001jg-8e for emacs-orgmode@gnu.org; Mon, 15 Jul 2024 10:22:48 -0400 Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sTMbF-0001Z0-6l for emacs-orgmode@gnu.org; Mon, 15 Jul 2024 10:22:48 -0400 Received: by mail-vs1-xe2c.google.com with SMTP id ada2fe7eead31-48fdec0b7d1so1126971137.2 for ; Mon, 15 Jul 2024 07:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721053363; x=1721658163; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XiH8w6Km9VbPlp6YdEKTIIJ06sOwojhMuEJA5m8RAe0=; b=Yjy36jYTQ+mVCtDCfqNHJiSrJa6j3CpC0PQdDSK6O/Tw4dAlewG1Ayo2VQzhK44SUH X4fY5sZwTVFbPmI+PMzp8FWWhpu9tQ+CI9rcU6i/45Ob9Oor6r/Uh18fRql+eZUriQY9 mg0nT028yJjbfCDiPj4fZcLWisCLGwD9oW9J3UBoGIrWSwfj+Ym7ouP5Fjp6H5QrONYk XdwpBR2LvrzSFRiM2d2xGTLpdSU+NBeaLi30BmQ6RR8SQII86f2BcIGdNxINVYbt3/BH tdQMPwa5/g/NU0s8v4Uuh8kg7P/CDpLIcFW94yt2NwwT4lihzZEPCxqLGwdzNmfLrDZl 2/Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721053363; x=1721658163; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XiH8w6Km9VbPlp6YdEKTIIJ06sOwojhMuEJA5m8RAe0=; b=IW0PhFMPOTt1qGD0z+LjUtI4blWih4WdCqy80pTTNzldIHFoKAbvrelZKrORfmn0c4 8OFR2jQgUAQGGQquKrH5ogwLjB3rWYvVtEZNskQ/L/C2uypnBVpUBsioIkbWDwMBXiDQ B2QCa/xD+DFzN0Yaln0j+ZNRFRBhEKaczY7CPmbR2lCjfDbzA0KzoNt4kRS4MsO+/HCe daG6rsPGLVgsR96Q3wf27EaouAJ5Be4yXGeq7A/6RK3/kckwrwiUyMzMWI+zZuE0pwpP 3Fa4kPUY/6SOx2LSKQQpdPkw2yHxobKTcAMnpbRVK22ojPgM1AvbH7Wy+hnmzFVdpPoM Kjvw== X-Gm-Message-State: AOJu0YzLLMon4KqTeAGUFKpOOLzRQumfztdZ1uo51HLWPFslnK7w6JSP hU1tD01jxHOLxPV+tGeo5tcyTiR7loQFyPVT4n/SEB3eTjD3T1l2hk8XwbNZicEd/Zz5379Rcrm 37ChZxyKUbhzGr86LrSP98WjkTjKvn/nyBaetZA== X-Google-Smtp-Source: AGHT+IEGD6+AvsZmPVJwjhT/fx93nMwDJau/TmxaaR6crYhhF3A6wHRigPoQ4VBSqvuHCs5Rx5BPyebs5ku5v8Vo7PQ= X-Received: by 2002:a05:6122:ca2:b0:4e4:ea24:4c53 with SMTP id 71dfb90a1353d-4f4cd244727mr97626e0c.3.1721053362983; Mon, 15 Jul 2024 07:22:42 -0700 (PDT) MIME-Version: 1.0 From: Emil Vatai Date: Mon, 15 Jul 2024 23:22:29 +0900 Message-ID: Subject: Latex preview + symbolic link + relatvie path bug To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="000000000000571e72061d49f6a8" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2c; envelope-from=emil.vatai@gmail.com; helo=mail-vs1-xe2c.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, HTML_MESSAGE=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.74 X-Spam-Score: -6.74 X-Migadu-Queue-Id: 79B5C7EAF8 X-Migadu-Scanner: mx11.migadu.com X-TUID: Dh+13wYQN2PI --000000000000571e72061d49f6a8 Content-Type: text/plain; charset="UTF-8" The problem is very nicely described here. If there is a symbolic link to a directory, such that the original and link are at a different depth in the filesystem, org-mode latex preview fails. The bug and how to reproduce (a potential solution to it) can be found here: https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-10/msg01152.html Copy of the most relevant part: >* How to reproduce:* > >* 1. Run `mkdir -p ~/a_dir/org'.* > >* 2. Run `ln -s ~/a_dir/org ~/docs'.* > >* 3. Run `emacs -Q ~/docs/example.org '.* > >* 4. Insert into the file "$2+2=4$", press `C-c C-x C-l', and see that it* >* does not work.* > >* 5. Kill emacs.* > >* 6. Run `emacs -Q ~/a_dir/org/example.org '.* > >* 7. Insert into the file "$2+2=4$, press `C-c C-x C-l', and see LaTeX* >* preview.* The link describes that one should use file-truename before file-relative-name. Ergo one possible solution could be adding file-relativename to a bunch of places, or if org-mode is hardwired to produce the files into /tmp, maybe relative paths should not be used (as far as I can tell, the error occurs when it tries to read ../../../tmp/orgtexRANDOM... which is actually /tmp/orgtexRANDOM...) -- Emil Vatai --000000000000571e72061d49f6a8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The problem is very nicely described here. If there i= s a symbolic link to a directory, such that the original and link are at a = different depth in the filesystem, org-mode latex preview fails.=C2=A0

The bug and how to reproduce (a potential solution to = it) can be found here:

Copy = of the most relevant part:
> How to reproduce:
> 
> 1. Run `mkdir -p ~/a_dir/org'.
> 
> 2. Run `ln -s ~/a_dir/org ~/docs'.
> 
> 3. Run `emacs -Q ~/docs/example.org<=
/a>'.
> 
> 4. Insert into the file "$2+2=3D4$", press `C-c C-x C-l&#=
39;, and see that it
> does not work.
> 
> 5. Kill emacs.
> 
> 6. Run `emacs -Q ~/a_dir/org/example=
.org'.
> 
> 7. Insert into the file "$2+2=3D4$, press `C-c C-x C-l', a=
nd see LaTeX
> preview.
The link describes that one should use= file-truename before file-relative-name. Ergo one possible solution could = be adding file-relativename to a bunch of places, or if org-mode is hardwir= ed to produce the files into /tmp, maybe relative paths should not be used = (as far as I can tell, the error occurs when it tries to read ../../../tmp/= orgtexRANDOM... which is actually /tmp/orgtexRANDOM...)

<= /div>

--
Emil = Vatai
--000000000000571e72061d49f6a8--