HomeMathComputingArtsWordsLiteratureMusictwitter facebook webfeed

Emacs: Problems of the Scratch Buffer

Advertise Here For Profit

Xah Lee, 2008-09, 2009-08-27, 2011-04-15

In the article The Modernization of Emacs, i suggested that emacs's “*scratch*” buffer be removed. In this article, i give some detail about it.

Scratch Buffer Not Useful to Most People

Here are reasons that the scratch buffer is not useful to most people:

Scratch Buffer Problems

Here are reasons that a alternative to “*scratch*” “buffer” is more useful:

Proposed Fix: Adding a “new-buffer” Command

I propose that emacs should add a menu command “new-buffer”. Once called, it should create a empty buffer titled “untitled”. If one already exists, append numbers such “untitled 2”. Here are the reasons:

Adopting the suggestion would fix several problems for those who actually use emacs's “*scratch*” buffer. ① emacs no longer mysteriously spawn a “*scratch*” when emacs starts, or respawn the “*scratch*” buffer when user tries to close all buffers. ② Multiple scratch buffers can be created by a keyboard shortcut. ③ Data lose is prevented because closing a scratch buffer will prompt for save.

Draft Implementation

The above suggestion is implemented in ErgoEmacs Keybinding.

The original thread of this discussion, which turned into a flame feast, is here:

Newsgroups: gnu.emacs.help
From: Xah Lee.
Date: Tue, 16 Sep 2008 13:57:59 -0700 (PDT)
Subject: Re: How to get rid of *GNU Emacs* buffer on start-up?

Source groups.google.com

blog comments powered by Disqus