Function: make-frame-on-current-monitor
make-frame-on-current-monitor is an interactive and byte-compiled
function defined in frame.el.gz.
Signature
(make-frame-on-current-monitor &optional PARAMETERS)
Documentation
Make a frame on the currently selected monitor.
Like make-frame-on-monitor and with the same PARAMETERS as in make-frame.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun make-frame-on-current-monitor (&optional parameters)
"Make a frame on the currently selected monitor.
Like `make-frame-on-monitor' and with the same PARAMETERS as in `make-frame'."
(interactive)
(let* ((monitor-workarea
(cdr (assq 'workarea (frame-monitor-attributes))))
(geometry-parameters
(when monitor-workarea
`((top . ,(nth 1 monitor-workarea))
(left . ,(nth 0 monitor-workarea))))))
(make-frame (append geometry-parameters parameters))))