From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Don Womick" Subject: C-c ' prepends a comma to shell comment lines Date: Sat, 4 Oct 2008 11:22:43 -0400 Message-ID: <5beb3e180810040822p7d05ecdndc7708151c674c00@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2085499413==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Km8xy-0006N8-SJ for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 11:22:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Km8xy-0006Me-4g for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 11:22:46 -0400 Received: from [199.232.76.173] (port=45353 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Km8xx-0006MZ-Ur for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 11:22:46 -0400 Received: from rv-out-0708.google.com ([209.85.198.251]:20730) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Km8xx-0005VJ-7d for emacs-orgmode@gnu.org; Sat, 04 Oct 2008 11:22:45 -0400 Received: by rv-out-0708.google.com with SMTP id k29so2396873rvb.6 for ; Sat, 04 Oct 2008 08:22:43 -0700 (PDT) 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 --===============2085499413== Content-Type: multipart/alternative; boundary="----=_Part_24041_4341566.1223133763596" ------=_Part_24041_4341566.1223133763596 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Please excuse the duplication if this comes across twice... I posted it an hour or so ago from my work email address and I haven't seen it yet. 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=85 I tr= ied 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-69DE56= 4 (patched) Thanks for org-mode=85 I've been using this amazing piece of software almos= t as long as I've been using Emacs (a couple of years now). Regards, Don Womick ------=_Part_24041_4341566.1223133763596 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Please excuse the duplication if this comes across twice..= . I posted it an hour or so ago from my work email address and I haven'= t seen it yet.

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

 

If I=20 have

 

#+BEGIN_SRC=20 shell-script

#!=20 /bin/bash

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

#

ls

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

#+END_SRC

 

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

 

#+BEGIN_SRC=20 shell-script

,#!=20 /bin/bash

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

,#

ls

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

#+END_SRC

 

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

 

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

 

Before:

 

#+BEGIN_SRC=20 java

# hash=20 comment

// java comment=20 here

public class MyClass= ()=20 {

    p= rivate String=20 myVariable; // inline comment here

}

#+END_SRC

 

After:

 

#+BEGIN_SRC=20 java

,# hash=20 comment

// java comment=20 here

public class MyClass= ()=20 {

    p= rivate String=20 myVariable; // inline comment here

}

#+END_SRC

 

I'm running the=20 following:

 

Org-mode version=20 6.06b

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

 

Thanks for org-mode=85 I've been using=20 this amazing piece of software almost as long as I've been using Emacs (a c= ouple=20 of years now).

 

Regards,

Don=20 Womick


------=_Part_24041_4341566.1223133763596-- --===============2085499413== 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 --===============2085499413==--