From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John Conrad" Newsgroups: gmane.emacs.help Subject: Re: switching frame focus Date: Thu, 4 May 2006 10:25:11 -0400 Message-ID: <7f270cb80605040725o7dd996dbnd6abaa66fedb9d62@mail.gmail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146752736 22902 80.91.229.2 (4 May 2006 14:25:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 14:25:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 04 16:25:33 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fbelh-0000VC-Ci for geh-help-gnu-emacs@m.gmane.org; Thu, 04 May 2006 16:25:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fbelg-0002m4-Nn for geh-help-gnu-emacs@m.gmane.org; Thu, 04 May 2006 10:25:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FbelW-0002jz-Ng for help-gnu-emacs@gnu.org; Thu, 04 May 2006 10:25:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FbelV-0002j5-9I for help-gnu-emacs@gnu.org; Thu, 04 May 2006 10:25:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbelV-0002j2-4c for help-gnu-emacs@gnu.org; Thu, 04 May 2006 10:25:13 -0400 Original-Received: from [64.233.182.187] (helo=nf-out-0910.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fbem7-0008Tp-Ji for help-gnu-emacs@gnu.org; Thu, 04 May 2006 10:25:51 -0400 Original-Received: by nf-out-0910.google.com with SMTP id x4so355628nfb for ; Thu, 04 May 2006 07:25:11 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VymjTGjdSZbcNDaOu7TS07kzc9b5tZg7QkMl3aaAfQIDI5XylGbOEpviUKwxRMfqCdm1c9ldkM3ptO8VodKt4qWDpLn+bGX/THIk78HNJyK2WpGmT1pGdHpy1KtaAzSWePmVpxi86dUpxLq51RowjmBVWzuyb3E9TtWRFGU0fiU= Original-Received: by 10.49.57.9 with SMTP id j9mr792215nfk; Thu, 04 May 2006 07:25:11 -0700 (PDT) Original-Received: by 10.49.94.7 with HTTP; Thu, 4 May 2006 07:25:11 -0700 (PDT) Original-To: help-gnu-emacs@gnu.org In-Reply-To: Content-Disposition: inline X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34813 Archived-At: On 5/4/06, Roger Mason wrote: > "Ryan Krauss" writes: > > > This seems like a silly question, but I have goolged around and not > > come up with an answer. If I split my window using C-x 2, how do I > > switch the focus between the two split frames (or whatever emacs calls > > them). I have an aversion to touching the mouse, but basically I want > > to click in the other window and work over there and then click > > back. I also want to use this when I do C-x C-b to list the buffers. > > I want > > to switch into the buffer list to choose the one I want to open. > > C-x o cycles between frames. > > HTH, > > Roger Specifically, the command/function 'other-window' cycles through windows, and, as Roger pointed out, it is bound by default to the C-x o. It always annoyed me that C-x C-b (and lots of other commands) open new windows, possibly messing up my window configuration, and almost always requiring me to take the extra step of hitting C-x o (or F7, which I've bound to 'other-window). About a year ago I took the step of adding the following sexp to my .emacs file, which causes all these buffer-creating commands to open in the current window: (setq same-window-regexps (list ".*")) I would be curious to hear from anybody who might share my frustration and has found an alternative solution. Regards, John Emerson Conrad