From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: undo-kill-buffer Date: Wed, 25 Oct 2006 08:43:25 +0900 Message-ID: <87d58hb7qa.fsf@catnip.gol.com> References: <200610240856.57965.amax@redsymbol.net> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161733434 22689 80.91.229.2 (24 Oct 2006 23:43:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 23:43:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 25 01:43:52 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcVvx-0001Wi-Qq for ged-emacs-devel@m.gmane.org; Wed, 25 Oct 2006 01:43:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcVvx-0007uA-3u for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 19:43:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GcVvi-0007om-Qm for emacs-devel@gnu.org; Tue, 24 Oct 2006 19:43:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GcVvi-0007n7-0E for emacs-devel@gnu.org; Tue, 24 Oct 2006 19:43:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcVvh-0007mx-Ul for emacs-devel@gnu.org; Tue, 24 Oct 2006 19:43:33 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GcVvg-0005nv-RK; Tue, 24 Oct 2006 19:43:33 -0400 Original-Received: from 203-216-96-133.dsl.gol.ne.jp ([203.216.96.133] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1GcVvZ-0001wI-IU; Wed, 25 Oct 2006 08:43:25 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 2B4BC2F45; Wed, 25 Oct 2006 08:43:25 +0900 (JST) Original-To: Aaron Maxwell System-Type: i686-pc-linux-gnu In-Reply-To: <200610240856.57965.amax@redsymbol.net> (Aaron Maxwell's message of "Tue\, 24 Oct 2006 08\:56\:57 -0700") Original-Lines: 24 X-Abuse-Complaints: abuse@gol.com X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61130 Archived-At: Aaron Maxwell writes: > Hi, Does anyone know of an existing emacs function that will undo a > kill-buffer command? So like, if the user issues C-x k and then suddenly > decides it was a mistake, they could just M-x undo-kill-buffer to get it > back. Do you notice this happening often (that you mistakenly kill a buffer)? I've certainly done such a thing before, but I think not very often, to the point where I just lump it in with other random dumb things I do occasionally. [One problem with the idea of saving killed buffers is memory it would consume -- saving to temp files seems too heavyweight for rarely needed functionality. I suppose one could limit the number of undoable buffer-kills, and perhaps more importantly, only save the contents of killed buffers under a certain size (my impression is that very large buffers tend to be programmatic output and the like, and maybe less valuable in some sense).] -Miles -- o The existentialist, not having a pillow, goes everywhere with the book by Sullivan, _I am going to spit on your graves_.