From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" 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:53:39 +0200 Message-ID: <87jze1ybf0.fsf@gmx.net> References: <86ed4cl8no.fsf@gnu.org> <87ldykxrba.fsf@gmx.net> <8634ksl34a.fsf@gnu.org> <87o73dyfnp.fsf@gmx.net> <86o73dhjbe.fsf@gnu.org> Reply-To: Stephen Berman Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3969"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: thales1@protonmail.com, 73854@debbugs.gnu.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 12:54:51 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 1t2q3l-0000qS-UU for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 12:54:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2q3Z-0003Ks-5a; Mon, 21 Oct 2024 06:54:37 -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 1t2q3Y-0003Ke-5d for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 06:54:36 -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 1t2q3X-0004Jt-SF for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 06:54: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:Date:References:In-Reply-To:From:To:Subject; bh=4+gKPE6/Q/edjwduylJ14zWxw8E0PT0+5Rgohk9E2z4=; b=O9DpIlkKNDiwaIfLUQ+FqGzcruM5aPsH87CQS5uYhCAR+2c2gNwSXomlBu2uVqo9tc2MsIEYvunBuTiVB3Uc1urCfjNyNbcfnUW+H/FG+Z2GBQJDs60/FvV2tjXonb51AMIxC8EbpSdjLxhP9ZvvgTy2f7ya9zomWHHU9z4bQEbpYwnKMkjqbqZWOr7QcKZWbBsrdgD7R9YacNIOOwgF+JJNv49z9p7EEFeps3aL/BCW0cuoHQmFF5sT1noQxxomzAZfBNtKXTwRP6UWqbIW08z6KNCUVWicpMDiJXU/WFxq0wqOoKH4VrifAvr3y3YXX49b1zVOLfH+ym91ZUmBCw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2q3x-0002UR-LJ for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 06:55:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Oct 2024 10:55: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.17295080669519 (code B ref 73854); Mon, 21 Oct 2024 10:55:01 +0000 Original-Received: (at 73854) by debbugs.gnu.org; 21 Oct 2024 10:54:26 +0000 Original-Received: from localhost ([127.0.0.1]:50389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2q3N-0002TR-VF for submit@debbugs.gnu.org; Mon, 21 Oct 2024 06:54:26 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:35051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2q3K-0002TB-9H for 73854@debbugs.gnu.org; Mon, 21 Oct 2024 06:54:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1729508021; x=1730112821; i=stephen.berman@gmx.net; bh=4+gKPE6/Q/edjwduylJ14zWxw8E0PT0+5Rgohk9E2z4=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=FZIFUuF6LnIxm5fcbs2oY+FaVxu7QyhhfDafw83gQWBeOKrBhjvfYpNojQVFs761 T2Jk7aJka2CwvHSSA/5k37Ka6iKrfIejdpTKpN551ZZy++yJcL6AAozck1rjzSun+ qrkcbM5bw/lTW2bLx8p8aolkykMkuHs/K0HNR5+LT4/M8XTzravO9/aNcEtbqpbp4 w1oq7f4LUlyxawybcaWgk2XV42IiO+ZH2MlRV0cGIjJ2Q/7ZMMOaJ4lHjoPebHnt4 l8rp7MF0DrgxYEr0DPJ1XSjbw7C+r9avtsl2Vje5ZaTbFv1P6byyM3qw1EgYbSsgF eL/FPGtkYgiDDwgwng== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([88.130.48.115]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N7iCg-1txdXq47CE-014nOP; Mon, 21 Oct 2024 12:53:41 +0200 In-Reply-To: <86o73dhjbe.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Oct 2024 12:55:01 +0300") X-Provags-ID: V03:K1:ckZ+sMWsya0gUDD/GMaZ3lmKbDoiwBCRKse1KXrxTU55Bmc7Yuu V3Wj22xioxAbvelR9iznerwfvWYdQfghgUYJyjm6FFcn6Iecta7MwmKizeeTLvmc/kT/C6Q KIbiwTyjSzAXj15P4AFqFLaxfyFybb0C8TP9z8PPV6Z9JOKPHsJoEGm+LmpQuuHWtW7oAH2 /GpubwCQJIu+d3CdWq/cA== UI-OutboundReport: notjunk:1;M01:P0:To78n8Uliag=;2QiGHFtyDyw2XgkXfCkgEbTLMx4 OR2q6bGGdLRqcgut7k3JrlvghauKw9ia3FV8DylMRnUtmgo6RwUe43YNmiy/MjCUSYDQXVJOM SVMDwURI1tDDM6N1pJmiswqbnIEquJzTptY1cCm2+qJowZEjb5Bckk/wrYw6b/QPzSXkh8eL2 YTZBs7741QNOK0CYiqSzleqtv+ktp9z738gsgYh4nN3CMvBZcbj29leYvQgb2pOEGtDGoGlFi /Lzd+a+7HUi/gf8xHnr18d37C0e6YGa8r06Uk9qffnRuC8yN3Se6D0FwZd5cZ7Cual4Wafe+B rZJExclJDPEQWyV5mpTVoixU6wfK6VMFrJrhi1oPtAt3Nyl/Mm1PV/S7jQ1VBy4GuGskVNNdW DrkJe7twhP2SC/apRpPHbW8yrZPUwOwjtJTv0SOF4r6EMaVTp7rJSajeEjF+6M2KpxWrQ1Mag oBI8XmWrYXO/iiWLojaaO+04K56Q5KJ0GxoGhLA52gxixq/+sy5ufMgcxHw9eXIv3QsxHAE3i KrtRNny6pqCX3GMxpD0UMuKUWMZhor1kyA0mLMxVQJJVMy5v47nFWr46uFKAxWkcb984VmeDX eZDOGaF2vO9tN4LdftcythG12aKp/Zpz68NOLwNuWhmElM5rzOigNy/e5HOElGy/uBva0aKhR iNYrMPZU3x/arg57GiQ92vZbry3glAhexcaxX5aEQgC0/oUjdRUhKVvqCNiYTI14dgG3WGcXM aSQ7KU94kr2aoyR0F9gH9afkKCcHQ/G09+wehQhYAxkdXccjRoBgCAap7fFADyhlUDkvkvEt 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:294044 Archived-At: On Mon, 21 Oct 2024 12:55:01 +0300 Eli Zaretskii wrote: >> From: Stephen Berman >> Cc: Eli Zaretskii , thales1@protonmail.com, >> 73854@debbugs.gnu.org >> Date: Mon, 21 Oct 2024 11:22:02 +0200 >>=20 >> > 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") >>=20 >> 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 =E2=80=98.dvi=E2=80=99 file could be found" an= d 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. Done in commit 1f8fbae8df7. I also updated the doc string of tex-print-file to mention tex-compile. > As for the patch to tex-compile-commands, I think both evince and > mupdf entries should be added to it. I added these in the commit as well. > Whether to make it a defcustom > is a separate issue, with much wider consequences, and I wouldn't do > that at this time. Ok. Should the OP confirm the fix before we close the bug? Steve Berman