emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dushyant Juneja <juneja.dushyant@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Bug with (comment-line)
Date: Wed, 26 Oct 2016 05:27:17 +0000	[thread overview]
Message-ID: <CAJkb0UOTp1rsndBpewenR5dR6MXWgYX-Smg9QT0uEgicrTgh7Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 865 bytes --]

Hi,

(comment-line) function (bound to C-x C-; by default) seems to have a bug.
Normally, with pointer on a line, if I do C-x C-; - it comments the current
line. In org-mode, it adds comment at the end of the line.

For instance, I have the following verilog file (sth.sv) (line numbers for
clarity only):

1: program sth;
2:    input sth_else;
3: endprogram

If I press C-x C-; on line 2, it becomes:

program sth;
   // input sth_else;
endprogram

However, if I have the following in org mode:

1: #+BEGIN_SRC verilog :tangle cache.sv
2: program sth;
3:    input sth_else;
4: endprogram
5: #+END_SRC

Pressing C-x C-; with pointer on line 3 transforms it to:

1: #+BEGIN_SRC verilog :tangle sth.sv
2: program sth;
3:    input sth_else;              //
4: endprogram
5: #+END_SRC

bug or a feature? If latter, how do I comment current line in org-babel?

Dushyant

[-- Attachment #2: Type: text/html, Size: 1462 bytes --]

             reply	other threads:[~2016-10-26  5:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-26  5:27 Dushyant Juneja [this message]
2016-10-26 10:42 ` Bug with (comment-line) Kaushal Modi
2016-10-26 11:21   ` Dushyant Juneja
2016-10-26 12:45     ` Kaushal Modi

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=CAJkb0UOTp1rsndBpewenR5dR6MXWgYX-Smg9QT0uEgicrTgh7Q@mail.gmail.com \
    --to=juneja.dushyant@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).