bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74457: 30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-w


From: Juri Linkov
Subject: bug#74457: 30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-window . t)'
Date: Fri, 22 Nov 2024 09:33:03 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)

>>> `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'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]