emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

read lisp objects from buffer


From: yuwen
Subject: read lisp objects from buffer
Date: Mon, 11 Oct 2004 17:16:44 +0800
User-agent: Mozilla Thunderbird 0.7 (Windows/20040616)

Dear all,

I have a file that contains lisp objects printed by function print:

((16746 13842 393000) "README.txt")

((16746 16787 969000) "/home/yuwen/.emacs")


I tried to read them back into lisp objects:

    (let ((buffer (find-file-noselect "~/src/el/tmp.txt")))
      (set-buffer buffer)
      (goto-char (point-min))
      (while (setq obj (read buffer))
         ;;; do something ))

but there's an error message :
  setq: End of file during parsing

So, what's the right way to read lisp objects from a file/buffer?

Best regards,
Dai Yuwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]