From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8H7GC6qi7mMpAgEAbAwnHQ (envelope-from ) for ; Thu, 16 Feb 2023 22:39:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EGmtC6qi7mP6VgEAauVa8A (envelope-from ) for ; Thu, 16 Feb 2023 22:39:54 +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 DDFF92C4EA for ; Thu, 16 Feb 2023 22:39:52 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676583592; a=rsa-sha256; cv=none; b=BrGWA4cqPOz9rViTYWIUfwCMRQ/USBpqCaE0SMQ04+wEeLd/7EuRrzfYWmMbAG4tJ4fYeA 8ZHlpYtIpD4HeiNk0lOXkCoGYLq0BUWb7b9Ru+U+CKw+Qwx1KiKscSc53SkdnEoQ77pJVy uUn17oHxvNjmRC10UXBA98WhY79eEm+OvXIgreqVLS0pg8ykocwQ/jU3fiH4tYd346JkAk S5eOdXHrEfnQ+wOXoJtVeIW7Vp/voAMbdoI4+qJMPDmxL+h8zbjsT6VR3mCexgRt3eplPa WcsAv8n+8TA2W5hXUy7L9kq9/U3UptlnTciiqwArq/jCN2svf5pJuT23JPLkgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676583592; 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; bh=QP2ud8YZ+1xLTwX/7Yic1/5dDu9EBz6gS8I1qyUJiWA=; b=E3hd7DGBqQ+/IiShZbObaBNttqoU0kA8/A4ywo7JnIczrk/AiWjguCjRZr1zAOzp2WxGCX ivLiZKG4CZuuUhCdr4jzHCWnbPhbHABfxnLit7LHoLC7mN/1a4ruZieLqAvKMXqeq4sQ6r zSaBBqH6zmNHSn667HqLUD9P/YaU8NyK4RUBmFR3hJEwuSW0WpqPDJ/+PbVW399ECYs0mI K1BEdS9/v7loG6XsZDRbjgi5LVUs08rZ5CXjaIOKH8vJiiyXpXnbSLCrGYj6Q55tvPwDrB k4lSORYxWxPJ80ysfzMmg5Y+OzkiRT9q1PAmgNAIe/r88JOGcU8IWMv1kozaDQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSlyF-0006lU-OP; Thu, 16 Feb 2023 16:39:15 -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 1pSlyE-0006he-Fu for emacs-orgmode@gnu.org; Thu, 16 Feb 2023 16:39:14 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSlyC-0004V2-TN for emacs-orgmode@gnu.org; Thu, 16 Feb 2023 16:39:14 -0500 Received: from localhost ([::ffff:197.239.5.201]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000103A90.0000000063EEA284.00005CD7; Thu, 16 Feb 2023 14:39:15 -0700 Date: Fri, 17 Feb 2023 00:38:05 +0300 From: Jean Louis To: Ihor Radchenko 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/)] Message-ID: Mail-Followup-To: Ihor Radchenko , Bruno BEAUFILS , emacs-orgmode@gnu.org References: <20230215184951.edu6n6k57lmfnqxz@settat> <87a61e4qcg.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <87a61e4qcg.fsf@localhost> User-Agent: Mutt/2.2.9+54 (af2080d) (2022-11-21) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_SBL=0.141, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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: DDFF92C4EA X-Spam-Score: -1.72 X-Migadu-Spam-Score: -1.72 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: WbWAwXsQMtnF * Ihor Radchenko [2023-02-15 23:38]: > Bruno BEAUFILS writes: > > > When using the org-latex-export-to-pdf on any foo.org file I get the > > foo.pdf file produced the right way but I also get the foo.tex file. > > > > I think that the whole point of exporting to pdf is only to get the pdf > > file, avoiding the need to keep the latex one. > > > > I guess that one of org-latex-compile or org-latex-export-to-pdf > > function should remove the source LaTeX file if the compile went well. > > The problem with LaTeX export is that it is not always possible to know > if the process truly finished without errors or not. It is possible to know it always. System commands `latex' or `pdflatex' will emit error status, you may inspect it in shell with: $ echo $? The function `org-latex-compile' does not check for error status, but it could. In general, external processes shall always be checked for exit statuses. It is matter of programming design if you wish or miss to get error statuses and check for them. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/