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#63956: 29.0.91; tex-mode display problem in emacs-29 Date: Mon, 12 Jun 2023 14:49:05 +0300 Message-ID: <83legoyk7i.fsf@gnu.org> References: <83h6ri2u2i.fsf@gnu.org> <87ttvhkfw7.fsf@gnu.org> <8335313ise.fsf@gnu.org> <87o7lojthj.fsf@gnu.org> <837csb2731.fsf@gnu.org> <837csazff2.fsf@gnu.org> <83ttvexa1n.fsf@gnu.org> <83pm61yigx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7042"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63956@debbugs.gnu.org, sds@gnu.org To: Jeff Norden , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 12 13:50:16 2023 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 1q8g3s-0001fk-DR for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Jun 2023 13:50:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8g3f-00060a-Lg; Mon, 12 Jun 2023 07:50:03 -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 1q8g3e-00060Q-He for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2023 07:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q8g3e-0000gt-6W for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2023 07:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q8g3e-0000Cz-2p for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2023 07:50: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: Mon, 12 Jun 2023 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63956 X-GNU-PR-Package: emacs Original-Received: via spool by 63956-submit@debbugs.gnu.org id=B63956.1686570542694 (code B ref 63956); Mon, 12 Jun 2023 11:50:02 +0000 Original-Received: (at 63956) by debbugs.gnu.org; 12 Jun 2023 11:49:02 +0000 Original-Received: from localhost ([127.0.0.1]:39115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8g2f-0000At-Dw for submit@debbugs.gnu.org; Mon, 12 Jun 2023 07:49:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q8g2b-0000AT-5i for 63956@debbugs.gnu.org; Mon, 12 Jun 2023 07:49:00 -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 1q8g2U-0000SM-Qg; Mon, 12 Jun 2023 07:48:50 -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=85N9rOpfR65SfxXzWTzJKt7uUNq5j4/6vt8E3InidmY=; b=sPP/PUWOtzIY Lao6nbefogBYZcYlaQL130DeFU/bwpApNjrCAD4GAkNl4aBXhoEehPecB/FBJ3oD9aaaNBJO0UAgP XVjRpMQcdQVvuwJL5UJYJ+Da2hEigFYuguR6LGu7x5WzhX7B6sGzv8pLAdp1C+8FgIFV2gauefSfj AnbGRZ4aHA/kd5oDJ1PHkpibprMJDmeeDI5oo1rP/Kue+yZRqXX9l/JQzfw/MRiC+Si/FnXSRbRpe dcYV+NPR+is76TuLUgiZTdqxgrpr6gWxy5hw3xUwQI9W8GPSiyPlEsqBSYQf9Ut8Yls5+0rcAVwIz Dsa79GL73nTR0yQU0U5OiA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8g2U-0005T6-9H; Mon, 12 Jun 2023 07:48:50 -0400 In-Reply-To: (message from Jeff Norden on Sun, 11 Jun 2023 15:12:08 -0500) 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:263263 Archived-At: > From: Jeff Norden > Date: Sun, 11 Jun 2023 15:12:08 -0500 > Cc: monnier@iro.umontreal.ca, sds@gnu.org, 63956@debbugs.gnu.org > > On Sun, Jun 11, 2023 at 1:14 PM Eli Zaretskii wrote: > > ... > > > Using -tex-shell-buffer-action for a docview buffer is perhaps a bit > > > odd > > > > You could be right, but I couldn't find any callers of that function, > > so it was hard for me to reason about that specific case. Stefan, > > since you introduced tex-cmd-doc-view into tex-mode.el, could you take > > a look and tell whether using display-tex-shell-buffer-action in its > > default value there makes sense? If not, what would be a better > > default? > > Took me a bit to figure that out. Choosing the docview option from > `tex-compile' results in pre-pending "tex-cmd-" to "doc-view" and then > calling `tex-cmd-doc-view', which simply opens the pdf file (in > docview mode) with pop-to-buffer. OK, thanks. But did you see any difference between doing this the way Emacs 28 did (without 2nd argument to pop-to-buffer) and the way the code now does on the emacs-29 branch? IOW, does this scenario produce reasonable results after my recent changes? > The other tex-compile commands that > preview the document do so by running an external program such as > ghostview or xdvi. That is why I was thinking that opening in a new > frame might be appropriate. > > I've never used tex-compile, and I wonder if it gets much use in > general. One of the ideas I was thinking of was adding it as a > sub-menu of the TeX menubar entry, which would make it easier to use. > Another thing, which I now realize is already listed as a 'fixme' item > in tex-mode.el, is to check that, e.g., the corresponding pdf file is > up to date (newer than the tex source) before previewing it. Stefan, your comments on this, and in particular on the tex-cmd-doc-view function, will be appreciated.