From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Re: org-agenda-write to .org exports headings in reversed order?! Date: Sat, 16 Aug 2014 09:10:34 -0400 Message-ID: <53EF584A.3000001@verizon.net> References: 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 ([2001:4830:134:3::10]:47828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIdl7-0006u9-Ir for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 09:11:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIdl2-0001Tr-3i for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 09:11:01 -0400 Received: from vms173003pub.verizon.net ([206.46.173.3]:58693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIdl1-0001Tn-Uu for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 09:10:56 -0400 Received: from [127.0.0.1] ([unknown] [70.209.128.87]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0NAE00DDZHXNKB20@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 16 Aug 2014 08:10:37 -0500 (CDT) In-reply-to: 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: emacs-orgmode@gnu.org Martin, M wrote: > Hi, > > I'm still experimenting with agenda export and I found that I can write an > agenda to an org-mode file by C-x C-w (org-agenda-write). > > However, if I do that and select filename.org as target, > I get all headings in the agenda, but the last one first and the first one > last. > > Is there an option which can reverse the order to leave it as it is in the > agenda itself? I know very little of the wonders of emacs lisp, but I wonder if org-agenda.el line 3362 is the reason for this. (mapcar (lambda (s) (org-paste-subtree 1 s)) (reverse content)) I was using org-agenda-write several months ago; I exported to a text file and the result just as you report. Charlie Millar --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com