From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "John Wiegley" Newsgroups: gmane.emacs.devel Subject: Recommend move eshell/su and eshell/sudo to em-tramp.el Date: Thu, 28 Jun 2012 22:32:22 -0500 Organization: New Artisans LLC Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340940754 19424 80.91.229.3 (29 Jun 2012 03:32:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 29 Jun 2012 03:32:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 29 05:32:33 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SkRwf-0002Ke-EW for ged-emacs-devel@m.gmane.org; Fri, 29 Jun 2012 05:32:33 +0200 Original-Received: from localhost ([::1]:40223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkRwf-0008S9-7x for ged-emacs-devel@m.gmane.org; Thu, 28 Jun 2012 23:32:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkRwc-0008S3-5O for emacs-devel@gnu.org; Thu, 28 Jun 2012 23:32:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SkRwa-0002Kn-FJ for emacs-devel@gnu.org; Thu, 28 Jun 2012 23:32:29 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:42686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkRwa-0002KW-73 for emacs-devel@gnu.org; Thu, 28 Jun 2012 23:32:28 -0400 Original-Received: by obhx4 with SMTP id x4so4915173obh.0 for ; Thu, 28 Jun 2012 20:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:organization:mail-followup-to:date :message-id:user-agent:mime-version:content-type; bh=6cevV23w5pqlUWxIxMAkwpeeFN5cb2qyzx+scU9V1kY=; b=NQNO1OiVY03AU4tspw4txFVGo+lZAnhGNn9DkBqNeZXhRucmNrQwKSKlHbFyXUfKHs YLr2c1HFzVWRxn7/3LJyMCs0D+jrYeiRO1fZ9A7ceha4u/32SKyBJqrishaPpBNvIvU+ TIdcU2AV0O/UzQaOQR4Cs6bVklpuyNtEGQd63gWQk3lsc/0Nh/pGa1MRXigplh2Z9Fbn f3e8JankiByJNANrcWe2ddbw1BMfb0L3LNUjHIhwT7pDOQrrDy5yQiz3BVyOz5DGN1z6 4prRI31iozY0wHbyB+zgCyf5MoUbcAj5k0P6o3C+cJ2TYVB3rUds6kh9GMXqAKPfMJhe 5wSQ== Original-Received: by 10.50.217.199 with SMTP id pa7mr372802igc.17.1340940745714; Thu, 28 Jun 2012 20:32:25 -0700 (PDT) Original-Received: from vulcan.local (c-98-215-105-167.hsd1.il.comcast.net. [98.215.105.167]) by mx.google.com with ESMTPS id ga6sm1000547igc.2.2012.06.28.20.32.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jun 2012 20:32:24 -0700 (PDT) Original-Received: by vulcan.local (Postfix, from userid 501) id 868B7F215A74; Thu, 28 Jun 2012 22:32:22 -0500 (CDT) Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (darwin) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151277 Archived-At: 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 * 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