From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: How to edit crontab using emacs over ssh Date: Wed, 5 Nov 2008 09:11:46 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <1225894496.7259.7.camel@lirh-laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225906990 6834 80.91.229.12 (5 Nov 2008 17:43:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2008 17:43:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 18:44:12 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KxmQE-000690-1p for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 18:44:02 +0100 Original-Received: from localhost ([127.0.0.1]:51168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KxmP5-0000Is-9v for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2008 12:42:51 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b31g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1225905106 3187 127.0.0.1 (5 Nov 2008 17:11:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Nov 2008 17:11:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b31g2000prb.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164143 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59477 Archived-At: On Nov 5, 6:14 am, Ruohao Li wrote: > I'm in shell mode, logged in on another machine over ssh, and I want to > do some 'crontab -e' editing on that machine. But that will bring up a > new editor, which is whatever you set in your EDITOR env variable, and > both vi and emacs cannot be used in this dumb shell. How can I edit the > crontab in my emacs session? Peter Dyballa wrote: > Log-in to that computer in a *term* session? Starting emacs-server > and setting EDITOR to emacsclient? i think Peter answered your question, but rather cryptically. emacs's shell (Alt+x shell) is not designed to be a terminal emulator. You won't be able to start a emacs inside it. So, you probably better off with =E2=80=9CAlt+x term=E2=80=9D or =E2=80=9CAlt+x terminal-emulator= =E2=80=9D, then you can do your ssh and =E2=80=9Ccrontab -e=E2=80=9D. i don't recommend using emacs as a terminal emulator, because once in that mode, basic emacs keybindings you are used to won't work anymore because you told it to behave as terminal emulator. If you need to ssh to another machine, prob best to it in a real terminal emulator. PS aynone know what's the diff between =E2=80=9CAlt+x term=E2=80=9D and =E2= =80=9CAlt+x terminal-emulator=E2=80=9D? Xah =E2=88=91 http://xahlee.org/ =E2=98=84