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#16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil) Date: Mon, 23 Dec 2013 20:43:35 -0800 (PST) Message-ID: <532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default> 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 1387860324 21581 80.91.229.3 (24 Dec 2013 04:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Dec 2013 04:45:24 +0000 (UTC) To: 16235@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 24 05:45:29 2013 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 1VvJs0-0007sB-Ah for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Dec 2013 05:45:28 +0100 Original-Received: from localhost ([::1]:36548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvJrz-0002h3-Lk for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Dec 2013 23:45:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvJrl-0002g6-91 for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:45:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvJrb-0000Az-4t for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:45:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvJrb-0000At-1O for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VvJra-00047F-Jz for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:45: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, 24 Dec 2013 04:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16235 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.138786025315733 (code B ref -1); Tue, 24 Dec 2013 04:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Dec 2013 04:44:13 +0000 Original-Received: from localhost ([127.0.0.1]:37379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvJqm-00045g-Eo for submit@debbugs.gnu.org; Mon, 23 Dec 2013 23:44:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35703) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VvJqk-00045X-Bh for submit@debbugs.gnu.org; Mon, 23 Dec 2013 23:44:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvJqZ-0008VH-V0 for submit@debbugs.gnu.org; Mon, 23 Dec 2013 23:44:10 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvJqZ-0008VD-S2 for submit@debbugs.gnu.org; Mon, 23 Dec 2013 23:43:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvJqR-0002GO-9O for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:43:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvJqG-0008SM-9Z for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:43:51 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:28456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvJqG-0008S7-2M for bug-gnu-emacs@gnu.org; Mon, 23 Dec 2013 23:43:40 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBO4hcGR012085 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 24 Dec 2013 04:43:39 GMT Original-Received: from aserz7022.oracle.com (aserz7022.oracle.com [141.146.126.231]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBO4hbqb010069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 24 Dec 2013 04:43:38 GMT Original-Received: from ubhmt101.oracle.com (ubhmt101.oracle.com [156.151.24.6]) by aserz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBO4hbPs002558 for ; Tue, 24 Dec 2013 04:43:37 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: 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-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:82487 Archived-At: This was from my setup, not emacs -Q. I used `M' in Dired, and entered "a-w" as the argument, then OK'd modifying the marked files. I got this backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) find-file-name-handler(nil dired-uncache) dired-uncache(nil) dired-do-redisplay(nil) dired-do-chmod(nil) call-interactively(dired-do-chmod nil nil) command-execute(dired-do-chmod) None of the functions listed in the backtrace are from my code; all are the vanilla versions. However, this happened only once. I could not reproduce it thereafter, in either my setup or emacs -Q. If it helps somehow, fine. If not, feel free to close it. Looking at the code for `dired-do-redisplay', it seems that when I invoked `dired-do-chmod' (in Dired, of course) the value of `dired-directory' was nil. The doc string for `dired-directory' does not describe any situation in which it can be or should be nil. It says only that the value is a string or a non-empty list. Is the doc string incomplete? Is it a bug that somehow it had the value nil (in Dired)? Nil is the default value. And thatit seems to be the value of the variable in any non-Dired buffer. I would think that, at the very least: 1. The doc string should mention what a nil value means. 2. The code should check that the variable is non-nil, and provide a better error message for the nil case than just wrong-type-argument. `dired-directory' is not mentioned in the Elisp manual. In GNU Emacs 24.3.50.1 (i686-pc-mingw32) of 2013-12-22 on ODIEONE Bzr revision: 115700 xfq.free@gmail.com-20131222231942-q8ftfeg3ft2a1t83 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' CPPFLAGS=3D-Ic:/Devel/emacs/include LDFLAGS=3D-Lc:/Devel/emacs/lib'