From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.help Subject: (read (current-buffer)) returns an integer in a buffer full of text? Date: Wed, 22 Nov 2006 15:18:25 +0200 Message-ID: <871wnv8vry.fsf@dellboy.lap.top> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164202118 29521 80.91.229.2 (22 Nov 2006 13:28:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 13:28:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 22 14:28:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gms9R-0003zD-2P for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 14:28:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gms9Q-0005oh-AT for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 08:28:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gms0B-00076E-Gu for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 08:18:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gms08-00073n-I8 for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 08:18:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gms08-00073c-8o for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 08:18:56 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gms08-0000RP-2h for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 08:18:56 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gmrzi-0001Rn-G7 for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 14:18:30 +0100 Original-Received: from 81.214.124.82 ([81.214.124.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Nov 2006 14:18:30 +0100 Original-Received: from sebyte by 81.214.124.82 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Nov 2006 14:18:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 81.214.124.82 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:7T1BcpjiwFFn9ACb38m43h/1e+M= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38891 Archived-At: 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(#>) * (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