emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* structure editing in brainstorming mode
@ 2008-12-29  5:58 Rustom Mody
  2008-12-29 12:51 ` Matthew Lundin
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Rustom Mody @ 2008-12-29  5:58 UTC (permalink / raw)
  To: emacs-orgmode

There are certain use-cases that come up -- typically when using
org-mode in 'brainstorming mode'.
I am sure they are so basic that there must be ways of doing it that I
dont know of...

1. Multiple heading demotion

Lets say I start writing down some points maybe with/without some
additional text
* Cat
* Dog

And now I decide to put all these into a superheading 'My Pets'
The only way I know is to enter
* My Pets
before Cat and then demote each subtree -- if there were not two but
ten I'd have to do that 10 times
I tried selecting the whole set that I want to demote and doing M-S-right
but I get the message

This command is active in special contexts like tables headlines or timestamps

2. Converting heading type

Sometimes one assumes that the points are 'small' and so are entered
as + points. Thus
* Pets
  + Cat
  + Dog

and then at some point it emerges that the +es had better be changed
to headings that is (the requisite number of) *s.  Any easy way of
doing that?

Thanks

Rustom

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-29  5:58 structure editing in brainstorming mode Rustom Mody
@ 2008-12-29 12:51 ` Matthew Lundin
  2008-12-30 23:55   ` Carsten Dominik
  2008-12-29 16:36 ` Bernt Hansen
  2008-12-30  0:50 ` Olaf Dietsche
  2 siblings, 1 reply; 22+ messages in thread
From: Matthew Lundin @ 2008-12-29 12:51 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode


Hi Rustom,

"Rustom Mody" <rustompmody@gmail.com> writes:

> 1. Multiple heading demotion
>
> Lets say I start writing down some points maybe with/without some
> additional text
> * Cat
> * Dog
>
> And now I decide to put all these into a superheading 'My Pets'
> The only way I know is to enter
> * My Pets
> before Cat and then demote each subtree -- if there were not two but
> ten I'd have to do that 10 times
> I tried selecting the whole set that I want to demote and doing M-S-right
> but I get the message
>
> This command is active in special contexts like tables headlines or timestamps

For this, you can use M-<right> and M-<left>, which promote and demote
headlines. (M-S-<right> demotes the entire subtree.)

See this section of the manual a list of commands:
http://orgmode.org/manual/Structure-editing.html#Structure-editing

> 2. Converting heading type
>
> Sometimes one assumes that the points are 'small' and so are entered
> as + points. Thus
> * Pets
>   + Cat
>   + Dog
>
> and then at some point it emerges that the +es had better be changed
> to headings that is (the requisite number of) *s.  Any easy way of
> doing that?
>

C-c - or S-<left>/<right> should do the trick.

For more information, see this section of the manual:
http://orgmode.org/manual/Plain-lists.html#Plain-lists

Best,

Matt

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-29  5:58 structure editing in brainstorming mode Rustom Mody
  2008-12-29 12:51 ` Matthew Lundin
@ 2008-12-29 16:36 ` Bernt Hansen
  2008-12-30  0:50 ` Olaf Dietsche
  2 siblings, 0 replies; 22+ messages in thread
From: Bernt Hansen @ 2008-12-29 16:36 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

"Rustom Mody" <rustompmody@gmail.com> writes:

> 1. Multiple heading demotion
>
> Lets say I start writing down some points maybe with/without some
> additional text
> * Cat
> * Dog
>
> And now I decide to put all these into a superheading 'My Pets'
> The only way I know is to enter
> * My Pets
> before Cat and then demote each subtree -- if there were not two but
> ten I'd have to do that 10 times

This sounds like a great use for a keyboard macro

Hit S-Tab until you get Contents view which shows headlines only (the
rest of the content is folded) and position the cursor on the first
headline to be demoted

C-x (
M-S-right
M-x org-forward-same-level
C-x )

Then just C-x e to repeat the macro and demote the current headline and
move forward to the next one.  If you're demoting consecutive entries
then you can do C-x e for the first and just 'e' for each successive one
to repeat the macro. (eg. C-x e e e e demotes this headline and the 3
following it)

