From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Emacs tramp troubles with old Sun Date: Thu, 08 Nov 2007 16:21:55 +0100 Message-ID: References: <87bqa5ye3a.fsf@gmx.de> <87wsstb6ca.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1194535316 14877 80.91.229.12 (8 Nov 2007 15:21:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Nov 2007 15:21:56 +0000 (UTC) Cc: bob@rattlesnake.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 08 16:21:59 2007 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 1Iq9Ca-0001de-0C for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2007 16:21:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq9CO-0005Cr-LO for ged-emacs-devel@m.gmane.org; Thu, 08 Nov 2007 10:21:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iq9CL-0005Cl-3G for emacs-devel@gnu.org; Thu, 08 Nov 2007 10:21:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iq9CF-0005Bj-Lw for emacs-devel@gnu.org; Thu, 08 Nov 2007 10:21:35 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iq9CF-0005Bg-Fk for emacs-devel@gnu.org; Thu, 08 Nov 2007 10:21:31 -0500 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Iq9CF-0001A7-0w for emacs-devel@gnu.org; Thu, 08 Nov 2007 10:21:31 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id lA8FLNA7021291; Thu, 8 Nov 2007 16:21:23 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 08 Nov 2007 09:52:54 -0500") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.73 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:82805 Archived-At: Stefan Monnier writes: > Would it be possible for Tramp to detect the "test: argument expected" error > message and force a "cleanup-connection" at that point? > [ and of course, do similar things wherever applicable: the idea is to try > and detect when the cached properties become invalid, which will > necessarily happen over time as machines get upgraded/replaced/... ] Exactly the same idea I'm just thinking about. But one must ensure there's no infloop - when "test" does not work, it could be another reason but invalid cached values. One shall remember the reason for calling cleanup-connection, and when the same problem appears again, it's time to give up. Another idea is to keep a counter for cached properties. After a while (100 uses, 100 days, whatever) the values shall be recomputed, just in case. Think about a changed default $PATH, where it isn't always an obvious error with the old value, when new directories appear. At least when "uname -s -r" returns a changed value, it is time to expire the cached properties for that machine. > -- Stefan Best regards, Michael.