emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Scott Otterson <scotto@u.washington.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: bugs in C-*
Date: Wed, 21 Jan 2009 18:43:07 +0100	[thread overview]
Message-ID: <16043C00-30E4-46E0-9BBE-4CF8ADBA6D78@uva.nl> (raw)
In-Reply-To: <49592BC2.2090400@u.washington.edu>


[-- Attachment #1.1: Type: text/plain, Size: 2305 bytes --]

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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[-- Attachment #1.2: Type: text/html, Size: 4807 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

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

  parent reply	other threads:[~2009-01-21 17:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200812291702.mBTH2sVD004384@bp34.u.washington.edu>
2008-12-29 19:44 ` structure editing in brainstorming mode Scott Otterson
2008-12-29 20:10   ` Matthew Lundin
2008-12-29 19:57 ` bugs in C-* Scott Otterson
2008-12-29 20:13   ` Matthew Lundin
2008-12-29 20:19     ` Matthew Lundin
2008-12-29 20:27       ` Scott Otterson
2009-01-21 17:43   ` Carsten Dominik [this message]
2009-01-22 22:08     ` Scott Otterson

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=16043C00-30E4-46E0-9BBE-4CF8ADBA6D78@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=scotto@u.washington.edu \
    --subject='Re: bugs in C-*' \
    /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

Code repositories for project(s) associated with this 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).