From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Antoine Levitt" Newsgroups: gmane.emacs.devel Subject: Re: [Patch] Behavior of dired when there already is a dired buffer of the same directory Date: Mon, 1 Sep 2008 03:26:36 +0200 Message-ID: <6fa54e4e0808311826w4222b2bbk1e934b76631f99dd@mail.gmail.com> References: <6fa54e4e0808311550p7b2524dbg8c903904a09d4474@mail.gmail.com> <87prnohfcw.fsf@catnip.gol.com> <6fa54e4e0808311753j3cef9618k514ef0691b2e6d5d@mail.gmail.com> <48BB413E.8010107@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_43216_12048308.1220232396472" X-Trace: ger.gmane.org 1220232415 32261 80.91.229.12 (1 Sep 2008 01:26:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 01:26:55 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 01 03:27:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZyCq-00006d-Hd for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 03:27:49 +0200 Original-Received: from localhost ([127.0.0.1]:40744 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZyBq-0005z9-8b for ged-emacs-devel@m.gmane.org; Sun, 31 Aug 2008 21:26:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZyBl-0005xg-CZ for emacs-devel@gnu.org; Sun, 31 Aug 2008 21:26:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZyBk-0005wz-Ac for emacs-devel@gnu.org; Sun, 31 Aug 2008 21:26:40 -0400 Original-Received: from [199.232.76.173] (port=52564 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZyBk-0005wo-2n for emacs-devel@gnu.org; Sun, 31 Aug 2008 21:26:40 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.147]:47814) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KZyBj-0000pb-5g for emacs-devel@gnu.org; Sun, 31 Aug 2008 21:26:40 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 4so617962eyg.24 for ; Sun, 31 Aug 2008 18:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Q3pLZuvFT+8y79iaLIUkDdooXsxyXYQTH1sn+WPiytY=; b=CFZlfDu/z2E2ADmK6BKJSZDVyfpx40/AvD+X4+4o2w2pywuf5DVBLT8qdN6cz9MqKU vHo+sGcYR7tL95WM+Vfod4h3L4L0zJ2CQqykoaCbvLW3G06FBuzbK7I3gh6jQs5o9qVi NIQwrvHUkG8CAGQUY1m/6RLZe6dZ0xK5HmufQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=sGrfjwf9Y0DeQjocFbFqv9pN7YO7TlDfMiydU70O4HchEva0fBg8OdkcgJhpgjepuI /8SNsBfigVI8pLV1IFidlyKxZUMVrA6z3zqfwN/B8Fo2uaRlDwyvz+ndmwRFHHM/beUM 6AcE2WRVausEbJNZtoou8M4YE6Ae/DDCur56U= Original-Received: by 10.210.92.11 with SMTP id p11mr5650994ebb.175.1220232396493; Sun, 31 Aug 2008 18:26:36 -0700 (PDT) Original-Received: by 10.210.141.18 with HTTP; Sun, 31 Aug 2008 18:26:36 -0700 (PDT) In-Reply-To: <48BB413E.8010107@gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:103346 Archived-At: ------=_Part_43216_12048308.1220232396472 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline That only checks for tramp/similar file handling. I don't think we can check for the underlying file system in an OS-independent fashion (gvfs, mounts ... are all ways of making remote files look like regular files). Maybe a solution would be to provide an option to automatically refresh, with a regexp list of files to ignore ? (which could be set to e.g. ("^/media/cdrom", ".gvfs")) 2008/9/1 Lennart Borgman (gmail) > Antoine Levitt wrote: > > anyway). Is there a reliable way to know if accessing a file is fast and > > side-effects free ? If there is, dired could hook to > > > file-remote-p > ------=_Part_43216_12048308.1220232396472 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
That only checks for tramp/similar file handling. I don't think we can check for the underlying file system in an OS-independent fashion (gvfs, mounts ... are all ways of making remote files look like regular files). Maybe a solution would be to provide an option to automatically refresh, with a regexp list of files to ignore ? (which could be set to e.g. ("^/media/cdrom", ".gvfs"))
2008/9/1 Lennart Borgman (gmail) <lennart.borgman@gmail.com>
Antoine Levitt wrote:
> anyway). Is there a reliable way to know if accessing a file is fast and
> side-effects free ? If there is, dired could hook to


file-remote-p

------=_Part_43216_12048308.1220232396472--