>
> 2. Converting heading type
>
> Sometimes one assumes that the points are 'small' and so are entered
> as + points. Thus
> * Pets
>   + Cat
>   + Dog
> and then at some point it emerges that the +es had better be changed
> to headings that is (the requisite number of) *s.  Any easy way of
> doing that?

You can just use query replace for this

Highlight the entries to convert and then

C-M-%

and change 
'^  \+'
to
'**'  (or '***' if you are using odd levels only)

HTH,
-Bernt

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
       [not found] <200812291702.mBTH2sVD004384@bp34.u.washington.edu>
@ 2008-12-29 19:44 ` Scott Otterson
  2008-12-29 20:10   ` Matthew Lundin
  2008-12-29 19:57 ` bugs in C-* Scott Otterson
  1 sibling, 1 reply; 22+ messages in thread
From: Scott Otterson @ 2008-12-29 19:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/html, Size: 987 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* bugs in C-*
       [not found] <200812291702.mBTH2sVD004384@bp34.u.washington.edu>
  2008-12-29 19:44 ` structure editing in brainstorming mode Scott Otterson
@ 2008-12-29 19:57 ` Scott Otterson
  2008-12-29 20:13   ` Matthew Lundin
  2009-01-21 17:43   ` Carsten Dominik
  1 sibling, 2 replies; 22+ messages in thread
From: Scott Otterson @ 2008-12-29 19:57 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-29 19:44 ` structure editing in brainstorming mode Scott Otterson
@ 2008-12-29 20:10   ` Matthew Lundin
  0 siblings, 0 replies; 22+ messages in thread
From: Matthew Lundin @ 2008-12-29 20:10 UTC (permalink / raw)
  To: Scott Otterson; +Cc: emacs-orgmode


Hi Scott,

Scott Otterson <scotto@u.washington.edu> writes:

> On 12/29/2008 9:00 AM, Matthew Lundin <mdl@imapmail.org> wrote:
>
>     <...>
>     "Rustom Mody" <rustompmody@gmail.com> writes:
>     
>     <..>
>     
>         2. Converting heading type
>
>     C-c - or S-<left>/<right> should do the trick.
>
> This does replace '+' or whatever with '*' but it doesn't add the leading
> stars, turning a list into a heading.  But C-* does the trick.

Thanks for alerting me to this. I had been using C-c - and then
something like C-u - 5 C-x TAB to get rid of the white space to create
1st level headings. 

C-* looks to be much more efficient! 

There's always something new to learn about org-mode! I updated the
FAQ accordingly. (The new explanation should show up in an hour and a
half.)

http://orgmode.org/worg/org-faq.php#convert-plain-lists-to-headlines

Regards,

Matt

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: bugs in C-*
  2008-12-29 19:57 ` bugs in C-* Scott Otterson
@ 2008-12-29 20:13   ` Matthew Lundin
  2008-12-29 20:19     ` Matthew Lundin
  2009-01-21 17:43   ` Carsten Dominik
  1 sibling, 1 reply; 22+ messages in thread
From: Matthew Lundin @ 2008-12-29 20:13 UTC (permalink / raw)
  To: Scott Otterson; +Cc: emacs-orgmode


Scott Otterson <scotto@u.washington.edu> writes:

> 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
>

I can confirm this behavior. When using C-* on a single headline, the
plain list bullet is removed. When using C-* on a region of headlines,
the plain list bullets remain.

- Matt

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: bugs in C-*
  2008-12-29 20:13   ` Matthew Lundin
@ 2008-12-29 20:19     ` Matthew Lundin
  2008-12-29 20:27       ` Scott Otterson
  0 siblings, 1 reply; 22+ messages in thread
From: Matthew Lundin @ 2008-12-29 20:19 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: Scott Otterson, emacs-orgmode


Hi Scott, 

Matthew Lundin <mdl@imapmail.org> writes:

> Scott Otterson <scotto@u.washington.edu> writes:
>
>> I just discovered the very handy C-* function -- I've been converting
>> lists to headlines manually!   But I also discovered a couple of bugs:
>>
>>
>
> I can confirm this behavior. When using C-* on a single headline, the
> plain list bullet is removed. When using C-* on a region of headlines,
> the plain list bullets remain.

I believe we've incorrectly typed the keybinding for org-ctrl-c-star.
In the previous posts and subject line, "C-*" should be "C-c *".

