From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gE/5GL+XIGZ+IAAA62LTzQ:P1 (envelope-from ) for ; Thu, 18 Apr 2024 05:47:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gE/5GL+XIGZ+IAAA62LTzQ (envelope-from ) for ; Thu, 18 Apr 2024 05:47:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="OJTQ6/Bl"; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713412031; 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=jXHzU6ipbiP9tQcgw5dayHHnti3lrkMh2mNIRsEnSYM=; b=aTNawap821gFp56ApoessmRdS4MieIu1yOEZoGyxg5iehVgA3gK58+uFRQzA+sM7xLrU6j R77LotUsYtixEsDivLvrjlBkXkKO2XAOKpTJqP8CVb+IstVk29LLtRX7mNA6L3BXSzbqxQ YlXNEOPW8HbFbRzcfzNHLV8spL146bxyXe28h0SAC3ZoBjC2m+mL7CBhTtnEO04CpWYej/ Q7AWEPepRh6syye/w0GC2/4WWg6LzsAljkBkdnqXFbdhdPjngOFG1uNsNDg7/jfMo0ijIL 7w8sXX99OaVz1+uhW4h2qDpcg/fGZIrrF8QCtESZk4AhvoU1cfdJGyH2MUZ2XQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713412031; a=rsa-sha256; cv=none; b=G89o09IZq9WAB5sBObHg9EJ4ygq5yC1bC8jjFCd/K4ZLQU1m84tPDY8FazOXXXDU/P+AoS kjfk6QfV9/uZ8PTBQMvtipQ1uph9WQ4BqNSzCK3M0ivcqn/CtMkbiL4q32eFmagE4TSigb 2egZ+D5nF1RrtbbcWu7m0dMaEUZRcN/sw1ZiXhIDmJsB/KHRimJRoN4YF67XMusDFLAw2v vVYTBITdEKW/7LeuNmzyTqk8OPS0KfigWDftiPWLi0+rvx1s7wLKmu6dd8fkUtnpvOaT89 m1b3F5+53QqbI4I7qg8DkGM65/yvO04jIbC+HoPp0Oh2fiuoj43vTWToD7Um9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="OJTQ6/Bl"; 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=gmail.com 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 52B2722BEA for ; Thu, 18 Apr 2024 05:47:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxIBp-0005WV-Vy; Wed, 17 Apr 2024 23:11:58 -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 1rxIBo-0005W9-Hg for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 23:11:56 -0400 Received: from mail-oo1-xc34.google.com ([2607:f8b0:4864:20::c34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rxIBm-0001L4-Vu for emacs-orgmode@gnu.org; Wed, 17 Apr 2024 23:11:56 -0400 Received: by mail-oo1-xc34.google.com with SMTP id 006d021491bc7-5ac90ad396dso212369eaf.3 for ; Wed, 17 Apr 2024 20:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713409913; x=1714014713; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=jXHzU6ipbiP9tQcgw5dayHHnti3lrkMh2mNIRsEnSYM=; b=OJTQ6/BlAM+KKZAakgzAQOJ1CBuNlcHyv/nChc9xZ1+e50F3zzycPc9ofA2v6GOrgf gXtb9NohJ1ioi/3BCpBWIw0x1yt1ipWYJCvo9T2UhxILqDz/KXhuIdKwbHpZSHT4VpW6 1zkyFiAMuBLttfqCQst2y4zpmKhqlN9osSomRLBDVv7/FZ0xQlbOzaQI+0Xo1B1CRVR2 dHxeMvI71I7WMFqxx+K+pJyK9Sqz+KPAL8E72XwJVSkEWwjEkY86TfigoLbhjkNeYbvI gOXWGVwYucivhxyoA5bdVklWpxBxFUaGuIIiDwkn98d67pn7UclkRtHJGy3o9b4p4Wz2 43NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713409913; x=1714014713; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jXHzU6ipbiP9tQcgw5dayHHnti3lrkMh2mNIRsEnSYM=; b=wckIOTDuyTZlVoPqMPwESleccQHkOfy9DvzG9G0x0y/GRU9IQXUT92ZdBhDG16RrS5 Cw9UBO0spixrMaRFIRAnrT9FaqwoTCzSrqvU+eBArley06Cu1CMHJyrMT4yqoEVksyPL /8a2O3xLnWfzAV2j/QSAM8zZdfMFlv2fBfB+asIxzkqBTffPu69W2V5YLYkxNUAjKLNI lm74LinLopRasEXHexEngOzdEwWsV5ew/lDcbh0LEItd+HOjpAU0GAPH86zrT8HDmaFL 8sae6RiDJknrscpIBrhOyvJpr4PH7IIO7xO/zGuLKVwPiwwleeA2QQHzlbZ1N+WZHwI0 QDlw== X-Gm-Message-State: AOJu0YwJrhTY6YNel5ItW/qYw5b0iOfb5nilALrhcJHTvcnNNmVwQe+L 5DBYPr/pGgf5DwOpWjSOuEBJMRGhpUbp2eIcfya9vpM85xkTaVmy X-Google-Smtp-Source: AGHT+IECXqp6s9kvocqxoF07pnN1+zX5IEURoEfkvB3nteoB/EyoD7AFTnHEIdvuKg0eRnTljFIiaw== X-Received: by 2002:a05:6870:f722:b0:22e:be32:9e6 with SMTP id ej34-20020a056870f72200b0022ebe3209e6mr1736646oab.14.1713409913501; Wed, 17 Apr 2024 20:11:53 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:a420:d6d7:e354:3403]) by smtp.gmail.com with ESMTPSA id r18-20020aa79892000000b006ed0c9751d0sm419824pfl.98.2024.04.17.20.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 20:11:52 -0700 (PDT) From: Karthik Chikmagalur To: =?utf-8?B?0JrQvtGA0Y/QutC40L0g0JDRgNGC0ZHQvA==?= , visuweshm@gmail.com Cc: emacs-orgmode@gnu.org, orgmode@tec.tecosaur.net Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <86wmov4um5.fsf@gmail.com> References: <86wmov4um5.fsf@gmail.com> Date: Wed, 17 Apr 2024 20:11:52 -0700 Message-ID: <87v84f8ivb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::c34; envelope-from=karthikchikmagalur@gmail.com; helo=mail-oo1-xc34.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.88 X-Spam-Score: -6.88 X-Migadu-Queue-Id: 52B2722BEA X-Migadu-Scanner: mx12.migadu.com X-TUID: 7J7snB3yTuRh > I've got problem when I use this version of org-latex preview: > > RUNNING: dvisvgm --page=1- --optimize --clipjoin --relative --no-fonts --bbox=preview -o c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr-%9p.svg c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr.dvi > > ERROR: can't open file 'c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr.dvi' for reading > > As you can get from the traceback it is problem with windows. But I > remember solving simillar problem with org-fc already[1][2]. I just removed > escaping (quoting) from one of the elisp functions. Thank you for testing the new LaTeX preview system, we haven't had any reports yet from Windows. As a temporary measure, could you try replacing calls to shell-quote-argument with identity in the following two functions? org-latex-preview--tex-compile-async org-latex-preview--image-extract-async I'd be interested to know if it works as expected otherwise. > So, the main problem of the problem is that on Windows > (shell-quote-argument) function will quote c:/ as c\:/ which breaks > ability to find one or another file. It maybe other function with this > quoting, but I suppose that it is it. shell-quote-argument is used all over Emacs, so I'm quite surprised it mangles file paths on Windows. Karthik