From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Henrik Enberg Newsgroups: gmane.emacs.help Subject: Re: emacs within ansi-term ( is it possible ?) Date: Mon, 04 Nov 2002 19:18:16 +0100 Organization: Le Petomane Appreciation Society Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87vg3dnqqf.fsf@enberg.org> 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 1036434833 21541 80.91.224.249 (4 Nov 2002 18:33:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2002 18:33:53 +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 188m2p-0005bJ-00 for ; Mon, 04 Nov 2002 19:33:52 +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 188m3B-0006oS-00; Mon, 04 Nov 2002 13:34:13 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!h53n2fls32o1112.telia.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: h53n2fls32o1112.telia.com (213.65.65.53) Original-X-Trace: fu-berlin.de 1036433932 6997618 213.65.65.53 (16 [125297]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:Et9xbs3agb9yUDvIROi9vU7QAFU= Original-Xref: shelby.stanford.edu gnu.emacs.help:106731 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:3285 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3285 Mahesh Padmanabhan writes: > 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) ? The very best solution would be to get Kais tramp.el. With tramp you can edit files in your normal Emacs via su or sudo (as well as remote files via ssh). -- Booting... /vmemacs.el