From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-ascii] Export file overwrites source file Date: Fri, 15 Feb 2013 15:11:37 +0100 Message-ID: <87y5ep650m.fsf@gmail.com> References: <86obflrjzs.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6M1Q-0003hq-Jo for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 09:12:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6M1O-0007iO-F3 for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 09:12:16 -0500 Received: from plane.gmane.org ([80.91.229.3]:47818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6M1O-0007iB-8V for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 09:12:14 -0500 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U6M1c-000635-QU for emacs-orgmode@gnu.org; Fri, 15 Feb 2013 15:12:28 +0100 In-Reply-To: <86obflrjzs.fsf@somewhere.org> (Sebastien Vauban's message of "Fri, 15 Feb 2013 10:42:31 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org Hello, "Sebastien Vauban" writes: > As many people, I think, I've also associated Org-mode to .txt files. > > Now, with the new exporter, if I export `a.txt' as "plain text", it overwrites > (without notice, BTW) my source file `a.txt': it's lost. > > Before, in such a case, the exporter noticed that I already had a file named > `a.txt', hence it named the exported file as `a.txt.txt', what I found to be a > good trade-off. > > Shouldn't that behavior be put back in the ASCII exporter? Indeed. Export should never overwrite original file, whatever the export back-end is. It should be fixed in master. Thank you for reporting this. Regards, -- Nicolas Goaziou