help-gnu-emacs
[Top][All Lists]
Advanced

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

(read (current-buffer)) returns an integer in a buffer full of text?


From: Sebastian Tennant
Subject: (read (current-buffer)) returns an integer in a buffer full of text?
Date: Wed, 22 Nov 2006 15:18:25 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux)

Hi everyone,

If I execute the following code in *scratch* there's no problem:

  (with-temp-buffer
    (insert "hello")
    (backward-word)
    (read (current-buffer)))
  => hello

But in my function, instead of a symbol I get an integer (which is
always the same):

  Debugger entered--returning value: 49243792
    read(#<buffer  *temp*<2>>)
  * (equal (read (current-buffer))

The buffer is visiting an uncompressed ASCII English text file and
point is before the word 'sda:' so it should return 'sda:' as a
symbol, (like 'hello').

Any light much appreciated.

Sebastian





reply via email to

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