From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: promote/demote oddities Date: Thu, 19 Jul 2007 13:32:01 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBanH-0004BF-SC for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 14:32:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBanG-0004AP-AB for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 14:32:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBanG-0004AK-7m for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 14:32:06 -0400 Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBanF-0001Dj-SD for emacs-orgmode@gnu.org; Thu, 19 Jul 2007 14:32:06 -0400 Received: by wa-out-1112.google.com with SMTP id k34so702305wah for ; Thu, 19 Jul 2007 11:32:04 -0700 (PDT) Content-Disposition: inline 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: org-mode I found two problems is promotion and demotion. This is with org-more 5.03 on emacs 21.1.1 and 21.3.50.1. First, given the file ------- test.org ------ * h 1 t 1 *** h 1 1 t 1 *** h 1 2 t 1 2 ---------------------- Using M-S-right on heading 'h 1' produces ------- test.org ------ *** h 1 t 1 ***** h 1 1 t 1 ***** h 1 2 t 1 2 ---------------------- I would have expected the text lines to indent as well. Second, given the file ------- test.org ------ * h 2 - i 1 - i 2 ---------------------- If I use M-S-right on 'i 1', nothing happens. (This may be new intentional behavior.) If I use M-S-right I get ------- test.org ------ * h 2 - i 1 - i 2 ---------------------- This is expected since demotion now shifts by two. However if I try to promote 'i 1' again using M-S-left I get ------- test.org ------ * h 2 - i 1 - i 2 ---------------------- It looks like it is increase the indent by the current indent minus 2. In the debugger it looks like delta in org-indent-item (line 6192) is 2 for M-S-right and the current indent -2 for M-S-left. I'm having a little trouble following the logic of how it is set. Edd