all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: What I'm missing when using M-x shell
Date: Sun, 14 Sep 2008 14:02:13 +1000	[thread overview]
Message-ID: <87zlmbcr3u.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.19169.1221294471.18990.help-gnu-emacs@gnu.org

"Francis Moreau" <francis.moro@gmail.com> writes:

> [ please CC me when replying to me ]
>
> On Fri, Sep 12, 2008 at 7:34 PM, Dan Espen
> <daneNO@more.mk.spamtelcordia.com> wrote:
>> Compiles are M-x compile, greps are M-x grep,
>> ls is dired, email is MH-E.
>
> But what would you suggest as replacement for:
>
> $ make && gdb || mail -s "Compilation failed" home
>

Surely you don't use such a command when doing things interactively? A
command like that is something I would use in an automated build process
that isn't run interactively. For example, I've used something similar
in a envrionment where we wanted to rebuild each night from SVN. 

This to me is a different question to working interactively. I don't see
you cold ever eliminate the shell completely as many non-interactive
processes use it. However, I do believe you can work totally through
emacs. In fact, I know you can because that is how I *have* to work. 

I'm a blind programmer and work almost exclusively in the Unix world. My
main interface to the system is through emacs and using a package called
emacspeak. In general, if there is an emacs specific package to do a
job, I use that (e.g. dired, tramp, VM, w3m, view-process (now using
proced) ediff, PCL-CVS, psvn, man/woman, etc) and then revert to M-x shell, M-x
term and M-x eshell when I need access to the shell or need to run a
program directly in a shell etc. 

Though I've not used them, you also have elisp clones of things like
screen and even basic window management packages. At one time I even
used emacs as my window manager under X e.g. last part in my
.xsession file was to try and run emacs and if that failed, run an
exterm that executed a program that told me emacs had failed and started
a very basic screen reader program in an xterm. 


> More generally sh scripts allow automatisation processes that you
> can't simply do with emacs commands, it similar to using a mouse
> actually. I don't think you can get rid of them.
>

I use lots of shell scripts to do various things, but I run them from
within emacs and in some cases, have them bound to specific key
bindings. 

> Futhermore there are a lot of tools out there that are not integrated
> to emacs if you do so, you don't have enough keys on the keyboard to
> create bindings ;)
>
yes, there are a lot of things that don't have 'native' emacs
modes. However, I disagree there are not enough available key bindings -
there are more than anyone is ever going to remember. What a lot of
people don't do or possibly don't even realise is that in addition to M-
and C- for meta and control bindings, you also have hyper and
super. These can be bound to keys like the windows menu key and some of
those other often unused keys on your keyboard. Combine those with shift
and you have a lot of combinations. Admittedly, some of them can be
uncomfortable to use, but thats a different issue and depends on things
liike the type of keyborad, your style of typeing and even things like
the size of your hands, length of your fingers, degree of flexibility
you have in your hands, table height and chair. 



> So I don't think you can realistically get rid of a shell
>

You can't get rid of the shell - its fundamental to how the system
works. However, you can create an environment wehre you only interact
with the shell through emacs without losing any functionality or
flexibility. It may take some work to get it configured, but thats a
different issue. 


> So for now I don't think I can forget Gnu Screen: one screen to handle
> a terminal with a shell where all my ncurse based applications can
> work properly and another screen where emacs lives.
>

Your ncurses applications should behave fine under M-x term provided you
have the correct terminfo information setup. Things can be a little more
complex if you want to un ncurses programs over ssh on another host, but
this can be fixed by adding the necessary terminfo data to the remote
servers. 

Tim


-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2008-09-14  4:02 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.19125.1221236437.18990.help-gnu-emacs@gnu.org>
2008-09-12 17:34 ` What I'm missing when using M-x shell Dan Espen
2008-09-13  8:27   ` Francis Moreau
2008-09-15  7:32     ` Jonathan Groll
2008-09-15  8:42       ` Francis Moreau
2008-09-15  9:05         ` Francis Moreau
     [not found]   ` <mailman.19169.1221294471.18990.help-gnu-emacs@gnu.org>
2008-09-13 15:42     ` Dan Espen
2008-09-13 16:43       ` Francis Moreau
2008-09-13 17:32         ` Thierry Volpiatto
2008-09-13 19:14           ` Francis Moreau
2008-09-13 19:50             ` Thierry Volpiatto
2008-09-14  4:02     ` Tim X [this message]
2008-09-12 17:59 ` Oleksandr Gavenko
2008-09-13  8:29   ` Francis Moreau
     [not found]   ` <mailman.19170.1221294576.18990.help-gnu-emacs@gnu.org>
2008-09-15 18:32     ` Oleksandr Gavenko
2008-09-13  6:10 ` rustom
2008-09-13  8:36   ` Francis Moreau
2008-09-13  8:08 ` Livin Stephen
2008-09-13  9:00   ` Francis Moreau
2008-09-13 11:21     ` Livin Stephen Sharma
2008-09-13 14:27       ` Francis Moreau
2008-09-13 12:22   ` David Hansen
2008-09-14  2:20   ` Tim X
2008-09-15  7:56     ` Livin Stephen
2008-09-15  8:49       ` Francis Moreau
2008-09-13 22:43 ` Chris F.A. Johnson
2008-09-14 18:30   ` Francis Moreau
2008-09-14 18:40     ` Thierry Volpiatto
     [not found]     ` <mailman.19222.1221417839.18990.help-gnu-emacs@gnu.org>
2008-09-14 18:55       ` Barry Margolin
2008-09-14 20:28         ` Francis Moreau
2008-09-14 20:41           ` Francis Moreau
     [not found]   ` <mailman.19221.1221417026.18990.help-gnu-emacs@gnu.org>
2008-09-14 18:33     ` Chris F.A. Johnson
2008-09-14 18:50       ` Drew Adams
2008-09-14 20:01       ` Francis Moreau
2008-09-15 10:26         ` Bernardo Bacic
     [not found]       ` <mailman.19228.1221422522.18990.help-gnu-emacs@gnu.org>
2008-09-14 20:27         ` Chris F.A. Johnson
2008-09-15  6:32           ` Francis Moreau
2008-09-15 10:35             ` Francis Moreau
2008-09-15 11:38             ` Thierry Volpiatto
2008-09-15 12:10               ` Francis Moreau
2008-09-15 13:00                 ` Thierry Volpiatto
2008-09-15 13:13                   ` Francis Moreau
2008-09-12 16:20 Francis Moreau

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=87zlmbcr3u.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --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.