From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Gauland Newsgroups: gmane.emacs.devel,gmane.emacs.diffs Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r112148: Added eshell-tramp module Date: Fri, 29 Mar 2013 13:09:28 +1300 Message-ID: <87vc8bm5hj.fsf@dimension8.tehua.net> References: <87wqst2vw3.fsf@no8wireless.co.nz> <87hajw6iog.fsf@no8wireless.co.nz> <87wqsrnvsh.fsf@dimension8.tehua.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364515791 24101 80.91.229.3 (29 Mar 2013 00:09:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Mar 2013 00:09:51 +0000 (UTC) Cc: emacs-diffs@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 29 01:10:18 2013 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 1ULMta-0005AH-26 for ged-emacs-devel@m.gmane.org; Fri, 29 Mar 2013 01:10:14 +0100 Original-Received: from localhost ([::1]:58180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULMtB-0000zm-ID for ged-emacs-devel@m.gmane.org; Thu, 28 Mar 2013 20:09:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULMt5-0000zg-IT for emacs-devel@gnu.org; Thu, 28 Mar 2013 20:09:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULMt3-0001b6-73 for emacs-devel@gnu.org; Thu, 28 Mar 2013 20:09:43 -0400 Original-Received: from jersey.rurallink.co.nz ([114.134.15.197]:46973 helo=smtp.rurallink.co.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULMt2-0001WA-S4; Thu, 28 Mar 2013 20:09:41 -0400 Original-Received: from 114-134-7-65.rurallink.co.nz ([114.134.7.65] helo=dimension8.tehua.net) by smtp.rurallink.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1ULMsx-0005dQ-A5; Fri, 29 Mar 2013 13:09:36 +1300 In-Reply-To: (Stefan Monnier's message of "Thu, 28 Mar 2013 17:02:27 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Rurallink-Authenticated-User: aidalgol@no8wireless.co.nz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 114.134.15.197 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:158395 gmane.emacs.diffs:120078 Archived-At: Stefan Monnier writes: >> Oh, no, that won't be a problem, because eshell-tramp-initialize has to >> be called (for each buffer) to register the functions. > >> em-tramp.el line 51: > >> (make-local-variable 'eshell-complex-commands) >> (setq eshell-complex-commands >> (append '("su" "sudo") >> eshell-complex-commands)) > >> So if the module is enabled (and loaded, of course), and you disable it >> and then create a new eshell buffer, running the commands su and sudo >> will invoke the external commands, not the internal eshell/su and >> eshell/sudo. > > That's not my experience. > After > M-: (defun eshell/cat (&rest args) (debug)) RET > doing "cat ~/.cvsrc" does not show me ~/.cvsrc but jumps into the > debugger, even though I have not touched eshell-complex-commands. That would be because eshell/cat is already registered by em-unix --Aidan