From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [ox-ascii] Export file overwrites source file Date: Fri, 15 Feb 2013 19:54:21 +0100 Message-ID: <867gm9l86a.fsf@somewhere.org> References: <86obflrjzs.fsf@somewhere.org> <87y5ep650m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Nicolas, Nicolas Goaziou wrote: > "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. Even if I don't answer each such post, thanks to *you* for making those changes, and so quickly. Best regards, Seb -- Sebastien Vauban