emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Sébastien Vauban
Subject: [Orgmode] Re: [PATCH] Allow code edit buffer to inherit active region
Date: Thu, 30 Sep 2010 17:19:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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 called
>>> with their native effects from a src block in the Org buffer.
>>
>> Am I right assuming we still need such a code in order to get the wanted
>> effect with the native keys (I mean, for example, =M-;= instead of =C-c C-v
>> C-x M-;=)?
>
> Yes. If people think it is worthwhile, we could make it so that these are
> controlled by variables `org-src-comment-natively' and
> `org-src-indent-natively'. However, currently that is not the case. The only
> such variable currently is `org-src-tab-acts-natively'.

I find such a code worthwhile, for every Org-Babel user, yes. I would advocate
for "don't hesitate" one more minute... unless there's a "nope!" popping up
very soon...


> By the way, please note that there is a minor wrinkle: if you place point in
> the #+end_src line in the Org buffer, then it goes to the beginning of the
> last line of code in the edit buffer, and the region will not contain what
> you were intending (all the code). I'm going to submit a patch so that point
> goes to the end of the code in this case.

I've indeed got glitches when playing a bit with it. Thanks for the coming
updates...

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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