From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Livin Stephen Newsgroups: gmane.emacs.help Subject: Re: What I'm missing when using M-x shell Date: Sat, 13 Sep 2008 01:08:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: <64cc3cde-69bb-4afc-b874-2ee37c302976@i20g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1221295345 29939 80.91.229.12 (13 Sep 2008 08:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Sep 2008 08:42:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 13 10:43:21 2008 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 1KeQit-0007ys-47 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 10:43:19 +0200 Original-Received: from localhost ([127.0.0.1]:38867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KeQhs-0007Ac-42 for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Sep 2008 04:42:16 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i20g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-NNTP-Posting-Host: 117.192.227.69 Original-X-Trace: posting.google.com 1221293299 31146 127.0.0.1 (13 Sep 2008 08:08:19 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 13 Sep 2008 08:08:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: i20g2000prf.googlegroups.com; posting-host=117.192.227.69; posting-account=Q30uoQoAAACDL2O2xg4pWJiNoqIIeAyv 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:162170 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:57517 Archived-At: On Sep 12, 9:20=A0pm, "Francis Moreau" wrote: > Hello, > > I'm still trying to do all my jobs inside emacs but I'm missing a couple > things. > > The first one is what I can't do anymore when working with a shell/termin= al > inside emacs. > > =A0 1/ Most applications based on ncurse behave strangely when using > =A0 =A0 =A0 M-x term > > =A0 2/ Although M-x shell has history reference completions, it doesn't c= omplete > =A0 =A0 =A0 for '!#:'. But '!!:' works fine though. > > =A0 3/ There's no readline "reverse-search-history" function (C-r) which = does > =A0 =A0 =A0an _incremental_ =A0search; > > =A0 4/ There's no readline "yank-last-arg" function which inserts the las= t > =A0 =A0 =A0 argument to the previous commands > > =A0 5/ emacs doesn't expand shell variable when hitting > > Am I missing something ? > > Thanks > -- > Francis Hi, FM. I too found M-x term to initially fall terribly short - but not anymore :) YMMV, but I had to "export TERM=3Dxterm" in my ~/.bashrc to make M-x term work as per expectations... - i.e. to be usable for everyday use: on my Mac I'm perfectly happy with it's behaviour now! (previous value in M-x term term used to show $TERM to be eterm-color or something like that) After this change my man-pages, etc don't look like their full of odd characters (especiallly when trying to print single-quotes), nor is man-page text underlined randomly . This TERM change definitely took care of at least issues 3/, and 5/ which you mention - I have both "C-r" history-search and "TAB"-completion of shell-vars AND file-names working. Cheers --livin.stephen