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: 2 emacs shell questions
Date: Thu, 04 Nov 2010 17:51:35 +1100	[thread overview]
Message-ID: <87wrottwco.fsf@puma.rapttech.com.au> (raw)
In-Reply-To: ias4k6$bsu$1@reader1.panix.com

kj <no.email@please.post> writes:

> Two emacs shell questions.  (By "emacs shell" I mean the one that
> runs when one executes M-x shell.)
>
> 1. When I run some programs within this shell (e.g. the python
>    interactive interpreter), I get several repetitions of the error
>    message
>
> No entry for terminal type "emacs";
> using dumb terminal settings.
>
>    Where is this "entry" being searched for, and what do I need to
>    do so that one for terminal type "emacs" is found?
>
> 2. For some reason, when in the emacs shell, a set ignoreeof option
>    in zsh is being disregarded.  As a result pressing C-d when
>    point is at the end of the buffer causes the emacs shell to
>    terminate (i.e. the EOF sent to the subprocess is *not* being
>    ignored, contrary to what the set ignoreeof option specifies).
>    Even more strangely, this does not happen with bash (setting
>    its ignoreeof option produces the expected behavior).  Also,
>    zsh's ignoreeof works fine when I run it on a regular terminal
>    (as opposed to the emacs shell).  So there problem seems to be
>    specific to the combination of zsh and emacs shell, but I can't
>    tell whether the problem lies with Emacs or with zsh.  Any
>    suggestions on how to troubleshoot this further would be
>    appreciated.
>
> TIA!
>

Have a look in the etc/e directory in the emacs distribution. There you
will find an emac terminfo file which may improve capabilities (though
I'm not sure if shell uses this, but M-x term does. 

I'd try using M-x term rather than M-x shell as that provides a more
term compliant interface rather than just a dumb  shell. 

I don't know much about zsh, but it could be that emacs is executing it
as a non-login shell and it is not sourcing 'normal' login config files.
A couple of htings to try would be 

1. Start a zsh and run emacs from within that. Then M-x shell would be a
shell that is a sub process of emacs, which in turn is a sub process of
your zsh, so maybe environment settings will be passed along. 

2. You may be able to set explicit command args within emacs that will
be used when executing the sub-shell. Maybe that will give you the
control you want. I'd look at the cusotm groups for shell and term and
see if anything looks promising.

HTH

Tim


-- 
tcross (at) rapttech dot com dot au


      reply	other threads:[~2010-11-04  6:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-03 17:03 2 emacs shell questions kj
2010-11-04  6:51 ` Tim X [this message]

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=87wrottwco.fsf@puma.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.