* 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.
(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))