From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: emacs within ansi-term ( is it possible ?) Date: Mon, 04 Nov 2002 18:21:55 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <873cqh1a9o.fsf@nospam.eml.cc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036435004 22446 80.91.224.249 (4 Nov 2002 18:36:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2002 18:36:44 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188m5G-0005oa-00 for ; Mon, 04 Nov 2002 19:36:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188m5r-0007YG-00; Mon, 04 Nov 2002 13:36:59 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc51.ops.asp.att.net 1036434115 12.228.27.239 (Mon, 04 Nov 2002 18:21:55 GMT) Original-NNTP-Posting-Date: Mon, 04 Nov 2002 18:21:55 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:106732 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3286 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3286 Mahesh Padmanabhan writes: >Problem: > >I am trying to use emacs exclusively for all shell related >activities. For this, eshell works quite well. But, when I want to log >in as root from eshell to modify something as root, eshell kind of >washes its hands off. This is apparently a known problem and people >suggested using the visual-command variable in eshell so that whenever >I type in "su", it hands off control to ansi-term. > >That works fine except when I have to edit something as root. If I >bring up emacs within ansi-term, all keystrokes (especially ^X ) seem >to be grabbed by the "enclosing" emacs. Is it possible to run emacs >within ansi-term which is within emacs or should I use jed or some >other editor within ansi-term (I would prefer not to do that) ? > >TIA, I don't know about the ansi-term problem, but you can use tramp.el to edit files which the UID of the emacs process would not ordinarily have privileges to do. -- Mike Slass