diff options
author | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-01-22 08:20:19 +0100 |
---|---|---|
committer | Thierry Volpiatto <thierry.volpiatto@gmail.com> | 2018-01-22 08:20:19 +0100 |
commit | c00949a5136a3cb7ab82e4b2f3e33e92ee2b0734 (patch) | |
tree | 1efa6e4c809ab1263e692c0d4b835e4138683a89 /helm.el | |
parent | 33211f3b5e2305179528bff1439c597809d7b45f (diff) |
Ensure to not quit helm session when deleting another
frame while helm running.
* helm.el (helm--delete-frame-function): Check if the deleted frame
handle helm-buffer.
Diffstat (limited to 'helm.el')
-rw-r--r-- | helm.el | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -2766,10 +2766,13 @@ Note that this feature is available only with emacs-25+." (display-buffer buffer '(display-buffer-pop-up-frame . nil)))) -;; When user delete manually helm frame ensure helm session is -;; quitted. -(defun helm--delete-frame-function (_frame) - (when helm-alive-p (helm-keyboard-quit))) +;; Ensure to quit helm when user delete helm frame manually. +;; If user deletes another frame keep session running. +(defun helm--delete-frame-function (frame) + (when (and helm-alive-p + ;; FRAME is handling helm-buffer + (get-buffer-window helm-buffer frame)) + (helm-keyboard-quit))) (add-hook 'delete-frame-functions 'helm--delete-frame-function) ;;; Initialize |