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#6636: 24.0.50; special dired feature confuse all dired commands. Date: Thu, 15 Jul 2010 11:16:58 -0700 Message-ID: References: <8739vlurj7.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279218631 20833 80.91.229.12 (15 Jul 2010 18:30:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 18:30:31 +0000 (UTC) To: "'Thierry Volpiatto'" , <6636@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 15 20:30:29 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZTCX-00068A-Hg for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jul 2010 20:30:29 +0200 Original-Received: from localhost ([127.0.0.1]:39226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZTCW-0007Zz-F4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jul 2010 14:30:28 -0400 Original-Received: from [140.186.70.92] (port=52548 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OZTCQ-0007Yt-Tj for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2010 14:30:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OZTCP-0002cd-Oh for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2010 14:30:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48753) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZTCP-0002cG-NA for bug-gnu-emacs@gnu.org; Thu, 15 Jul 2010 14:30:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OZSzW-0004Hw-0V; Thu, 15 Jul 2010 14:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jul 2010 18:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6636 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6636-submit@debbugs.gnu.org id=B6636.127921782116475 (code B ref 6636); Thu, 15 Jul 2010 18:17:01 +0000 Original-Received: (at 6636) by debbugs.gnu.org; 15 Jul 2010 18:17:01 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZSzU-0004Hg-FJ for submit@debbugs.gnu.org; Thu, 15 Jul 2010 14:17:01 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OZSzS-0004Ha-51 for 6636@debbugs.gnu.org; Thu, 15 Jul 2010 14:16:58 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o6FIH6KN019810 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Jul 2010 18:17:09 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o6FIH0ZE009601; Thu, 15 Jul 2010 18:17:00 GMT Original-Received: from abhmt009.oracle.com by acsmt355.oracle.com with ESMTP id 408889751279217818; Thu, 15 Jul 2010 11:16:58 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 15 Jul 2010 11:16:58 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8739vlurj7.fsf@tux.homenetwork> Thread-Index: Acsj89SJk/QqtJPJTCmtRa7x3HCOnwAU0YRA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4C3F50A2.00ED:SCFMA4539814,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Jul 2010 14:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38564 Archived-At: > Start in directory "/home/you" > (dired (cons "My Working dir" (dired-get-marked-files))) > > Now trying any dired commands (e.g delete, copy etc...) partially fail > with wrong type argument stringp....(("/foo" "/bar" "/baz")) > > If you eval dired-buffers you can see that "/home/you" is linked to > buffer "My Working dir" (done by `dired-advertise') > which is wrong and confuse all dired commands. The is in `dired-buffers-for-dir'. It has this code: (file-name-non-directory dired-directory) This is wrong. `dired-directory' has every right to be a cons, as it is in this case. Function `dired-buffers-for-dir' was introduced in 23.1, creating this regression wrt Emacs 22.3 and prior releases. -- FWIW - This problem, like previous (fixed) bugs surrounding the use of a cons as the arg to `dired', comes about because this wonderful Dired feature is not sufficiently well known. It is hardly even documented, yet it is very useful. IOW, IMO the first bug wrt this is that the doc is paltry wrt this feature. Code bugs tend to follow, because Emacs developers (like Emacs users in general) are not thinking about the cons case for `dired-directory'.