Best,
Matt

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: bugs in C-*
  2008-12-29 20:19     ` Matthew Lundin
@ 2008-12-29 20:27       ` Scott Otterson
  0 siblings, 0 replies; 22+ messages in thread
From: Scott Otterson @ 2008-12-29 20:27 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: emacs-orgmode

Yup, it's C-c *.  Thanks for updating the FAQ so quickly!

Scott

On 12/29/2008 12:19 PM, Matthew Lundin wrote:
> <...>
> I believe we've incorrectly typed the keybinding for org-ctrl-c-star.
> In the previous posts and subject line, "C-*" should be "C-c *".
>
> Best,
> Matt
>   

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-29  5:58 structure editing in brainstorming mode Rustom Mody
  2008-12-29 12:51 ` Matthew Lundin
  2008-12-29 16:36 ` Bernt Hansen
@ 2008-12-30  0:50 ` Olaf Dietsche
  2008-12-30 14:11   ` Rustom Mody
  2 siblings, 1 reply; 22+ messages in thread
From: Olaf Dietsche @ 2008-12-30  0:50 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

"Rustom Mody" <rustompmody@gmail.com> writes:

> There are certain use-cases that come up -- typically when using
> org-mode in 'brainstorming mode'.
> I am sure they are so basic that there must be ways of doing it that I
> dont know of...
[...]
> 2. Converting heading type
>
> Sometimes one assumes that the points are 'small' and so are entered
> as + points. Thus
> * Pets
>   + Cat
>   + Dog
>
> and then at some point it emerges that the +es had better be changed
> to headings that is (the requisite number of) *s.  Any easy way of
> doing that?

if there's no intervening text, select the rectangle (blanks and
pluses) and then do a string-rectangle: C-x r t ** RET

Regards, Olaf

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-30  0:50 ` Olaf Dietsche
@ 2008-12-30 14:11   ` Rustom Mody
  0 siblings, 0 replies; 22+ messages in thread
From: Rustom Mody @ 2008-12-30 14:11 UTC (permalink / raw)
  To: emacs-orgmode

Thanks Matthew for the C-c - tip -- I tried it and find that if I have

* Heading1
*** Subhead

and I do C-c - on Subhead I get
   - Subhead
(ie 3 leading spaces)

If the original was
** Subhead
I get 2 spaces

This seems to be the case that having odd-levels and hide stars is not
as convenient as not having it.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-29 12:51 ` Matthew Lundin
@ 2008-12-30 23:55   ` Carsten Dominik
  2008-12-31  6:04     ` Rustom Mody
  0 siblings, 1 reply; 22+ messages in thread
From: Carsten Dominik @ 2008-12-30 23:55 UTC (permalink / raw)
  To: Matthew Lundin; +Cc: Rustom Mody, emacs-orgmode


On Dec 29, 2008, at 1:51 PM, Matthew Lundin wrote:

>
> Hi Rustom,
>
> "Rustom Mody" <rustompmody@gmail.com> writes:
>
>> 1. Multiple heading demotion
>>
>> Lets say I start writing down some points maybe with/without some
>> additional text
>> * Cat
>> * Dog
>>
>> And now I decide to put all these into a superheading 'My Pets'
>> The only way I know is to enter
>> * My Pets
>> before Cat and then demote each subtree -- if there were not two but
>> ten I'd have to do that 10 times
>> I tried selecting the whole set that I want to demote and doing M-S- 
>> right
>> but I get the message
>>
>> This command is active in special contexts like tables headlines or  
>> timestamps
>
> For this, you can use M-<right> and M-<left>, which promote and demote
> headlines. (M-S-<right> demotes the entire subtree.)

Hi Rustom,

have you seen this part of the reply?  Matt is correct that what you  
are trying (demoting a region of headlines) works with M-right, but  
not with M-S-right.  The reason for this is that a region might  
contain incomplete trees, which would led to a contradiction in which  
headlines should be changed.

- Carsten


>
>
> See this section of the manual a list of commands:
> http://orgmode.org/manual/Structure-editing.html#Structure-editing
>
>> 2. Converting heading type
>>
>> Sometimes one assumes that the points are 'small' and so are entered
>> as + points. Thus
>> * Pets
>>  + Cat
>>  + Dog
>>
>> and then at some point it emerges that the +es had better be changed
>> to headings that is (the requisite number of) *s.  Any easy way of
>> doing that?
>>
>
> C-c - or S-<left>/<right> should do the trick.
>
> For more information, see this section of the manual:
> http://orgmode.org/manual/Plain-lists.html#Plain-lists
>
> Best,
>
> Matt
>
>
> _______________________________________________
> 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-30 23:55   ` Carsten Dominik
@ 2008-12-31  6:04     ` Rustom Mody
  2008-12-31  8:07       ` Carsten Dominik
  0 siblings, 1 reply; 22+ messages in thread
