From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: How to protect a buffer from being deleted by accident? Date: Thu, 05 Dec 2002 16:22:58 +0100 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039102624 17940 80.91.224.249 (5 Dec 2002 15:37:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2002 15:37:04 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Jy3h-0004ex-00 for ; Thu, 05 Dec 2002 16:37:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Jxy9-0004Qu-00; Thu, 05 Dec 2002 10:31:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4315 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4315 Adalbert Perbandt writes: > Now I'd like to provide a simple mechanism which disallows for > deletion of this buffer. I think, it would not be too complex to > implement this but I don't know any simple method to get it > done. Maybe there is a posibility to mark a specific buffer as > "undeletable" or so. There is 'protbuf.el' ;;; Commentary: ;; This package allows you to make it harder to kill buffers accidentally, ;; e.g. by being too trigger happy selecting items in the buffer menu. ;; protect-process-buffer-from-kill-mode is perhaps the more useful of the ;; two, making it harder to accidentally kill shell buffers without ;; terminating the process in them first.