emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] bugs in C-*


From: Carsten Dominik
Subject: Re: [Orgmode] bugs in C-*
Date: Wed, 21 Jan 2009 18:43:07 +0100

Hi,

following this thread,  I have revisited the commands
`C-c -' and `C-c *' and hope that they are now better
behaved and more useful:


  If there is an active region, these commands will act on the
  region, otherwise on the current line.

  C-c -
      This command turns headings or normal lines into
      items, or items into normal lines.  When there is a
      region, everything depends on the first line of the
      region:
       - if it is a item, turn all items in the region into
         normal lines.
       - if it is a headline, turn all headlines in the region
         into items.
       - if it is a normal line, turn all lines into items.
       - special case: if there is no active region and the
         current line is an item, cycle the bullet type of the
         current list.

   C-c *
       This command turns items and normal lines into
       headings, or headings into normal lines.  When there is
       a region, everything depends on the first line of the
       region:
       - if it is a item, turn all items in the region into
         headlines.
       - if it is a headline, turn all headlines in the region
         into normal lines.
       - if it is a normal line, turn all lines into headlines.

I hope these commands a now more consistent and better.

- Carsten

On Dec 29, 2008, at 8:57 PM, Scott Otterson wrote:

I just discovered the very handy C-* function -- I've been converting lists to headlines manually!   But I also discovered a couple of bugs:

If I select a region containing a plain list and then type C-*, org mode adds the leading stars but doesn't remove the plain list symbols, for example, this:

* headline
 - list 1
 - list 2

is converted to this:

* headline
*** - list 1
*** - list 2

Also, if I'm at the end of a file so that the region can't be extended beyond the end of the last item in the list, then that item isn't converted.  In other words, I get this:

* headline
*** - list 1
- list 2

Thanks,

Scott






_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


reply via email to

[Prev in Thread] Current Thread [Next in Thread]