From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: (read (current-buffer)) returns an integer in a buffer full of text?
Date: 29 Nov 2006 10:46:55 -0800 [thread overview]
Message-ID: <1164826015.398581.93250@16g2000cwy.googlegroups.com> (raw)
In-Reply-To: <mailman.1300.1164824626.2155.help-gnu-emacs@gnu.org>
Kevin Rodgers wrote:
> Robert Thorpe wrote:
> > Sebastian Tennant wrote:
> >> However, why does this happen:
> >>
> >> (with-temp-buffer
> >> (insert "586114704")
> >> (backward-word)
> >> (read (current-buffer)))
> >>
> >> => 49243792
> >>
> >> Is there an integer limit relating to symbols somehow?
> >
> > The function "read" will read whatever type it finds. It will treat
> > 586114704 as an integer.
> >
> > Try the following:-
> > Type 586114704 into scratch and do C-x C-e straight afterwards.
> > The echo area will display 49243792. This is because there is a limit
> > on integers in Emacs, they are 26-bits long. This allows you to
> > represent -67108865 to 67108864 I think.
>
> ,----[ C-h v most-positive-fixnum RET ]
> | most-positive-fixnum is a variable defined in `C source code'.
> | Its value is 268435455
> |
> | Documentation:
> | The largest value that is representable in a Lisp integer.
> |
> | [back]
> `----
You must be using a CVS version of Emacs. My version does not have
that variable and it certainly isn't that high.
next prev parent reply other threads:[~2006-11-29 18:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1164826015.398581.93250@16g2000cwy.googlegroups.com \
--to=rthorpe@realworldtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.