narf-popup-close-all => narf/popup-close-all
This commit is contained in:
parent
1e1cbc86c3
commit
94bfda6b78
1 changed files with 2 additions and 2 deletions
|
@ -219,7 +219,7 @@
|
||||||
(if (narf/popup-p (selected-window))
|
(if (narf/popup-p (selected-window))
|
||||||
(setq window (selected-window))
|
(setq window (selected-window))
|
||||||
(unless dont-close-all
|
(unless dont-close-all
|
||||||
(narf-popup-close-all dont-kill))))
|
(narf/popup-close-all dont-kill))))
|
||||||
(when (and window (window-live-p window))
|
(when (and window (window-live-p window))
|
||||||
;; REPL buffer
|
;; REPL buffer
|
||||||
(cond ((and (derived-mode-p 'comint-mode)
|
(cond ((and (derived-mode-p 'comint-mode)
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
(kill-buffer (window-buffer window)))
|
(kill-buffer (window-buffer window)))
|
||||||
(delete-window window)))
|
(delete-window window)))
|
||||||
|
|
||||||
(defun narf-popup-close-all (&optional dont-kill-buffers)
|
(defun narf/popup-close-all (&optional dont-kill-buffers)
|
||||||
"Closes all popup windows (and kills the buffers if DONT-KILL-BUFFERS is non-nil)"
|
"Closes all popup windows (and kills the buffers if DONT-KILL-BUFFERS is non-nil)"
|
||||||
(interactive)
|
(interactive)
|
||||||
(mapc (lambda (w) (narf/popup-close w dont-kill-buffers))
|
(mapc (lambda (w) (narf/popup-close w dont-kill-buffers))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue