Re: [Orgmode] Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
Carsten Dominik writes: > On May 20, 2010, at 5:25 PM, David Maus wrote: > >> Carsten Dominik wrote: >> >>> Actually - this seems to work for me just fine... >>> Don't know why, because I know that statement in the Emacs Lisp manual >>> as well. >> >>> Ah, maybe there are different Emacs versions in play? 23.1.90.1 is the >>> one I jut now tried. It does not work in Emacs 22. >> >> Here it's 23.1.1, shipped with Debian GNU/Linux "Sid". The cache-file is loaded in one place: lisp/org-publish.el, line 938: (if cexists (load-file cache-file)) ...and written in lisp/org-publish.el in the function: (defun org-publish-write-cache-file (&optional free-cache) This might be the place to change it, because `load-file' is what's supposed to work, right? Which syntax is needed to make this work for elder emacsen? Sebastian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
On May 20, 2010, at 5:25 PM, David Maus wrote: Carsten Dominik wrote: Actually - this seems to work for me just fine... Don't know why, because I know that statement in the Emacs Lisp manual as well. Ah, maybe there are different Emacs versions in play? 23.1.90.1 is the one I jut now tried. It does not work in Emacs 22. Here it's 23.1.1, shipped with Debian GNU/Linux "Sid". I would like to still support Emacs 22, so I think we should change how the hash is written out, my using maphash to draw out the key/ value pairs when writing, and puthash to build the cache when reading. I've put it on my list for the upcoming weekend. Please check with Sebastian to avoid double work. Thanks! - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
Carsten Dominik wrote: >Actually - this seems to work for me just fine... >Don't know why, because I know that statement in the Emacs Lisp manual >as well. >Ah, maybe there are different Emacs versions in play? 23.1.90.1 is the >one I jut now tried. It does not work in Emacs 22. Here it's 23.1.1, shipped with Debian GNU/Linux "Sid". >I would like to still support Emacs 22, so I think we should change >how the hash is written out, my using maphash to draw out the key/ >value pairs when writing, and puthash to build the cache when reading. I've put it on my list for the upcoming weekend. -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpOIFbdIJHLn.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
On May 19, 2010, at 9:16 AM, David Maus wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. While trying to publish a web page project Org publish throws an error: , | Debugger entered--Lisp error: (invalid-read-syntax "#") | eval-buffer(# nil "/home/dmaus/.org-timestamps/ ictsoc-base-dyn.cache" nil t) ; Reading at buffer position 28 ` The problem is that the .cache file for the publishing project contains the printed representation of a hash table: ,[ ictsoc-base-dyn.cache ] | (setq org-publish-cache | #) ` What is invalid according to the manual ("Hash notation cannot be read at all, so the Lisp reader signals the error invalid-read-syntax whenever it encounters ‘#<’.", 2.1: Printed Representation and Read Syntax). Actually - this seems to work for me just fine... Don't know why, because I know that statement in the Emacs Lisp manual as well. Ah, maybe there are different Emacs versions in play? 23.1.90.1 is the one I jut now tried. It does not work in Emacs 22. I would like to still support Emacs 22, so I think we should change how the hash is written out, my using maphash to draw out the key/ value pairs when writing, and puthash to build the cache when reading. - Carsten - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode