From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: RD Newsgroups: gmane.emacs.help Subject: Re: Is there any key shortcut to switch through buffers in the emacs? Date: Wed, 08 Mar 2006 21:52:09 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <120v62ooc62ltfe@corp.supernews.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: 7bit X-Trace: sea.gmane.org 1141872932 12147 80.91.229.2 (9 Mar 2006 02:55:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 02:55:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 09 03:55:27 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 1FHBJA-0002Eh-FP for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Mar 2006 03:55:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHBJ9-0002Ms-Fh for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Mar 2006 21:55:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!router2.astraweb.com!news.astraweb.com!router1.astraweb.com!sn-xt-sjc-15!sn-xt-sjc-08!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: Original-X-Complaints-To: abuse@supernews.com Original-Lines: 27 Original-Xref: shelby.stanford.edu gnu.emacs.help:138053 Original-To: help-gnu-emacs@gnu.org 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:33666 Archived-At: op132650c@mail.telepac.pt wrote: > Is there any key shortcut to switch through buffers in the emacs.? > > Thanks, > Pedro > > How about binding some key to bury-buffer? E.g. (global-set-key [f5 f5] 'bury-buffer) will cycle through buffers upon pressing f5 twice. Don't forget about mouse 1 and mouse 3 on the buffer name in the mode line. bury-buffer is an interactive built-in function. (bury-buffer &optional BUFFER) Put BUFFER at the end of the list of all buffers. There it is the least likely candidate for `other-buffer' to return; thus, the least likely buffer for C-x b to select by default. If BUFFER is nil or omitted, bury the current buffer. Also, if BUFFER is nil or omitted, remove the current buffer from the selected window if it is displayed there. Regards, Bob