Thanks for this Carsten, 

I will fix it up and post the corrected version...

Carsten Dominik <[EMAIL PROTECTED]> writes:

> This is a problem in org-blog.el.  David, you need to turn on
> org-mode in the temporary buffer used to process the posts, or
> important variables needed during export will not have been set.
>
> If I am understanding your code correctly, you need something like
> this, near line 216 of org-blog.el.
>
>
>         ;; grab post details
>         (with-temp-buffer
>           (insert-file-contents p)
>>>>     (let (org-inhibit-startup) (org-mode))
>           (goto-char (point-min))
>
> - Carsten
>
> On Jun 11, 2007, at 18:21, Emre Sahin wrote:
>
>>
>> Hi all,
>>
>> This may be a problem in my installation, however I couldn't solve the
>> issue.
>>
>> My Emacs is on a Debian testing (lenny) and has a version of:
>>
>> GNU Emacs 22.1.50.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
>> of 2007-06-08 on pacem, modified by Debian
>>
>> (from emacs-snapshot site, I'm using the unstable version of this
>> package.)
>>
>> I'm using 4.77 org.el along with 1.17 org-blog.el. I have installed
>> these without deleting the older versions and reload the files via
>>
>> (load-file "/usr/local/share/emacs/site-lisp/org.el")
>> (load-file "/usr/local/share/emacs/site-lisp/org-publish.el")
>> (load-file "/usr/local/share/emacs/site-lisp/org-mouse.el")
>> (load-file "/usr/local/share/emacs/site-lisp/org-install.el")
>>
>>
>> and trying to publish two pages in ~/blog/. I have a single
>> project. My alist in .emacs is
>>
>> (require 'org-blog)
>>
>> (autoload 'org-publish "org-publish" nil t)
>> (autoload 'org-publish "org-publish-all" nil t)
>> (autoload 'org-publish "org-publish-current-file" nil t)
>> (autoload 'org-publish "org-publish-current-project" nil t)
>>
>> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
>>
>> (setq org-log-done t)
>>
>> (setq org-publish-project-alist
>>       (list
>>        '("blog"
>>
>>       :base-directory "~/blog/"
>>       :base-extension "org"
>>       :publishing-directory "~/public_html/blog/"
>>       :publishing-function org-publish-org-to-html
>>       :auto-index t
>>          :blog-base-url "http://emresahin.net/";
>>       :blog-title "emreşahin.net"
>>       :blog-description "Emre Şahin"
>>       :blog-export-rss t
>>       :index-function org-publish-blog-index
>>       :index-filename "index2.org"
>>       :index-title "okuyan bir kişiye"
>>       :language "en"
>>       :index-posts 6)))
>>
>> As far as I understand, I did the steps described in org-blog.el
>> correctly. However when I use M-x org-publish-all an error (which
>> produces the attached debug report) occurs.
>>
>> There may be problems about locale, my initial installation of this
>> system was with Turkish locale and there was a different error about
>> publishing. Then I tried to switch to English locale (by changing the
>> value in /etc/defaults/locale and set my language environment as
>>
>> (set-language-environment "UTF-8")
>> (setq default-file-name-coding-system 'utf-8)
>> (setq locale-coding-system 'utf-8)
>> (set-terminal-coding-system 'utf-8)
>> (set-keyboard-coding-system 'utf-8)
>> (set-selection-coding-system 'utf-8)
>> (set-clipboard-coding-system 'utf-8)
>> (prefer-coding-system 'utf-8)
>>
>> in my .emacs. (Locale problem may be about emacs in general, because
>> when I was playing with blorg.el recently, I didn't get any output due
>> to an error also. And there is strange bug in gnus which make emacs to
>> shut down immediately when I try to open some e-mail messages. However
>> I couldn't reproduce this bug to submit a nice report, and emacs 21.4
>> doesn't have such a problem.)
>>
>> Above bug also occurs in Emacs 21.4 (GNU Emacs 21.4.1
>> (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2007-03-11 on
>> raven, modified by Debian)
>>
>> If there is any information I can further give, I'd be glad to help.
>>
>> Best Regards,
>>
>> Emre
>>
>> <org-export-region-as-
>> html.dbg.el>_______________________________________________
>> Emacs-orgmode mailing list
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
> --
> Carsten Dominik
> Sterrenkundig Instituut "Anton Pannekoek"
> Universiteit van Amsterdam
> Kruislaan 403
> NL-1098SJ Amsterdam
> phone: +31 20 525 7477
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

-- 
David O'Toole 
[EMAIL PROTECTED]
http://dto.freeshell.org/notebook/


_______________________________________________
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to