From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-blog bug in 4.77 org-export-region-as-html? Date: Tue, 12 Jun 2007 17:51:16 +0200 Message-ID: <3f1003ec4724f686207f5764852cb725@science.uva.nl> References: <87lkeqsbqa.fsf@leonardo.iesahin.net> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=UTF-8; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hy8eM-0008CM-NM for emacs-orgmode@gnu.org; Tue, 12 Jun 2007 11:51:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hy8eL-0008Bw-PP for emacs-orgmode@gnu.org; Tue, 12 Jun 2007 11:51:18 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hy8eL-0008Bq-Lg for emacs-orgmode@gnu.org; Tue, 12 Jun 2007 11:51:17 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hy8eK-0005nD-SP for emacs-orgmode@gnu.org; Tue, 12 Jun 2007 11:51:17 -0400 In-Reply-To: <87lkeqsbqa.fsf@leonardo.iesahin.net> 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: Emre Sahin Cc: emacs-orgmode@gnu.org 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=C5=9Fahin.net" > :blog-description "Emre =C5=9Eahin" > :blog-export-rss t > :index-function org-publish-blog-index > :index-filename "index2.org" > :index-title "okuyan bir ki=C5=9Fiye" > :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 > > 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