From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Sorting problem Date: Thu, 3 Jan 2008 14:45:48 +0100 Message-ID: References: <20080101173251.GA1990@pollux> <02CF7A3B-AFDE-4323-B98E-C25D09019FDB@gmail.com> <20080103131152.GB1717@pollux> Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAQOQ-00078L-2J for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 08:45:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAQOP-000785-8c for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 08:45:53 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAQOP-00077v-0W for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 08:45:53 -0500 Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAQOO-0004ok-Jy for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 08:45:52 -0500 Received: by ug-out-1314.google.com with SMTP id a2so3024630ugf.48 for ; Thu, 03 Jan 2008 05:45:51 -0800 (PST) In-Reply-To: <20080103131152.GB1717@pollux> 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: Harald Weis Cc: emacs-orgmode@gnu.org On Jan 3, 2008, at 2:11 PM, Harald Weis wrote: > Sorry, Dominik, for the finger trouble. I meant to reply to > the list only. > > On Thu, Jan 03, 2008 at 08:23:26AM +0100, Carsten Dominik wrote: >> >> On Jan 1, 2008, at 6:32 PM, Harald Weis wrote: >>> >>> The error message is invariably the following: >>> >>> Wrong number of arguments: etc >> >> Does it literally say "etc", or is this a place holder for >> something else? > > It's a place holder. I couldn't get the (5-line) error message > into the mouse in order to copy it. Whenever I try, it disappears. > And I'm just finding out that the message is fortunately kept > in the *Messages* buffer, although with lots of white space > and other funny symbols. Annoying. Here it is: > > > Sort children: [a]lpha [n]umeric [t]ime [p]riority p[r]operty =20 > [f]unc A/N/T/P/F means reversed: > Sorting entries... > org-sort-entries-or-items: Wrong number of arguments: #[(reverse =20 > nextrecfun endrecfun &optional startkeyfun endkeyfun) =20 > "deZ=C2=8E=C3=86V=18=C2=9E=C5=B8=C2=8E=C2=AA=08=C2=9E=C5=B8=C2=8E=C2=A3=0F= =C2=8E=C3=87=C2=8E=C3=88!=C2=9E=C5=B8=C2=8E=C5=A1=C2=8E=C3=89=09 You seem to be using a version of Emacs in which the command `sort-subr' does not yet allow the `predicate' argument as the 6th argument to the call. Apparently this is the case in Emacs 21 that you are using - unfortunately I don't anymore have emacs 21 on my system..... Is there a reason why you are not yet using Emacs 22? The "funny symbols" are there because the Lisp code is compliled, read =20= the Feedback section of the Org-mode manual to see to to improve on this. > > Apart from the fact that I cannot get sorting work, I wonder why the > content of the children is unfolded if I only want the children > headlines sorted ? This is because Emacs is cutting and then re-inserting all the tree nodes, and that would mess up the hiding anyway. - Carsten