Andre Spiegel <[EMAIL PROTECTED]> writes: > On Sun, 2005-03-27 at 15:10 +0200, Kai Gro�johann wrote: > >> Could vc-rcs-fetch-master-state use user-login-name? What is the >> intent of that comparison? > > If the file is locked by the calling user, that means he can edit > it. If it's locked by somebody else, he shouldn't. That's why the > comparison is done.
This means we will have to introduce the concept of different "calling users", depending on the file being edited. One idea would be a new file operation file-is-mine or somesuch. For normal files, it would return true if the file owner is user-login-name. For remote files, it could compare with different users. Most of the time, one would expect (file-is-mine "/etc/passwd") to return false, but (file-is-mine "/ssh:[EMAIL PROTECTED]:/etc/passwd") would return true. Hm. The above is very specific. Not sure if it is better to use a lower-level, more generic function, say file-calling-user. For normal files it would return the name of the user that invoked Emacs. For remote files it would return the name of the remote user. What do people think? Kai _______________________________________________ Tramp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/tramp-devel
