From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34715: 26.1; (1) Add `clone-frame', (2) bind it to `C-x 5 2' Date: Mon, 04 Mar 2019 20:14:20 +0200 Message-ID: <83d0n6eccj.fsf@gnu.org> References: <<17bef02b-7dd4-4086-828f-59488a836ac1@default>> <<83sgw2ehzu.fsf@gnu.org>> <8f86ae8b-5cd8-4f0a-ab85-39192e2cdbe7@default> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="35623"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34715@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 04 19:15:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0s7Q-0009BF-Ei for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 19:15:16 +0100 Original-Received: from localhost ([127.0.0.1]:58500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0s7P-0006IU-8a for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Mar 2019 13:15:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0s7G-0006HC-43 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 13:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0s7E-0003ys-94 for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 13:15:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46607) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0s7C-0003ua-KS for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 13:15:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0s7C-0002PU-7h for bug-gnu-emacs@gnu.org; Mon, 04 Mar 2019 13:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2019 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34715 X-GNU-PR-Package: emacs Original-Received: via spool by 34715-submit@debbugs.gnu.org id=B34715.15517232779223 (code B ref 34715); Mon, 04 Mar 2019 18:15:02 +0000 Original-Received: (at 34715) by debbugs.gnu.org; 4 Mar 2019 18:14:37 +0000 Original-Received: from localhost ([127.0.0.1]:60151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0s6n-0002Og-Ii for submit@debbugs.gnu.org; Mon, 04 Mar 2019 13:14:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0s6l-0002OT-Hu for 34715@debbugs.gnu.org; Mon, 04 Mar 2019 13:14:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0s6c-0002Ma-5G; Mon, 04 Mar 2019 13:14:28 -0500 Original-Received: from [176.228.60.248] (port=4799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h0s6b-0004kk-9D; Mon, 04 Mar 2019 13:14:26 -0500 In-reply-to: <8f86ae8b-5cd8-4f0a-ab85-39192e2cdbe7@default> (message from Drew Adams on Mon, 4 Mar 2019 09:25:20 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156037 Archived-At: > Date: Mon, 4 Mar 2019 09:25:20 -0800 (PST) > From: Drew Adams > Cc: 34715@debbugs.gnu.org > > > > Why change the default behavior of `C-x 5 2'? If I want the > > > buffer of the selected window shown in another frame then I > > > typically want that frame to have the same parameters. > > > > That's what default-frame-alist is for. > > I already have what I need for my own use. Here > I'm proposing something for Emacs - that's the > point of this enhancement. default-frame-alist is for everyone, i.e. "for Emacs". Not just for you and me. > > If you are used to change the > > parameters of your frames a lot during their lifetime, which > > presumably means each of your frames might look and work differently, > > it is not entirely clear to me that "C-x 5 2" should produce a clone > > of the random frame where you just happened to type the command. > > Sorry, I don't understand your point there. > > I don't just "happen to type the command" in "random > frames". I hit its key (`C-x 5 2', for me) with a > frame selected that I want to clone. That's you. Me, I type "C-x 5 2" whenever I need another frame, regardless of the frame that happens to be selected at that time. With your suggestion, I'll need to think which frame I want to select before making a new one. That's a disadvantage for me. > > It could even cause trouble/unexpected behavior, > > with some exotic parameters, at least in principle. > > I don't see that either. Could you give an example? A frame parameter can be anything at all. Cloning all of them sometimes makes little sense. You yourself gave an example: the position of the frame. > > > 3. BTW, I think it would be good to add this to the doc string of > > > `make-frame-command': > > > > > > Return the new frame. > > > > "When called from Lisp, return the new frame." > > It returns the frame no matter how it's called. But it makes no sense to talk about the return value in interactive use, does it?