From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12725: dired-do-shell-command should allow . and .. Date: Thu, 25 Oct 2012 09:02:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351170200 18565 80.91.229.3 (25 Oct 2012 13:03:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Oct 2012 13:03:20 +0000 (UTC) Cc: 12725-done@debbugs.gnu.org To: Hemal Pandya Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 25 15:03:27 2012 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 1TRN5r-0001HZ-0H for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 15:03:27 +0200 Original-Received: from localhost ([::1]:46136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRN5i-00022y-Pi for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 Oct 2012 09:03:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRN5a-00021Y-KJ for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 09:03:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRN5P-00075U-Ce for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 09:03:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRN5P-00075N-9H for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 09:02:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TRN7O-0003lO-3w for bug-gnu-emacs@gnu.org; Thu, 25 Oct 2012 09:05:02 -0400 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Oct 2012 13:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 12725 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 12725@debbugs.gnu.org, monnier@iro.umontreal.ca Original-Received: via spool by 12725-done@debbugs.gnu.org id=D12725.135117026914418 (code D ref 12725); Thu, 25 Oct 2012 13:05:01 +0000 Original-Received: (at 12725-done) by debbugs.gnu.org; 25 Oct 2012 13:04:29 +0000 Original-Received: from localhost ([127.0.0.1]:60903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRN6q-0003kU-M2 for submit@debbugs.gnu.org; Thu, 25 Oct 2012 09:04:29 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:50538) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TRN6n-0003kE-Il for 12725-done@debbugs.gnu.org; Thu, 25 Oct 2012 09:04:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu0/O+LFW/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202821346" Original-Received: from 206-248-177-86.dsl.teksavvy.com (HELO pastel.home) ([206.248.177.86]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2012 09:02:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A342859401; Thu, 25 Oct 2012 09:02:15 -0400 (EDT) In-Reply-To: (Hemal Pandya's message of "Wed, 24 Oct 2012 14:20:05 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66025 Archived-At: > In dired buffer, hitting `!' on current directory (`.') or parent > directory (`..') results in the error > dired-get-filename: Cannot operate on `.' or `..' > There is no reason this should not be allowed. Please allow running > commands on these two. I've installed the patch below which seems to fix your problem, thank you for bringing it up here, Stefan === modified file 'lisp/dired.el' --- lisp/dired.el 2012-10-24 14:38:49 +0000 +++ lisp/dired.el 2012-10-25 12:59:39 +0000 @@ -620,7 +620,7 @@ (let* ((all-of-them (save-excursion (dired-map-over-marks - (dired-get-filename localp) + (dired-get-filename localp 'no-error-if-not-filep) arg nil distinguish-one-marked))) result) (if (not filter)