emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Don Womick" <don.womick@gmail.com>
To: emacs-orgmode@gnu.org
Subject: C-c ' prepends a comma to shell comment lines
Date: Sat, 4 Oct 2008 11:22:43 -0400	[thread overview]
Message-ID: <5beb3e180810040822p7d05ecdndc7708151c674c00@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1755 bytes --]

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… 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

[-- Attachment #1.2: Type: text/html, Size: 9615 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

                 reply	other threads:[~2008-10-04 15:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5beb3e180810040822p7d05ecdndc7708151c674c00@mail.gmail.com \
    --to=don.womick@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).