From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: sebyte Newsgroups: gmane.emacs.help Subject: Re: Keep losing work in non-file-visiting buffers Date: Thu, 04 Dec 2003 21:15:34 +0000 Organization: Customer of PlusNet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3FCD2367.8030005@yahoo.com> <3FCE6F3B.5050909@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1070573437 16369 80.91.224.253 (4 Dec 2003 21:30:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2003 21:30:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 04 22:30:33 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AS13R-0001WO-00 for ; Thu, 04 Dec 2003 22:30:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AS1zm-0001uG-Ry for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Dec 2003 17:30:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tdcnorge.no!landlord!wards.force9.net.POSTED!not-for-mail User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <3FCE6F3B.5050909@yahoo.com> X-Forwarded: for smolny.plus.com via NNTP Proxy Original-Lines: 23 Original-NNTP-Posting-Host: 212.159.3.244 Original-X-Complaints-To: abuse@plus.net.uk Original-X-Trace: wards.force9.net 1070572626 212.159.3.244 (Thu, 04 Dec 2003 21:17:06 GMT) Original-NNTP-Posting-Date: Thu, 04 Dec 2003 21:17:06 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:119013 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14953 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14953 Kevin, > Since *info* and *Help* buffers are never(?) marked as modified, I guess > it's actually save-buffers-kill-emacs (C-x C-c) that's holding you up, not > kill-buffer (C-x k). And that means it's buffer-offer-save that's at > fault, not kill-buffer-query-functions. > > So maybe you just want to turn on buffer-offer-save for buffers you > explictly create, as with switch-to-buffer (C-x b), instead of buffers Emacs > creates for you: > > (defadvice switch-to-buffer (after buffer-offer-save activate) > "Set `buffer-offer-save' when called interactively." > (and (interactive-p) > (setq buffer-offer-save t))) ; automatically local in all buffers > this time it really does work like a dream. Johan Bockgard's hack also works but offers no failed memory protection and is consequently not very helpful. i therefore extend my thanks just to you. sebyte