From mboxrd@z Thu Jan 1 00:00:00 1970 From: David O'Toole Subject: Re: "Invalid function" error with org-publish-project-alist Date: Thu, 14 Sep 2006 09:33:53 -0400 Message-ID: References: <20060914014922.GA8959@hermes.hermesdigital.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GNrLs-0000sm-8u for emacs-orgmode@gnu.org; Thu, 14 Sep 2006 09:34:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GNrLr-0000sD-Jd for emacs-orgmode@gnu.org; Thu, 14 Sep 2006 09:33:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GNrLr-0000rs-9m for emacs-orgmode@gnu.org; Thu, 14 Sep 2006 09:33:59 -0400 Received: from [66.249.82.237] (helo=wx-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GNrNn-0004gL-VA for emacs-orgmode@gnu.org; Thu, 14 Sep 2006 09:36:00 -0400 Received: by wx-out-0506.google.com with SMTP id i26so3246461wxd for ; Thu, 14 Sep 2006 06:33:58 -0700 (PDT) In-Reply-To: <20060914014922.GA8959@hermes.hermesdigital.net> (Andrew Laing's message of "Wed, 13 Sep 2006 21:49:22 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andrew Laing Cc: emacs-orgmode@gnu.org I think the example is missing some parentheses. I will fix it. In the meantime i can get this to parse just fine: (setq org-publish-project-alist '(("org" :base-directory "~/notebook/org/" :base-extension "org" :publishing-directory "~/public_html/notebook/" :publishing-function org-publish-org-to-html :headline-levels 2 :with-section-numbers nil :table-of-contents nil :style "" :auto-preamble t :auto-postamble nil) ("img" :base-directory "~/notebook/img/" :base-extension "jpg\\|gif\\|png" :publishing-directory "~/public_html/img/" :publishing-function org-publish-attachment))) Andrew Laing writes: > Hi list, > > I am just learning org-mode and org-publish and have rarely felt so > exited about software. :) > > Many props and thanks to Carsten, David, et al! > > But I have been having a problem I can't figure out. I have org.el > v4.49, which includes org-publish.el v1.77. I load my org-config.el from > my .emacs.el which has org-publish configuration which I copied out of > the org-publish file's comments: > > ;; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ;; org-config.el > ;; > > (add-to-list 'load-path "~/Emacs/org-4.49") > (require 'org-install) > > > (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) > (define-key global-map "\C-cl" 'org-store-link) > (define-key global-map "\C-ca" 'org-agenda) > (setq org-log-done t) > > (setq org-publish-project-alist > (list > '("org" :base-directory "~/notebook/org/" > :base-extension "org" > :publishing-directory "~/public_html/notebook/" > :publishing-function org-publish-org-to-html > :headline-levels 2 > :with-section-numbers nil > :table-of-contents nil > :style "" > :auto-preamble t > :auto-postamble nil) > ("img" :base-directory "~/notebook/img/" > :base-extension "jpg\\|gif\\|png" > :publishing-directory "~/public_html/img/" > :publishing-function org-publish-attachment) > ; ("css" :base-directory "~/notebook/css/" > ; :base-extension "css" > ; :publishing-directory "~/public_html/" > ; :publishing-function org-publish-attachment) > ; ("website" :components ("org" "img" "css")) > )) > > ;; load cdlatex for frags > (autoload 'cdlatex-mode "cdlatex" "CDLaTeX Mode" t) > (autoload 'turn-on-cdlatex "cdlatex" "CDLaTeX Mode" nil) > (add-hook 'org-mode-hook 'turn-on-org-cdlatex) > > ;; > ;; end org-config.el > ;; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > Loading this file returns the following error: > > Invalid function: "img" > > Any thoughts? > > I can't seem to figure this one out. Any pointers would be very much > appreciated. > > Cheers, Andrew > > -- > Andrew Laing > Adam met Eve and turned over a new leaf. > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- David O'Toole dto@gnu.org http://dto.freeshell.org/notebook/