unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* (read (current-buffer)) returns an integer in a buffer full of text?
@ 2006-11-22 13:18 Sebastian Tennant
  0 siblings, 0 replies; 11+ messages in thread
From: Sebastian Tennant @ 2006-11-22 13:18 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-11-30 12:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.981.1164201541.2155.help-gnu-emacs@gnu.org>
2006-11-23 17:31 ` (read (current-buffer)) returns an integer in a buffer full of text? Robert Thorpe
2006-11-27 16:44   ` Kevin Rodgers
     [not found]   ` <mailman.1205.1164687201.2155.help-gnu-emacs@gnu.org>
2006-11-28 14:34     ` Robert Thorpe
2006-11-29 13:20       ` Sebastian Tennant
     [not found]       ` <mailman.1280.1164806477.2155.help-gnu-emacs@gnu.org>
2006-11-29 14:17         ` Robert Thorpe
2006-11-29 18:22           ` Kevin Rodgers
     [not found]           ` <mailman.1300.1164824626.2155.help-gnu-emacs@gnu.org>
2006-11-29 18:46             ` Robert Thorpe
2006-11-29 20:07               ` Peter Dyballa
     [not found]               ` <mailman.1309.1164830848.2155.help-gnu-emacs@gnu.org>
2006-11-30 10:43                 ` Robert Thorpe
2006-11-30 12:19                   ` Sebastian Tennant
2006-11-22 13:18 Sebastian Tennant

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).