From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73854: 29.4; tex-mode: unexpected and inconsistent behaviour of `tex-compile`, `tex-file`, and `tex-view` Date: Sat, 19 Oct 2024 14:54:29 +0300 Message-ID: <8634ksl34a.fsf@gnu.org> References: <86ed4cl8no.fsf@gnu.org> <87ldykxrba.fsf@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thales1@protonmail.com, 73854@debbugs.gnu.org To: Stephen Berman , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 19 13:56:09 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t2841-0007Gf-Be for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Oct 2024 13:56:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t283Y-0007us-6r; Sat, 19 Oct 2024 07:55:40 -0400 Original-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 1t283W-0007uY-UJ for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 07:55:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t283W-0003li-LG for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 07:55:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=h+wLivzpmOGB/JPvUwth2OEcwwassL4iJ0tsFsKy+pk=; b=cu6I4QqSrIooXfKZbd1Qc4jbRPAmheqEfNM9qiX6KDFU4lQLwo/O+m7l6KRn+TAqzXJjvKKzWHHombHZp4eEYZoMR2Izt+IjtU8msuAMSWGcWTS454KSKH7zbQ0ebR3llek0WMH8JtcueNDKJ7jP8/8XiDybyMBxhbje96azhGU3nyW+nasmuES2EoIO+I84DEOKY9gdSUI/10+y7jBAti/2tOC4TF2CdCr/d1ZgU6+voMu34sexdeziL9gZjsKOq6sRSBD/i4M1OKH4qZTzcGryRGuqXqnYTdQwz99sy70kRymW7+XpLw5tNKwl3kWc3WO9v9RL5AlHxsUr+C3s7g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t283u-0003xZ-8a for bug-gnu-emacs@gnu.org; Sat, 19 Oct 2024 07:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Oct 2024 11:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73854 X-GNU-PR-Package: emacs Original-Received: via spool by 73854-submit@debbugs.gnu.org id=B73854.172933890514796 (code B ref 73854); Sat, 19 Oct 2024 11:56:02 +0000 Original-Received: (at 73854) by debbugs.gnu.org; 19 Oct 2024 11:55:05 +0000 Original-Received: from localhost ([127.0.0.1]:41715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t282y-0003qa-Uj for submit@debbugs.gnu.org; Sat, 19 Oct 2024 07:55:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t282w-0003py-BN for 73854@debbugs.gnu.org; Sat, 19 Oct 2024 07:55:03 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t282S-0003QJ-G7; Sat, 19 Oct 2024 07:54:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=h+wLivzpmOGB/JPvUwth2OEcwwassL4iJ0tsFsKy+pk=; b=rYop2JMjO2Z0 LV5+T/qw3PuB2DgEg9zvExtgthJU1qyq8JpUNJ/EsI+t2dc1h/HVSx7K6ui4ePWeUi3MrTaH7OCdZ S1RhtkWxxLQNhpxjyaRhfvc36WumdpL2kHMVT0N6hN1SuGHxi9jxB4PwLO3erltEdA0znaMU4yB1S EC0EOMm42ZsY5F7nsPSP1tgmWPPMoCuQXBwvDNOJiQl0P9IowbuP4DxN0M622v8w+KLflieqL2DlU ylsA8iQBrk1/IFwupLEQJpMnSPj6BWdWVaWDbWmTJMBOmKSHMDavZUAlQO+NfdzJ3wbTfdcEMOJlY 9hkUzu6U4a08V/O41eCO8Q==; In-Reply-To: <87ldykxrba.fsf@gmx.net> (message from Stephen Berman on Sat, 19 Oct 2024 13:31:05 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293875 Archived-At: > From: Stephen Berman > Cc: Thalis Charakas , 73854@debbugs.gnu.org > Date: Sat, 19 Oct 2024 13:31:05 +0200 > > diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el > index 6fc49800018..acb5bb4b860 100644 > --- a/lisp/textmodes/tex-mode.el > +++ b/lisp/textmodes/tex-mode.el > @@ -2530,6 +2530,7 @@ tex-compile > (if (tex-shell-running) > (tex-kill-job) > (tex-start-shell)) > + (setq tex-print-file (expand-file-name (tex-main-file))) > (tex-send-tex-command cmd dir)))) > > (defun tex-start-tex (command file &optional dir) > > But I'm not familiar with the tex-mode.el code and don't know if this > change might have unwanted consequences (though it seems prima facie > safe). Thanks. Stefan, do you agree with this fix?