unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* tramp sudo logging
@ 2004-05-12 23:15 Karl Chen
  2004-05-22 20:34 ` Xavier Maillard
  0 siblings, 1 reply; 3+ messages in thread
From: Karl Chen @ 2004-05-12 23:15 UTC (permalink / raw)
  Cc: Emacs Developement List


I've been enjoying tramp for a while; here's a suggestion.

Tramp's sudo support breaks sudo's logging.  (Sudo's logging
facility is very important especially on a system with many
administrators; files edited through tramp currently only show
"sudo bash".)

It would be nice to have the option to:

 1) when starting the sudo shell, also do "sudo echo '[Emacs tramp
    sub-process]'"

 2) for each file edited, also do "sudo echo '[Emacs tramp:
    editing file foo]'"


-- 
Karl 2004-05-12 16:07

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tramp sudo logging
  2004-05-12 23:15 tramp sudo logging Karl Chen
@ 2004-05-22 20:34 ` Xavier Maillard
  2004-05-30 21:19   ` Kai Grossjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Xavier Maillard @ 2004-05-22 20:34 UTC (permalink / raw)


On 13 May 2004, Karl Chen wrote:

> I've been enjoying tramp for a while; here's a suggestion.
> 
> Tramp's sudo support breaks sudo's logging.  (Sudo's logging
> facility is very important especially on a system with many
> administrators; files edited through tramp currently only show
> "sudo bash".)
> 
> It would be nice to have the option to:
> 
> 1) when starting the sudo shell, also do "sudo echo '[Emacs tramp
> sub-process]'"
> 
> 2) for each file edited, also do "sudo echo '[Emacs tramp:
> editing file foo]'"

Can't you do it by yourself with some hooks ?
-- 
Xavier Maillard, zedek@gnu-rox.org

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: tramp sudo logging
  2004-05-22 20:34 ` Xavier Maillard
@ 2004-05-30 21:19   ` Kai Grossjohann
  0 siblings, 0 replies; 3+ messages in thread
From: Kai Grossjohann @ 2004-05-30 21:19 UTC (permalink / raw)


Xavier Maillard <zedek@gnu-rox.org> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-30 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 23:15 tramp sudo logging Karl Chen
2004-05-22 20:34 ` Xavier Maillard
2004-05-30 21:19   ` Kai Grossjohann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).