From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.erc.general Subject: Re: Slow access to files using UNC path Date: Wed, 22 Sep 2004 08:59:47 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <68c73b1a04083122477869f5a@mail.gmail.com> <68c73b1a0409080600626643cf@mail.gmail.com> <68c73b1a040908220473b70936@mail.gmail.com> <68c73b1a04090823245a5d027c@mail.gmail.com> <68c73b1a04091223507210add9@mail.gmail.com> <87u0tveqtk.fsf@orebokech.com> <874qlve3vb.fsf@orebokech.com> <878yb6q5ww.fsf@mobile.repose.cx> <87wtyqk9dl.fsf@mobile.repose.cx> <87u0truqwd.fsf@mobile.repose.cx> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095858069 2050 80.91.229.6 (22 Sep 2004 13:01:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2004 13:01:09 +0000 (UTC) Cc: erc-help@lists.sourceforge.net, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 15:00:55 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CA6ju-000151-00 for ; Wed, 22 Sep 2004 15:00:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA6ps-0003Ly-K0 for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2004 09:07:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CA6pl-0003Lo-Em for emacs-devel@gnu.org; Wed, 22 Sep 2004 09:06:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CA6pj-0003LT-Oi for emacs-devel@gnu.org; Wed, 22 Sep 2004 09:06:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CA6pj-0003LJ-Lj for emacs-devel@gnu.org; Wed, 22 Sep 2004 09:06:55 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CA6j9-0002DG-Hg for emacs-devel@gnu.org; Wed, 22 Sep 2004 09:00:08 -0400 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id B86FCB3027A; Wed, 22 Sep 2004 08:59:47 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 3CAB48CA23; Wed, 22 Sep 2004 08:59:47 -0400 (EDT) Original-To: Damien Elmes In-Reply-To: <87u0truqwd.fsf@mobile.repose.cx> (Damien Elmes's message of "Wed, 22 Sep 2004 08:46:26 +0900") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27434 gmane.emacs.erc.general:488 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27434 >>> The rationale behind "" was that a non-zero string may be >>> misinterpreted by a user/programmer as a real path, when its value >>> would just be ignored. >> >> Without explaining to use the reason why the file-name has to change, it's >> difficult to know what's the best solution. > Doing it this way allows people to store log files based on the date a > buffer is saved, such as using a new log file each month, or day. > Hooking into the save mechanism is a lot more straightforward than what? What alternatives have you considered? How is the buffer-save triggered (is it triggered by a timer, by the user selecting the buffer and hitting C-x C-s, by some other command in the main ERC buffer, indirectly by save-some-buffers, ...)? How about choosing the file name based on the date the buffer is created? How about using "foo/bar-latest at first and switching to "foo/bar-" in before-save-hook? How about always using "foo/bar-latest" as buffer-file-name and link/copy/move the file to "foo/bar-" in after-save-hook? How about using "foo/bar-" at buffer creation and in before-save-hook update the "" part if necessary (if the date only includes the month, it's unlikely to change, and if the user restarts Emacs every day, the same will hold even if the date includes the day)? > as it allows us to compute the file name on demand rather than attempt to > keep it updated by something like a timer. Hmmm.... doing it in a timer? That sounds like trouble, Stefan