From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: buffer management in emacs Date: Tue, 4 May 2010 06:55:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: <276ba00e-2f6e-4e66-ac82-f1b69f0a0587@u20g2000pru.googlegroups.com> References: <87d3xwsbns.fsf@slack64.serverdot.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273065157 29853 80.91.229.12 (5 May 2010 13:12:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 May 2010 13:12:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 05 15:12:36 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1O9eOx-00057P-MU for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 15:12:35 +0200 Original-Received: from localhost ([127.0.0.1]:50846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9eOx-0001hi-15 for geh-help-gnu-emacs@m.gmane.org; Wed, 05 May 2010 09:12:35 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!u20g2000pru.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 52 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1272981322 9403 127.0.0.1 (4 May 2010 13:55:22 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 May 2010 13:55:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u20g2000pru.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1064 Safari/532.5,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:177903 comp.emacs:99805 X-Mailman-Approved-At: Tue, 04 May 2010 16:55:15 -0400 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:73450 Archived-At: On Apr 18, 2:17=C2=A0pm, xtd8...@gmail.com (.Martin.) wrote: > Hi all, > 1. Is there any way of temporarily bookimaring buffers so that I can swit= ch > between them more efficiently? Gnus itself has a good few buffers (of > which I only use the main one where groups are listed), then > when I open a few messages the buffers usually stay. I usually switch > between buffers by C-x and right/left arrows. I bet there's a much > better way of doing it. > I know of C-x b, but then I have to press TAB to list buffers and do > autocompletion. How do you switch between buffers? there are several buffer switching packages, many comes with emacs 22 and 23. Personally, i use ibuffer. Just type Alt+x ibuffer. You should also replace the default keybinding. there's also iswitch, and ido, among others. they all help you manage buffers. The emacs buffer management problem really has to do with emacs's lack of closing file command. There's kill-file, but it requires you to confirm, even a saved file. Plus, there's no keyboard shortcut for it. So, this tends to get people to leave behind lots of opened files. Usually hundreds of buffers that are accumulated in weeks or months are reported by long time emacs users. for me, i prefer to close a file or buffer whenever i'm done with it. So, my open buffers represent things i am working on, or need to work on. Typically they are no more than 10 open files. I've also customized my emacs extensively, so that i have single shortcut to close buffer (or create new one), and without asking me if the buffer is already saved, and can open accidentally closed buffer (similar to accidentally closed tabs in browsers). Also, for switching to next/ previous buffer, i have easy shortcuts the same as switching tabs in browsers. If you are interested in this UI, you can try it or get the code at ergoemacs.org some of these ideas are written here: http://xahlee.org/emacs/modernization_scratch_buffer.html http://xahlee.org/emacs/effective_emacs.html Xah =E2=88=91 http://xahlee.org/ =E2=98=84