From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#16725: 24.3.50; (wrong-type-argument stringp t) with `apropos-documentation' Date: Tue, 11 Feb 2014 14:34:50 -0800 (PST) Message-ID: 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 1392158180 31631 80.91.229.3 (11 Feb 2014 22:36:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Feb 2014 22:36:20 +0000 (UTC) To: 16725@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 11 23:36:27 2014 Return-path: Envelope-to: geb-bug-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 1WDLwI-0006tu-8f for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 23:36:26 +0100 Original-Received: from localhost ([::1]:36335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDLwH-00045m-T2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Feb 2014 17:36:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDLw5-00045C-41 for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:36:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDLvv-00087Y-28 for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:36:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDLvu-00087N-UW for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WDLvu-0004iG-IE for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Feb 2014 22:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139215813018067 (code B ref -1); Tue, 11 Feb 2014 22:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Feb 2014 22:35:30 +0000 Original-Received: from localhost ([127.0.0.1]:47941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDLvN-0004hK-Ey for submit@debbugs.gnu.org; Tue, 11 Feb 2014 17:35:29 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40845) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WDLvL-0004h3-85 for submit@debbugs.gnu.org; Tue, 11 Feb 2014 17:35:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDLv5-0007sQ-GA for submit@debbugs.gnu.org; Tue, 11 Feb 2014 17:35:21 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDLv5-0007sL-D0 for submit@debbugs.gnu.org; Tue, 11 Feb 2014 17:35:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDLuw-0003Wi-Q5 for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:35:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDLuo-0007bD-6J for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:35:02 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:40205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDLun-0007au-VS for bug-gnu-emacs@gnu.org; Tue, 11 Feb 2014 17:34:54 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1BMYq4X018655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Feb 2014 22:34:52 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s1BMYpFJ023150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 11 Feb 2014 22:34:52 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1BMYpZX027661 for ; Tue, 11 Feb 2014 22:34:51 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85412 Archived-At: Yes, this normally will not happen. But the code is unnecessarily fragile, and here is a simple case that breaks it. I had this mistaken autoload sexp in a startup file: (autoload 'insert-time-string "insert-time-string" t=20 "Insert current time at point.") (The last two args are swapped.) I have `apropos-do-all' =3D t. I did `M-x apropos-documentation RET empty list RET And I got the error message. This fragile code, in `apropos-documentation' is the cause: =09 (if do-all =09 (mapatoms =09 (lambda (symbol) =09=09 (setq f (apropos-safe-documentation symbol)) (setq v (get symbol 'variable-documentation)) =09=09 (if (integerp v) (setq v)) =09=09 (setq f (apropos-documentation-internal f) =09=09 v (apropos-documentation-internal v)) The return value of `apropos-safe-cocumentation' for symbol `insert-time-string' is `t'. And that causes `apropos-documentation-internal' to raise the error. To improve the code, test the values of `f' and `v' before passing them to `apropos-documentation-internal', or make that function itself failsafe for a non-string arg. BTW, this same error exists as far back as Emacs 20! In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2014-02-06 on ODIEONE Bzr revision: 116299 rgm@gnu.org-20140207032552-3ycw6hai2zl7yynq Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --prefix=3D/c/Devel/emacs/binary --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3' LDFLAGS=3D-Lc:/Devel/emacs/lib CPPFLAGS=3D-Ic:/Devel/emacs/include'