unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Recommend move eshell/su and eshell/sudo to em-tramp.el
@ 2012-07-02 19:25 John Wiegley
  2012-07-03  6:56 ` Michael Albinus
  0 siblings, 1 reply; 11+ messages in thread
From: John Wiegley @ 2012-07-02 19:25 UTC (permalink / raw)
  To: emacs-devel

Something I've noticed after moving to Emacs 24 is that using "sudo" in Eshell
has become an awful experience:

    - It's *much* slower than *sudo (by orders of magnitude)
    - It doesn't show any output until the command is done
    - It locks up Emacs until the command is done

I find this behavior unfortunate, since sudo is such a common command for
users of Eshell to use.  It was added in 2009 by the Tramp author:

    2009-11-27  Michael Albinus  <michael.albinus@gmx.ed>

           * eshell/em-unix.el (eshell/su, eshell/sudo): New defuns,
           providing a Tramp related implementation of "su" and "sudo".
           (eshell-unix-initialize): Add "su" and "sudo".

I do not believe these should not have been made the default.  I recommend
moving them out of em-unix.el and into a new module, em-tramp.el, which is OFF
by default.  Users who prefer to use Tramp for everything can turn it on, and
a note to that effect should be added to the Tramp manual.

John



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Recommend move eshell/su and eshell/sudo to em-tramp.el
@ 2012-06-29  3:32 John Wiegley
  2012-06-29  9:45 ` Michael Albinus
  2012-06-29 21:51 ` Phil Hagelberg
  0 siblings, 2 replies; 11+ messages in thread
From: John Wiegley @ 2012-06-29  3:32 UTC (permalink / raw)
  To: emacs-devel

Something I've noticed after moving to Emacs 24 is that using "sudo" in Eshell
has become an awful experience:

    - It's *much* slower than *sudo (by orders of magnitude)
    - It doesn't show any output until the command is done
    - It locks up Emacs until the command is done

I find this behavior distasteful, since sudo is such a common command for
users of Eshell to use.  It was added in 2009 by the Tramp author:

    2009-11-27  Michael Albinus  <michael.albinus@gmx.ed>

           * eshell/em-unix.el (eshell/su, eshell/sudo): New defuns,
           providing a Tramp related implementation of "su" and "sudo".
           (eshell-unix-initialize): Add "su" and "sudo".

I appreciate what these two functions are trying to accomplish, but they
should not have been made the default.  I recommend moving them out of
em-unix.el and into a new module, em-tramp.el, which is OFF by default.  Users
who prefer to use Tramp for everything can turn it on, and a note to that
effect should be added to the Tramp manual.

John



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

end of thread, other threads:[~2012-07-11  3:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02 19:25 Recommend move eshell/su and eshell/sudo to em-tramp.el John Wiegley
2012-07-03  6:56 ` Michael Albinus
2012-07-03 19:47   ` John Wiegley
2012-07-04 14:53     ` Michael Albinus
2012-07-10 12:22   ` Michael Albinus
2012-07-10 16:57     ` John Wiegley
2012-07-10 18:56       ` Michael Albinus
2012-07-11  3:57         ` John Wiegley
  -- strict thread matches above, loose matches on Subject: below --
2012-06-29  3:32 John Wiegley
2012-06-29  9:45 ` Michael Albinus
2012-06-29 21:51 ` Phil Hagelberg

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).