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

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

Re: Emacs Lisp - Reading a sequence of bytes as one integer


From: Teemu Likonen
Subject: Re: Emacs Lisp - Reading a sequence of bytes as one integer
Date: Sat, 13 Mar 2010 19:15:49 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.94 (gnu/linux)

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




reply via email to

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