From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#63956: 29.0.91; tex-mode display problem in emacs-29 Date: Thu, 08 Jun 2023 13:44:40 -0400 Organization: disorganization Message-ID: <87ttvhkfw7.fsf@gnu.org> References: <83h6ri2u2i.fsf@gnu.org> Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37414"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 63956@debbugs.gnu.org Cancel-Lock: sha1:ekDtDi2bcUe5FkTo1oku+KKzut8= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 08 19:45:25 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 1q7JhN-0009Zq-0y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 08 Jun 2023 19:45:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7Jh3-0003HT-6v; Thu, 08 Jun 2023 13:45:05 -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 1q7Jh0-0003Gh-J5 for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 13:45: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 1q7Jh0-0006Km-AF for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7Jh0-0000lP-58 for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 13:45:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Jun 2023 17:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63956 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16862463012911 (code B ref -1); Thu, 08 Jun 2023 17:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jun 2023 17:45:01 +0000 Original-Received: from localhost ([127.0.0.1]:57505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7Jgy-0000kt-Rj for submit@debbugs.gnu.org; Thu, 08 Jun 2023 13:45:01 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7Jgu-0000kg-GH for submit@debbugs.gnu.org; Thu, 08 Jun 2023 13:44:58 -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 1q7Jgs-0003Eg-4i for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 13:44:54 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7Jgq-0006JM-Ao for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 13:44:53 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1q7Jgn-0008lE-IH for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 19:44:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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:263136 Archived-At: > * Eli Zaretskii [2023-06-08 12:15:49 +0300]: > >> From: Jeff Norden >> Date: Wed, 7 Jun 2023 12:52:10 -0500 >> >> I've been trying out the 2nd emacs-29 pretest. It seems great. >> I haven't needed to tweak a single line of my .emacs or any of the >> custom files it loads (about 1200 lines in all). The new >> 'with-restriction' feature may simplify a project that I've been >> playing with for a while. >> >> However, I have found a minor issue with a change made to tex-mode. >> The simple calls to `display-buffer' in tex-mode.el have been replaced >> with: >> (display-buffer tex-shell display-comint-buffer-action) >> The default value for display-comint-buffer-action is set from >> display-buffer--same-window-action. >> >> As a result, the default behavior of `tex-buffer' or `tex-region' is >> that the document you are editing *disappears*, and and the window it >> was displayed in shows just the error messages (or lack thereof) from >> running TeX. You then need to switch back to the document's buffer to >> continue editing. This behavior makes no sense. It would be >> equivalent to running `compile' on a C file, and then only seeing the >> output from make/gcc/etc, with the source code hidden. The correct >> behavior in both cases is to show the process output in a window >> alongside the source. Anyone who has been using tex-mode for years >> would certainly find this new behavior disruptive, although it is >> easily corrected. >> >> I'm not sure if the `display-buffer' calls in tex-mode.el need to have >> an action argument, but if they do, it should be similar to what is >> used in compile.el. I'll be the first to admit that I'm not >> particularly well-versed in the current intricacies of buffer display >> actions (nor do I have any real desire to become so :-). > > Adding Sam, who made these changes in tex-mode.el. Eli, you sent your message to the amazon.com address. Why? The commit is tagged with my correct gnu.org address. Please only use sds@gnu.org for all communications. > Sam, any comments? I do not use `tex-buffer', but C-c C-f (which runs the command `tex-file') does exactly what it should - creates a new window showing `*tex-shell*'. Moreover, I just tried C-c C-b (which runs the command `tex-buffer') and it created a new `*tex-shell*' window too (or re-used an existing one) without replacing the window that shows my LaTeX. When I made the change, I was trying to fix https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52467 (re-use the existing `*tex-shell*' window) and I think I did. Jeff, could you please reproduce the issue in `emacs -Q`? Thank you! -- Sam Steingold (https://aphar.dreamwidth.org/) on Pop 22.04 (jammy) X 11.0.12101004 https://lastingimpactpsychology.com https://steingoldpsychology.com https://honestreporting.com https://www.peaceandtolerance.org/ Live Lisp and prosper.