all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: mathias.dahl@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: shell-like Emacs CLI, and my Usenet behaviour
Date: Sun, 18 Aug 2013 13:55:29 -0700 (PDT)	[thread overview]
Message-ID: <8e62dd53-5cd9-4356-b7bc-4b354555e274@googlegroups.com> (raw)
In-Reply-To: <87eh9qpznc.fsf@nl106-137-194.student.uu.se>

> I have been thinking if not Emacs would benefit from a shell-like CLI, instead of hammering the RET between each stage?
> 
> Is this a new idea or did anyone do work on it?
> 
> There are several advantages:
> 
> For a simple example, the advantage is speed, less typing, and no visual "reorient" after the RET.
> 
> In a shell:
> 
> man emacs RET
> 
> In Emacs:
> 
> M-x man RET emacs RET

For some commands (interactive functions) you can get something like this in 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 functions as well) that take parameters, where Emacs will pass the arguments from the Eshell command line, to the command/function, as arguments. For commands that by explicit code asks the user for a value, it would not work without some clever hacks, I think.

Maybe someone more knowledgeable about the internals of calling commands can comment on this?

/Mathias


  reply	other threads:[~2013-08-18 20:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 19:27 shell-like Emacs CLI, and my Usenet behaviour Emanuel Berg
2013-08-18 20:55 ` mathias.dahl [this message]
2013-08-18 21:04 ` Pascal J. Bourguignon
2013-08-19  6:57 ` Rustom Mody
2013-08-19  7:55 ` Thien-Thi Nguyen
2013-08-19 15:16 ` Barry Margolin
2013-08-21 13:59 ` Stefan Monnier
2013-08-21 17:50   ` Guido Van Hoecke
2013-08-21 22:58     ` Bob Proulx
2013-08-22  6:40       ` Guido Van Hoecke
2013-08-22 22:42       ` W. Greenhouse
2013-08-23  6:06         ` Guido Van Hoecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e62dd53-5cd9-4356-b7bc-4b354555e274@googlegroups.com \
    --to=mathias.dahl@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.