"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
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.
Upstream Tramp has fixed this. There is an unwind-protect form in
tramp-handle-insert-file-contents, and set-buffer-modified-p is called
in the unwindforms handler, besides other things.
This reminds me that there's on my todo list the merge of Tramp 2.2 into
the XEmacs packages repository. I shall really do it soon.
Steve
Best regards, Michael.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta