From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Arnaldo Mandel Newsgroups: gmane.emacs.help Subject: Re: Protecting buffers which aren't visiting files Date: Mon, 25 Oct 2010 14:24:13 -0200 Message-ID: References: <1287921707.15997.1401654367@webmail.messagingengine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1288024381 27897 80.91.229.12 (25 Oct 2010 16:33:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 25 Oct 2010 16:33:01 +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 Oct 25 18:33:00 2010 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.69) (envelope-from ) id 1PAPyl-0002JV-W1 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Oct 2010 18:33:00 +0200 Original-Received: from localhost ([127.0.0.1]:40571 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAPyl-0006ty-Ch for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Oct 2010 12:32:59 -0400 Original-Received: from [140.186.70.92] (port=51660 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PAPqS-0001ha-0D for help-gnu-emacs@gnu.org; Mon, 25 Oct 2010 12:24:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PAPqJ-0006sf-Sd for help-gnu-emacs@gnu.org; Mon, 25 Oct 2010 12:24:23 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:35242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PAPqJ-0006rv-LY for help-gnu-emacs@gnu.org; Mon, 25 Oct 2010 12:24:15 -0400 Original-Received: by wwb34 with SMTP id 34so3770085wwb.30 for ; Mon, 25 Oct 2010 09:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=/i7OXyRCcRu4TNW1h6UVsEHzBa8K3gid9yEg0LUjSG0=; b=F9cm9sPrfbZswA5+G9y9QUHdHum201wJ08SLNHtRf9AWAcbtLHyzHWZuFRSeyxpgf/ FTsnqpnLXdlowMircShcQALFKPwA8gPkYIKbEx6XhZc6d/PzckIZfP/fAZ+QE5XPbWlR cMLDqzWuRvS5vncQ4irk5QMsJNI27M+YpvkGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ggp6tUlBow7wujkom82fULBuRWo/lKT6+xaTCw78ZgrGDWQHaRH/BKN07HnkTLM9L9 nk50marSQ3a9WlKYHie1mhlpfXDEYZes/apbCWqs/IKRM/gBtj1b50JUqvPPp1OlzFij SJzsxN7oPj63xf3v7i4J54cZMtGyOvcQhDWnY= Original-Received: by 10.227.137.134 with SMTP id w6mr6714028wbt.152.1288023853879; Mon, 25 Oct 2010 09:24:13 -0700 (PDT) Original-Received: by 10.216.236.211 with HTTP; Mon, 25 Oct 2010 09:24:13 -0700 (PDT) In-Reply-To: <1287921707.15997.1401654367@webmail.messagingengine.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:75226 Archived-At: On Sun, Oct 24, 2010 at 10:01 AM, Otto Maddox wrote: > I use a lot of scratch buffers (which don't visit files), and I've lost > a lot of work due to accidentally quitting Emacs or killing those > buffers, because Emacs doesn't ask for confirmation. Is there a way of > configuring Emacs to treat buffers which don't visit files the same way > as file-visiting buffers, for this situation? There are lots of ways of implementing buffer-saving policies; quite likely you don't want all scratch buffers to ask to be saved (as per the buffer-offer-save local variable). Look up the command save-some-buffers in the elisp manual for the route to solving your problem.