From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: save-buffer: avoid data loss on interrupt Date: Thu, 15 Dec 2011 18:53:24 -0500 Message-ID: References: <87zkf282ht.fsf@rho.meyering.net> <87pqfsqtsj.fsf@rho.meyering.net> <4EE7AF8B.2090303@cs.ucla.edu> <87d3bsqjmm.fsf@rho.meyering.net> <4EE7C7D4.8050206@cs.ucla.edu> <87fwgnp672.fsf@rho.meyering.net> <4EE8F04D.8060007@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1323993220 16966 80.91.229.12 (15 Dec 2011 23:53:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Dec 2011 23:53:40 +0000 (UTC) Cc: Jim Meyering , Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 16 00:53:35 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RbL7G-0000TE-So for ged-emacs-devel@m.gmane.org; Fri, 16 Dec 2011 00:53:35 +0100 Original-Received: from localhost ([::1]:56421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbL7F-0002c5-N0 for ged-emacs-devel@m.gmane.org; Thu, 15 Dec 2011 18:53:33 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbL7D-0002c0-Ah for emacs-devel@gnu.org; Thu, 15 Dec 2011 18:53:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbL7C-0001Vq-4G for emacs-devel@gnu.org; Thu, 15 Dec 2011 18:53:31 -0500 Original-Received: from smtp-01.vtx.ch ([194.38.175.90]:55552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbL7B-0001Vk-Rt for emacs-devel@gnu.org; Thu, 15 Dec 2011 18:53:30 -0500 Original-Received: from ceviche.home (dyn.144-85-152-106.dsl.vtx.ch [144.85.152.106]) by smtp-01.vtx.ch (VTX Services SA) with ESMTP id F019228684; Fri, 16 Dec 2011 00:53:27 +0100 (CET) Original-Received: by ceviche.home (Postfix, from userid 20848) id E8E73662EE; Thu, 15 Dec 2011 18:53:24 -0500 (EST) In-Reply-To: <4EE8F04D.8060007@cs.ucla.edu> (Paul Eggert's message of "Wed, 14 Dec 2011 10:51:57 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.38.175.90 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146734 Archived-At: > All in all, I think that in the long run it'll be simpler and > more reliable if we create the temp file and then check > that it has (or make it have) the correct ownership and permissions. Agreed, Stefan