diff options
| -rw-r--r-- | lisp/frame.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/frame.el b/lisp/frame.el index 7cfe546ca6a..6cb12473725 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -676,12 +676,16 @@ The optional argument PARAMETERS specifies additional frame parameters." | |||
| 676 | "Make a frame on monitor MONITOR. | 676 | "Make a frame on monitor MONITOR. |
| 677 | The optional argument DISPLAY can be a display name, and the optional | 677 | The optional argument DISPLAY can be a display name, and the optional |
| 678 | argument PARAMETERS specifies additional frame parameters." | 678 | argument PARAMETERS specifies additional frame parameters." |
| 679 | (interactive (list (completing-read | 679 | (interactive |
| 680 | (format "Make frame on monitor: ") | 680 | (list |
| 681 | (or (delq nil (mapcar (lambda (a) | 681 | (let* ((default (cdr (assq 'name (frame-monitor-attributes))))) |
| 682 | (cdr (assq 'name a))) | 682 | (completing-read |
| 683 | (display-monitor-attributes-list))) | 683 | (format "Make frame on monitor (default %s): " default) |
| 684 | '(""))))) | 684 | (or (delq nil (mapcar (lambda (a) |
| 685 | (cdr (assq 'name a))) | ||
| 686 | (display-monitor-attributes-list))) | ||
| 687 | '("")) | ||
| 688 | nil nil nil nil default)))) | ||
| 685 | (let* ((monitor-workarea | 689 | (let* ((monitor-workarea |
| 686 | (catch 'done | 690 | (catch 'done |
| 687 | (dolist (a (display-monitor-attributes-list display)) | 691 | (dolist (a (display-monitor-attributes-list display)) |