From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Golden Newsgroups: gmane.emacs.help Subject: Re: How to PICK the CTRL-u argument from the file or some other method, with EXAMPLE Date: Thu, 23 Sep 2004 23:50:23 +0100 Organization: Eircom.Net http://www.eircom.net Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <2rgvr7F1aej4cU1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1095980063 15079 80.91.229.6 (23 Sep 2004 22:54:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Sep 2004 22:54:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 24 00:54:11 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CAcTb-00039W-00 for ; Fri, 24 Sep 2004 00:54:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAcZe-0000ox-3Q for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Sep 2004 19:00:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!newsfeed.vmunix.org!news.cs.univ-paris8.fr!feeder.news.heanet.ie!news.indigo.ie!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.unix.shell,comp.lang.lisp Original-Followup-To: gnu.emacs.help Original-Lines: 50 User-Agent: KNode/0.8.0 Original-NNTP-Posting-Host: 83.70.238.135 Original-X-Complaints-To: abuse@eircom.net Original-X-Trace: news.indigo.ie 1095979823 83.70.238.135 (Thu, 23 Sep 2004 23:50:23 BST) Original-NNTP-Posting-Date: Thu, 23 Sep 2004 23:50:23 BST Original-Xref: shelby.stanford.edu gnu.emacs.help:125491 comp.unix.shell:168122 comp.lang.lisp:148304 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20845 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20845 Chris F.A. Johnson wrote: >> still waiting for a solution > > Still wondering why it was posted to comp.unix.shell. > Heh. Remember it IS emacs, after all. It IS (or typically includes "out-of-box" an implementation of) an sh-family shell called eshell. http://www.newartisans.com/johnw/eshell.html """ Eshell is a command shell implemented entirely in Emacs Lisp. It invokes no external processes beyond those requested by the user. It is intended to be a functional replacement for command shells such as bash, zsh, rc, 4dos; since Emacs itself is capable of handling most of the tasks accomplished by such tools. """ So, on your average linux install (okay for the pedants, linux is not unix exactly, but emacs works on real unix too) one can do the following (tested, actual copy+pastes from my system): # adduser tryme # chsh -s /usr/bin/emacs tryme # su - tryme File Edit Options Buffers Tools Help Welcome to GNU Emacs, one component of a Linux-based GNU system. [*** snipped blurb] ----:---F1 *scratch* (Lisp Interaction)--L1--All---------------------- For information about the GNU Project and its goals, type C-h C-p. [*** Now type M-x eshell] File Edit Options Buffers Tools Help Welcome to the Emacs shell ~ $ cd /usr /usr $ ls X11R6 bin doc games include info lib local sbin share src /usr $ echo $SHELL /usr/bin/emacs /usr $ echo $TERM xterm /usr $ ----:---F1 *eshell* (EShell)--L11--All-------------------------------