From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: [PATCH] New tab-bar-detach-tab command Date: Tue, 05 Oct 2021 19:40:49 +0300 Organization: LINKOV.NET Message-ID: <875yub5sry.fsf@mail.linkov.net> References: <87h7e4ikkz.fsf@alphapapa.net> <87pmsrrh7y.fsf@mail.linkov.net> <875yujizgi.fsf@alphapapa.net> <87o88bb21y.fsf@mail.linkov.net> <871r57i2cz.fsf@alphapapa.net> <87k0iu6n6x.fsf@mail.linkov.net> <87lf388zo5.fsf@mail.linkov.net> <87r1d0woq1.fsf@alphapapa.net> <878rz8aruo.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18696"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: Adam Porter , "emacs-devel@gnu.org" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 05 20:29:21 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXpBp-0004hn-R6 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 20:29:21 +0200 Original-Received: from localhost ([::1]:33344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXpBn-0007i2-V9 for ged-emacs-devel@m.gmane-mx.org; Tue, 05 Oct 2021 14:29:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXnob-0001K5-NN for emacs-devel@gnu.org; Tue, 05 Oct 2021 13:01:21 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:57975) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXnoY-00074Z-0N for emacs-devel@gnu.org; Tue, 05 Oct 2021 13:01:17 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 53585E000E; Tue, 5 Oct 2021 17:01:09 +0000 (UTC) In-Reply-To: (Drew Adams's message of "Tue, 5 Oct 2021 15:18:24 +0000") Received-SPF: pass client-ip=217.70.183.196; envelope-from=juri@linkov.net; helo=relay4-d.mail.gandi.net X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:276362 Archived-At: >> Also since 'clone-frame' doesn't duplicate the frame, >> we could add a new command 'duplicate-frame' as well. > > I don't know the signature of the `clone-frame' > that was added to Emacs, but perhaps it could use > a prefix arg to provide what you're proposing: > clone the frame (same frame parameters) AND clone > the window config of the frame in the new frame. Its prefix arg is already used for something useless: (defun clone-frame (&optional frame use-default-parameters) "Make a new frame with the same parameters as FRAME. With a prefix arg (USE-DEFAULT-PARAMETERS), use `default-frame-alist' instead. FRAME defaults to the selected frame. The frame is created on the same terminal as FRAME. If the terminal is a text-only terminal then also select the new frame." (interactive "i\nP") (if use-default-parameters (make-frame-command) (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)) new-frame))) Why does it use the prefix arg just to call another command 'make-frame-command'?