From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Mac - why no proxy badge for dired mode? Date: Mon, 06 Nov 2006 09:48:10 -0700 Organization: IHS Message-ID: References: <864pthppyo.fsf@blue.stonehenge.com> <86fyczocvd.fsf@blue.stonehenge.com> <86k62bl0ul.fsf@blue.stonehenge.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162834470 28043 80.91.229.2 (6 Nov 2006 17:34:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2006 17:34:30 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 06 18:34:28 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gh7yq-0004h4-A6 for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 18:09:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gh7yo-0005HN-UN for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 12:09:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gh7xp-00047T-Kx for emacs-devel@gnu.org; Mon, 06 Nov 2006 12:08:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gh7xo-00045e-At for emacs-devel@gnu.org; Mon, 06 Nov 2006 12:08:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gh7xo-00045N-2d for emacs-devel@gnu.org; Mon, 06 Nov 2006 12:08:48 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gh7xn-0005v9-KI for emacs-devel@gnu.org; Mon, 06 Nov 2006 12:08:47 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gh7ne-0001Pc-1n for emacs-devel@gnu.org; Mon, 06 Nov 2006 17:58:18 +0100 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Nov 2006 17:58:18 +0100 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Nov 2006 17:58:18 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61872 Archived-At: Sean O'Rourke wrote: > merlyn@stonehenge.com (Randal L. Schwartz) writes: >> Ahh, actually, it seems to always represent *my* home directory. >> So that's not working. I should have tried more cases. > > I've currently added > > (setq buffer-file-name dired-directory) > > to dired-mode-hook, and that seems to do what you want. Now to > see what it breaks... I suspect the case where dired-directory is a wildcard spec or a list will cause problems. Would default-directory be a good fallback for mac_update_proxy_icon to use, when buffer-file-name is nil? ,---- | dired-directory is a variable defined in `dired.el'. | Its value is nil | | Documentation: | The directory name or wildcard spec that this dired directory lists. | Local to each dired buffer. May be a list, in which case the car is the | directory name and the cdr is the list of files to mention. | The directory name must be absolute, but need not be fully expanded. | | [back] `---- -- Kevin