emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Huy <list-orgmode@reml.org>
To: emacs-orgmode@gnu.org
Subject: Re: Semantics of 'C-c -' and massively-indented lists
Date: Sat, 28 May 2011 09:43:43 -0700	[thread overview]
Message-ID: <20110528164344.21018C7C2C@fish.malachiarts.com> (raw)
In-Reply-To: <20110528140906.GA31956@malachiarts.com>

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

  parent reply	other threads:[~2011-05-28 16:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-27 11:59 Semantics of 'C-c -' and massively-indented lists Huy
2011-05-28 12:29 ` Nicolas Goaziou
2011-05-28 14:09   ` Huy
2011-05-28 15:24     ` Nicolas Goaziou
     [not found]   ` <20110528140906.GA31956@malachiarts.com>
2011-05-28 16:43     ` Huy [this message]
2011-05-28 17:49       ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110528164344.21018C7C2C@fish.malachiarts.com \
    --to=list-orgmode@reml.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).