From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: automatically save a specific buffer on exit Date: Wed, 4 Feb 2009 22:30:09 +0100 Message-ID: References: <1233779280.689554@arno.fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233783528 20008 80.91.229.12 (4 Feb 2009 21:38:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Feb 2009 21:38:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andreas Politz Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 04 22:40:03 2009 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 1LUpTU-0008EO-Hp for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 22:40:01 +0100 Original-Received: from localhost ([127.0.0.1]:39194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUpSB-0008Pi-Br for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Feb 2009 16:38:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUpK4-0003dj-6T for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 16:30:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUpK2-0003aA-8J for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 16:30:15 -0500 Original-Received: from [199.232.76.173] (port=47180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUpK1-0003Zz-Tf for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 16:30:13 -0500 Original-Received: from mail-fx0-f14.google.com ([209.85.220.14]:58519) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUpK1-00052a-9T for help-gnu-emacs@gnu.org; Wed, 04 Feb 2009 16:30:13 -0500 Original-Received: by fxm7 with SMTP id 7so925059fxm.18 for ; Wed, 04 Feb 2009 13:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sKHu/Jyl1wFdUZdSwf4RrZRXV8E7VDVH9AuTP0BXrBE=; b=WvabBzLOwLlIhFQ48/dn1co6V5ZD4VApxqT5jxx9GvJ3BtkXYg1UI7GOaJJSJk+GQT tfAeZHNkP1ygT1bAeGELxpCHLTu3Ka8zZmmDG7F97JgU7pVshB1vO2v4lzMk2U7ArSSk LmZp5pBobDmYuHyu3IsE9zb6IH5xZQBtNCJX0= 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 :cc:content-type:content-transfer-encoding; b=b9NnjMQN3Dehs6NeJbq74IeOGS6yzhLLlzzzfBRN/eK5jGbqjfr+47fjDPljC4WcVI p09z6DhBj7PCUDDr1Ca/E8zGd3F2H8Ov8sqeuz8XpIFsaBI0nz1v2KkHkbd9EMwZOZkE s22NYl+LhklH/sYiPn8PlU8xeIpQRjXAkNPDY= Original-Received: by 10.223.108.196 with SMTP id g4mr828552fap.36.1233783009355; Wed, 04 Feb 2009 13:30:09 -0800 (PST) In-Reply-To: <1233779280.689554@arno.fh-trier.de> X-detected-operating-system: by monty-python.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:61906 Archived-At: On Wed, Feb 4, 2009 at 9:26 PM, Andreas Politz wrote: > Hi, > > I have a persistent scratch buffer with a file attached > and I would like emacs to have it saved whenever I > leave the editor. > 'kill-emacs-hook' runs to late and `write-file-functions' > doesn't seem to be aproppriate either. kill-buffer-query-function?