From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#32736: 26; Bind `C-x 5 2' to `clone-frame' by default Date: Fri, 14 Sep 2018 20:57:54 +0200 Message-ID: <87k1nnoqj1.fsf@gmail.com> References: <1286c155-b91e-4a13-9b1a-b77b9d94887f@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536951429 13949 195.159.176.226 (14 Sep 2018 18:57:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2018 18:57:09 +0000 (UTC) Cc: 32736@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 20:57:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0tH6-0003Xe-2u for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2018 20:57:04 +0200 Original-Received: from localhost ([::1]:52981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0tJC-00031m-AW for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2018 14:59:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0tJ6-00031b-Rd for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 14:59:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0tJ0-000567-Qq for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 14:59:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36657) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g0tJ0-00053R-It for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g0tJ0-0003iX-CS for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 14:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2018 18:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32736 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32736-submit@debbugs.gnu.org id=B32736.153695148814227 (code B ref 32736); Fri, 14 Sep 2018 18:59:02 +0000 Original-Received: (at 32736) by debbugs.gnu.org; 14 Sep 2018 18:58:08 +0000 Original-Received: from localhost ([127.0.0.1]:40915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0tI5-0003hN-E3 for submit@debbugs.gnu.org; Fri, 14 Sep 2018 14:58:08 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:45495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0tI2-0003gr-Ay for 32736@debbugs.gnu.org; Fri, 14 Sep 2018 14:58:02 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id 20-v6so11537099wrb.12 for <32736@debbugs.gnu.org>; Fri, 14 Sep 2018 11:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=JhgPgxOlNG8qBZr1WRd2Xoq22CNKCIwswomM4sjsQuM=; b=usAY/sAtutBCFmTuZTzlR2GNuzZJx822Xb2YpB3mBytcxyNOWLZSd/HXrvUiHYXFq0 214iybBc4Qpm+BaOilSUXzDNEq6PdNC9II5c3HjQfZKWBgmqTZeFB93Goxu3Yq5s6r+T O3GmgcKx9nVr3yf6f2CvzUizmGp0/M283ItTR2TJJqHtzuHYThqI39YU1UYYZ3PLIxe/ qaiFniWybXGd4gUdAXj9gkGmbAsfMlBXvLM+6OKGnsqPzllTwQ8Pe2G+Jisc2YcL50Yq PKLzB/kyOXc+Q/jBqPKqAgT8rCPnkIhbI64xWHyLsiRTqRkLVViOjhwrJtydcHT0WSdk aXXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=JhgPgxOlNG8qBZr1WRd2Xoq22CNKCIwswomM4sjsQuM=; b=bRn+z0zonRvHuvZ0mU4S0YEeWbR3dShioAXXCDAccIMboLnPfWZeVTOSd8n+O5lrHw l+5XoClBwc7Rz2SYykwm9rsoSEfdaLYZf/xZvq6mxO2Igh9wgZzOYb3gc/QU4ppDbHrx mA5/KqbQ3zSp/X1C1QjHqH/PD55AgMilB0h9C1GMGQIWf2NsEVRBj56DvxRJmR6gRnKW GoIQvHapZq1UYFNBxOGyXDFhO9rPEG+iKFlom8RfUr5nh1x2bRqCwKGkVKUeq9LgT7ld DZE2FEHiz/8jUVX3S/uZok8CuvAd2VcxA5Vc4AcG+SwOdgcN+2F0m2PzXdxD4Igk0tw+ LYDg== X-Gm-Message-State: APzg51DeSuWX//cw8ptr5HzO+zD+rHZq10B5zmAJ8x0WfeXVyHibh0c+ 3rUBRIkdjEPFxthMipXXYfiBqK6y X-Google-Smtp-Source: ANB0VdbBhQYoOm/CWmbCxD/qInap15/3m911hvIdZrpzi75AWDRxVqZnz2bgBSfvTAVI5Szo+N0G5A== X-Received: by 2002:adf:db51:: with SMTP id f17-v6mr10842730wrj.212.1536951475904; Fri, 14 Sep 2018 11:57:55 -0700 (PDT) Original-Received: from rpluim-ubuntu (vav06-1-78-207-202-134.fbx.proxad.net. [78.207.202.134]) by smtp.gmail.com with ESMTPSA id n15-v6sm4756157wrm.27.2018.09.14.11.57.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 11:57:55 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <1286c155-b91e-4a13-9b1a-b77b9d94887f@default> (Drew Adams's message of "Fri, 14 Sep 2018 09:32:42 -0700 (PDT)") 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: 208.118.235.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:150320 Archived-At: Drew Adams writes: > Possible enhancement: Change default binding of `C-x 5 2' to > `clone-frame'. Unlike `make-frame-command', `clone-frame' would use the > same frame-parameter values as the selected frame. Here's a possible > definition of `clone-frame': Hmm, how common is it to have a frame that doesn=CA=BCt have the same frame parameters as 'default-frame-alist', and you want to replicate them? Personally I quite like the current behaviour. > (defun clone-frame (&optional frame) > "Make a new frame with the same parameters as FRAME. > 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) > (let* ((default-frame-alist (frame-parameters frame)) > (new-fr (make-frame))) > (unless (display-graphic-p) (select-frame new-fr)))) How about you make it take a prefix argument to get back 'make-frame-command' semantics (or keep the current ones, and add 'clone-frame' semantics to the prefix arg)? Robert