all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Sven Bretfeld'" <sven.bretfeld@rub.de>, <help-gnu-emacs@gnu.org>
Subject: RE: wrong-type-argument listp \.\.\.
Date: Tue, 29 Jun 2010 16:43:55 -0700	[thread overview]
Message-ID: <7D852D0B581C4D0D980FFF6B1D6A6964@us.oracle.com> (raw)
In-Reply-To: <87k4phla01.fsf@rub.de>

> > To make sense of a debugger backtrace, first load the Lisp 
> > source files that are concerned (e.g. newsticker.el), not
> > the byte-compiled files (e.g. newsticker.elc).
> >
> > The error message is saying that function
> > newsticker--stat-num-items expected a list argument (i.e.
> > nil or a cons), but it instead was passed a symbol whose
> > name is "...".
> 
> To be exact, the same message also occurs with some other operations,
> for example org-mobile-push. So I don't think it's an error 
> connected to newsticker.el. Something more general must be wrong.
> And I can't find it.

In that case, you need to use a binary search, to narrow things down. Split your
.emacs or your `custom-file' in half by commenting out half. or just
`eval-region' of half. or some such. That makes your problem half as big.
Repeat (half of half; half of half of half; etc.).  It's very quick.

The alternative is what you're doing now: trying to shake everything together in
a giant sack and divine what the culprit might be.  Narrow it down, and the
culprit will stand out.

> Is there really a symbol called "..."?

Well, you can see that yourself from the call `car(\.\.\.)' in your backtrace.

The backtrace shows `mapcar' applying `car' to a list whose last item is the
symbol `...' (not a list):

>   mapcar(car (("~/aktuell/myconf/from-mobile.org" 
> "cd2fdb6d-1ca6-45e7-b0d6-02044edcbbb9") 
...
> ("~/aktuell/myconf/mygtd.org" 
> "c76519fa-c2ba-434c-b3e2-e3838b72e6e3") \.\.\.))

--this list item is a symbol, not a list-----^

Look at the code that creates the list in question.  In this case, the list is
`org-id-locations': `(mapcar (quote car) org-id-locations))'

But _start_ by narrowing things down.  Throw out org, newsticker etc., until you
know just what is causing the problem.  Split the unknown by half N times and it
becomes a tiny unknown.

And, as I suggested, check to see if some common data file is used, which might
be corrupted.  If those programs all share a common data file, that could be the
culprit.  This smells of something like a corrupted desktop, session, or
save-history file.

It would be sufficient for some program to incorrectly save data to such a file.
From then on, other code would be reading crap from the file and trying to make
sense of it.

The other thing that suggests this is that you are (presumably) using the same
source code on different platforms.  But you might well be using different data
(e.g. history) files...  See what I wrote before (at the end).

> Can it be an encoding problem?

I know nothing about encoding; sorry.  Don't guess blindly; narrow it down
systematically. Binary search is _very_ rapid.

> Below is a debug output of org-mobile-push.
> 
> Debugger entered--Lisp error: (wrong-type-argument listp \.\.\.)
>   car(\.\.\.)
>   mapcar(car (("~/aktuell/myconf/from-mobile.org" 
> "cd2fdb6d-1ca6-45e7-b0d6-02044edcbbb9") 
> ("~/aktuell/myconf/from-mobile.org" 
> "fdcc85e2-51c8-4d3d-827c-396687ca5a13") 
...
> ("~/aktuell/myconf/mygtd.org" 
> "f20acbfb-c03c-4b08-bd22-d1b614dc7688") 
> ("~/aktuell/myconf/mygtd.org" 
> "c76519fa-c2ba-434c-b3e2-e3838b72e6e3") \.\.\.))
>   (setq org-id-files (mapcar (quote car) org-id-locations))

Did you do the following?

> > Be sure you have the same source code on the various 
> > platforms, for the files in question. If newsticker uses
> > some other file (e.g. a data file), then make sure
> > that file is also the same across platforms. 




  reply	other threads:[~2010-06-29 23:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-29 21:57 wrong-type-argument listp \.\.\ Sven Bretfeld
2010-06-29 22:11 ` Drew Adams
2010-06-29 23:00   ` Sven Bretfeld
2010-06-29 23:43     ` Drew Adams [this message]
2010-06-30  7:37       ` Sven Bretfeld
2010-06-30 13:16         ` Drew Adams
2010-06-29 23:07 ` Sven Bretfeld

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=7D852D0B581C4D0D980FFF6B1D6A6964@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sven.bretfeld@rub.de \
    /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.