From: Rustom Mody @ 2008-12-31  6:04 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Dec 31, 2008 at 5:25 AM, Carsten Dominik <dominik@science.uva.nl> wrote:
>
> On Dec 29, 2008, at 1:51 PM, Matthew Lundin wrote:
<snipped>
>> For this, you can use M-<right> and M-<left>, which promote and demote
>> headlines. (M-S-<right> demotes the entire subtree.)
>
> Hi Rustom,
>
> have you seen this part of the reply?  Matt is correct that what you are
> trying (demoting a region of headlines) works with M-right, but not with
> M-S-right.

Thanks.  But I had to turn on transient mark mode for it to work.
Intended behavior I guess?

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-31  6:04     ` Rustom Mody
@ 2008-12-31  8:07       ` Carsten Dominik
  2008-12-31 11:36         ` Daniel Clemente
  2009-01-01 22:53         ` Matthew Lundin
  0 siblings, 2 replies; 22+ messages in thread
From: Carsten Dominik @ 2008-12-31  8:07 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode


On Dec 31, 2008, at 7:04 AM, Rustom Mody wrote:

> On Wed, Dec 31, 2008 at 5:25 AM, Carsten Dominik <dominik@science.uva.nl 
> > wrote:
>>
>> On Dec 29, 2008, at 1:51 PM, Matthew Lundin wrote:
> <snipped>
>>> For this, you can use M-<right> and M-<left>, which promote and  
>>> demote
>>> headlines. (M-S-<right> demotes the entire subtree.)
>>
>> Hi Rustom,
>>
>> have you seen this part of the reply?  Matt is correct that what  
>> you are
>> trying (demoting a region of headlines) works with M-right, but not  
>> with
>> M-S-right.
>
> Thanks.  But I had to turn on transient mark mode for it to work.
> Intended behavior I guess?

Yes.  Everybody should turn it on.  Why would you not?

Anyway, it Emacs 23, it will be the default.

Matt, we clearly need a FAQ entry about transient-mark-mode :-)

- Carsten

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-31  8:07       ` Carsten Dominik
@ 2008-12-31 11:36         ` Daniel Clemente
  2008-12-31 13:28           ` Carsten Dominik
  2009-01-01 22:53         ` Matthew Lundin
  1 sibling, 1 reply; 22+ messages in thread
From: Daniel Clemente @ 2008-12-31 11:36 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Rustom Mody, emacs-orgmode


>> Thanks.  But I had to turn on transient mark mode for it to work.
>> Intended behavior I guess?
>
> Yes.  Everybody should turn it on.  Why would you not?
>

  Why „should“ everyone use transient mark mode? Not everyone has to like that setting, and some may prefer to work without it.

  I myself find it confusing because when I set the mark, I want just to mark that point for later use (to jump quickly there, for instance). transient-mark-mode assumes that I always want to *start a region*, which is not true.

  I also like to select text without highlighting; it is less distracting and more readable.


  I wish you a (transient-mark-mode -1) and a happy new year :-)
Daniel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-31 11:36         ` Daniel Clemente
@ 2008-12-31 13:28           ` Carsten Dominik
  2008-12-31 13:33             ` Daniel Martins
  2009-01-01  6:42             ` Rustom Mody
  0 siblings, 2 replies; 22+ messages in thread
From: Carsten Dominik @ 2008-12-31 13:28 UTC (permalink / raw)
  To: Daniel Clemente; +Cc: Rustom Mody, emacs-orgmode


On Dec 31, 2008, at 12:36 PM, Daniel Clemente wrote:

