From mboxrd@z Thu Jan 1 00:00:00 1970 From: Huy Subject: Re: Semantics of 'C-c -' and massively-indented lists Date: Sat, 28 May 2011 09:43:43 -0700 Message-ID: <20110528164344.21018C7C2C@fish.malachiarts.com> References: <20110527115942.B361BC7C17@fish.malachiarts.com> <87mxi7nh4c.fsf@gmail.com> <20110528140906.GA31956@malachiarts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQMc6-00064o-GH for emacs-orgmode@gnu.org; Sat, 28 May 2011 12:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQMc5-00052k-L8 for emacs-orgmode@gnu.org; Sat, 28 May 2011 12:43:46 -0400 Received: from fish.malachiarts.com ([8.3.218.132]:60283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQMc5-00052f-EP for emacs-orgmode@gnu.org; Sat, 28 May 2011 12:43:45 -0400 Received: from malachiarts.org.malachiarts.org (localhost [127.0.0.1]) by fish.malachiarts.com (Postfix) with ESMTP id 21018C7C2C for ; Sat, 28 May 2011 09:43:43 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20110528140906.GA31956@malachiarts.com> 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 On Sat, May 28, 2011 at 07:09:06AM -0700, Huy wrote: > On Sat, May 28, 2011 at 02:29:07PM +0200, Nicolas Goaziou wrote: > > Fixed. > > > > Please report back if something is still wrong. Thank you. > > Perfect behavior! Exactly what I was expecting. > > The only problem is a typo 'skip-blank' instead of 'skip-blanks' > > Thanks a lot for the quick turnaround! Actually, I found a few more problems Multiple Lines ~~~~~~~~~~~~~~ I had forgotten to test when invoking 'C-c -' on multiple lines. If I have (with oddeven and org-adapt-indentation on) the following: ** Headline 2 ** Converting 2 *** Converting 3 * Converting 1 ** Converting 2 *** Converting 3 and I try to do 'C-c -' on the 5 bottom lines, I get: ** Headline 2 - Converting 1 - Converting 2 - Converting 1 - Converting 1 - Converting 2 I would hope to get the following instead: ** Headline 2 - Converting 1 - Converting 2 - Converting 1 - Converting 2 - Converting 3 Whenever possible, the converted lines should preserve their relative levels with their parent. In the above example, we have 2 subtrees that should be preserved separately. Of course, we can't keep all 5 items with levels relative to each other, otherwise we'd get the nonsensical effect: - orphan - parent But in other cases, entire subtrees can be preserved. Strange region behavior and 'C-c *' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When highlighting a region and then applying 'C-c -', all the lines that have at least one character highlighted (anywhere on the line) will be converted. That's good and as expected. But the same doesn't happen with 'C-c *'. There, it actually matters where the region starts/ends in the line. For example, if you have ** Headline 2 - Converting 1 If you triple-mouse-click "Converting 1" or if you just single-click the cursor on "Converting 1", then 'C-c *' will convert the line fine. However, if you only select any of the letters on that line, e.g. the letter 'v', and then 'C-c *', then you get this: ** Headline 2 *** Con verting 1 I have other problems that involve vimpulse and its visual mode, but I won't bother you with that :) Thanks, Huy