From c42bb9d75caeb94fc0223aab27a7819930288aef Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 1 Sep 2021 16:27:06 +0200 Subject: [PATCH] Filter out the `name' parameter in clone-frame * lisp/frame.el (clone-frame): Filter out the `name' parameter, because two frames shouldn't have the same name and this will lead to a warning. --- lisp/frame.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/frame.el b/lisp/frame.el index f36a34db7d7..60234fc2ae9 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -798,7 +798,10 @@ also select the new frame." (interactive "i\nP") (if use-default-parameters (make-frame-command) - (let* ((default-frame-alist (frame-parameters frame)) + (let* ((default-frame-alist (seq-filter + (lambda (elem) + (not (eq (car elem) 'name))) + (frame-parameters frame))) (new-frame (make-frame))) (unless (display-graphic-p) (select-frame new-frame)) -- 2.39.2