From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Help debugging a problem when saving org-agenda files with C-x s Date: Thu, 14 May 2009 20:41:02 +0200 Message-ID: <87hbznh6ip.fsf@thinkpad.tsdh.de> References: <87d4ad8rb7.fsf@thinkpad.tsdh.de> <87skj7prdo.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4frk-0005gM-KL for emacs-orgmode@gnu.org; Thu, 14 May 2009 14:41:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4frf-0005cW-NU for emacs-orgmode@gnu.org; Thu, 14 May 2009 14:41:12 -0400 Received: from [199.232.76.173] (port=56778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4frf-0005cP-Gw for emacs-orgmode@gnu.org; Thu, 14 May 2009 14:41:07 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:47978) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4fre-0000zJ-SB for emacs-orgmode@gnu.org; Thu, 14 May 2009 14:41:07 -0400 In-Reply-To: (Carsten Dominik's message of "Thu, 14 May 2009 19:28:53 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org Carsten Dominik writes: > Did you restart Emacs? My idea was that the first time you call this, > you change the file name of a buffer, and the second time the problem > happens. First, I only evaled my function anew, but now I tried with a new emacs instance and the error is still the same. But now I can see what happens (but I don't have a solution right now): - `C-x s' saves the modified org buffer (I checked that the changes are saved to disk) - my function is triggered cause it's in `after-save-hook' buffer locally - somehow the buffer associated with the saved org file uni.org is erased and org tries to insert an agendo into this buffer (only one propertized line) Week-agenda (W20): and the major mode is now `org-agenda-mode', which results in the error I posted when org tries to create the agenda page. Bye, Tassilo -- [Emacs] is written in Lisp, which is the only computer language that is beautiful. -- Neal Stephenson, _In the Beginning was the Command Line_