From: Carsten Dominik <dominik@science.uva.nl>
To: Emre Sahin <iesahin@bilkent.edu.tr>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-blog bug in 4.77 org-export-region-as-html?
Date: Tue, 12 Jun 2007 17:51:16 +0200 [thread overview]
Message-ID: <3f1003ec4724f686207f5764852cb725@science.uva.nl> (raw)
In-Reply-To: <87lkeqsbqa.fsf@leonardo.iesahin.net>
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
next prev parent reply other threads:[~2007-06-12 15:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 16:21 org-blog bug in 4.77 org-export-region-as-html? Emre Sahin
2007-06-12 15:51 ` Carsten Dominik [this message]
2007-06-12 22:43 ` David O'Toole
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f1003ec4724f686207f5764852cb725@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=iesahin@bilkent.edu.tr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.