From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "oliver" Newsgroups: gmane.emacs.help Subject: Re: how to make the scratch buffer "unkillable"? Date: Tue, 23 Nov 2004 14:12:33 +1100 Organization: Netspace Internet Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1101179764 15927 80.91.229.6 (23 Nov 2004 03:16:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2004 03:16:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 23 04:15:57 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWR9o-0003pD-00 for ; Tue, 23 Nov 2004 04:15:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWRIs-0000Ez-Pz for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Nov 2004 22:25:18 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!news1.optus.net.au!optus!news.mel.connect.com.au!news.netspace.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: dsl-210-15-204-246.nsw.netspace.net.au Original-X-Trace: otis.netspace.net.au 1101179480 31009 210.15.204.246 (23 Nov 2004 03:11:20 GMT) Original-X-Complaints-To: usenet@otis.netspace.net.au Original-NNTP-Posting-Date: Tue, 23 Nov 2004 03:11:20 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Original-Xref: shelby.stanford.edu gnu.emacs.help:126825 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: main.gmane.org gmane.emacs.help:22225 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22225 sorry guys, found the answer on the net. see http://www.emacswiki.org/cgi-bin/wiki/RecreateScratchBuffer cheers, olli "oliver" wrote in message news:cnu7h0$tc9$1@otis.netspace.net.au... > hi there > > sometimes i accidentally kill or rename the scratch-buffer. how can i > protect this? > > is there a way to hook into kill-buffer and rename-buffer? > > thanks, olli