all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug with (comment-line)
@ 2016-10-26  5:27 Dushyant Juneja
  2016-10-26 10:42 ` Kaushal Modi
  0 siblings, 1 reply; 4+ messages in thread
From: Dushyant Juneja @ 2016-10-26  5:27 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-26 12:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-26  5:27 Bug with (comment-line) Dushyant Juneja
2016-10-26 10:42 ` Kaushal Modi
2016-10-26 11:21   ` Dushyant Juneja
2016-10-26 12:45     ` Kaushal Modi

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.