From unknown Tue Jun 24 08:48:36 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil) 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: To: 16235@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.138786025315733 (code B ref -1); Tue, 24 Dec 2013 04:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 24 Dec 2013 04:44:13 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default> Date: Mon, 23 Dec 2013 20:43:35 -0800 (PST) From: Drew Adams X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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' From unknown Tue Jun 24 08:48:36 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Drew Adams Subject: bug#16235: closed (Re: bug#16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil)) Message-ID: References: <532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default> X-Gnu-PR-Message: they-closed 16235 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: moreinfo Reply-To: 16235@debbugs.gnu.org Date: Wed, 05 Feb 2014 22:25:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1391639103-17423-1" This is a multi-part message in MIME format... ------------=_1391639103-17423-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-a= rgument stringp nil) which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16235@debbugs.gnu.org. --=20 16235: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16235 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1391639103-17423-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 16235-done) by debbugs.gnu.org; 5 Feb 2014 22:24:44 +0000 Received: from localhost ([127.0.0.1]:51339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBAtf-0004WS-C3 for submit@debbugs.gnu.org; Wed, 05 Feb 2014 17:24:43 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:40844) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WBAtd-0004WJ-IV for 16235-done@debbugs.gnu.org; Wed, 05 Feb 2014 17:24:41 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WBAtc-0004xc-I3; Wed, 05 Feb 2014 17:24:40 -0500 From: Glenn Morris To: 16235-done@debbugs.gnu.org Subject: Re: bug#16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil) References: <532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default> X-Spook: president Rand Corporation Security Council wire transfer X-Ran: \!5\\.35P(cOs#bZe (Drew Adams's message of "Mon, 23 Dec 2013 20:43:35 -0800 (PST)") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: 16235-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.5 (-----) It's an internal variable, it should not be nil, since you can't say or repeat how it came to be nil, nothing can be done. ------------=_1391639103-17423-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 24 Dec 2013 04:44:13 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 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 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 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default> Date: Mon, 23 Dec 2013 20:43:35 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil) X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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' ------------=_1391639103-17423-1--