diff options
| author | Juri Linkov | 2019-03-27 23:46:39 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-03-27 23:46:39 +0200 |
| commit | 4da44cdaaf792c96164ba60076866a9df4d76002 (patch) | |
| tree | a95e727e88359e218563deac7e92b1bc5804c8fd | |
| parent | 3f87676e7561c65233e56c6d71a70e371406fcca (diff) | |
| download | emacs-4da44cdaaf792c96164ba60076866a9df4d76002.tar.gz emacs-4da44cdaaf792c96164ba60076866a9df4d76002.zip | |
* lisp/frame.el (make-frame-on-monitor): Add default value. (Bug#34516)
| -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)) |