From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OOKxAT3D72NGUQAAbAwnHQ (envelope-from ) for ; Fri, 17 Feb 2023 19:11:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id KLWyAT3D72PiSQAA9RJhRA (envelope-from ) for ; Fri, 17 Feb 2023 19:11:09 +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 6BB762CF9E for ; Fri, 17 Feb 2023 19:11:08 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LKMMOiaz; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676657468; a=rsa-sha256; cv=none; b=lFgFaC2RaikARpzSDx6b6Y2SqJv4u2GjZtQQNkUa06vxFjYcKXDK732QfWVWkwcnbBN8eD ISIm3eN6VUvbienJVVK3hS+vEpl3JflhLjGusbrE5rlvdBE69oVay/oC7hBIVpkj2Gbhle vPH/bJPFci0cxFnZhAjgtUTVBrmqhftr1h/XzTVGPPChkThMdcZVp/uWexCNn9s0t8imH+ fUIq3ls+cYVsCfH0Bk6NvfuGglB45eDwgzdJ7ZhNIJjh5GjToWS521byqXaFbYHW/1kXg2 Iqf4MZ8QR7MSyI6LZur931ppX/rwBSy47Cw3WBEF4QzkM4sXJEoigMm1zet4HA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=LKMMOiaz; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676657468; 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=aVIvEr4RoH1GGB9f9evnf+nfQdpp8Cdg5RL4A03AKSU=; b=EZA12owjnNfRnMpg6wQYTD9M1OeI72fshrYjFIiRMrZbyvHl6KhjekRTD78QpEgef6jUAW R2Tro+xogSJZZ48xmugdsYUK1dFKusWzjqA2wcr5qKkjqdHtFYV8d4gVbzxUXzU/tRtkSl aDoKabEB3txwIEMZkc5hfITc4Oq5jObynwDvXIcVs1I4vBRnjqd1RmExFNaNXQbYn0Sqnf vwCNRhwXxf21L81OLg/h2V/SGBq0NTAuv+9tWlujBYvy0lCD8tatNDZVnDAIXrV60MDHZj wjzqGMdBHvrnCI85B6mIG6qcF4Z/iqhoyH6b+dpliFQT/k7Yrdsb9/OP9vzNHw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pT5Bm-0003p1-AK; Fri, 17 Feb 2023 13:10:30 -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 1pT5Bl-0003os-9J for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 13:10:29 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pT5Bj-0000x2-4Z for emacs-orgmode@gnu.org; Fri, 17 Feb 2023 13:10:29 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8E977240478 for ; Fri, 17 Feb 2023 19:10:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676657423; bh=6yL/3ajQYSfeWIfpyfwGNZH41+6mhl3cVOlq+RJHD+k=; h=From:To:Cc:Subject:Date:From; b=LKMMOiazRYiZMay/p8zlg0HOVonpU9IXLqAIKEgb6GQZIbC1DOCdwRLcAt3hcf1vm WHjU7LKxhPE0Rzx1GXO0hpAFYHzRjVmMeEkPThRFLeo9thkbaoNUWgMr3SJhBcb5dw BO+jABf9FD1naX3ZRjc4Gkz7iQNBcVm6YefnsYrsJq+nXMaKg2MPayMpFeO3I8cJJY XSUhqrnENqxLeKkb8XS9ITs1EmtSNkFCmTEi9uB/PlZ4byM66Gyas5/rsTyVoekTJG iLcakgPKtrD3l505BC8CyphA88H+9ypPEGHY2R+GYsyqFDD1SkRRkhYzikgYfIjOw0 ZdLgCUXeOblNQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PJKbw1slQz9rxY; Fri, 17 Feb 2023 19:10:19 +0100 (CET) From: Ihor Radchenko To: Jean Louis Cc: Bruno BEAUFILS , emacs-orgmode@gnu.org Subject: Re: Bug: org-latex-export-to-pdf does not remove .tex file [9.4 (9.4-elpa @ /home/bruno/.emacs.d/elpa/org-9.4/)] In-Reply-To: References: <20230215184951.edu6n6k57lmfnqxz@settat> <87a61e4qcg.fsf@localhost> <20230216102249.uxhkbezoheb4mvdi@settat> <87fsb4d0ih.fsf@localhost> <20230217131845.ein4q6ig2gcytjtc@settat> <873574berm.fsf@localhost> Date: Fri, 17 Feb 2023 18:10:54 +0000 Message-ID: <87ilg09n81.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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: X-Migadu-Queue-Id: 6BB762CF9E X-Spam-Score: -6.11 X-Migadu-Spam-Score: -6.11 X-Migadu-Scanner: scn0.migadu.com 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-TUID: v242pxkuvycZ Jean Louis writes: >> Even if we used exit code, what would it achieve? > > - user wants PDF file > > - with exit code other but zero there will be no PDF file How so? Not in general, but only for certain values of org-latex-pdf-process. > - display error or move user straight to LaTeX file to try it out > manually or find what is wrong. It is being done. > - Here below `latex-function' must return zero and `pdf-file' must > exist for system to update it's Hyperlink correctly, and to launch > Evince PDF viewer. I guess having a non-zero return code is indeed an indication of something being wrong even if pdf is produced. > - But if error status is not zero, I want to find myself in LaTeX file > straight, then I can try C-c C-a to understand why it did not work. Even if status is 0, you may sometimes still want to find why some things did not work. ox-latex.el covers this by searching for latex errors in the logs. > If I would just assume that `latex' command "just worked", that means > I am blindly continuing with some other functions thereafter, but that > would mean I am creating some errors. You don't. ox-latex tells you if command finished with errors or not. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at