From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hendrik Radke" Subject: Sorting org-mode Outlines with xemacs Date: Thu, 23 Apr 2009 17:00:18 +0200 Message-ID: <49F08282.1040609@Informatik.Uni-Oldenburg.DE> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lx0Pc-0001CS-JH for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 11:00:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lx0PX-0001A8-R5 for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 11:00:28 -0400 Received: from [199.232.76.173] (port=41529 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lx0PX-0001A3-Lp for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 11:00:23 -0400 Received: from arbi.informatik.uni-oldenburg.de ([134.106.1.7]:60258) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lx0PW-0006BW-UM for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 11:00:23 -0400 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: emacs-orgmode@gnu.org Hello, first, thank you for this wonderful program that helps me organize my day. I am using XEmacs 21.4.21 on a Debian Lenny system, together with Org-Mode version 6.25d, which works quite well. However, while trying to sort a list by priority, I encountered an error: "Wrong type argument: stringp, ?B" This error stems from org.el, function "org-sort-entries-or-items", in line 6136. Obviously, it tries to convert a string to a char, but the argument is already a character, so it fails with type mismatch. Remedy: I substituted the line (string-to-char (match-string 2)) with (match-string 2) , which fixed the mentioned error. regards, Hendrik Radke