>
>>> Thanks.  But I had to turn on transient mark mode for it to work.
>>> Intended behavior I guess?
>>
>> Yes.  Everybody should turn it on.  Why would you not?
>>
>
>  Why „should“ everyone use transient mark mode? Not everyone has to  
> like that setting, and some may prefer to work without it.
>
>  I myself find it confusing because when I set the mark, I want just  
> to mark that point for later use (to jump quickly there, for  
> instance). transient-mark-mode assumes that I always want to *start  
> a region*, which is not true.
>
>  I also like to select text without highlighting; it is less  
> distracting and more readable.
>
>
>  I wish you a (transient-mark-mode -1) and a happy new year :-)


OK, point taken.  I hardly ever use the mark as a jumping point.

When I need to remember a position, most of the time I split the
window, go to where I want momentarily in the new window, and
then close that window again.

I thought that transient-mark-mode was the only way to make use
of commands that automatically use the region if one is active.
But because of your mail, I went back to the Emacs manual and
learned about the Momentary Mark, which is
transient-transient-mark-mode, sort of.  Pretty nice, this is
a viable alternative to turning on transient-mark-mode, so viable
that I am now considering turning off transient-mark-mode :-)

OK, rephrase:

   To use region-sensitive commands, everybody should either
   turn on transient-mark-mode, or learn about the momentary mark.


May your transition into the next year be highlighted.

- Carsten



>
> Daniel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-31 13:28           ` Carsten Dominik
@ 2008-12-31 13:33             ` Daniel Martins
  2009-01-01  6:42             ` Rustom Mody
  1 sibling, 0 replies; 22+ messages in thread
From: Daniel Martins @ 2008-12-31 13:33 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Rustom Mody


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

 I wish you a (transient-mark-mode -1) and a happy new year :-)  ???

May your transition into the next year be highlighted ???

(comment-add 0)
(setq happy-new-year t)

Daniel


2008/12/31 Carsten Dominik <dominik@science.uva.nl>

>
> On Dec 31, 2008, at 12:36 PM, Daniel Clemente wrote:
>
>
>>  Thanks.  But I had to turn on transient mark mode for it to work.
>>>> Intended behavior I guess?
>>>>
>>>
>>> Yes.  Everybody should turn it on.  Why would you not?
>>>
>>>
>>  Why „should" everyone use transient mark mode? Not everyone has to like
>> that setting, and some may prefer to work without it.
>>
>>  I myself find it confusing because when I set the mark, I want just to
>> mark that point for later use (to jump quickly there, for instance).
>> transient-mark-mode assumes that I always want to *start a region*, which is
>> not true.
>>
>>  I also like to select text without highlighting; it is less distracting
>> and more readable.
>>
>>
>>  I wish you a (transient-mark-mode -1) and a happy new year :-)
>>
>
>
> OK, point taken.  I hardly ever use the mark as a jumping point.
>
> When I need to remember a position, most of the time I split the
> window, go to where I want momentarily in the new window, and
> then close that window again.
>
> I thought that transient-mark-mode was the only way to make use
> of commands that automatically use the region if one is active.
> But because of your mail, I went back to the Emacs manual and
> learned about the Momentary Mark, which is
> transient-transient-mark-mode, sort of.  Pretty nice, this is
> a viable alternative to turning on transient-mark-mode, so viable
> that I am now considering turning off transient-mark-mode :-)
>
> OK, rephrase:
>
>  To use region-sensitive commands, everybody should either
>  turn on transient-mark-mode, or learn about the momentary mark.
>
>
> May your transition into the next year be highlighted.
>
> - Carsten
>
>
>
>
>
>> Daniel
>>
>
>
>
> _______________________________________________
> 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: 3498 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-31 13:28           ` Carsten Dominik
  2008-12-31 13:33             ` Daniel Martins
@ 2009-01-01  6:42             ` Rustom Mody
  2009-01-01  8:58               ` Carsten Dominik
  1 sibling, 1 reply; 22+ messages in thread
From: Rustom Mody @ 2009-01-01  6:42 UTC (permalink / raw)
  To: emacs-orgmode

On Wed, Dec 31, 2008 at 6:58 PM, Carsten Dominik <dominik@science.uva.nl> wrote:
> I thought that transient-mark-mode was the only way to make use
> of commands that automatically use the region if one is active.
> But because of your mail, I went back to the Emacs manual and
> learned about the Momentary Mark, which is
> transient-transient-mark-mode, sort of.  Pretty nice, this is
> a viable alternative to turning on transient-mark-mode, so viable
> that I am now considering turning off transient-mark-mode :-)

Hey Neat! Thanks for that new year gift Carsten.

And a happy new year to all!

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2009-01-01  6:42             ` Rustom Mody
@ 2009-01-01  8:58               ` Carsten Dominik
  0 siblings, 0 replies; 22+ messages in thread
From: Carsten Dominik @ 2009-01-01  8:58 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode


On Jan 1, 2009, at 7:42 AM, Rustom Mody wrote:

> On Wed, Dec 31, 2008 at 6:58 PM, Carsten Dominik <dominik@science.uva.nl 
> > wrote:
>> I thought that transient-mark-mode was the only way to make use
>> of commands that automatically use the region if one is active.
>> But because of your mail, I went back to the Emacs manual and
>> learned about the Momentary Mark, which is
>> transient-transient-mark-mode, sort of.  Pretty nice, this is
>> a viable alternative to turning on transient-mark-mode, so viable
>> that I am now considering turning off transient-mark-mode :-)
>
> Hey Neat! Thanks for that new year gift Carsten.

:-)

I think this should all already work, just leave transient-mark-mode
off, and then use `C-SPC C-SPC' instead of only a single `C-SPC' to
start a region.

