From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Emacs Lisp - Reading a sequence of bytes as one integer Date: Sat, 13 Mar 2010 19:15:49 +0200 Message-ID: <87hbokgn22.fsf@mithlond.arda> References: <20100313.115617.104330838.jeff@chaosphere.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1268500614 27446 80.91.229.12 (13 Mar 2010 17:16:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 13 Mar 2010 17:16:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jeff Clough Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 13 18:16:50 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NqUxF-0005nH-Jo for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Mar 2010 18:16:49 +0100 Original-Received: from localhost ([127.0.0.1]:50978 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqUxE-0002rW-TN for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Mar 2010 12:16:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NqUwo-0002rF-J5 for help-gnu-emacs@gnu.org; Sat, 13 Mar 2010 12:16:22 -0500 Original-Received: from [140.186.70.92] (port=54759 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NqUwj-0002r5-Gh for help-gnu-emacs@gnu.org; Sat, 13 Mar 2010 12:16:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NqUwh-0001iC-Vf for help-gnu-emacs@gnu.org; Sat, 13 Mar 2010 12:16:17 -0500 Original-Received: from mta-out.inet.fi ([195.156.147.13]:34448 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NqUwh-0001gZ-NC for help-gnu-emacs@gnu.org; Sat, 13 Mar 2010 12:16:15 -0500 Original-Received: from mithlond.arda (84.251.132.215) by jenni2.inet.fi (8.5.014) id 4B17EA3D040846B5; Sat, 13 Mar 2010 19:15:54 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.69) (envelope-from ) id 1NqUwI-0004HW-1C; Sat, 13 Mar 2010 19:15:50 +0200 In-Reply-To: <20100313.115617.104330838.jeff@chaosphere.com> (Jeff Clough's message of "Sat, 13 Mar 2010 11:56:17 -0500 (EST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72417 Archived-At: * 2010-03-13 11:56 (-0500), Jeff Clough wrote: > I can grab them as a buffer-substring obviously, but I'm at a loss for > how to make that into the integer I need, nor can I find anything > obvious that would be easier. You can use the Lisp reader: (read "123") => 123 The argument for READ can also be a buffer or a marker, for example. See its documentation for more info.