unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juri Linkov <juri@linkov.net>
Cc: 74457@debbugs.gnu.org, iota@whxvd.name
Subject: bug#74457: 30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-window . t)'
Date: Fri, 22 Nov 2024 10:23:22 +0200	[thread overview]
Message-ID: <86iksfoex1.fsf@gnu.org> (raw)
In-Reply-To: <87a5drpwa0.fsf@mail.linkov.net> (message from Juri Linkov on Fri, 22 Nov 2024 09:33:03 +0200)

> Cc: 74457@debbugs.gnu.org
> From: Juri Linkov <juri@linkov.net>
> 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.





  reply	other threads:[~2024-11-22  8:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-21 11:01 bug#74457: 30.0.92; `display-tex-shell-buffer' contains `(inhibit-same-window . t)' Sebastian Miele
2024-11-21 18:09 ` Juri Linkov
2024-11-22  5:03   ` Sebastian Miele
2024-11-22  7:33     ` Juri Linkov
2024-11-22  8:23       ` Eli Zaretskii [this message]
2024-11-23 18:30         ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86iksfoex1.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74457@debbugs.gnu.org \
    --cc=iota@whxvd.name \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).