From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaloian Doganov Subject: bug in headline sort Date: Thu, 03 Jan 2008 11:10:01 +0200 Message-ID: <87y7b7nul2.fsf@doganov.org> 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 1JAMAR-0004TZ-BF for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 04:15:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAMAP-0004Ss-LQ for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 04:15:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAMAO-0004Sc-3j for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 04:15:08 -0500 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JAMAN-0002kI-H0 for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 04:15:07 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JAMAI-0003OQ-MU for emacs-orgmode@gnu.org; Thu, 03 Jan 2008 09:15:02 +0000 Received: from 195.62.22.77 ([195.62.22.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jan 2008 09:15:02 +0000 Received: from kaloian by 195.62.22.77 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jan 2008 09:15:02 +0000 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 I think I've found a sorting bug in org-mode. The minimal steps to reproduce the problem follows: 1. Using org-mode 5.13i with Emacs from CVS (23.0.50.1). 2. Example buffer with just 4 lines: * Headline Sort Example ** Alpha ** Charlie ** Bravo 3. When the point is on the first line ("Headline Sort Example" headline), without active region, issuing "C-c ^ a" leads to this: * Headline Sort Example ** Alpha ** Bravo** Charlie Which is not what one would expect. The very same example using org-mode 4.67d with Emacs 22.1.1 leads to the expected result: * Headline Sort Example ** Alpha ** Bravo ** Charlie