From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: How to get rid of *GNU Emacs* buffer on start-up? Date: Mon, 22 Sep 2008 06:08:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4c572369-63bf-4285-8445-79ea0cabbc26@o40g2000prn.googlegroups.com> References: <873ajzwoqu.fsf@kobe.laptop> <823901dd-c54c-4e3b-b6ad-512d52724a46@z11g2000prl.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1222091017 377 80.91.229.12 (22 Sep 2008 13:43:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2008 13:43:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 22 15:44:32 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KhliI-0003NK-IE for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Sep 2008 15:44:31 +0200 Original-Received: from localhost ([127.0.0.1]:57309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhlhG-00052M-Cr for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Sep 2008 09:43:26 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!o40g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 42 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1222088909 27620 127.0.0.1 (22 Sep 2008 13:08:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 22 Sep 2008 13:08:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o40g2000prn.googlegroups.com; posting-host=24.6.185.159; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162556 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: news.gmane.org gmane.emacs.help:57898 Archived-At: On Sep 20, 1:50=C2=A0am, Alan Mackenzie wrote: > Hi, Xah. > > One small but important point you made: > > On Thu, Sep 18, 2008 at 04:50:50PM -0700, Xah Lee wrote: > > Here are few minor reasons: > > =C2=A0 =C2=A0 * When the scratch buffer is closed, emacs does not promp= t user to > > save it. This easily causes data loss. > > The other side of the argument is that *scratch* is intended for > temporary, unimportant doodling, and for anybody who uses it this way, > being continually prompted to save it would rapidly become annoying. > > I don't think there's a built in option to change this. =C2=A0However, yo= u > could write a hook function to add in this check. =C2=A0The hook is > `kill-buffer-query-functions' and is documented in the Elisp manual on > the page "Killing Buffers". > > [ .... ] > > > =C2=A0 =C2=A0 * modern_operations.el. > > A small point about this file (at > ): you don't really need > the function `kill-line-backwards', since M-0 C-k will do this for you. > However, that key binding is a bit clumsy. =C2=A0You could use it like th= is: > > (defun kill-line-backwards () > =C2=A0 "Doc string ...." > =C2=A0 (interactive) > =C2=A0 (kill-line 0)) Thanks! I've taken your suggestion here. Xah =E2=88=91 http://xahlee.org/ =E2=98=84