From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: cycling through windows Date: Sun, 14 Jul 2013 12:05:38 +0530 Message-ID: References: <874nbz69c9.fsf@mithlond.arda> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1373783780 5731 80.91.229.3 (14 Jul 2013 06:36:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jul 2013 06:36:20 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 14 08:36:21 2013 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 1UyFuv-0002Yu-3u for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jul 2013 08:36:21 +0200 Original-Received: from localhost ([::1]:47309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyFuu-0006C3-OX for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Jul 2013 02:36:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyFuf-0006Bg-OS for help-gnu-emacs@gnu.org; Sun, 14 Jul 2013 02:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyFue-0006LN-MP for help-gnu-emacs@gnu.org; Sun, 14 Jul 2013 02:36:05 -0400 Original-Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:35979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyFue-0006Ks-Fi for help-gnu-emacs@gnu.org; Sun, 14 Jul 2013 02:36:04 -0400 Original-Received: by mail-pb0-f51.google.com with SMTP id um15so10335044pbc.10 for ; Sat, 13 Jul 2013 23:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=VHTE1FnfJXbfxum3p+pDrn0OCDPhw2yYiRnFQYoz/9A=; b=QIF941HGvu4Qt3mB8AWYn9k2JuTerZyF/URlefoJY/ePiqsBttMEd/vFx3wj6pi9to h4HntraxPQ/NQA9nIEbF7cOW7PLL0AnjebhulgJyxLCvruJWq20zZSqi0aoWOjE5iOej pmiFC+4WNsOE6JybyigXhcjoEKTDINAI5zR86+0gApLMSGGEDG6Z2K7SsMhfIg5qGyIK 9WSQYLmNTtANpKWzfNDE9hbW8zttQXY+vPbAQ/lepZiReLdqVJVg2PB00WUd3Wcb5hl4 yDHwb9vu58wM50basOh2uhCDMyIiKQgT29PAuQdo7by268NBaauAYcGLqL6gtY6MEr6E 3XDw== X-Received: by 10.66.122.41 with SMTP id lp9mr50749570pab.6.1373783758114; Sat, 13 Jul 2013 23:35:58 -0700 (PDT) Original-Received: by 10.70.83.195 with HTTP; Sat, 13 Jul 2013 23:35:38 -0700 (PDT) In-Reply-To: <874nbz69c9.fsf@mithlond.arda> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::233 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:92117 Archived-At: Thank you all so much. I think the "keep-othering" suggested by Jambunathan works just fine for me. Regards, Kashyap On Fri, Jul 12, 2013 at 9:47 PM, Teemu Likonen wrote: > C. K. Kashyap [2013-07-12 10:12:02 +05:30] wrote: > > > What is a good way to cycle through windows - looks like C-x o cycles > > through in one order and if I need to change the direction I need to > > C-u - C-x o But it seems too many keystrokes - is there a better way > > (other than doing my own key bindings that is) > > I use "repeat command" idea which I got from Drew Adams. With that I can > cycle with "C-x o o o o o o". That is, just repeating the last component > ("o"). > > > (defun tl-repeat-command (command) > ;; From Drew Adams. > (require 'repeat) > (let ((repeat-message-function 'ignore)) > (setq last-repeatable-command command) > (repeat nil))) > > (defun tl-other-window (count) > (interactive "p") > (tl-repeat-command 'other-window)) >