From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.help Subject: tramp filename problems Date: 06 Nov 2002 10:34:33 +1100 Organization: University of New England, NSW, Australia Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87fzuf616e.fsf@blind-bat.une.edu.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036542068 21572 80.91.224.249 (6 Nov 2002 00:21:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 00:21:08 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 189DwP-0005bd-00 for ; Wed, 06 Nov 2002 01:21:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 189DuD-0000F1-00; Tue, 05 Nov 2002 19:18:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!ra.nrl.navy.mil!dca6-feed2.news.algx.net!dca6-feed1.news.algx.net!allegiance!cyclone2.usenetserver.com!news.webusenet.com!telocity-west!TELOCITY!news-out.spamkiller.net!propagator2-maxim!news-in.spamkiller.net!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!news.usyd.edu.au!news.une.edu.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: blind-bat.une.edu.au User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:106781 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3335 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3335 I have recently upgraded my tramp version to 2.0.22 and now I'm getting some problems due to the changed tramp filename specification. I'm running Emacs 21.2. With my previous tramp version, the tramp filename specification was of the form /[method:user@host]:/path/to/remote/file The new version uses a format similar (the same) as ange-ftp uses e.g. /method:user@host:/path/to/remote/file This appears to be fine on the surface and I understand the rationale behind it etc. However, in practice this is a big pain in the bum. The problem appears to be with the file handling alist and the order of entries in this list. Here is the senario I am facing I use tramp to access a file on a remote system which only allows ssh connections. This works fine and I work on the file for some time. During the day, I also do other things from within emacs such as read news with Gnus, read some web pages with w3 and w3m, read my e0-mails with VM etc. Then suddenly I will get constant prompts to enter my password. The problem seems to be that one/many of the other applications I am running (actually, I think it centres around w3/w3m) install a file-handler for ange-ftp which is added to the beginning of the file-handle alist. The upshot of this appears to be that my existing tramp connections are then interpreted as ange-ftp connections and the system starts trying to update/save/auto-save the remote file via ange-ftp rather than via tramp (which is how it was originally accessed). At this point, all I can do is save the file to my local disk, exit emacs (something I hardly ever do normally) and then re-start it so that I can access the remote system via tramp again. All will then work fine until something else (not sure what yet) will cause my tramp filename specification to suddenly become an ange-ftp file specification. Now I know I could just change the tramp settings to move back to the old file spec type (e.g. /[method:user@host]:/path, but I do sort of agree with the rationale/philosophy which wants to avoid introducing yet another file spec type. So, I guess my question is what can I do to ensure the tramp file spec and method is favored over ange-ftp? In fact, I never use ange-ftp directly anymore (not since moving to tramp) and its only other packages (w3?, Gnus?, w3m?, url?) which are using it and I gather installing the handler for it which is being installed after the tramp handler and therefore seems to get higher priority. Suggestions? Tim