From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: When do you prefer frames instead of windows? Date: Tue, 25 Nov 2014 14:22:02 -0800 (PST) Message-ID: <59d15d97-e43c-47ab-8eb2-a254cca25229@default> References: <9152bf25-2810-4c98-9c37-900341ff3159@default> <268779ff22324d23bbbcc8c8d1effb5d@fcmailsvr3.familycareinc.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416954169 12852 80.91.229.3 (25 Nov 2014 22:22:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 22:22:49 +0000 (UTC) To: Subhan Michael Tindall , Ralf Fassel , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 23:22:39 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtOVK-0008N4-Mf for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 23:22:38 +0100 Original-Received: from localhost ([::1]:59776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtOVK-0006cf-7o for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 17:22:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtOV0-0006c9-6f for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 17:22:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtOUr-0006lD-7W for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 17:22:18 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:41646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtOUr-0006l4-0P for help-gnu-emacs@gnu.org; Tue, 25 Nov 2014 17:22:09 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sAPMM4LD003169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 25 Nov 2014 22:22:05 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sAPMM3qB024477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 Nov 2014 22:22:04 GMT Original-Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id sAPMM2vA014037; Tue, 25 Nov 2014 22:22:03 GMT In-Reply-To: <268779ff22324d23bbbcc8c8d1effb5d@fcmailsvr3.familycareinc.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101197 Archived-At: > > Yes, this is why Emacs should provide simple key sequences to > > raise and refocus frames. > > Raise-frame and lower-frame can be easily bound to whatever keys > you like. Of course. > Other-frame is already bound by default to C-x 5 0 > It can't get much easier than that. Yes, it can. If you have 30 frames then you don't want to cycle through them to get to the frame you want. Same problem with windows and `C-x o', but there you are limited to the windows in a single frame (by default), and it is less likely that you will have 30 of them, or even 10. Cycling through lots of candidates, even given the additional (prefix-arg) possibility of specifying how many to go forward or back, is a pretty rudimentary UI when there are many candidates. It can definitely get easier than that. One possibility is to let you (i.e., optionally) choose a window/frame by name, with completion. > There's a host of functions for frame management, try C-h a > frame for many more Still not good enough, IMHO. There is lots of room for improving how Emacs plays with frames. FWIW, this is what I bind to `C-x o': ,---- | C-x o runs the command icicle-other-window-or-frame, which is an | interactive compiled Lisp function in `icicles-cmd1.el'. |=20 | It is bound to C-x o. |=20 | (icicle-other-window-or-frame ARG) |=20 | Select a window or frame, by name or by order. | This command combines Emacs commands `other-window' and `other-frame', | together with Icicles commands `icicle-select-window', | `icicle-select-frame', and `icicle-choose-window-for-buffer-display'. | Use the prefix argument to choose the behavior, as follows: |=20 | With no prefix arg or a non-zero numeric prefix arg: | If the selected frame has multiple windows, then this is | `other-window'. Otherwise, it is `other-frame'. |=20 | With a zero prefix arg (e.g. `C-0'): | If the selected frame has multiple windows, then this is | `icicle-select-window' with windows in the frame as candidates. | Otherwise (single-window frame), this is `icicle-select-frame'. |=20 | With plain `C-u': | If the selected frame has multiple windows, then this is | `icicle-select-window' with windows from all visible frames as | candidates. Otherwise, this is `icicle-select-frame'. |=20 | With plain `C-u C-u': | Same as `icicle-select-window' with a negative prefix arg: Select a | window from any frame, including iconified and invisible frames. | =20 | With plain `C-u C-u C-u': | This is `icicle-choose-window-for-buffer-display', with windows from | all frames (i.e., iconified and invisible) frames as candidates.=20 |=20 | If you use library `oneonone.el' with a standalone minibuffer frame, | and if option `1on1-remap-other-frame-command-flag' is non-nil, then | frame selection can include the standalone minibuffer frame. |=20 | By default, Icicle mode remaps all key sequences that are normally | bound to `other-window' to `icicle-other-window-or-frame'. If you do | not want this remapping, then customize option | `icicle-top-level-key-bindings'. `----