unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: tramp sudo logging
Date: Sun, 30 May 2004 23:19:04 +0200	[thread overview]
Message-ID: <861xl1obp3.fsf@rumba.de.uu.net> (raw)
In-Reply-To: plop8765aob3pt.fsf@gnu-rox.org

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

      reply	other threads:[~2004-05-30 21:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-12 23:15 tramp sudo logging Karl Chen
2004-05-22 20:34 ` Xavier Maillard
2004-05-30 21:19   ` Kai Grossjohann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861xl1obp3.fsf@rumba.de.uu.net \
    --to=kai@emptydomain.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).