GNU bug report logs - #74457
30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-window . t)'

Previous Next

Package: emacs;

Reported by: Sebastian Miele <iota <at> whxvd.name>

Date: Thu, 21 Nov 2024 11:02:02 UTC

Severity: normal

Found in version 30.0.92

Fixed in version 30.0.60

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Sebastian Miele <iota <at> whxvd.name>
Cc: 74457 <at> debbugs.gnu.org
Subject: bug#74457: 30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-window . t)'
Date: Thu, 21 Nov 2024 20:09:42 +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)))




This bug report was last modified 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.