* Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
@ 2010-05-19 7:16 David Maus
2010-05-20 7:39 ` Carsten Dominik
0 siblings, 1 reply; 5+ messages in thread
From: David Maus @ 2010-05-19 7:16 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1349 bytes --]
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).
HTH
-- David
Emacs : GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.18.2)
of 2009-11-02 on raven, modified by Debian
Package: Org-mode version 6.36trans
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
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
2010-05-20 15:25 ` David Maus
0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2010-05-20 7:39 UTC (permalink / raw)
To: David Maus; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
2010-05-20 7:39 ` Carsten Dominik
@ 2010-05-20 15:25 ` David Maus
2010-05-20 15:26 ` Carsten Dominik
0 siblings, 1 reply; 5+ messages in thread
From: David Maus @ 2010-05-20 15:25 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 700 bytes --]
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.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
2010-05-20 15:25 ` David Maus
@ 2010-05-20 15:26 ` Carsten Dominik
2010-05-20 15:56 ` Sebastian Rose
0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2010-05-20 15:26 UTC (permalink / raw)
To: David Maus; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug: Invalid content in publishing cache: Printed representation of hash table [6.36trans]
2010-05-20 15:26 ` Carsten Dominik
@ 2010-05-20 15:56 ` Sebastian Rose
0 siblings, 0 replies; 5+ messages in thread
From: Sebastian Rose @ 2010-05-20 15:56 UTC (permalink / raw)
To: Carsten Dominik; +Cc: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-20 15:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-05-20 15:25 ` David Maus
2010-05-20 15:26 ` Carsten Dominik
2010-05-20 15:56 ` Sebastian Rose
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).