Add buffer-live-p check to doom-real-buffer-p
This commit is contained in:
parent
0f8baf3f3e
commit
863fc1a6bb
1 changed files with 2 additions and 1 deletions
|
@ -129,7 +129,8 @@ If BUFFER-OR-NAME is omitted or nil, the current buffer is tested."
|
||||||
(stringp buffer-or-name)
|
(stringp buffer-or-name)
|
||||||
(signal 'wrong-type-argument (list '(bufferp stringp) buffer-or-name)))
|
(signal 'wrong-type-argument (list '(bufferp stringp) buffer-or-name)))
|
||||||
(when-let* ((buf (get-buffer buffer-or-name)))
|
(when-let* ((buf (get-buffer buffer-or-name)))
|
||||||
(and (not (doom-temp-buffer-p buf))
|
(and (buffer-live-p buf)
|
||||||
|
(not (doom-temp-buffer-p buf))
|
||||||
(or (buffer-local-value 'doom-real-buffer-p buf)
|
(or (buffer-local-value 'doom-real-buffer-p buf)
|
||||||
(run-hook-with-args-until-success 'doom-real-buffer-functions buf)
|
(run-hook-with-args-until-success 'doom-real-buffer-functions buf)
|
||||||
(not (run-hook-with-args-until-success 'doom-unreal-buffer-functions buf))))))
|
(not (run-hook-with-args-until-success 'doom-unreal-buffer-functions buf))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue