GNU bug report logs - #6226
Please add a customizable option to NOT call tramp for every sudo command

Previous Next

Package: emacs;

Reported by: Ken Hori <fplemma <at> gmail.com>

Date: Thu, 20 May 2010 04:44:02 UTC

Severity: normal

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 6226 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Ken Hori <fplemma <at> gmail.com>, Juanma Barranquero <lekktu <at> gmail.com>,
	6226 <at> debbugs.gnu.org
Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for
	every sudo command
Date: Wed, 26 May 2010 05:26:19 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> fmakunbound does the job, yes. But i just think providing a defcustom
>> interface
>
> Agreed.

I don't know, whether another defcustom is needed. Eshell gives you
already configuration hooks, for example:

(add-hook 'eshell-named-command-hook
          (lambda (command args)
            (if (member command '("su" "sudo"))
                (throw 'eshell-replace-command
	               (eshell-parse-command (concat "*" command) args)))))

Alternatively, one could disable the alias commands interactively in
eshell, without further configuration:

~ $ fmakunbound (quote eshell/su)
~ $ fmakunbound (quote eshell/sudo)

I will document both approches in eshell.texi.

>         Stefan

Best regards, Michael.




This bug report was last modified 15 years and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.