Fix window--display-buffer advice #1173
Forgot to have the :filter-return advice return the window (whoops!)
This commit is contained in:
parent
81e30dc13c
commit
93132e43c1
1 changed files with 2 additions and 1 deletions
|
@ -586,7 +586,8 @@ Accepts the same arguments as `display-buffer-in-side-window'. You must set
|
|||
This was not so until recent Emacs 27 builds, where it causes breaking errors.
|
||||
This advice ensures backwards compatibility for Emacs <= 26 users."
|
||||
(when (and (windowp window) display-buffer-mark-dedicated)
|
||||
(set-window-dedicated-p window display-buffer-mark-dedicated)))
|
||||
(set-window-dedicated-p window display-buffer-mark-dedicated))
|
||||
window)
|
||||
(advice-add #'window--display-buffer :filter-return #'+popup*set-window-dedicated))
|
||||
|
||||
(unless EMACS26+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue