Ailin Nemui writes:
Hi there,
I notice that when I open a file with tramp,
e.g. /[ssh/somewhere]file.pl, it is marked as modified. The fix seems
simple by moving
(when visit
(set-buffer-modified-p nil))
to the end of tramp-handle-insert-file-contents. Wonder if that is some
problem with my config or someone else noticed it?
Haven't heard of this before. However, at least according to XEmacs
documentation and implementation, this is a TRAMP bug since (1)
`insert-file-contents' is documented to reset the modified flag if
VISIT is non-nil and (2) all of the implementation of
`insert-file-contents' including flag handling is delegated to the
handler if it exists.
I think a clearer way to fix the problem is to combine the two `when'
forms and move the whole thing outside of and after the containing
`if', along with the return value (note that in the absence of a
continued signal, the return value for the file-not-found case is
unreachable -- if you worry about continuable signals, put in an outer
let for result, with an initial binding of '(nil 0) or similar).
We should wait for comments from Michael Albinus, the TRAMP
maintainer, before doing anything to TRAMP ourselves.
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta