emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Warning while publishing
@ 2013-03-26 20:32 François Pinard
  2013-04-06  0:12 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: François Pinard @ 2013-03-26 20:32 UTC (permalink / raw)
  To: emacs-orgmode

Hi, gang.  While publishing Org files in batch, I see these warnings:

   Warning: defvar ignored because org-agenda-archives-mode is let-bound
   Warning: defvar ignored because org-agenda-skip-function is let-bound

which are likely innocuous, but I'm not sure.  At first, I do not
understand why agendas get into the picture of publication.

Some more detailed information, in case useful.  The publishing script
(called many times from a Makefile) is:

------------------------------------------------------------------------------->
#!/bin/dash

echo
echo "Publishing $1"
echo "Publishing $1" | sed 's/./-/g'
echo

if [ -n "$2" ]; then
  rm -f $1
  ln -s $2 $1
  cp setup.org $1
fi
emacs -Q --batch --load publish.el --eval '(org-publish "'$1'" t)' 2>&1 \
  | egrep --line-buffered -v '^(Fontifying|Publishing|Skipping) ' \
  || :
rm -f $1/*~
if [ -n "$2" ]; then
  rm -f $1/setup.org $1
fi
-------------------------------------------------------------------------------<

and publish.el is:

------------------------------------------------------------------------------->
(defvar api-org-distribution "~/emacs/_/org-mode")
(add-to-list 'load-path (concat api-org-distribution "/lisp"))

(require 'org)

(org-babel-do-load-languages
 'org-babel-load-languages
 '((ditaa . t)))

(setq org-confirm-babel-evaluate nil
      org-export-allow-BIND t
      org-export-default-language "fr"
      org-export-with-sub-superscripts nil
      org-html-coding-system 'utf-8
      org-html-postamble nil)

(setq org-publish-project-alist

      `(("base"
         :base-directory "~/ubity/org"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html"
         :publishing-function org-html-publish-to-html)

        ("asterisk" :components ("asterisk-data" "asterisk-text"))
        ("asterisk-data"
         :base-directory "~/ubity/org/asterisk"
         :base-extension "png"
         :publishing-directory "~/ubity/html/asterisk"
         :publishing-function org-publish-attachment)
        ("asterisk-text"
         :base-directory "~/ubity/org/asterisk"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html/asterisk"
         :publishing-function org-html-publish-to-html)
        
        ("control2" :components ("control2-data" "control2-text"))
        ("control2-data"
         :base-directory "~/ubity/org/control2"
         :base-extension "png"
         :publishing-directory "~/ubity/html/control2"
         :publishing-function org-publish-attachment)
        ("control2-text"
         :base-directory "~/ubity/org/control2"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html/control2"
         :publishing-function org-html-publish-to-html)
        
        ("control3"
         :base-directory "~/ubity/org/control3"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html/control3"
         :publishing-function org-html-publish-to-html)
        
        ("octopasty" :components ("octopasty-data" "octopasty-text"))
        ("octopasty-data"
         :base-directory "~/ubity/org/octopasty"
         :base-extension "png"
         :publishing-directory "~/ubity/html/octopasty"
         :publishing-function org-publish-attachment)
        ("octopasty-text"
         :base-directory "~/ubity/org/octopasty"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html/octopasty"
         :publishing-function org-html-publish-to-html)

        ("prov_ng" :components ("prov_ng-data" "prov_ng-text"))
        ("prov_ng-data"
         :base-directory "~/ubity/org/prov_ng"
         :base-extension "png"
         :publishing-directory "~/ubity/html/prov_ng"
         :publishing-function org-publish-attachment)
        ("prov_ng-text"
         :base-directory "~/ubity/org/prov_ng"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html/prov_ng"
         :publishing-function org-html-publish-to-html)

        ("ubitopasty"
         :base-directory "~/ubity/org/ubitopasty/"
         :exclude "^setup.org$"
         :publishing-directory "~/ubity/html/ubitopasty"
         :publishing-function org-html-publish-to-html)
 
       ))

(add-hook 'org-publish-before-export-hook 'save-buffer)
-------------------------------------------------------------------------------<

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

* Re: Warning while publishing
  2013-03-26 20:32 Warning while publishing François Pinard
@ 2013-04-06  0:12 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2013-04-06  0:12 UTC (permalink / raw)
  To: François Pinard; +Cc: emacs-orgmode

Hi François,

François Pinard <pinard@iro.umontreal.ca> writes:

>    Warning: defvar ignored because org-agenda-archives-mode is let-bound
>    Warning: defvar ignored because org-agenda-skip-function is let-bound

Yes, you can safely ignore those warning.

-- 
 Bastien

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

end of thread, other threads:[~2013-04-06  0:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 20:32 Warning while publishing François Pinard
2013-04-06  0:12 ` Bastien

Code repositories for project(s) associated with this 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).