[Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-30 Thread Sébastien Vauban
Hi Dan, Dan Davison wrote: > Sébastien Vauban writes: >> Dan Davison wrote: >>> Now, if the region is contained within a src block, then it will be >>> inherited by the language major mode edit buffer. One consequence is that >>> commands like M-; (comment-region) and C-M-\ (indent-region) can be

[Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-30 Thread Dan Davison
Sébastien Vauban writes: > Hi Dan, > > Dan Davison wrote: >> Now, if the region is contained within a src block, then it will be >> inherited by the language major mode edit buffer. One consequence is that >> commands like M-; (comment-region) and C-M-\ (indent-region) can be called >> with the

[Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-30 Thread Sébastien Vauban
Hi Dan, Dan Davison wrote: > Now, if the region is contained within a src block, then it will be > inherited by the language major mode edit buffer. One consequence is that > commands like M-; (comment-region) and C-M-\ (indent-region) can be called > with their native effects from a src block in

Re: [Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-21 Thread Dan Davison
Carsten Dominik writes: > Hi Dan, > > both changes look good to me. OK, that is applied. So now, if the region is contained within a src block, then it will be inherited by the language major mode edit buffer. One consequence is that commands like M-; (comment-region) and C-M-\ (indent-region) c

Re: [Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-21 Thread Carsten Dominik
Hi Dan, both changes look good to me. - Carsten On Sep 14, 2010, at 3:33 PM, Dan Davison wrote: Dan Davison writes: If we allow the current region to be inherited by the code edit buffer (patch below), then language major mode commands that operate on the region can be called remotely fr

[Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region

2010-09-14 Thread Dan Davison
Dan Davison writes: > If we allow the current region to be inherited by the code edit buffer > (patch below), then language major mode commands that operate on the > region can be called remotely from the org buffer. For example > > C-c C-v C-x M-; comment region according to language > C-c