emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Syntax error warnings? (Especially important with :noweb-ref's)


From: Sebastien Vauban
Subject: Re: [O] Syntax error warnings? (Especially important with :noweb-ref's)
Date: Sun, 22 Jan 2012 22:25:10 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (windows-nt)

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

-- 
Sebastien Vauban




reply via email to

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