From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miguel Guedes Newsgroups: gmane.emacs.devel Subject: Feature request: other-previous-window Date: Tue, 20 Nov 2012 15:17:54 +0000 Message-ID: <50AB9F22.4060200@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353424697 10818 80.91.229.3 (20 Nov 2012 15:18:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2012 15:18:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 20 16:18:28 2012 Return-path: Envelope-to: ged-emacs-devel@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 1Tapal-0001rn-NP for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2012 16:18:27 +0100 Original-Received: from localhost ([::1]:46909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tapab-0006ET-Ca for ged-emacs-devel@m.gmane.org; Tue, 20 Nov 2012 10:18:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TapaP-0006Bk-Ob for emacs-devel@gnu.org; Tue, 20 Nov 2012 10:18:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TapaJ-0002Yh-VB for emacs-devel@gnu.org; Tue, 20 Nov 2012 10:18:05 -0500 Original-Received: from mail-la0-f41.google.com ([209.85.215.41]:59987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TapaI-0002Y9-SL for emacs-devel@gnu.org; Tue, 20 Nov 2012 10:17:59 -0500 Original-Received: by mail-la0-f41.google.com with SMTP id m15so3169864lah.0 for ; Tue, 20 Nov 2012 07:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=9jK+nISzJszUmbRL1B9zIMVgTniO2eu+xNfOjgWKaas=; b=qOON9U+50sROFgRRpSINF+utyffwe1ytGAae81nLZhgbi2q8GQTiIAsbWIYFAdMM0e CL4EOylnz3047PLnIgKQ2rAoZgh8eeVy457TAF35ll+YS71gLVnXojHaERVvQrWB7jVr JCj9AI1I/Kk+/Jb2s9ckub5YS2nbsHpSiXL0LADFvKt2Plpntjjc7pJOFKRTCHEbX1cB +1zAF1vHXgyPoOW4pymZC/DFWeyM7NqxuVf9UM0IuHUWvgIzJV0VZnFNFCt/Z7c0wAxZ M6Kyx4HygYz4pXWea7rlqWQqNWLrLRNtmOxsq/zeaiFo4BVjmJuwfBLpsLaQp6HL4USo Q7oQ== Original-Received: by 10.152.104.50 with SMTP id gb18mr15259764lab.9.1353424677726; Tue, 20 Nov 2012 07:17:57 -0800 (PST) Original-Received: from [192.168.0.2] (02dc0849.bb.sky.com. [2.220.8.73]) by mx.google.com with ESMTPS id sx3sm4960053lab.9.2012.11.20.07.17.55 (version=SSLv3 cipher=OTHER); Tue, 20 Nov 2012 07:17:56 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154987 Archived-At: This is a request proposal for a very simple feature: the twin brother of other-window. I often keep multiple windows open in my always maximized Emacs frame, rarely ever less than 2 and usually 3 windows tiled vertically. Having an inverse to other-window would be a blessing as I often need to jump from a window in one extreme to the other (skip the window in the middle.) When moving forwards (other-window), this is not a problem. However, sometimes I find myself at the leftmost window in need of moving to the rightmost window. In other words, if in a given instance of Emacs there are windows A B C, being able to quickly and effortlessly jump from A to C would be great. Being a complete newbie to ELISP I don't know if the following code is up to ELISP standards practiced by the Emacs devs but I suppose it is a starting point at least: (defun other-previous-window (count &optional all-frames) (interactive "p") (other-window (* count -1) all-frames)) (define-key ctl-x-map "p" 'other-previous-window) -- Miguel