From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Womick, Don" Subject: C-c ' prepends , to shell comment lines Date: Sat, 4 Oct 2008 09:17:14 -0500 Message-ID: <6886503D1523ED41ACBD82F205B220EA03001455@ad01msxmb004.US.Cingular.Net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1521751346==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Km7wk-0002hc-4Q for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 10:17:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Km7wg-0002eJ-Gz for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 10:17:25 -0400 Received: from [199.232.76.173] (port=52675 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km7wg-0002eG-By for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 10:17:22 -0400 Received: from mail120.messagelabs.com ([216.82.250.83]:42705) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Km7wf-0007Ur-Ju for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 10:17:22 -0400 Received: from enaf.dadc.sbc.com (localhost.localdomain [127.0.0.1]) by tlph064.enaf.dadc.sbc.com (8.14.2/8.14.2) with ESMTP id m94EHHI7023764 for ; Sat, 4 Oct 2008 09:17:17 -0500 Received: from td03xsmtp007.US.Cingular.Net (td03xsmtp007.us.cingular.net [170.35.131.171]) by tlph064.enaf.dadc.sbc.com (8.14.2/8.14.2) with ESMTP id m94EHGKS023753 for ; Sat, 4 Oct 2008 09:17:16 -0500 Content-class: urn:content-classes:message 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@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============1521751346== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9262B.E72EAAB5" This is a multi-part message in MIME format. ------_=_NextPart_001_01C9262B.E72EAAB5 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable After running C-c ' (apostrophe) on a shell script between #+BEGIN_SRC and #+END_SRC tags and returning to the org file using C-c ' again, comments in the script have a , (comma) prepended. =20 If I have =20 #+BEGIN_SRC shell-script #! /bin/bash # some comments here... they'll be preceded by commas after C-c ' editing # ls cat myfile # inline comment here, isn't affected #+END_SRC =20 and do C-c ' to pull it into an edit buffer, then C-c ' again to go back to the org file, the result is =20 #+BEGIN_SRC shell-script ,#! /bin/bash ,# some comments here... they'll be preceded by commas after C-c ' editing ,# ls cat myfile # inline comment here, isn't affected #+END_SRC =20 Note the commas in front of each # (comment character). =20 This seems to happen to # characters regardless of the editing mode... I tried a Java snippet with the same results: =20 Before: =20 #+BEGIN_SRC java # hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC =20 After: =20 #+BEGIN_SRC java ,# hash comment // java comment here public class MyClass() { private String myVariable; // inline comment here } #+END_SRC =20 I'm running the following: =20 Org-mode version 6.06b GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-19 on LENNART-69DE564 (patched) =20 Thanks for org-mode... I've been using this amazing piece of software almost as long as I've been using Emacs (a couple of years now). =20 Regards, Don Womick ------_=_NextPart_001_01C9262B.E72EAAB5 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

After running C-c ‘ (apostrophe) on a shell = script between #+BEGIN_SRC and #+END_SRC tags and returning to the org file = using C-c ‘ again, comments in the script have a , (comma) = prepended.

 

If I have

 

#+BEGIN_SRC = shell-script

#! /bin/bash

# some comments here... they'll be preceded = by commas after C-c ' editing

#

ls

cat myfile # inline comment here, isn't = affected

#+END_SRC

 

and do C-c ‘ to pull it into an edit buffer, = then C-c ‘ again to go back to the org file, the result = is

 

#+BEGIN_SRC = shell-script

,#! /bin/bash

,# some comments here... they'll be preceded = by commas after C-c ' editing

,#

ls

cat myfile # inline comment here, isn't = affected

#+END_SRC

 

Note the commas in front of each # (comment = character).

 

This seems to happen to # characters regardless of = the editing mode… I tried a Java snippet with the same = results:

 

Before:

 

#+BEGIN_SRC java

# hash comment

// java comment = here

public class MyClass() = {

    private String myVariable; = // inline comment here

}

#+END_SRC

 

After:

 

#+BEGIN_SRC java

,# hash comment

// java comment = here

public class MyClass() = {

    private String myVariable; = // inline comment here

}

#+END_SRC

 

I’m running the = following:

 

Org-mode version 6.06b

GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of = 2008-08-19 on LENNART-69DE564 (patched)

 

Thanks for org-mode… I’ve been using this amazing piece of software almost as long as I’ve been using Emacs = (a couple of years now).

 

Regards,

Don Womick

------_=_NextPart_001_01C9262B.E72EAAB5-- --===============1521751346== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1521751346==--