From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 00:43:09 2010 Received: (at submit) by debbugs.gnu.org; 20 May 2010 04:43:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OExbB-000103-JW for submit@debbugs.gnu.org; Thu, 20 May 2010 00:43:09 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OExb9-0000zy-Ki for submit@debbugs.gnu.org; Thu, 20 May 2010 00:43:08 -0400 Received: from lists.gnu.org ([199.232.76.165]:43149) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OExb6-0000ig-8f for submit@debbugs.gnu.org; Thu, 20 May 2010 00:43:04 -0400 Received: from [140.186.70.92] (port=43734 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OExb4-0003J6-Pr for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 00:43:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OExb3-0000at-A3 for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 00:43:02 -0400 Received: from mail-pz0-f176.google.com ([209.85.222.176]:36949) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OExb3-0000al-4T for bug-gnu-emacs@gnu.org; Thu, 20 May 2010 00:43:01 -0400 Received: by pzk6 with SMTP id 6so4323396pzk.1 for ; Wed, 19 May 2010 21:42:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ndYKLqbMWIAFzMT8VSoVLs7SFLEnHoUeX7OQFp9FsFw=; b=tEYkbnAzD2YVP+miaEJzumGjedSyTgxAruh1C0/QxqrXfziLF3ARbbSwHAGOlPitPb KExgBXRgvQkx3iaL5x3b2KBT9AAfMnqTSHflZEf7X/lJTs4nx2osJfLFzK9Lx0pU6izD LG8RhMCdV6JNdeY8Afad02JXE42TKkJc1Ca10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VO/TTKAWeKL8GaMK0DkUT8p8IZbg9k6qKHD8eFh3F8uHga2QY1uATv+GPU4RIbGvRy Im2dUdwi/X58kmr3J5Ugr6sH4zmWlRuK5OL6j93qDJIKbIcv0yhuMEBcDQVVSKDDRqlt VFet/DV1lzANG9dD3BU3wf54IaJ9ZYk4NHpEA= MIME-Version: 1.0 Received: by 10.141.13.3 with SMTP id q3mr6050721rvi.145.1274330579419; Wed, 19 May 2010 21:42:59 -0700 (PDT) Received: by 10.140.166.4 with HTTP; Wed, 19 May 2010 21:42:59 -0700 (PDT) Date: Wed, 19 May 2010 21:42:59 -0700 Message-ID: Subject: Please add a customizable option to NOT call tramp for every sudo command From: Ken Hori To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.1 (-----) I've recently noticed Eshell is now calling tramp for every sudo command. Tramp is very slow, and I believe for most cases tramp intermediation is unnecessary. Could we please add a customizable switch to enable/disable eshell/sudo? Disabling eshell/sudo by default would be even better. From debbugs-submit-bounces@debbugs.gnu.org Thu May 20 02:43:17 2010 Received: (at 6226) by debbugs.gnu.org; 20 May 2010 06:43:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEzTQ-0001kA-89 for submit@debbugs.gnu.org; Thu, 20 May 2010 02:43:16 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OEzTN-0001k4-Sa for 6226@debbugs.gnu.org; Thu, 20 May 2010 02:43:14 -0400 Received: (qmail invoked by alias); 20 May 2010 06:43:09 -0000 Received: from p4FC006F3.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.192.6.243] by mail.gmx.net (mp011) with SMTP; 20 May 2010 08:43:09 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/BF6oFwBPBG/sLyYcUoSTwQ+RCHSLhyK5rK6POHe t0aGeq4P0+2oxZ From: Michael Albinus To: Ken Hori Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command References: Date: Thu, 20 May 2010 08:43:07 +0200 Message-ID: <87zkzv3wg4.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6226 Cc: 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Ken Hori writes: > I've recently noticed Eshell is now calling tramp for every sudo > command. Tramp is very slow, and I believe for most cases tramp > intermediation is unnecessary. > > Could we please add a customizable switch to enable/disable > eshell/sudo? Disabling eshell/sudo by default would be even better. All built-in commands of eshell can be disabled by prepending "*". See (info "(eshell)Built-ins") That means, you shall call ~ $ *sudo command Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri May 21 23:50:19 2010 Received: (at 6226) by debbugs.gnu.org; 22 May 2010 03:50:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFfj9-0007YE-FQ for submit@debbugs.gnu.org; Fri, 21 May 2010 23:50:19 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFfj7-0007Y9-39 for 6226@debbugs.gnu.org; Fri, 21 May 2010 23:50:17 -0400 Received: by pvc21 with SMTP id 21so678113pvc.3 for <6226@debbugs.gnu.org>; Fri, 21 May 2010 20:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=7BBMKcXZA/UEd+vPv0wWsx42+PG+ustz4zNIjiMOIqI=; b=i6OAfvJMbvceAeHi9m1bVF/BIrtRNt3Z27teRlceql0WL6H0RZbMyFehcw330MtYhe bN5OBIOQh+d3T4kMmaNbtQNw6VLAnlyWErBJqtXzhJ/K33l2n5FRxju0zfXOjCxXyqsj 4FufrkEsX/z4ATYgDnulRHg/qfWbgiqz05eyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=F6GeVnDoi/UO0jKW163yE4MnEWCXIOJ7hZa5sm378zLBHdjGptQB6j69fiMwrRQhuH 6168aHQPUZ3QfaNSJcUx7lgGcIH0d1U0CHLqqeJbiHyuGSFyd1K2e8fEnEyOP11XWCJj nAAlZ2eXGh3VIyfiG32WlNnRdAj+RlV6TZET8= MIME-Version: 1.0 Received: by 10.140.58.2 with SMTP id g2mr1831638rva.172.1274500212960; Fri, 21 May 2010 20:50:12 -0700 (PDT) Received: by 10.140.166.4 with HTTP; Fri, 21 May 2010 20:50:12 -0700 (PDT) In-Reply-To: <87zkzv3wg4.fsf@gmx.de> References: <87zkzv3wg4.fsf@gmx.de> Date: Fri, 21 May 2010 20:50:12 -0700 Message-ID: Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command From: Ken Hori To: Michael Albinus Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 6226 Cc: 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.4 (-) Yes, I am aware of that. Thank you. And I'm also aware I can just remove eshell-unix from eshell-modules-list. Inside em-unix.el are eshell/agrep eshell/cat eshell/cp eshell/diff eshell/du eshell/egrep eshell/fgrep eshell/glimpse eshell/grep eshell/info eshell/ln eshell/locate eshell/make eshell/man eshell/mkdir eshell/mv eshell/occur eshell/rm eshell/rmdir eshell/su eshell/sudo eshell/time eshell/whoami Some are beneficial, but many command wrappers are not -- at least to me. I think it's a good idea to give the users freedom of choosing which eshell commands to opt-in or out. On Wed, May 19, 2010 at 11:43 PM, Michael Albinus wrote: > Ken Hori writes: > >> I've recently noticed Eshell is now calling tramp for every sudo >> command. Tramp is very slow, and I believe for most cases tramp >> intermediation is unnecessary. >> >> Could we please add a customizable switch to enable/disable >> eshell/sudo? Disabling eshell/sudo by default would be even better. > > All built-in commands of eshell can be disabled by prepending "*". See > > =A0(info "(eshell)Built-ins") > > That means, you shall call > > ~ $ *sudo command > > Best regards, Michael. > From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 18:04:03 2010 Received: (at 6226) by debbugs.gnu.org; 22 May 2010 22:04:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFwnb-00006x-Fw for submit@debbugs.gnu.org; Sat, 22 May 2010 18:04:03 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OFwnY-00006b-Ea for 6226@debbugs.gnu.org; Sat, 22 May 2010 18:04:01 -0400 Received: (qmail invoked by alias); 22 May 2010 22:03:55 -0000 Received: from p4FC00CE9.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.192.12.233] by mail.gmx.net (mp017) with SMTP; 23 May 2010 00:03:55 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/8ukgpZi/8osesdOp9qs+6QIxlRo/iwejR0QJeur DWobtehUQS7BYk From: Michael Albinus To: Ken Hori Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command References: <87zkzv3wg4.fsf@gmx.de> Date: Sun, 23 May 2010 00:03:51 +0200 In-Reply-To: (Ken Hori's message of "Fri, 21 May 2010 20:50:12 -0700") Message-ID: <878w7bfvaw.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6226 Cc: 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Ken Hori writes: > Yes, I am aware of that. Thank you. And I'm also aware > I can just remove eshell-unix from eshell-modules-list. > > Inside em-unix.el are > > eshell/agrep > eshell/cat > eshell/cp > eshell/diff > eshell/du > eshell/egrep > eshell/fgrep > eshell/glimpse > eshell/grep > eshell/info > eshell/ln > eshell/locate > eshell/make > eshell/man > eshell/mkdir > eshell/mv > eshell/occur > eshell/rm > eshell/rmdir > eshell/su > eshell/sudo > eshell/time > eshell/whoami > > Some are beneficial, but many command wrappers are not -- at > least to me. > > I think it's a good idea to give the users freedom > of choosing which eshell commands to opt-in or out. (eval-after-load "em-unix" (progn (unintern "eshell/su") (unintern "eshell/sudo"))) Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun May 23 09:22:27 2010 Received: (at 6226) by debbugs.gnu.org; 23 May 2010 13:22:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGB8N-0007K1-Hm for submit@debbugs.gnu.org; Sun, 23 May 2010 09:22:27 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGB8L-0007Jv-Fz for 6226@debbugs.gnu.org; Sun, 23 May 2010 09:22:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGDI+EtFpZMM/2dsb2JhbACeD3K8BIUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,285,1272859200"; d="scan'208";a="64872768" Received: from 69-165-147-12.dsl.teksavvy.com (HELO pastel.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 23 May 2010 09:22:20 -0400 Received: by pastel.home (Postfix, from userid 20848) id 1D2428266; Sun, 23 May 2010 09:22:20 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command Message-ID: References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> Date: Sun, 23 May 2010 09:22:20 -0400 In-Reply-To: <878w7bfvaw.fsf@gmx.de> (Michael Albinus's message of "Sun, 23 May 2010 00:03:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 6226 Cc: Ken Hori , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > (eval-after-load "em-unix" > (progn > (unintern "eshell/su") > (unintern "eshell/sudo"))) FWIW, I think `unintern' is a bit drastic. `makfunbound' would be my preferred choice. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun May 23 13:16:09 2010 Received: (at 6226) by debbugs.gnu.org; 23 May 2010 17:16:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGEmX-0000iQ-ME for submit@debbugs.gnu.org; Sun, 23 May 2010 13:16:09 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OGEmV-0000i3-AR for 6226@debbugs.gnu.org; Sun, 23 May 2010 13:16:08 -0400 Received: (qmail invoked by alias); 23 May 2010 17:16:01 -0000 Received: from p4FC00C67.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.192.12.103] by mail.gmx.net (mp046) with SMTP; 23 May 2010 19:16:01 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/1ZgM/pIH1QlMjdWxqyDzM1TqC3HBJIV23aHl07v pPRY/lOPdU0yRO From: Michael Albinus To: Stefan Monnier Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> Date: Sun, 23 May 2010 19:15:59 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 23 May 2010 09:22:20 -0400") Message-ID: <8739xifsj4.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6226 Cc: Ken Hori , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Stefan Monnier writes: >> (eval-after-load "em-unix" >> (progn >> (unintern "eshell/su") >> (unintern "eshell/sudo"))) > > FWIW, I think `unintern' is a bit drastic. `makfunbound' would be my > preferred choice. Thanks. Just another function I didn't know. > Stefan Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sun May 23 14:54:31 2010 Received: (at 6226) by debbugs.gnu.org; 23 May 2010 18:54:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGGJi-0001PM-2E for submit@debbugs.gnu.org; Sun, 23 May 2010 14:54:31 -0400 Received: from mail-bw0-f44.google.com ([209.85.214.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGGJg-0001PD-El for 6226@debbugs.gnu.org; Sun, 23 May 2010 14:54:28 -0400 Received: by bwz6 with SMTP id 6so85195bwz.3 for <6226@debbugs.gnu.org>; Sun, 23 May 2010 11:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=OBAgB8VHIta99xDjm+QWOoMy1r1q63mtv9AsW4cqUbw=; b=pEMgertnSIbynAZo40NDaZmOm9lV8xRV6CAufWXIyQHRmbREK5Wc/m4Nh+bOPomQX/ kWWeumlWQ9TTLTH2rUE42aQ2X+qmwT2OjWg1s2kiqUGvABluJhBwz7K+sHG/lh/9R459 2M/54boEYsPI242T4v0vMI9pNLz1NRdLhYPNY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=d0RjGouzRow163NtpFlC/PbYosBAYcCzvoQmdSE4UE5QzkEqH/yfn28bf+mdFjMFO4 FHxT66uAXDJlvDjCOVPiphmz0WEM2eBnOrUVlJxYdl4S3wl0A/9vresymuQ8OrS5xSY1 HbqsQxjreL6sJ6crwOA215Uthvj0CqaE3sXDo= Received: by 10.204.156.204 with SMTP id y12mr1456542bkw.82.1274640863173; Sun, 23 May 2010 11:54:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.74.70 with HTTP; Sun, 23 May 2010 11:54:03 -0700 (PDT) In-Reply-To: <8739xifsj4.fsf@gmx.de> References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> From: Juanma Barranquero Date: Sun, 23 May 2010 20:54:03 +0200 Message-ID: Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command To: Michael Albinus Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6226 Cc: Stefan Monnier , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On Sun, May 23, 2010 at 19:15, Michael Albinus wro= te: > Stefan Monnier writes: >> FWIW, I think `unintern' is a bit drastic. =C2=A0`makfunbound' would be = my >> preferred choice. > > Thanks. Just another function I didn't know. `fmakunbound', I hope :-) Juanma From debbugs-submit-bounces@debbugs.gnu.org Mon May 24 04:16:46 2010 Received: (at 6226) by debbugs.gnu.org; 24 May 2010 08:16:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGSq5-0006qS-AI for submit@debbugs.gnu.org; Mon, 24 May 2010 04:16:45 -0400 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGSq3-0006qK-Tt for 6226@debbugs.gnu.org; Mon, 24 May 2010 04:16:44 -0400 Received: by pva18 with SMTP id 18so565277pva.3 for <6226@debbugs.gnu.org>; Mon, 24 May 2010 01:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=CxWVUlGAhIfAxjCYvyr8TEghEGGvVUTX2o2twAtj+m0=; b=c/SQyALkDyAlYVPFy/feVbnbljSXAd1xxdCk6PWtg9wtL3DSxKQMQhKDB1BcCMGeCJ LJzzGx9Z7Cuho4fdw/m3c9lqdxsPjBjz65BS7CFOghxLS8Cgu13AJo7Tx6RDsLpwIS/i qz/hrD0CG09mxmUdvAfZzTXSWRA59/XkRXRT4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=j9uGp5QPVBIBfTjdJjnpxau9jujSuQRTum/BFNovqi4ShHHat0d254pAkCf3Jf10+1 3DfnGwHYz4gvZ+QlZrYakri2Sx/6XLatZ5goqqz1vOcfmb7MSjHRiuOuplyhuga2BPPH 05osmQ8XgcqH8tfAmElwXEeI5T0o0TR1vHZJU= MIME-Version: 1.0 Received: by 10.141.2.9 with SMTP id e9mr3827991rvi.51.1274689000126; Mon, 24 May 2010 01:16:40 -0700 (PDT) Received: by 10.140.166.4 with HTTP; Mon, 24 May 2010 01:16:40 -0700 (PDT) In-Reply-To: References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> Date: Mon, 24 May 2010 01:16:40 -0700 Message-ID: Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command From: Ken Hori To: Juanma Barranquero Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 6226 Cc: Michael Albinus , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) fmakunbound does the job, yes. But i just think providing a defcustom inter= face > to give the users freedom > of choosing which eshell commands to opt-in or out. is better rather than manual enable/disable through a raw function call. I'm speaking from user's perspective, not elisp programmer's. It's just me though. On Sun, May 23, 2010 at 11:54 AM, Juanma Barranquero wro= te: > On Sun, May 23, 2010 at 19:15, Michael Albinus w= rote: >> Stefan Monnier writes: > >>> FWIW, I think `unintern' is a bit drastic. =A0`makfunbound' would be my >>> preferred choice. >> >> Thanks. Just another function I didn't know. > > `fmakunbound', I hope :-) > > =A0 =A0Juanma > > > > From debbugs-submit-bounces@debbugs.gnu.org Mon May 24 10:06:05 2010 Received: (at 6226) by debbugs.gnu.org; 24 May 2010 14:06:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGYI9-0001bR-F4 for submit@debbugs.gnu.org; Mon, 24 May 2010 10:06:05 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGYI7-0001b4-13 for 6226@debbugs.gnu.org; Mon, 24 May 2010 10:06:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAC4k+ktFpZMM/2dsb2JhbACeEHK/AIUTBIw/ X-IronPort-AV: E=Sophos;i="4.53,291,1272859200"; d="scan'208";a="64924456" Received: from 69-165-147-12.dsl.teksavvy.com (HELO alfajor.home) ([69.165.147.12]) by ironport2-out.pppoe.ca with ESMTP; 24 May 2010 10:05:56 -0400 Received: by alfajor.home (Postfix, from userid 20848) id 6A5B3BA6D7; Mon, 24 May 2010 10:05:56 -0400 (EDT) From: Stefan Monnier To: Ken Hori Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command Message-ID: References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> Date: Mon, 24 May 2010 10:05:56 -0400 In-Reply-To: (Ken Hori's message of "Mon, 24 May 2010 01:16:40 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6226 Cc: Juanma Barranquero , Michael Albinus , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >> `fmakunbound', I hope :-) Yes, thanks. > fmakunbound does the job, yes. But i just think providing a defcustom > interface Agreed. Stefan From debbugs-submit-bounces@debbugs.gnu.org Tue May 25 23:26:31 2010 Received: (at 6226) by debbugs.gnu.org; 26 May 2010 03:26:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH7GJ-0002Tc-AE for submit@debbugs.gnu.org; Tue, 25 May 2010 23:26:31 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OH7GG-0002TX-Gc for 6226@debbugs.gnu.org; Tue, 25 May 2010 23:26:29 -0400 Received: (qmail invoked by alias); 26 May 2010 03:26:22 -0000 Received: from p4FC0062C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.192.6.44] by mail.gmx.net (mp016) with SMTP; 26 May 2010 05:26:22 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX19S+rEZ1XBSjguANSqVyIc41EkpRn7d7QWhUPl3Ob FahgQqzNO0JH5p From: Michael Albinus To: Stefan Monnier Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> Date: Wed, 26 May 2010 05:26:19 +0200 In-Reply-To: (Stefan Monnier's message of "Mon, 24 May 2010 10:05:56 -0400") Message-ID: <874ohvibs4.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6226 Cc: Ken Hori , Juanma Barranquero , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Stefan Monnier 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. From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 01:58:58 2010 Received: (at submit) by debbugs.gnu.org; 26 May 2010 05:58:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH9dp-0003V9-FX for submit@debbugs.gnu.org; Wed, 26 May 2010 01:58:58 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH9dm-0003V4-UC for submit@debbugs.gnu.org; Wed, 26 May 2010 01:58:56 -0400 Received: from lists.gnu.org ([199.232.76.165]:44074) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OH9di-0006qu-MF for submit@debbugs.gnu.org; Wed, 26 May 2010 01:58:50 -0400 Received: from [140.186.70.92] (port=34791 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OH9dg-0004BV-9H for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 01:58:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OH9dd-00025E-VE for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 01:58:47 -0400 Received: from lo.gmane.org ([80.91.229.12]:43045) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OH9dd-00024Z-Pp for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 01:58:45 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OH9db-0001ox-Ew for bug-gnu-emacs@gnu.org; Wed, 26 May 2010 07:58:43 +0200 Received: from 197.211.85-79.rev.gaoland.net ([79.85.211.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 May 2010 07:58:43 +0200 Received: from thierry.volpiatto by 197.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 May 2010 07:58:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org connect(): No such file or directory From: Thierry Volpiatto Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command Date: Wed, 26 May 2010 07:55:16 +0200 Organization: ThierryVolpiatto Lines: 35 Message-ID: <874ohvjjgb.fsf@tux.homenetwork> References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> <874ohvibs4.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 197.211.85-79.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:g2WoEFjhqczVTUQnFY4wfdL6VFc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.5 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) Michael Albinus writes: > Stefan Monnier 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. OTOH adding an alias to su/sudo can solve problem: alias sudo *sudo -p Password: $* alias su LC_ALL=C *su -l (if you enter the alias from eshell, you have to escape $) -- Thierry Volpiatto Gpg key: http://pgp.mit.edu/ From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 06:23:17 2010 Received: (at 6226-done) by debbugs.gnu.org; 26 May 2010 10:23:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHDld-0005Tu-7t for submit@debbugs.gnu.org; Wed, 26 May 2010 06:23:17 -0400 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OHDla-0005Tn-SY for 6226-done@debbugs.gnu.org; Wed, 26 May 2010 06:23:16 -0400 Received: (qmail invoked by alias); 26 May 2010 10:16:30 -0000 Received: from p4FC0062C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.192.6.44] by mail.gmx.net (mp058) with SMTP; 26 May 2010 12:16:30 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/N5Np8defNxH1W/XnBPhUchpBM3LSHpnPt3FbNUR vwE4KLpBwKd4GP From: Michael Albinus To: Thierry Volpiatto Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> <874ohvibs4.fsf@gmx.de> <874ohvjjgb.fsf@tux.homenetwork> Date: Wed, 26 May 2010 12:16:28 +0200 In-Reply-To: <874ohvjjgb.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Wed, 26 May 2010 07:55:16 +0200") Message-ID: <87wrurnf2b.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6226-done Cc: 6226-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Thierry Volpiatto writes: > OTOH adding an alias to su/sudo can solve problem: > > alias sudo *sudo -p Password: $* > alias su LC_ALL=C *su -l Excellent. Aliases stay persistent, so it is the complete solution. I've added this to eshell.texi. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed May 26 09:31:04 2010 Received: (at 6226) by debbugs.gnu.org; 26 May 2010 13:31:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHGhM-0007QK-8L for submit@debbugs.gnu.org; Wed, 26 May 2010 09:31:04 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHGhL-0007Py-5j for 6226@debbugs.gnu.org; Wed, 26 May 2010 09:31:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAHO//EtLd+tS/2dsb2JhbACeH3LBE4J7ghgEjEI X-IronPort-AV: E=Sophos;i="4.53,304,1272859200"; d="scan'208";a="65436741" Received: from 75-119-235-82.dsl.teksavvy.com (HELO pastel.home) ([75.119.235.82]) by ironport2-out.pppoe.ca with ESMTP; 26 May 2010 09:30:57 -0400 Received: by pastel.home (Postfix, from userid 20848) id 5A6AB80E5; Wed, 26 May 2010 09:30:57 -0400 (EDT) From: Stefan Monnier To: Michael Albinus Subject: Re: bug#6226: Please add a customizable option to NOT call tramp for every sudo command Message-ID: References: <87zkzv3wg4.fsf@gmx.de> <878w7bfvaw.fsf@gmx.de> <8739xifsj4.fsf@gmx.de> <874ohvibs4.fsf@gmx.de> Date: Wed, 26 May 2010 09:30:57 -0400 In-Reply-To: <874ohvibs4.fsf@gmx.de> (Michael Albinus's message of "Wed, 26 May 2010 05:26:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6226 Cc: Ken Hori , Juanma Barranquero , 6226@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >>> fmakunbound does the job, yes. But i just think providing a defcustom >>> interface >> Agreed. > I don't know, whether another defcustom is needed. I'm not sure either. But fmakunbound is clearly not good enough since it can't easily be undone. > alias sudo *sudo -p Password: $* > alias su LC_ALL=C *su -l That's a better solution, yes. Stefan From unknown Fri Sep 05 18:57:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 24 Jun 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator