emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mohamed HIBTI <mohamed.hibti@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel (org-babel-detangle)
Date: Fri, 15 Apr 2011 10:36:15 +0200	[thread overview]
Message-ID: <4da80384.171de30a.4190.ffff8635@mx.google.com> (raw)
In-Reply-To: <87pqoo99f3.fsf@gmail.com> (Eric Schulte's  message of  "Thu, 14 Apr 2011 08:47:44 -0600")

"Eric Schulte" <schulte.eric@gmail.com> writes:

Thanks for this answer.
I got it.




> Hi Mohamed,
>
> The comment prompt you mentioned actually isn't babel specific but is
> raised by the `comment-region' function which is used by babel to
> comment out links.  Look at the documentation for `comment-region'
> (below) which has information on variables to set to avoid the "comment
> syntax" prompt in xml documents.
>
> Best -- Eric
>
> ,----[C-h f comment-region]
> | comment-region is an interactive compiled Lisp function in
> | `newcomment.el'.
> | 
> | It is bound to C-c r.
> | 
> | (comment-region BEG END &optional ARG)
> | 
> | Comment or uncomment each line in the region.
> | With just C-u prefix arg, uncomment each line in region BEG .. END.
> | Numeric prefix ARG means use ARG comment characters.
> | If ARG is negative, delete that many comment characters instead.
> | 
> | The strings used as comment starts are built from `comment-start'
> | and `comment-padding'; the strings used as comment ends are built
> | from `comment-end' and `comment-padding'.
> | 
> | By default, the `comment-start' markers are inserted at the
> | current indentation of the region, and comments are terminated on
> | each line (even for syntaxes in which newline does not end the
> | comment and blank lines do not get comments).  This can be
> | changed with `comment-style'.
> `----
>
> Mohamed HIBTI <mohamed.hibti@gmail.com> writes:
>
>> Eric Schulte <schulte.eric <at> gmail.com> writes:
>>
>> Hi Eric,
>> I tried it, it worked quite well but I have a trouble with the syntax comment
>> (No comment syntax is defined.  Use: ) Since I have too many blocks, is there 
>> any way to set it as a local variable ?
>>
>> Regards,
>> Mohamed
>>
>>
>>
>> P.S. 
>> I tried without success
>>
>> #+ Local Variables :
>> #+ org-babel-tangle-comment-format-beg: "<!--[[%link][source-name]]"
>> #+ org-babel-tangle-comment-format-end: "source-name ends here-->"
>> #+ End:
>>
>> and 
>>
>> # Local Variables :
>> # org-babel-tangle-comment-format-beg: "<!--[[%link][source-name]]"
>> # org-babel-tangle-comment-format-end: "source-name ends here-->"
>> # End:
>>
>>
>>
>>
>>
>>
>>
>>

  reply	other threads:[~2011-04-15  8:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13 13:16 org-babel (org-babel-detangle) Mohamed HIBTI
2011-04-13 16:50 ` Eric Schulte
2011-04-13 18:01   ` Mohamed HIBTI
2011-04-14  9:19   ` Mohamed HIBTI
2011-04-14 14:47     ` Eric Schulte
2011-04-15  8:36       ` Mohamed HIBTI [this message]
2011-04-15 16:45       ` Mohamed HIBTI

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=4da80384.171de30a.4190.ffff8635@mx.google.com \
    --to=mohamed.hibti@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@gmail.com \
    /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).