emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-babel (org-babel-detangle)


From: Eric Schulte
Subject: Re: [O] org-babel (org-babel-detangle)
Date: Thu, 14 Apr 2011 08:47:44 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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 <address@hidden> 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:
>
>
>
>
>
>
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]