From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "V. L. Simpson" Newsgroups: gmane.emacs.help Subject: Re: how to make the scratch buffer "unkillable"? Date: 22 Nov 2004 22:22:00 -0600 Organization: Monster Island Message-ID: <877jodchzr.fsf@ghidra.localhost> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1101184259 23535 80.91.229.6 (23 Nov 2004 04:30:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 23 Nov 2004 04:30:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 23 05:30:54 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 1CWSKK-0006bH-00 for ; Tue, 23 Nov 2004 05:30:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWSTP-0006Pu-SR for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Nov 2004 23:40:16 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!cyclone.bc.net!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!spooler.hal-mli.net!news.hal-pc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 15 Original-NNTP-Posting-Host: 206.180.152.29.adsl.hal-pc.org Original-X-Trace: 1101183721 news.hal-pc.org 58712 206.180.152.29:2767 Original-X-Complaints-To: abuse@hal-pc.org Original-Xref: shelby.stanford.edu gnu.emacs.help:126826 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:22226 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22226 >>>>> "oliver" == oliver writes: >> >> 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 GNU Emacs 21 on up will recreate the scratch buffer if you just revisit that buffer name: C-x b (or M-x switch-to-buffer) *scratch* vls