Function: zone--choose-window-and-buffer
zone--choose-window-and-buffer is a byte-compiled function defined in
zone.el.gz.
Signature
(zone--choose-window-and-buffer)
Documentation
Choose the current window and an acceptable buffer.
Check each buffer to determine whether it is suitable for zoning, starting with the buffer in the current window. For example, encrypted files, certain source modules, or command sessions may be inappropriate if they might expose privileged or secret information.
Source Code
;; Defined in /usr/src/emacs/lisp/play/zone.el.gz
(defun zone--choose-window-and-buffer ()
"Choose the current window and an acceptable buffer.
Check each buffer to determine whether it is suitable for zoning,
starting with the buffer in the current window. For example, encrypted
files, certain source modules, or command sessions may be inappropriate
if they might expose privileged or secret information."
(cons
(selected-window)
(or (seq-find #'zone--buffer-zoneable-p
(buffer-list (selected-frame)))
;; only create *scratch* if we need one as fall back
(get-scratch-buffer-create))))