unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* .emacs parsing problem
@ 2009-08-27 18:19 Farhan Ahmed
  0 siblings, 0 replies; 3+ messages in thread
From: Farhan Ahmed @ 2009-08-27 18:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

I'm getting this error using the CEDET package customizations in my .emacs
file:

Idle Work Including Error: "#<buffer .emacs> - Wrong type argument:
number-or-marker-p, (512 39 . 8739)"

What do the numbers at the end of the error message indicate? How do I
find out what exactly is causing the problem?

Thanks,

Farhan





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

* Re: .emacs parsing problem
       [not found] <mailman.5548.1251431678.2239.help-gnu-emacs@gnu.org>
@ 2009-08-28 12:36 ` Anselm Helbig
  2009-08-28 14:36   ` Pascal J. Bourguignon
  0 siblings, 1 reply; 3+ messages in thread
From: Anselm Helbig @ 2009-08-28 12:36 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

> I'm getting this error using the CEDET package customizations in my .emacs
> file:
> 
> Idle Work Including Error: "#<buffer .emacs> - Wrong type argument:
> number-or-marker-p, (512 39 . 8739)"
> 
> What do the numbers at the end of the error message indicate? 
  
A function was expecting a number or a marker (an object describing a
position in a buffer), but it got the list (512 39 . 8739) instead. I
have no idea where these numbers come from. 
                                                              
> How do I find out what exactly is causing the problem?

You start emacs with the --debug-init option.

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


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

* Re: .emacs parsing problem
  2009-08-28 12:36 ` Anselm Helbig
@ 2009-08-28 14:36   ` Pascal J. Bourguignon
  0 siblings, 0 replies; 3+ messages in thread
From: Pascal J. Bourguignon @ 2009-08-28 14:36 UTC (permalink / raw)
  To: help-gnu-emacs

Anselm Helbig <anselm.helbig+news2009@googlemail.com> writes:

> Hi!
>
>> I'm getting this error using the CEDET package customizations in my .emacs
>> file:
>> 
>> Idle Work Including Error: "#<buffer .emacs> - Wrong type argument:
>> number-or-marker-p, (512 39 . 8739)"
>> 
>> What do the numbers at the end of the error message indicate? 
>   
> A function was expecting a number or a marker (an object describing a
> position in a buffer), but it got the list (512 39 . 8739) instead. I
> have no idea where these numbers come from. 

emacs lisp has no bignums.  Integer range is limited to fixnum, which
is 27 bits IIRC on 32-bit machines, and 59 bits on 64-bit machines.

You can use the following function to determine it:

(defun compute-most-positive-fixnum ()
  (loop
     for p from 0
     for i = 1 then n
     for n = (* 2 i)
     while (< i n)
     finally (return (truncate (1- (expt 2.0 p))))))


Some numbers need a bigger range, and therefore need to be represented
as a list of numbers.  AFAIK, the only case where it's done by emacs,
is with dates, as returned by current-time:
(current-time) --> (19095 60141 366049)
but it returns a proper list, not a dotted list.


>> How do I find out what exactly is causing the problem?
>
> You start emacs with the --debug-init option.

And search in the functions listed in the backtrace where the wrong
data item may come from.

-- 
__Pascal Bourguignon__


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

end of thread, other threads:[~2009-08-28 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27 18:19 .emacs parsing problem Farhan Ahmed
     [not found] <mailman.5548.1251431678.2239.help-gnu-emacs@gnu.org>
2009-08-28 12:36 ` Anselm Helbig
2009-08-28 14:36   ` Pascal J. Bourguignon

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