unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Timur Aydin <ta@taydin.org>, help-gnu-emacs@gnu.org
Subject: RE: Symbol's function definition is void: mapcan
Date: Mon, 23 Dec 2013 09:06:53 -0800 (PST)	[thread overview]
Message-ID: <4fbac173-5c3d-4c10-b1bf-0e4ba83b5d90@default> (raw)
In-Reply-To: <52B86012.5050609@taydin.org>

> I am using the bzr version of emacs, and I am seeing the error messages
> in the subject line in two separate instances. The first time was when I
> tried to get the GNUS email client to work. I wasn't able to and gave
> up. The second time i started playing around with the "eww" web browser
> and whenever I hit any link, this error is displayed. This must be a
> fundamental problem because it is happening with two unrelated
> applications, but I can't find out what it is.
> 
> I speculated that this is because of a dependency to the cl (common
> lisp) library so I have put (require 'cl) into my .emacs.el. This time,
> the error changed to:
> 
> Wrong type argument: listp, nil
> 
> So, what could be happening?

mapcan is a Common Lisp function.  For Emacs, you can either, as you
tried, load library cl.el (actually, cl-extra.el) or load cl-lib.el
and use cl-mapcan instead of mapcan.

If the code you are using is not yours, and it calls mapcan instead
of cl-mapcan, then presumably it should be requiring cl.el (cl-extra.el).

If your loading cl.el leads to a wrong-type-argument error, then it
sounds like the code has a bug.  Try loading the source code for the
function that calls mapcan, then `M-x debug-on-error THE-FUNCTION',
for THE-FUNCTION that calls mapcan.  Step through the debugger to
find out what the problem is.  Or maybe just inspect that function,
to see what it is expecting vs what it receives as arg.

If it seems to be a bug in the code that calls mapcan, consider
reporting it: to the author if not part of Emacs, or
`M-x report-emacs-bug' if part of Emacs.



  reply	other threads:[~2013-12-23 17:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-23 16:08 Symbol's function definition is void: mapcan Timur Aydin
2013-12-23 17:06 ` Drew Adams [this message]
2013-12-23 20:35 ` Tassilo Horn
2013-12-24  7:02 ` Timur Aydin

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4fbac173-5c3d-4c10-b1bf-0e4ba83b5d90@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ta@taydin.org \
    /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.
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).