From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohamed HIBTI Subject: Re: org-babel (org-babel-detangle) Date: Fri, 15 Apr 2011 10:36:15 +0200 Message-ID: <4da80384.171de30a.4190.ffff8635@mx.google.com> References: <874o62m6xz.fsf@gmail.com> <87pqoo99f3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAeVt-0001A9-Ca for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 04:36:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAeVs-0006To-3K for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 04:36:25 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:38710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAeVr-0006Ta-UM for emacs-orgmode@gnu.org; Fri, 15 Apr 2011 04:36:24 -0400 Received: by wyf19 with SMTP id 19so2513737wyf.0 for ; Fri, 15 Apr 2011 01:36:22 -0700 (PDT) In-Reply-To: <87pqoo99f3.fsf@gmail.com> (Eric Schulte's message of "Thu, 14 Apr 2011 08:47:44 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org "Eric Schulte" 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 writes: > >> Eric Schulte 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: "" >> #+ End: >> >> and >> >> # Local Variables : >> # org-babel-tangle-comment-format-beg: "" >> # End: >> >> >> >> >> >> >> >>