From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: [PATCH] Allow code edit buffer to inherit active region Date: Thu, 30 Sep 2010 17:19:44 +0200 Message-ID: <87sk0rs1gv.fsf@mundaneum.com> References: <871v992xzy.fsf@stats.ox.ac.uk> <87eicwcuw0.fsf@stats.ox.ac.uk> <2193BA26-48F8-42D2-A376-933E60756893@gmail.com> <8762xz18dk.fsf@stats.ox.ac.uk> <878w2jacbj.fsf@mundaneum.com> <87d3rvr20k.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Dan, Dan Davison wrote: > S=C3=A9bastien 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 th= at >>> commands like M-; (comment-region) and C-M-\ (indent-region) can be cal= led >>> 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, =3DM-;=3D instead of = =3DC-c C-v >> C-x M-;=3D)? > > 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 o= nly > such variable currently is `org-src-tab-acts-natively'. I find such a code worthwhile, for every Org-Babel user, yes. I would advoc= ate 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 po= int > 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 --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode