From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: merlyn@stonehenge.com (Randal L. Schwartz) Newsgroups: gmane.emacs.devel Subject: Re: Mac - why no proxy badge for dired mode? Date: 04 Nov 2006 00:05:42 -0800 Message-ID: <86fyczocvd.fsf@blue.stonehenge.com> References: <864pthppyo.fsf@blue.stonehenge.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162627567 31818 80.91.229.2 (4 Nov 2006 08:06:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Nov 2006 08:06:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 04 09:06:04 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 1GgGXO-0006Ij-Ft for ged-emacs-devel@m.gmane.org; Sat, 04 Nov 2006 09:05:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GgGXO-0006qD-0V for ged-emacs-devel@m.gmane.org; Sat, 04 Nov 2006 03:05:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GgGXC-0006pW-2A for emacs-devel@gnu.org; Sat, 04 Nov 2006 03:05:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GgGXA-0006o1-MP for emacs-devel@gnu.org; Sat, 04 Nov 2006 03:05:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GgGXA-0006nj-H7 for emacs-devel@gnu.org; Sat, 04 Nov 2006 03:05:44 -0500 Original-Received: from [209.223.236.162] (helo=blue.stonehenge.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GgGX9-0006CP-So for emacs-devel@gnu.org; Sat, 04 Nov 2006 03:05:44 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by blue.stonehenge.com (Postfix) with ESMTP id 528498FFC5; Sat, 4 Nov 2006 00:05:43 -0800 (PST) Original-Received: from blue.stonehenge.com ([127.0.0.1]) by localhost (blue.stonehenge.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26722-01-2; Sat, 4 Nov 2006 00:05:42 -0800 (PST) Original-Received: by blue.stonehenge.com (Postfix, from userid 1001) id C49E0900E5; Sat, 4 Nov 2006 00:05:42 -0800 (PST) Original-To: YAMAMOTO Mitsuharu x-mayan-date: Long count = 12.19.13.14.1; tzolkin = 1 Imix; haab = 14 Zac In-Reply-To: Original-Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 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:61752 Archived-At: >>>>> "YAMAMOTO" == YAMAMOTO Mitsuharu writes: >>>>> On 02 Nov 2006 12:13:03 -0800, merlyn@stonehenge.com (Randal L. Schwartz) said: >> However, there's no such "proxy icon" for a dired buffer. Just the >> "Emacs@$hostname" in the title bar. I spent about 20 minutes poking >> through the mac-specific code and the file-visiting code, but I >> didn't see anything that hooks the two together. Can someone who >> knows more about carbon apps than I do please look at this and help >> me make it work? YAMAMOTO> It's not under the control of Lisp. It is set by YAMAMOTO> mac_update_proxy_icon in macfns.c according to the value of YAMAMOTO> buffer-file-name of the buffer of the selected window. Wow. In a dired buffer in Carbon Emacs, I just executed the following: (setq buffer-file-name ".") And it did exactly the right expected useful thing: a badge was created that represented the current directory, and I could command-click on the title bar to see the filepath to the directory and select parent directories. The question is, will this break anything else? Can we make this a global change, or at least a change on carbon emacs? I know that I could personally add a hook that does this. I'm just thinking out loud for everyone. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!