From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rustom Newsgroups: gmane.emacs.help Subject: Re: How to get rid of *GNU Emacs* buffer on start-up? Date: Wed, 24 Sep 2008 05:51:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: <44ea9a7d-7f0b-4f24-9f18-1f06cbfe3ba2@g17g2000prg.googlegroups.com> References: <873ajzwoqu.fsf@kobe.laptop> <823901dd-c54c-4e3b-b6ad-512d52724a46@z11g2000prl.googlegroups.com> <87ljxoffs6.fsf@atthis.clsnet.nl> <71208e97-140c-445d-8eda-1705f11b14b3@r15g2000prd.googlegroups.com> <095ef0c0-c7f4-494d-8bf6-8a5ee43fd934@i20g2000prf.googlegroups.com> <98bb399f-e2e7-4d6f-8d5f-4e56475b6ad1@v13g2000pro.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1222263745 29936 80.91.229.12 (24 Sep 2008 13:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2008 13:42:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 24 15:43:20 2008 connect(): Connection refused 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 1KiUdf-00071m-7k for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Sep 2008 15:42:43 +0200 Original-Received: from localhost ([127.0.0.1]:48592 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KiUcd-0002BU-9p for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Sep 2008 09:41:39 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!g17g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 220.225.70.2 Original-X-Trace: posting.google.com 1222260661 23627 127.0.0.1 (24 Sep 2008 12:51:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 24 Sep 2008 12:51:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g17g2000prg.googlegroups.com; posting-host=220.225.70.2; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-Via: 1.1 EINSTEIN X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162658 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:58000 Archived-At: On Sep 24, 4:42=A0pm, Xah Lee wrote: > I actually have the line > (setq buffer-offer-save t) > in my code for new-empty-buffer, but emacs still closes the buffer > without saving, seemingly contrary to its doc. Do you have it on a hook? Like so? (add-hook 'lisp-interaction-mode-hook (function (lambda () (setq buffer-offer-save t)))) The above works for me -- asking to save the scratch buffer *if changed* Only problem is that fundamental-mode does not AFAIK have a hook. Wonder why...