- Carsten

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: structure editing in brainstorming mode
  2008-12-31  8:07       ` Carsten Dominik
  2008-12-31 11:36         ` Daniel Clemente
@ 2009-01-01 22:53         ` Matthew Lundin
  1 sibling, 0 replies; 22+ messages in thread
From: Matthew Lundin @ 2009-01-01 22:53 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Rustom Mody, emacs-orgmode


Hi everyone,

Carsten Dominik <dominik@science.uva.nl> writes:

>
> Matt, we clearly need a FAQ entry about transient-mark-mode :-)
>
> - Carsten

I've put up a new FAQ on transient mark mode and Momentary Mark: 

http://orgmode.org/worg/org-faq.php#transient-mark-mode

Feel free to suggest any corrections.

Best, 
Matt

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: bugs in C-*
  2008-12-29 19:57 ` bugs in C-* Scott Otterson
  2008-12-29 20:13   ` Matthew Lundin
@ 2009-01-21 17:43   ` Carsten Dominik
  2009-01-22 22:08     ` Scott Otterson
  1 sibling, 1 reply; 22+ messages in thread
From: Carsten Dominik @ 2009-01-21 17:43 UTC (permalink / raw)
  To: Scott Otterson; +Cc: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: bugs in C-*
  2009-01-21 17:43   ` Carsten Dominik
@ 2009-01-22 22:08     ` Scott Otterson
  0 siblings, 0 replies; 22+ messages in thread
From: Scott Otterson @ 2009-01-22 22:08 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Thanks, Carsten.

Not only is this a bug fix, it's a nice improvement that increases  
consistency with other org operations.  I think it's fine touches like  
this that make org mode so intuitive.

Scott

On Jan 21, 2009, at 9:43 AM, Carsten Dominik wrote:

> 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:
>
> ...

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2009-01-22 22:08 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [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
2009-01-22 22:08     ` Scott Otterson
2008-12-29  5:58 structure editing in brainstorming mode Rustom Mody
2008-12-29 12:51 ` Matthew Lundin
2008-12-30 23:55   ` Carsten Dominik
2008-12-31  6:04     ` Rustom Mody
2008-12-31  8:07       ` Carsten Dominik
2008-12-31 11:36         ` Daniel Clemente
2008-12-31 13:28           ` Carsten Dominik
2008-12-31 13:33             ` Daniel Martins
2009-01-01  6:42             ` Rustom Mody
2009-01-01  8:58               ` Carsten Dominik
2009-01-01 22:53         ` Matthew Lundin
2008-12-29 16:36 ` Bernt Hansen
2008-12-30  0:50 ` Olaf Dietsche
2008-12-30 14:11   ` Rustom Mody

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).