From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: tramp sudo logging Date: Sun, 30 May 2004 23:19:04 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <861xl1obp3.fsf@rumba.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1085951966 24340 80.91.224.253 (30 May 2004 21:19:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 May 2004 21:19:26 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 30 23:19:21 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUXiC-0000qy-00 for ; Sun, 30 May 2004 23:19:20 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BUXiC-0004Rw-00 for ; Sun, 30 May 2004 23:19:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUXiK-0002Rp-86 for emacs-devel@quimby.gnus.org; Sun, 30 May 2004 17:19:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BUXiF-0002Rj-Ib for emacs-devel@gnu.org; Sun, 30 May 2004 17:19:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BUXiD-0002RV-NZ for emacs-devel@gnu.org; Sun, 30 May 2004 17:19:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BUXiD-0002RR-Dw for emacs-devel@gnu.org; Sun, 30 May 2004 17:19:21 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BUXi0-0004Me-Ic for emacs-devel@gnu.org; Sun, 30 May 2004 17:19:08 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BUXhz-0006pL-00 for ; Sun, 30 May 2004 23:19:07 +0200 Original-Received: from pd9e1e219.dip.t-dialin.net ([217.225.226.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 May 2004 23:19:07 +0200 Original-Received: from kai by pd9e1e219.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 May 2004 23:19:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pd9e1e219.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:I5PtOl/x9xChqB9wTVOsYHkB8LU= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24247 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24247 Xavier Maillard 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