Mark all temp buffers as unreal

Hopefully there are no plugins that use temp buffers to display things!
This commit is contained in:
Henrik Lissner
2018-06-16 21:02:54 +02:00
parent bf44c1abcc
commit ec6372ef66

View File

@ -112,6 +112,7 @@ The exact criteria for a real buffer is:
If BUFFER-OR-NAME is omitted or nil, the current buffer is tested."
(when-let* ((buf (ignore-errors (window-normalize-buffer buffer-or-name))))
(or (buffer-local-value 'doom-real-buffer-p buf)
(not (doom-temp-buffer-p buf))
(run-hook-with-args-until-success 'doom-real-buffer-functions buf)
(not (run-hook-with-args-until-success 'doom-unreal-buffer-functions buf)))))