From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mathias.dahl@gmail.com Newsgroups: gmane.emacs.help Subject: Re: shell-like Emacs CLI, and my Usenet behaviour Date: Sun, 18 Aug 2013 13:55:29 -0700 (PDT) Message-ID: <8e62dd53-5cd9-4356-b7bc-4b354555e274@googlegroups.com> References: <87eh9qpznc.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1376871793 3823 80.91.229.3 (19 Aug 2013 00:23:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Aug 2013 00:23:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 19 02:23:16 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VBDFc-0003Dx-F1 for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Aug 2013 02:23:16 +0200 Original-Received: from localhost ([::1]:40380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBDFb-00074Y-Dj for geh-help-gnu-emacs@m.gmane.org; Sun, 18 Aug 2013 20:23:15 -0400 X-Received: by 10.224.4.138 with SMTP id 10mr2626930qar.8.1376859330003; Sun, 18 Aug 2013 13:55:30 -0700 (PDT) X-Received: by 10.49.97.72 with SMTP id dy8mr1164qeb.11.1376859329980; Sun, 18 Aug 2013 13:55:29 -0700 (PDT) Original-Path: usenet.stanford.edu!f7no2796376qan.0!news-out.google.com!he10ni2338qab.0!nntp.google.com!fx3no2940948qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <87eh9qpznc.fsf@nl106-137-194.student.uu.se> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.14.125.107; posting-account=JZUL_goAAACG6LHeukNrrFi20WGR0noj Original-NNTP-Posting-Host: 193.14.125.107 User-Agent: G2/1.0 Injection-Date: Sun, 18 Aug 2013 20:55:29 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:200698 X-Mailman-Approved-At: Sun, 18 Aug 2013 20:23:05 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92967 Archived-At: > I have been thinking if not Emacs would benefit from a shell-like CLI, in= stead of hammering the RET between each stage? >=20 > Is this a new idea or did anyone do work on it? >=20 > There are several advantages: >=20 > For a simple example, the advantage is speed, less typing, and no visual = "reorient" after the RET. >=20 > In a shell: >=20 > man emacs RET >=20 > In Emacs: >=20 > M-x man RET emacs RET For some commands (interactive functions) you can get something like this i= n eshell (M-x eshell). In eshell, try for example this: $ woman emacs RET (I'm on a Windows box right now so I cannot test, but that should work) However, that will only work (I think) for commands (and non-interactive fu= nctions as well) that take parameters, where Emacs will pass the arguments = from the Eshell command line, to the command/function, as arguments. For co= mmands that by explicit code asks the user for a value, it would not work w= ithout some clever hacks, I think. Maybe someone more knowledgeable about the internals of calling commands ca= n comment on this? /Mathias