From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#6636: 24.0.50; special dired feature confuse all dired commands. Date: Sun, 18 Jul 2010 07:24:05 +0200 Organization: ThierryVolpiatto Message-ID: <87hbjx4b2i.fsf@tux.homenetwork> References: <8739vlurj7.fsf@tux.homenetwork> <87bpa56dqz.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279431048 495 80.91.229.12 (18 Jul 2010 05:30:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 18 Jul 2010 05:30:48 +0000 (UTC) Cc: 6636@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 18 07:30:43 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 1OaMSZ-0001YS-0e for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jul 2010 07:30:43 +0200 Original-Received: from localhost ([127.0.0.1]:33745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaMSY-0005EE-8L for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jul 2010 01:30:42 -0400 Original-Received: from [140.186.70.92] (port=60770 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaMSN-0005E8-VS for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 01:30:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaMSM-0006u4-Nn for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 01:30:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38431) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaMSM-0006tv-L7 for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 01:30:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OaMP0-0002Jv-Dy; Sun, 18 Jul 2010 01:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2010 05:27:02 +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.12794307928911 (code B ref 6636); Sun, 18 Jul 2010 05:27:02 +0000 Original-Received: (at 6636) by debbugs.gnu.org; 18 Jul 2010 05:26:32 +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 1OaMOV-0002Jg-4s for submit@debbugs.gnu.org; Sun, 18 Jul 2010 01:26:31 -0400 Original-Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaMOS-0002JZ-Sr for 6636@debbugs.gnu.org; Sun, 18 Jul 2010 01:26:29 -0400 Original-Received: by wyb40 with SMTP id 40so3270477wyb.3 for <6636@debbugs.gnu.org>; Sat, 17 Jul 2010 22:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :organization:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=U2iuVhXRqPCda3ufSrVylM8dQOBoefmS2DB5CL27m3Q=; b=ZwYPW7jw3X+qZK8p1D4TXJEGpRMC1GPwOfyJzXY8oFx/d+iUFpoihdYIOi52ajwD48 huOaN57HskXvpld+kZ3G0NjlEe975C8ZrGke/IpWtRQ4y1vxAylMKwJfH0r3Y9CHd7Bc g6vZYy5Dgv+ueBMK5ipWcdoyhXk0cu2cNmWaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=aSkZ6jtB/tCUJIBKYyWzGwjtwfnBqz2DDybFCib+UiwzLlxAAm0dDv6RNVWPppSElG IP4sE/tM/M3S9gkdJRbDWTfc2s8g+vm7bGQJMDGb+Q5mpEgXmYwajCpaE0HlJ4oDouhZ Q8Scug8G/6fxn+jbGcGEdZOBte5vD5Rm7/gTA= Original-Received: by 10.227.134.210 with SMTP id k18mr2569177wbt.160.1279430805922; Sat, 17 Jul 2010 22:26:45 -0700 (PDT) Original-Received: from tux.homenetwork (27.77.197-77.rev.gaoland.net [77.197.77.27]) by mx.google.com with ESMTPS id e31sm29282596wbe.23.2010.07.17.22.26.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Jul 2010 22:26:44 -0700 (PDT) In-Reply-To: <87bpa56dqz.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 17 Jul 2010 16:43:16 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 18 Jul 2010 01:27: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:38651 Archived-At: Chong Yidong writes: > "Drew Adams" writes: > >> 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. > > I see the bug, but I don't know where you got the idea that this is a > regression. dired-buffers-for-dir has been unchanged since 1997 (except > for the removal one unused local variable, which does not affect the > present behavior bug). > > I'll check in a fix. Nice, also it would be good to use in many places in emacs something like: ,---- | (defun anything-c-current-directory () | "Return current-directory name at point. | Useful in dired buffers when there is inserted subdirs." | (if (eq major-mode 'dired-mode) | (dired-current-directory) | default-directory)) `---- instead of just `default-directory' (e.g vc-dir, even if i don't use it) -- Thierry Volpiatto Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997