mu4e-window: don't return dead linked window
It can happen, let it create a new buffer instead.
This commit is contained in:
@ -116,7 +116,7 @@ treated as =\\'frame."
|
|||||||
|
|
||||||
If CREATE is non-nil, the headers buffer is created if the
|
If CREATE is non-nil, the headers buffer is created if the
|
||||||
generated name does not already exist."
|
generated name does not already exist."
|
||||||
(let* ((buffer-name
|
(let* ((buffer-name ;; buffer-or-name
|
||||||
(or
|
(or
|
||||||
;; buffer name generator func. If a user wants
|
;; buffer name generator func. If a user wants
|
||||||
;; to supply its own naming scheme, we use that
|
;; to supply its own naming scheme, we use that
|
||||||
@ -131,6 +131,7 @@ generated name does not already exist."
|
|||||||
;; there is no such linked buffer -- it is
|
;; there is no such linked buffer -- it is
|
||||||
;; detached -- raise an error.
|
;; detached -- raise an error.
|
||||||
(and (mu4e-current-buffer-type-p 'view)
|
(and (mu4e-current-buffer-type-p 'view)
|
||||||
|
(buffer-live-p mu4e-linked-headers-buffer)
|
||||||
mu4e-linked-headers-buffer)
|
mu4e-linked-headers-buffer)
|
||||||
;; if we're already in a headers buffer then
|
;; if we're already in a headers buffer then
|
||||||
;; that is the one we use.
|
;; that is the one we use.
|
||||||
|
|||||||
Reference in New Issue
Block a user