From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32736: 26; Bind `C-x 5 2' to `clone-frame' by default Date: Fri, 14 Sep 2018 12:35:58 -0700 (PDT) Message-ID: <9314b97e-c9c0-4f9a-bb47-f7335797d370@default> References: <1286c155-b91e-4a13-9b1a-b77b9d94887f@default> <87k1nnoqj1.fsf@gmail.com> 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 1536953715 25084 195.159.176.226 (14 Sep 2018 19:35:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2018 19:35:15 +0000 (UTC) Cc: 32736@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 21:35:11 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 1g0trx-0006Ng-R5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2018 21:35:10 +0200 Original-Received: from localhost ([::1]:53076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0tu3-0008OT-SZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2018 15:37:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0tts-0008OA-2C for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 15:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0ttm-0003hD-QL for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 15:37:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g0ttm-0003h1-D5 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 15:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g0ttm-0004fh-0a for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2018 15:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2018 19:37:01 +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.153695377017893 (code B ref 32736); Fri, 14 Sep 2018 19:37:01 +0000 Original-Received: (at 32736) by debbugs.gnu.org; 14 Sep 2018 19:36:10 +0000 Original-Received: from localhost ([127.0.0.1]:40931 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0tsw-0004eX-II for submit@debbugs.gnu.org; Fri, 14 Sep 2018 15:36:10 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:42794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g0tss-0004e3-VW for 32736@debbugs.gnu.org; Fri, 14 Sep 2018 15:36:07 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8EJYaJT020074; Fri, 14 Sep 2018 19:36:01 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=TMZnl7Uiek/XTs9xt/RO5MCHcav86043yVVkNnd+Zno=; b=HEphF2maZBB88z9RM4hsWUvQfV7URzA2vPlRpRvG3aWakvlzBVIkWNvxj7DJN/WpfwfU 4T2JvZcJzR5tpgMiRYx801u0fQFrf6lKmL5ZhoNf47G8cudcoeuBHuzA2Dt/E82rCS6s gLyxzhroA0MJ6Do465FUNwgipQwt9uYSQYgAoi0zs81yVsN7OjdyAsgpKnNIrVBmKZqD rFOeJWcm91Jq6VVQaAuCGZJbGNbPSQT2N7sliF5r5wRurPO//YElvzETLUxkAgim6QWU XYPJHV5p8wRKGHt8iIFnP5yqphcXxwtMAr5IpZe87V5Ku/n6Q1Fk0HJyZoNFtDc3ZmXg aA== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2mc5uu0vt8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Sep 2018 19:36:00 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8EJZxak019695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 14 Sep 2018 19:36:00 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w8EJZxl9019750; Fri, 14 Sep 2018 19:35:59 GMT In-Reply-To: <87k1nnoqj1.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4735.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9016 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809140198 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:150322 Archived-At: > > Possible enhancement: Change default binding of `C-x 5 2' to > > `clone-frame'. Unlike `make-frame-command', `clone-frame' would use th= e > > same frame-parameter values as the selected frame. Here's a possible > > definition of `clone-frame': >=20 > Hmm, how common is it to have a frame that doesn=CA=BCt have the same fra= me > parameters as 'default-frame-alist', and you want to replicate them? > Personally I quite like the current behaviour. It's definitely the case for me. I use several kinds of special-display fra= mes. If I use it on a *Help* frame get a *Help* frame (same background etc.= ). If I use it on an *info* frame I get an *info* frame, and so on. If it's not the case for you then you should get pretty much the same behav= ior as now. I don't think you'll notice a difference. > 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)? Fair enough. (defun clone-frame (&optional frame no-clone) "Make a new frame with the same parameters as FRAME. With a prefix arg, don't clone - just call `make-frame-command'. 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 no-clone (make-frame-command) (let* ((default-frame-alist (frame-parameters frame)) (new-fr (make-frame))) (unless (if (fboundp 'display-graphic-p) (display-graphic-p) window-s= ystem) (select-frame new-fr)))))