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: Thu, 6 May 2010 02:52:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87d3xwsbns.fsf@slack64.serverdot.org> <276ba00e-2f6e-4e66-ac82-f1b69f0a0587@u20g2000pru.googlegroups.com> 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 1273158907 6513 80.91.229.12 (6 May 2010 15:15:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 May 2010 15:15:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 06 17:15:06 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 1OA2n2-0000WU-RJ for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 17:15:05 +0200 Original-Received: from localhost ([127.0.0.1]:47829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OA2n1-0003EI-WD for geh-help-gnu-emacs@m.gmane.org; Thu, 06 May 2010 11:15:04 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!e2g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1273139552 30267 127.0.0.1 (6 May 2010 09:52:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 May 2010 09:52:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e2g2000yqn.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:177976 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:73504 Archived-At: On May 5, 6:51=C2=A0am, Tyler Smith wrote: > Xah Lee writes: > > 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. > > Isn't 'C-x k' (kill-buffer) basically a file closing command? It doesn't > require confirmation for files that are already saved, and the file that > the buffer was visiting is then removed from the buffer list. Or am I > misunderstanding what you mean by 'close file'. > > Also, I can't find kill-file on my emacs (GNU Emacs 24.0.50.2), did you > mean kill-buffer to begin with? > > Tyler sorry, been sloppy. yes i meant kill-buffer (shortcut C-x k) when you call kill-buffer, it prompts you, even for a saved file. More specifically, it prompts you which buffer you want to kill. It does not simply close the current buffer. the other problem is that when you kill a buffer not asociated with a file, even if it is not saved, has content, it'll simply kill it after you give the buffer name, but not prompting you whether to save it. the link i gave in my previous post does give detail about these. Xah =E2=88=91 http://xahlee.org/ =E2=98=84