[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp sudo logging
From: |
Kai Grossjohann |
Subject: |
Re: tramp sudo logging |
Date: |
Sun, 30 May 2004 23:19:04 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) |
Xavier Maillard <address@hidden> writes:
> On 13 May 2004, Karl Chen wrote:
>
>> It would be nice to have the option to:
>>
>> 1) when starting the sudo shell, also do "sudo echo '[Emacs tramp
>> sub-process]'"
I think that this can be done with tramp-initial-commands. Or
perhaps by redefining the sudo command.
>> 2) for each file edited, also do "sudo echo '[Emacs tramp:
>> editing file foo]'"
>
> Can't you do it by yourself with some hooks ?
I've now added tramp-handle-write-region-hook and
tramp-handle-file-local-copy-hook which are called at the end of the
respective functions. Using this you can achieve the behavior you
want, I think. New version in Tramp CVS only, though.
Kai