From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Thum Subject: Re: How can I stop org-agenda-write from overwriting existing files. Date: Sun, 03 Mar 2013 17:25:17 +0100 Message-ID: <5133796D.10203@gmx.de> References: <87zjynp62b.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBiz-0000VU-Jl for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 11:25:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCBiy-0005LS-HV for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 11:25:21 -0500 Received: from mout.gmx.net ([212.227.15.18]:50050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBiy-0005LH-8D for emacs-orgmode@gnu.org; Sun, 03 Mar 2013 11:25:20 -0500 Received: from mailout-de.gmx.net ([10.1.76.30]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MWdXB-1UHpnp3reF-00XxWt for ; Sun, 03 Mar 2013 17:25:18 +0100 In-Reply-To: <87zjynp62b.fsf@bzg.ath.cx> 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: Bastien Cc: Rainer Stengele , emacs-orgmode@gnu.org Dear Bastien, On 03/01/2013 03:07 PM, Bastien wrote: > Hi Rainer, > > Rainer Stengele writes: > >> How can I stop org-agenda-write from overwriting existing files? >> Should we consider to introduce an option instead of advising the >> function? > > You are now asked before overwriting the file, thanks for suggesting > this. > this breaks my setup. I export to mobileOrg on my server whenever I sync. Now I am being asked "Overwrite existing file /home/org-mobile/mobileOrg/agendas.org? (y or n) y" but the script does not answer. I am invoking: emacs -batch -l ~/.emacs.d/init.el -f org-mobile-push --kill but even though I use -batch the question is asked! How can I fix this? Cheers, Simon