From 7eb61644be1ef88f01eca77ddb4aacc5d8741a8c Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sat, 23 Nov 2024 20:27:39 +0200 Subject: [PATCH] ; Improve example of display-buffer-alist category in ELisp Reference * doc/lispref/windows.texi (Choosing Window): Use 'add-to-list' and add an example how to override display-buffer-alist entries such as 'inhibit-same-window' by matching the window using the 'category' condition (bug#74457). (cherry picked from commit 5339c6f69eef7aaccd0570a3b70fdf0066b678bc) --- doc/lispref/windows.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 595ac0c2fae..adc294e4c99 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi @@ -2736,10 +2736,10 @@ for example: @example @group -(setopt - display-buffer-alist - (cons '((category . comint) (display-buffer-same-window)) - display-buffer-alist)) +(add-to-list 'display-buffer-alist + '((category . comint) + (display-buffer-same-window) + (inhibit-same-window . nil))) (display-buffer (get-buffer-create "*my-shell*") '(nil (category . comint))) -- 2.39.2