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: Mon, 21 Oct 2024 12:55:01 +0300 Message-ID: <86o73dhjbe.fsf@gnu.org> References: <86ed4cl8no.fsf@gnu.org> <87ldykxrba.fsf@gmx.net> <8634ksl34a.fsf@gnu.org> <87o73dyfnp.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23022"; mail-complaints-to="usenet@ciao.gmane.io" Cc: thales1@protonmail.com, 73854@debbugs.gnu.org, monnier@iro.umontreal.ca To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 11:56:06 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 1t2p8w-0005kS-EB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 11:56:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2p8d-00022c-Aq; Mon, 21 Oct 2024 05:55:47 -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 1t2p8R-00021p-SH for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 05:55:37 -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 1t2p8R-0005QW-Hq for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 05:55:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=zrwjAsdoft3LwBv/n7VAxwDBNahvQT9E32m1291GF08=; b=BgJUCNcQv5rOZoJ0+tLRPZDXZeQ5yTWl0A5Y1mt07LnlJNFuHQJYyBXyk94xJiVD7SscMkYOtEGDmrBGXm8ZS45t7MyO4LQ+/rDlYy5Tb53xptVIOLdYzbVAQGaNoPO6WJHCdFiPIIpXBR017pDu7Sg7jzfD7tTiwKcEsWex0u0GClpg/LVKwSKLm+GOoFjWgzqfy4QfbTGJt//T2eZY1mKtcdA3jj36YqL4Di9R1S77/JHI3FvUoLJ/jv6gAoZkQUlqe+dsq5umyjDxiOwpfn49Er9GQlzJKYy0bJ2rh3NVfPVEgMx1DXi9HtJtkpoByVYLUgmOIMhLQz5d9p18qQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2p8r-0008IZ-PY for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 05:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2024 09:56:01 +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.172950453931543 (code B ref 73854); Mon, 21 Oct 2024 09:56:01 +0000 Original-Received: (at 73854) by debbugs.gnu.org; 21 Oct 2024 09:55:39 +0000 Original-Received: from localhost ([127.0.0.1]:50273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2p8U-0008CM-MZ for submit@debbugs.gnu.org; Mon, 21 Oct 2024 05:55:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2p8S-0008Bs-Ia for 73854@debbugs.gnu.org; Mon, 21 Oct 2024 05:55:37 -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 1t2p7v-0005LY-PI; Mon, 21 Oct 2024 05:55:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=zrwjAsdoft3LwBv/n7VAxwDBNahvQT9E32m1291GF08=; b=q5opc9KBp5VQM8uoqdNJ q9EonrIlXqBlkURIAmgs7BoCVHab2S3s3j4zY6aFqU1GcSlkTgsEIVW4uTsXFEQXhou2qneeO2bjD rH9AtU5igRkQcTGC0Y28I8syitSj3AXOKisXxTiur7FZAWp9gMTALTHqiCh/Ovv1VV0Qo7Hd/fWzt pCX6ApZGDZpvNcREm5k9QRUtQ0dfIlHyydvlsadT9Lj9oEY3dT88n2NCzVLMbLnKPoznAZSqtK4e4 vIK0trNl9YCOsSBpLRRvsgXH2YDMFnLyN/1B61OhHLSlDhpuLuiz6HcsfM3hHsonVVPd1KWn31oPg zCM7moOgmSgeNw==; In-Reply-To: <87o73dyfnp.fsf@gmx.net> (message from Stephen Berman on Mon, 21 Oct 2024 11:22:02 +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:294038 Archived-At: > From: Stephen Berman > Cc: Eli Zaretskii , thales1@protonmail.com, > 73854@debbugs.gnu.org > Date: Mon, 21 Oct 2024 11:22:02 +0200 > > > diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el > > index 6fc49800018..f27bd1620e1 100644 > > --- a/lisp/textmodes/tex-mode.el > > +++ b/lisp/textmodes/tex-mode.el > > @@ -2212,6 +2212,7 @@ tex-compile-commands > > t "%r.dvi") > > ("xdvi %r &" "%r.dvi") > > ("\\doc-view \"%r.pdf\"" "%r.pdf") > > + ("evince %r.pdf &" "%r.pdf") > > ("xpdf %r.pdf &" "%r.pdf") > > ("gv %r.ps &" "%r.ps") > > ("yap %r &" "%r.dvi") > > Indeed, with a suitable entry for viewing a PDF, typing `C-c C-c' twice > does the job. In my case, however, a suitable entry is not evince, > since I don't have that program installed here, but I do have mupdf and > with an entry for it, `C-c C-c' calls it and the PDF is displayed. So > this raises the question of whether tex-compile-commands should be > enhanced with all known free software PDF viewers, or, more > maintainer-friendly, turned into a defcustom, so users can just added > their preferred entries. But that's a complementary issue to the > present bug report, since without my patch for tex-compile even with a > suitable entry in tex-compile-commands, `C-c C-v' (tex-view) still > complains "No appropriate ‘.dvi’ file could be found" and does not call > the program specified by tex-dvi-view-command to display the PDF. So > should I just go ahead and install my patch? And if so, to master or to > emacs-30 (which has the same issue)? Please install on master, and thanks. As for the patch to tex-compile-commands, I think both evince and mupdf entries should be added to it. Whether to make it a defcustom is a separate issue, with much wider consequences, and I wouldn't do that at this time.