emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "Invalid function" error with org-publish-project-alist
@ 2006-09-14  1:49 Andrew Laing
  2006-09-14 13:33 ` David O'Toole
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Laing @ 2006-09-14  1:49 UTC (permalink / raw)
  To: emacs-orgmode

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 "<link rel=stylesheet href=\"../css/style.css\" type=\"text/css\">"
 		       :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 <andrew@hermesdigital.net>
  Adam met Eve and turned over a new leaf.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: "Invalid function" error with org-publish-project-alist
  2006-09-14  1:49 "Invalid function" error with org-publish-project-alist Andrew Laing
@ 2006-09-14 13:33 ` David O'Toole
  0 siblings, 0 replies; 2+ messages in thread
From: David O'Toole @ 2006-09-14 13:33 UTC (permalink / raw)
  To: Andrew Laing; +Cc: emacs-orgmode


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 "<link rel=stylesheet href=\"../css/style.css\" type=\"text/css\">"
 		       :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 <andrew@hermesdigital.net> 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 "<link rel=stylesheet href=\"../css/style.css\" type=\"text/css\">"
>  		       :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 <andrew@hermesdigital.net>
>   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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-14 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14  1:49 "Invalid function" error with org-publish-project-alist Andrew Laing
2006-09-14 13:33 ` David O'Toole

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).