From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Symbol's function definition is void: mapcan Date: Mon, 23 Dec 2013 09:06:53 -0800 (PST) Message-ID: <4fbac173-5c3d-4c10-b1bf-0e4ba83b5d90@default> References: <52B86012.5050609@taydin.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1387818449 16135 80.91.229.3 (23 Dec 2013 17:07:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Dec 2013 17:07:29 +0000 (UTC) To: Timur Aydin , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 23 18:07:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vv8yV-00046a-K5 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Dec 2013 18:07:27 +0100 Original-Received: from localhost ([::1]:34639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vv8yU-0007bu-OU for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Dec 2013 12:07:26 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vv8yA-0007Zo-CV for help-gnu-emacs@gnu.org; Mon, 23 Dec 2013 12:07:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vv8y1-0003BF-5Z for help-gnu-emacs@gnu.org; Mon, 23 Dec 2013 12:07:06 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:45296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vv8y0-0003B9-Vx for help-gnu-emacs@gnu.org; Mon, 23 Dec 2013 12:06:57 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBNH6t7A031965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Dec 2013 17:06:56 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBNH6sor010839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 23 Dec 2013 17:06:55 GMT Original-Received: from ubhmt117.oracle.com (ubhmt117.oracle.com [156.151.24.22]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBNH6sIh025768; Mon, 23 Dec 2013 17:06:54 GMT In-Reply-To: <52B86012.5050609@taydin.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95138 Archived-At: > 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. >=20 > 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: >=20 > Wrong type argument: listp, nil >=20 > 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.