[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tramp and Zope.
From: |
Kai Großjohann |
Subject: |
Re: Tramp and Zope. |
Date: |
Fri, 09 Aug 2002 09:53:45 +0200 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) |
address@hidden (Artur Maciąg) writes:
> Can I test it somehow ?
> Error occurs with options -q --no-site-file, too.
Well, the variable auto-save-file-name-transforms says to write
auto-save files to a local file. Now the question is which Tramp
function gets invoked when auto-saving so that this Tramp function
can get improved to do the right thing with these files.
Ah, here's an idea: you change the function tramp-file-name-handler
to print a message with the operation and the args, and then you do
stuff normally, and then in the message output you look where was
Tramp invoked from auto-save. (You can find that spot by looking for
the filename that you got in the previous backtrace.)
I guess it will be obvious what to do as soon as this information is
there.
(defun tramp-file-name-handler (operation &rest args)
"Invoke tramp file name handler.
Falls back to normal file name handler if no tramp file name handler exists."
(message "Tramp-fh: op %s args %s" operation args)
(let ((fn (assoc operation tramp-file-name-handler-alist)))
(if fn
(catch 'tramp-forward-to-ange-ftp
(message "Tramp-call: op %s args %s" (cdr fn) args)
(save-match-data (apply (cdr fn) args)))
(tramp-run-real-handler operation args))))
This might provide useful information. Be sure to raise
message-log-max so that the messages don't get lost.
kai
--
A large number of young women don't trust men with beards. (BFBS Radio)
- Re: Tramp and Zope., Kai Großjohann, 2002/08/05
- Re: Tramp and Zope., Michael Albinus, 2002/08/05
- Re: Tramp and Zope., Artur Maciąg, 2002/08/05
- Re: Tramp and Zope., Kai Großjohann, 2002/08/06
- Re: Tramp and Zope., Artur Maciąg, 2002/08/06
- Re: Tramp and Zope., Kai Großjohann, 2002/08/06
- Re: Tramp and Zope., Artur Maciąg, 2002/08/06
- Re: Tramp and Zope., Kai Großjohann, 2002/08/08
- Re: Tramp and Zope., Artur Maciąg, 2002/08/08
- Re: Tramp and Zope.,
Kai Großjohann <=