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: Mon, 02 Jul 2012 14:25:11 -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 1341257129 23553 80.91.229.3 (2 Jul 2012 19:25:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 19:25:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 02 21:25:29 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 1SlmFR-00089f-F0 for ged-emacs-devel@m.gmane.org; Mon, 02 Jul 2012 21:25:25 +0200 Original-Received: from localhost ([::1]:38894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlmFQ-0000i1-8z for ged-emacs-devel@m.gmane.org; Mon, 02 Jul 2012 15:25:24 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlmFN-0000hb-Dm for emacs-devel@gnu.org; Mon, 02 Jul 2012 15:25:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SlmFL-0004LA-9O for emacs-devel@gnu.org; Mon, 02 Jul 2012 15:25:20 -0400 Original-Received: from mail-gh0-f169.google.com ([209.85.160.169]:57484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SlmFL-0004KX-1X for emacs-devel@gnu.org; Mon, 02 Jul 2012 15:25:19 -0400 Original-Received: by ghrr18 with SMTP id r18so5256106ghr.0 for ; Mon, 02 Jul 2012 12:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:to:subject:organization:mail-followup-to:from:date :message-id:user-agent:mime-version:content-type; bh=WsYh9InL9zXPxtfQj45qnqAOOiQ02C0qcokr0Q1G5fE=; b=mz7NgOi8aXy2RQO7AXGMkGL0sdUMRUKxqO9p1+uEm94KYaNHXwTOeubZHtJNahYKng VbMdqfLCxzg9JqP7zdQxCqjh+ML4bbXWwqjZPpvqzWcqvOe/pNmhdOn36lKT+iLAPVA0 1KJZjoXbGdcxJhToKe8UGN5+NMmXS6wnRI17ETsdKw0dShv2SVKIKzf9UYvuc8ARPAkQ sTAMfVZpzgVtWWi+IFyNSCZdGyIEiZ93TWjNyJXmTMVvAlAlGa5cSFQbn12UFX/ko6Yw HyKDvC/AkTDiY8bwCKswkEeOlyRvHRqsfP4o7r2jweryFmFKGrVz69ZCEKAtPfXlCAPx HZZQ== Original-Received: by 10.50.41.165 with SMTP id g5mr6441678igl.13.1341257117071; Mon, 02 Jul 2012 12:25:17 -0700 (PDT) Original-Received: from Hermes.local (35.sub-174-255-98.myvzw.com. [174.255.98.35]) by mx.google.com with ESMTPS id dc7sm9275250igc.13.2012.07.02.12.25.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 Jul 2012 12:25:16 -0700 (PDT) Original-Received: by Hermes.local (Postfix, from userid 501) id E3F3E20862D8; Mon, 2 Jul 2012 14:25:11 -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.160.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:151375 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 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 * 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