; 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).
This commit is contained in:
parent
e14007ad63
commit
5339c6f69e
1 changed files with 4 additions and 4 deletions
|
@ -2646,10 +2646,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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue