From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: How to toggle to buffer previously selected ? Date: Thu, 7 Feb 2008 16:46:29 +0100 Message-ID: <38b2ab8a0802070746w2e182ef1i531ddb1cc180d8e6@mail.gmail.com> References: <38b2ab8a0802070245i5f7246fdq7389dcd857ffe175@mail.gmail.com> <873as5ujer.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202399229 13002 80.91.229.12 (7 Feb 2008 15:47:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2008 15:47:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Tassilo Horn" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 16:47:31 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JN8yC-0002bY-7y for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2008 16:47:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JN8xj-0008MX-67 for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Feb 2008 10:46:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JN8xR-0008Lr-FY for help-gnu-emacs@gnu.org; Thu, 07 Feb 2008 10:46:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JN8xL-0008KI-Pl for help-gnu-emacs@gnu.org; Thu, 07 Feb 2008 10:46:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JN8xL-0008KE-IU for help-gnu-emacs@gnu.org; Thu, 07 Feb 2008 10:46:31 -0500 Original-Received: from wr-out-0506.google.com ([64.233.184.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JN8xL-0008Sx-5A for help-gnu-emacs@gnu.org; Thu, 07 Feb 2008 10:46:31 -0500 Original-Received: by wr-out-0506.google.com with SMTP id 58so3111326wri.10 for ; Thu, 07 Feb 2008 07:46:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=u+j4cWCn2U/KwjY8QOl9eJn5iVGpnTbJcmzoXL9L0FQ=; b=O0n2GfJerFTJ497wYtYlkhnq0oTAzdiRb+JPOgJixTaiP0mCFjBj8iW8T6QbRczjd77OpiL9O6fjLwaogOfMHq+pKdJYNKtRS8hjiD43+wHRMmHhe3mpLyf3FUcF0+AJmyV1ECUcBfAvbSOZuQ+LE/ojJq3qTqbFlHv3VU61lkI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZFO/doxaEGfST1yLi/kqR6wWhKEA7A9BGtMuiPV1ImRZ3NoIOyI1EYZgvrykE7/spu2iXry1aBzo7rRh+iNx3INFq3Y66Uy1mX4euBNZAgAaHthKUEanyUgrWGUgYMSVS0SImSdHHdEmKB8EzbfI4WqsXxylwx48IRby1ZMsGqc= Original-Received: by 10.140.88.11 with SMTP id l11mr7669448rvb.156.1202399189639; Thu, 07 Feb 2008 07:46:29 -0800 (PST) Original-Received: by 10.141.171.17 with HTTP; Thu, 7 Feb 2008 07:46:29 -0800 (PST) In-Reply-To: <873as5ujer.fsf@member.fsf.org> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) 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:51300 Archived-At: On Feb 7, 2008 11:53 AM, Tassilo Horn wrote: > "Francis Moreau" writes: > > Hi Francis, > > > I know 'C-x o' to select the next selected buffer but I'd like to > > toggle between 2 buffers even if more than 2 buffers are displayed. > > I use this: > > (defun th-other-buffer () > (interactive) > (switch-to-buffer (other-buffer))) > > (global-set-key (kbd "C-?") 'th-other-buffer) > This is not what I want to do. Sorry I wasn't clear enough in my previous email. OK, let's say I have the following setup in my emacs: +-------+--------+ | | | | 1 | 2 | | | | +-------+--------+ | | | | 3 | 4 | | | | +-------+--------+ Currently buffer "2" is selected. I now select buffer "3". I did some typing in that buffer now I want to get back quickly to buffer "2". I don't want to do "\C-x\C-o" but I'd like for example just to do "\C-TAB". So I can go back and forth between these 2 buffers just by typing "\C-TAB" Thanks -- Francis