From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: uncommnet-region behavior in org-src blocks Date: Sat, 19 Mar 2016 14:03:45 -0400 Message-ID: References: <87k2ky8jwd.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1148d8f8463f61052e6aaf7c Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahLE3-0000k9-RT for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 14:03:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahLE2-0000pg-IB for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 14:03:47 -0400 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:33141) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahLE2-0000pP-8b for emacs-orgmode@gnu.org; Sat, 19 Mar 2016 14:03:46 -0400 Received: by mail-wm0-x22c.google.com with SMTP id l68so106842328wml.0 for ; Sat, 19 Mar 2016 11:03:46 -0700 (PDT) In-Reply-To: <87k2ky8jwd.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Kitchin , Org-Mode mailing list --001a1148d8f8463f61052e6aaf7c Content-Type: text/plain; charset=UTF-8 sure, that is true. I am still surprised that "uncommenting" adds a # which in org is a comment. actually that seems to happen everywhere in the org-file! John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Sat, Mar 19, 2016 at 1:20 PM, Eric S Fraga wrote: > On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote: > > I noticed that you try to uncomment a region in a src block a # gets > > inserted! > > > > #+BEGIN_SRC emacs-lisp > > ; test > > #+END_SRC > > > > > > If you select ; test and run uncomment-region you get this: > > > > #+BEGIN_SRC emacs-lisp > > # ; test > > #+END_SRC > > > > It also does that in Python. Any ideas why? > > Because you're in org mode, not emacs-lisp or python? If you want to > comment/uncomment codes within a src block, my guess is you would need > to open up the blocks (C-c ') and then comment/uncomment... > -- > : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55 > --001a1148d8f8463f61052e6aaf7c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
sure, that is true. I am still surprised that "uncomm= enting" adds a # which in org is a comment. actually that seems to hap= pen everywhere in the org-file!

John

-----------------------------------
Professor John = Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical EngineeringCarnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
<= div dir=3D"ltr">@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Sat, Mar 19, 2016 at 1:20 PM, Eric S Frag= a <e.fraga@ucl.ac.uk> wrote:
On Saturday, 19 Mar 2016 at 12:44, John Kitchin wrote:<= br> > I noticed that you try to uncomment a region in a src block a # gets > inserted!
>
> #+BEGIN_SRC emacs-lisp
> ; test
> #+END_SRC
>
>
> If you select ; test and run uncomment-region you get this:
>
> #+BEGIN_SRC emacs-lisp
> # ; test
> #+END_SRC
>
> It also does that in Python. Any ideas why?

Because you're in org mode, not emacs-lisp or python?=C2=A0 If y= ou want to
comment/uncomment codes within a src block, my guess is you would need
to open up the blocks (C-c ') and then comment/uncomment...
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55=

--001a1148d8f8463f61052e6aaf7c--