emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: tramp sudo:: and version control on RCS root control


From: Stefan Monnier
Subject: Re: address@hidden: tramp sudo:: and version control on RCS root controlled files]
Date: Sun, 20 Nov 2005 12:02:59 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> The only solution I can think of would be to have a new
> file-handler-sensitive operation (file-login-name FILE) which returns
> the name of the user under which Emacs accesses the given FILE.  For
> local files, that would be equivalent to user-login-name, for remote
> files it would be the name of the remote user, or "root" if Tramp sudo::
> is involved.

We could try and use (process-file "whoami") or (process-file "id").


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]