From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Subject: Syntax error warnings? (Especially important with :noweb-ref's) Date: Thu, 12 Jan 2012 22:38:16 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlSME-0008OY-Pd for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 16:38:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlSMD-0007Cz-FA for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 16:38:50 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:42824) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RlSMD-0007Cr-68 for emacs-orgmode@gnu.org; Thu, 12 Jan 2012 16:38:49 -0500 Received: by lagj5 with SMTP id j5so1455485lag.0 for ; Thu, 12 Jan 2012 13:38:47 -0800 (PST) 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: org-mode mailing list Hello! I was wondering, if there is a way to get warnings for typos (e.g. when specifying invalid properties or header arguments). It can just easily happen that I mix up e.g. ":exports" and ":export" (though that's probably a very harmless example). More important it gets though, when trying to use the literate programming facilities. Say I have a source code #+begin_src sh :noweb tangle :tangle foo.sh <> #+end_src #+begin_src sh :noweb-ref fo echo '... how are you?'; #+end_src then tangling would run through without any indication of the typo in the name of the "foo" block. Such errors might be hard to debug, because there is no indication of the error, maybe nothing other than runtime errors. An error message for the /use/ of undefined references only wouldn't avoid such problems either, e.g. consider #+begin_src sh :noweb tangle :tangle foo.sh <> #+end_src #+begin_src sh :noweb-ref foo echo 'Hello World...'; #+end_src #+begin_src sh :noweb-ref fo echo 'Hello World...'; #+end_src where the only detectable error is, that "fo" was never used anywhere. A similiar question (though without the second part) was asked here: http://lists.gnu.org/archive/html/emacs-orgmode/2009-11/msg00273.html As far as I can tell, it stands unanswered. On a side note: What is the customary way to mention the noweb-relevant name of a source block in the html/pdf export? After all, if a code-block states : <> : <> the reader needs to know, which code blocks define these. kind regards, Yu