From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Syntax error warnings? (Especially important with :noweb-ref's) Date: Mon, 23 Jan 2012 11:07:53 -0700 Message-ID: <87wr8iqojq.fsf@gmx.com> References: <87sjji5g3e.fsf@gmx.com> <801uqrl9ah.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:59770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpOKH-0001jb-S8 for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:09:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpOKD-00008I-BI for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:09:05 -0500 Received: from mailout-us.gmx.com ([74.208.5.67]:45292 helo=mailout-us.mail.com) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RpOKD-00008C-2g for emacs-orgmode@gnu.org; Mon, 23 Jan 2012 13:09:01 -0500 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: Sebastien Vauban Cc: emacs-orgmode@gnu.org Fixed. Thanks, "Sebastien Vauban" writes: > Hi Eric, > > Eric Schulte wrote: >> there are two related functions which should help. >> >> ,----[org-babel-view-src-block-info] bound to C-c C-v I >> | org-babel-view-src-block-info is an interactive Lisp function in >> | `ob.el'. >> | >> | (org-babel-view-src-block-info) >> | >> | Display information on the current source block. >> | This includes header arguments, language and name, and is largely >> | a window into the `org-babel-get-src-block-info' function. >> `---- >> >> and >> >> ,----[org-babel-check-src-block] bound to C-c C-v c >> | org-babel-check-src-block is an interactive Lisp function in `ob.el'. >> | >> | (org-babel-check-src-block) >> | >> | Check for misspelled header arguments in the current code block. >> `---- > > When checking for suspicious header arguments on[1]: > > #+name: mean > #+begin_src emacs-lisp :var lst=() > (let ((num (car lst)) (nums (cdr lst))) > (/ (float (+ num (apply #'+ nums))) (1+ (length nums)))) > #+end_src > > it reports: > > supplied header ""var"" is suspiciously close to ""dir"" > > Can you enlighten me on what's suspicious here? > > Best regards, > Seb > > Footnotes: > > [1] which is supposed to be used in the following table: > > | 1 | > | 2 | > | 3 | > | 4 | > | 5 | > | 6 | > | 3.5 | > #+TBLFM: @7$1='(sbe mean (lst @1..@6)) -- Eric Schulte http://cs.unm.edu/~eschulte/