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#74457: 30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-window . t)' Date: Fri, 22 Nov 2024 10:23:22 +0200 Message-ID: <86iksfoex1.fsf@gnu.org> References: <9f44f276-9f09-4a6c-b161-67ebc61dcd4c@whxvd.name> <87a5dsfogp.fsf@mail.linkov.net> <932e83a2-96fe-444c-b6d1-d041493ece94@whxvd.name> <87a5drpwa0.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27611"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74457@debbugs.gnu.org, iota@whxvd.name To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 09:24:13 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 1tEOxY-000713-Ox for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 09:24:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEOxQ-00087i-Uk; Fri, 22 Nov 2024 03:24:04 -0500 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 1tEOxO-00087A-VW for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 03:24:02 -0500 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 1tEOxO-0008RS-Mg for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 03:24:02 -0500 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=8J6Frv+JTiae1i5TzUwEc471uH6B5N2Ygf7xUDbteXE=; b=RYAympq3mA9u/ZmYO7yCWzSGQDB/MJeWJdXa4MYzw1/6r3qz4Ad+gIBDrEPL1AiU7665YMuDLflL0lX+Re6st1MbiVZP0yRystkxG51bGnr5BzpZT3dsc/49UwVQpOKQ5OSzjCNOc2KRIAwiQNQi8RjUGndWhiornUSsTeDRxbMzGB05j4qgYugmYaMLTtnh5Swsm0o67Q9TkfhuHOgTFntcbx3hF3VgA10zsdDmkKUc4TV+UvDizEiCxvi/gt72lDSRQBFgGbY/NwcF6kA1zuOz2BRbiWrOUa56lBlvq9sap3kISO7r0CrWCPFjsxaLIlqx2/hTQ/BSDl0BT2YRKA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEOxO-00050V-9k for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 03:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 08:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74457 X-GNU-PR-Package: emacs Original-Received: via spool by 74457-submit@debbugs.gnu.org id=B74457.173226381319194 (code B ref 74457); Fri, 22 Nov 2024 08:24:02 +0000 Original-Received: (at 74457) by debbugs.gnu.org; 22 Nov 2024 08:23:33 +0000 Original-Received: from localhost ([127.0.0.1]:52951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEOwv-0004zW-0K for submit@debbugs.gnu.org; Fri, 22 Nov 2024 03:23:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEOwt-0004zI-2m for 74457@debbugs.gnu.org; Fri, 22 Nov 2024 03:23:31 -0500 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 1tEOwn-0008Od-F3; Fri, 22 Nov 2024 03:23:25 -0500 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=8J6Frv+JTiae1i5TzUwEc471uH6B5N2Ygf7xUDbteXE=; b=qF5RIOwdsmiX lEybyDWnlkr8027JzHuVH4s3JuvmG79PFwJfJRydgI5ojlA5Pks8Cvb3xJRA7pp7zpxEecDhJr/lw 9iPJk3RjOeiMtjp2ytjP3RWCeQvHu0Pnt4hGo1Ep+Pbsyvb7SP1eMMDsD87nSxixVLBeh9pZ0oIIG Mf4DrJVtqtq1iWPF1YP3KBCz7c12cafBIgUxcGrlFpQh//i+1Isovgsg3Z8fKLWPiqf7NiwamPr/5 OX3kd2O6vY2FsxzfQquL8QWa+H98HVYRNPidSwrDe9/1ASdta0lUoHVjYUHYhykTFUQEGuIyrIZsB gYr2Y7xeBDHo7MHlG6qbxA==; In-Reply-To: <87a5drpwa0.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 22 Nov 2024 09:33:03 +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:295780 Archived-At: > Cc: 74457@debbugs.gnu.org > From: Juri Linkov > Date: Fri, 22 Nov 2024 09:33:03 +0200 > > >>> `display-tex-shell-buffer' (defined in `window') is marked obsolete with > >>> the message "use a `(category . tex-shell)' condition in > >>> `display-buffer-alist'." > >>> > >>> The default value of `display-tex-shell-buffer' contains > >>> `(inhibit-same-window . t)'. I feel that doing > >>> > >>> (add-to-list 'display-buffer-alist > >>> (cons t (cons #'display-buffer-same-window nil))) > >>> > >>> should have the desired effect of displaying a TeX shell buffer in the > >>> same window (when compiling TeX files in latex-mode), without having to > >>> alter the value of the obsolete variable `display-tex-shell-buffer'. > >>> But `(inhibit-same-window . t)' in the default value prevents that from > >>> happening. Instead another frame is popped up or reused. > >> You can override `inhibit-same-window' by the corresponding category: > >> (add-to-list 'display-buffer-alist > >> '((category . tex-shell) > >> (display-buffer-same-window) > >> (inhibit-same-window . nil))) > > > > Thank you. That works. > > Ok, then I propose to update the example in > (info "(elisp) Choosing Window") > with customization above that uses 'add-to-list', > and also demonstrates how to override alist entries > like 'inhibit-same-window'. Please do that on the emacs-30 branch, and thanks.