From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Makefile bug in generating mh-loaddefs.el? Date: Wed, 04 Jul 2007 08:21:43 +0200 Message-ID: <86y7hwpu2w.fsf@lola.quinscape.zz> References: <200707031842.l63IgTR8029247@oogie-boogie.ics.uci.edu> <200707032055.l63KtOIo003839@oogie-boogie.ics.uci.edu> <87y7hwg4l3.fsf@olgas.newt.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1183530116 30082 80.91.229.12 (4 Jul 2007 06:21:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2007 06:21:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bill Wohler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 04 08:21:54 2007 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I5yFL-00022x-NJ for ged-emacs-devel@m.gmane.org; Wed, 04 Jul 2007 08:21:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5yFK-0000Hy-Uc for ged-emacs-devel@m.gmane.org; Wed, 04 Jul 2007 02:21:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5yFH-0000Ht-Vs for emacs-devel@gnu.org; Wed, 04 Jul 2007 02:21:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5yFF-0000Hh-H3 for emacs-devel@gnu.org; Wed, 04 Jul 2007 02:21:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5yFF-0000Hb-Cj for emacs-devel@gnu.org; Wed, 04 Jul 2007 02:21:45 -0400 Original-Received: from pc3.berlin.powerweb.de ([62.67.228.11]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5yFE-00020V-TJ for emacs-devel@gnu.org; Wed, 04 Jul 2007 02:21:45 -0400 Original-Received: from quinscape.de (dslnet.212-29-44.ip210.dokom.de [212.29.44.210] (may be forged)) by pc3.berlin.powerweb.de (8.9.3p3/8.9.3) with ESMTP id IAA16979 for ; Wed, 4 Jul 2007 08:21:38 +0200 X-Delivered-To: Original-Received: (qmail 11531 invoked from network); 4 Jul 2007 06:21:43 -0000 Original-Received: from unknown (HELO lola.quinscape.zz) ([10.0.3.43]) (envelope-sender ) by ns.quinscape.de (qmail-ldap-1.03) with SMTP for ; 4 Jul 2007 06:21:43 -0000 Original-Received: by lola.quinscape.zz (Postfix, from userid 1001) id B9F9B8F8F7; Wed, 4 Jul 2007 08:21:43 +0200 (CEST) In-Reply-To: <87y7hwg4l3.fsf@olgas.newt.com> (Bill Wohler's message of "Tue\, 03 Jul 2007 21\:44\:56 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.51 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74276 Archived-At: Bill Wohler writes: > Eli Zaretskii writes: > >> So generally the right thing to do is to >> delete the target file if the command fails after beginning to change >> the file. `make' will do this if `.DELETE_ON_ERROR' appears as a >> target. > > I'm not sure I'd agree with this practice. If the command fails, the > remnants of the target file could be used for troubleshooting. In most cases, executing the command via copy&paste is possible. > Tom's approach--writing to a temporary file and moving it at the > end--seems to answer all issues. For people who like temporary files lying around. -- David Kastrup