mirror of https://github.com/djcb/mu.git
Merge pull request #1839 from thierryvolpiatto/avoid_looping
Avoid looping through buffer-list when not needed
This commit is contained in:
commit
1f1415c91f
|
@ -795,11 +795,11 @@ appropriate flag at the message forwarded or replied-to."
|
|||
(mu4e~proc-remove docid))
|
||||
;; kill any remaining buffers for the draft file, or they will hang around...
|
||||
;; this seems a bit hamfisted...
|
||||
(dolist (buf (buffer-list))
|
||||
(when (and (buffer-file-name buf)
|
||||
(string= (buffer-file-name buf) path))
|
||||
(if message-kill-buffer-on-exit
|
||||
(kill-buffer buf))))
|
||||
(when message-kill-buffer-on-exit
|
||||
(dolist (buf (buffer-list))
|
||||
(and (buffer-file-name buf)
|
||||
(string= (buffer-file-name buf) path)
|
||||
(kill-buffer buf))))
|
||||
(mu4e~switch-back-to-mu4e-buffer)
|
||||
(mu4e-message "Message sent"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue