emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: David Maus <dmaus@ictsoc.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
Date: Thu, 20 May 2010 09:39:00 +0200	[thread overview]
Message-ID: <005E9642-15D4-49DE-9828-5460A8DC354D@gmail.com> (raw)
In-Reply-To: <8739xomkd0.wl%dmaus@ictsoc.de>


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(#<buffer  *load*> 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
> |   #<hash-table 'equal nil 3/100 0xab08dc0>)
> `----
>
> 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

  reply	other threads:[~2010-05-20 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-19  7:16 Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans] David Maus
2010-05-20  7:39 ` Carsten Dominik [this message]
2010-05-20 15:25   ` David Maus
2010-05-20 15:26     ` Carsten Dominik
2010-05-20 15:56       ` Sebastian Rose

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=005E9642-15D4-49DE-9828-5460A8DC354D@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=dmaus@ictsoc.de \
    --cc=emacs-orgmode@gnu.org \
    /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 public 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).