From unknown Wed Aug 20 05:15:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11687: 24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache') Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jun 2012 23:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11687@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.133954481419826 (code B ref -1); Tue, 12 Jun 2012 23:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jun 2012 23:46:54 +0000 Received: from localhost ([127.0.0.1]:39905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeanW-00059j-DZ for submit@debbugs.gnu.org; Tue, 12 Jun 2012 19:46:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51054) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeanT-00059c-UF for submit@debbugs.gnu.org; Tue, 12 Jun 2012 19:46:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Seakn-0004X6-ET for submit@debbugs.gnu.org; Tue, 12 Jun 2012 19:44:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Seakn-0004Wv-BM for submit@debbugs.gnu.org; Tue, 12 Jun 2012 19:44:05 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Seakl-0003jX-GV for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 19:44:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Seakj-0004W7-EQ for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 19:44:02 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:33595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Seakj-0004Vj-7Y for bug-gnu-emacs@gnu.org; Tue, 12 Jun 2012 19:44:01 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5CNhuIf006457 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 12 Jun 2012 23:43:57 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5CNhtMK000269 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Jun 2012 23:43:56 GMT Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5CNhtdm006450 for ; Tue, 12 Jun 2012 18:43:55 -0500 Received: from dradamslap1 (/10.159.223.114) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 12 Jun 2012 16:43:55 -0700 From: "Drew Adams" Date: Tue, 12 Jun 2012 16:43:49 -0700 Message-ID: <5D9D0F04DFAD4CBB9517A166DB26D531@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 THREAD-INDEX: Ac1I9TcYYrk3kWg1QNyYBPVHbuy4dA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) I did not see this with emacs -Q, but this is what I saw: I marked some files in Dired, then did `dired-do-chmod'. At the prompt I entered "a-w". This is the backtrace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) * find-file-name-handler(nil dired-uncache) * (let ((handler (find-file-name-handler dir (quote dired-uncache)))) (if handler (funcall handler (quote dired-uncache) dir))) * dired-uncache(nil) * (if (and test-for-subdir (dired-get-subdir)) (let* ((dir (dired-get-subdir)) (switches (cdr (assoc-string dir dired-switches-alist)))) (dired-insert-subdir dir (when arg (read-string "Switches for listing: " (or switches dired-subdir-switches dired-actual-switches))))) (message "Redisplaying...") (dired-uncache (if (consp dired-directory) (car dired-directory) dired-directory)) (dired-map-over-marks (let ((fname (dired-get-filename)) (dired-after-readin-hook nil)) (message "Redisplaying... %s" fname) (dired-update-file-line fname)) arg) (run-hooks (quote dired-after-readin-hook)) (dired-move-to-filename) (message "Redisplaying...done")) * dired-do-redisplay(nil) * (let* ((files (dired-get-marked-files t arg)) (modestr (and (stringp (car files)) (nth 8 (file-attributes (car files))))) (default (and (stringp modestr) (string-match "^.\\(...\\)\\(...\\)\\(...\\)$" modestr) (replace-regexp-in-string "-" "" (format "u=%s,g=%s,o=%s" (match-string 1 modestr) (match-string 2 modestr) (match-string 3 modestr))))) (modes (dired-mark-read-string "Change mode of %s to: " nil (quote chmod) arg files default)) num-modes) (cond ((equal modes "") (error "No file mode specified")) ((string-match "^[0-7]+" modes) (setq num-modes (string-to-number modes 8)))) (dolist (file files) (set-file-modes file (if num-modes num-modes (file-modes-symbolic-to-number modes (file-modes file))))) (dired-do-redisplay arg)) dired-do-chmod(nil) * call-interactively(dired-do-chmod nil nil) In GNU Emacs 24.1.1 (i386-mingw-nt5.1.2600) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' From unknown Wed Aug 20 05:15:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11687: 24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache') Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Sep 2012 17:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Drew Adams" Cc: 11687@debbugs.gnu.org Received: via spool by 11687-submit@debbugs.gnu.org id=B11687.134902784314100 (code B ref 11687); Sun, 30 Sep 2012 17:58:01 +0000 Received: (at 11687) by debbugs.gnu.org; 30 Sep 2012 17:57:23 +0000 Received: from localhost ([127.0.0.1]:34910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TINlb-0003fM-9X for submit@debbugs.gnu.org; Sun, 30 Sep 2012 13:57:23 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:33482 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TINlZ-0003fF-9F for 11687@debbugs.gnu.org; Sun, 30 Sep 2012 13:57:22 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 015C4451CB5B; Sun, 30 Sep 2012 10:56:57 -0700 (PDT) From: Juri Linkov Organization: JURTA References: <5D9D0F04DFAD4CBB9517A166DB26D531@us.oracle.com> Date: Sun, 30 Sep 2012 20:56:10 +0300 In-Reply-To: <5D9D0F04DFAD4CBB9517A166DB26D531@us.oracle.com> (Drew Adams's message of "Tue, 12 Jun 2012 16:43:49 -0700") Message-ID: <87ipavgzt0.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > I did not see this with emacs -Q, but this is what I saw: > > I marked some files in Dired, then did `dired-do-chmod'. At the prompt > I entered "a-w". This is the backtrace: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > * find-file-name-handler(nil dired-uncache) > * (let ((handler (find-file-name-handler dir (quote dired-uncache)))) (if > handler (funcall handler (quote dired-uncache) dir))) > * dired-uncache(nil) > * (if (and test-for-subdir (dired-get-subdir)) (let* ((dir (dired-get-subdir)) > (switches (cdr (assoc-string dir dired-switches-alist)))) (dired-insert-subdir > dir (when arg (read-string "Switches for listing: " (or switches > dired-subdir-switches dired-actual-switches))))) (message "Redisplaying...") > (dired-uncache (if (consp dired-directory) (car dired-directory) > dired-directory)) (dired-map-over-marks (let ((fname (dired-get-filename)) > (dired-after-readin-hook nil)) (message "Redisplaying... %s" fname) > (dired-update-file-line fname)) arg) (run-hooks (quote dired-after-readin-hook)) > (dired-move-to-filename) (message "Redisplaying...done")) > * dired-do-redisplay(nil) > * (let* ((files (dired-get-marked-files t arg)) (modestr (and (stringp (car > files)) (nth 8 (file-attributes (car files))))) (default (and (stringp modestr) > (string-match "^.\\(...\\)\\(...\\)\\(...\\)$" modestr) > (replace-regexp-in-string "-" "" (format "u=%s,g=%s,o=%s" (match-string 1 > modestr) (match-string 2 modestr) (match-string 3 modestr))))) (modes > (dired-mark-read-string "Change mode of %s to: " nil (quote chmod) arg files > default)) num-modes) (cond ((equal modes "") (error "No file mode specified")) > ((string-match "^[0-7]+" modes) (setq num-modes (string-to-number modes 8)))) > (dolist (file files) (set-file-modes file (if num-modes num-modes > (file-modes-symbolic-to-number modes (file-modes file))))) (dired-do-redisplay > arg)) > dired-do-chmod(nil) > * call-interactively(dired-do-chmod nil nil) This bug can happen when you do `dired-do-chmod' on a non-Dired buffer (it calls `dired-do-redisplay' that fails when called not in Dired). If you can't reproduce this bug, it should be closed as notabug. From unknown Wed Aug 20 05:15:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11687: 24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache') Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 30 Sep 2012 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11687 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "'Juri Linkov'" Cc: 11687@debbugs.gnu.org Received: via spool by 11687-submit@debbugs.gnu.org id=B11687.134903827529239 (code B ref 11687); Sun, 30 Sep 2012 20:52:02 +0000 Received: (at 11687) by debbugs.gnu.org; 30 Sep 2012 20:51:15 +0000 Received: from localhost ([127.0.0.1]:34995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIQTr-0007bY-6E for submit@debbugs.gnu.org; Sun, 30 Sep 2012 16:51:15 -0400 Received: from acsinet15.oracle.com ([141.146.126.227]:17088) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIQTo-0007bP-87 for 11687@debbugs.gnu.org; Sun, 30 Sep 2012 16:51:13 -0400 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8UKokuW028950 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 30 Sep 2012 20:50:47 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8UKojX1011979 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 30 Sep 2012 20:50:46 GMT Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8UKojLX016887; Sun, 30 Sep 2012 15:50:45 -0500 Received: from dradamslap1 (/71.202.147.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 30 Sep 2012 13:50:45 -0700 From: "Drew Adams" References: <5D9D0F04DFAD4CBB9517A166DB26D531@us.oracle.com> <87ipavgzt0.fsf@mail.jurta.org> Date: Sun, 30 Sep 2012 13:50:34 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87ipavgzt0.fsf@mail.jurta.org> Thread-Index: Ac2fNP1GQvVy4nxDTtuNjFtJO6GgRgAF9tbg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -7.1 (-------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -7.1 (-------) > > I did not see this with emacs -Q, but this is what I saw: > > > > I marked some files in Dired, then did `dired-do-chmod'. > > At the prompt I entered "a-w". This is the backtrace: > > > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > > This bug can happen when you do `dired-do-chmod' on a non-Dired buffer > (it calls `dired-do-redisplay' that fails when called not in Dired). > If you can't reproduce this bug, it should be closed as notabug. I see. But I was in Dired at the time, I'm pretty sure. Anyway, so far I have not seen the problem again, so if you would like to close the bug feel free to do so. (That was with the 24.1 release, however, not with a development snapshot.) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 01 13:56:08 2012 Received: (at control) by debbugs.gnu.org; 1 Oct 2012 17:56:08 +0000 Received: from localhost ([127.0.0.1]:36692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIkDv-00073m-EF for submit@debbugs.gnu.org; Mon, 01 Oct 2012 13:56:08 -0400 Received: from ps18281.dreamhost.com ([69.163.218.105]:57651 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TIkDt-00073c-5r for control@debbugs.gnu.org; Mon, 01 Oct 2012 13:56:05 -0400 Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 5E9B2451CA54 for ; Mon, 1 Oct 2012 10:55:35 -0700 (PDT) From: Juri Linkov To: control@debbugs.gnu.org Subject: Re: bug#11687: 24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache') Organization: JURTA References: <5D9D0F04DFAD4CBB9517A166DB26D531@us.oracle.com> <87ipavgzt0.fsf@mail.jurta.org> Date: Mon, 01 Oct 2012 20:24:18 +0300 In-Reply-To: (Drew Adams's message of "Sun, 30 Sep 2012 13:50:34 -0700") Message-ID: <87obkmdy2d.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) tags 11687 notabug wontfix close 11687 stop