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 _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode