From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#34715: 26.1; (1) Add `clone-frame', (2) bind it to `C-x 5 2' Date: Sat, 2 Mar 2019 16:47:47 -0800 (PST) Message-ID: <17bef02b-7dd4-4086-828f-59488a836ac1@default> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="49610"; mail-complaints-to="usenet@blaine.gmane.org" To: 34715@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 03 02:04:14 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 1h0FY6-000CgG-Eo for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Mar 2019 02:04:14 +0100 Original-Received: from localhost ([127.0.0.1]:60799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0FY5-0003wH-Da for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Mar 2019 20:04:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57809) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0FXv-0003vf-AJ for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 20:04:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0FXu-0004DG-E7 for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 20:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44427) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h0FXu-0004Cs-9C for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 20:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h0FXu-0000uT-3o for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 20:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2019 01:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34715 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15515750413487 (code B ref -1); Sun, 03 Mar 2019 01:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Mar 2019 01:04:01 +0000 Original-Received: from localhost ([127.0.0.1]:57971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0FXs-0000uA-Mg for submit@debbugs.gnu.org; Sat, 02 Mar 2019 20:04:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h0FXq-0000tu-F2 for submit@debbugs.gnu.org; Sat, 02 Mar 2019 20:03:59 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:33069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0FXk-0003x5-Pw for submit@debbugs.gnu.org; Sat, 02 Mar 2019 20:03:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0FXj-0003so-Rb for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 20:03:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0FIE-0006Ap-7x for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 19:47:50 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:42762) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0FIE-00067N-08 for bug-gnu-emacs@gnu.org; Sat, 02 Mar 2019 19:47:50 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x230i0UJ101987 for ; Sun, 3 Mar 2019 00:47:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=M/pc8FSsuR40dwvxZQdjz23EKjTGWKD6d+Pxu7EuJBg=; b=b5a3uT7CImVVwE/D9eGUMtSEDyvwFqiXXQzFvMJOxsLBOyI4kGB/nb/XNlNt/VAWr2gL yIjFHv5aiX6rTITBpi3G+dNznQ21vR066t5IqHdYdbYrJxilrSoiT5tEJjCADWMgdI9V 5m/wY028DnfLNhNENXutKheBTeKV+daHE5S6YegkM1w/1G86DhH/t0XOJZnp78js/+ag cXjdxVLBZICc7SermQBLcTrw/R0ewic3P+c+uR0+aI+wjaatlzaYhDJPkJeekFqhFlTX I7F81xcithfFnHNvPIGNJCIP4KPy2d0C+OS3bVDk+gVyKkTu6o57GhnGMbLBATHbT0lN fw== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2qyfbdtcwa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 03 Mar 2019 00:47:48 +0000 Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id x230lm4X024744 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 3 Mar 2019 00:47:48 GMT Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x230llb2005753 for ; Sun, 3 Mar 2019 00:47:48 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4810.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9183 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903030004 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:155982 Archived-At: Enhancement request: 1. Add a `clone-frame' command such as this one, which is similar to what I've been using: (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 (display-graphic-p) (select-frame new-fr)) new-fr))) 2. Use it, not `make-frame-command', as the binding of `C-x 5 2'. 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. It's true that I often have only one window in the selected frame, which is not typical of other users, and in that case it perhaps makes even more sense that I want `C-x 5 2' to duplicate the frame's parameters. But I think that most users are likely to prefer, as the default behavior, keeping the same parameters. (`C-u' gives `make-frame-command', i.e., the frame parameters are not cloned.) An open question, I guess. 3. BTW, I think it would be good to add this to the doc string of `make-frame-command': Return the new frame. In GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30 Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor `Microsoft Corp.', version 10.0.17134 Configured using: `configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3''