[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SUMMARY: Emacs and tcsh

On Wed, 20 Nov 1996, Neal R. Dalton wrote:

> In emacs-19.31, with in emacs shell, the ^Ms show up.  In csh they don't.
> However, in csh the '*' didn't expand.  Is there a fix?

As far as I know, the version of csh is broken.
> Is there a good TERM type for emacs shell, so things like passwds don't 
> show up?

passwds can be fixed with:
  (add-hook 'comint-output-filter-functions 'comint-watch-for-password-prompt)

The answer was in the emacs FAQ for ^M in tcsh

62:  How do I get rid of the ^M junk in my shell buffer?

  Try typing "M-x shell-strip-ctrl-m RET" while in shell-mode to make them
  go away.  If that doesn't work, you have several options:

  For tcsh, put this in your `.cshrc' (or `.tcshrc') file:

    if ($?EMACS) then
        if ("$EMACS" == t) then
            if ($?tcsh) unset edit
            stty nl

  Or put this in your .emacs_tcsh file:

    unset edit
    stty nl

  Alternatively, use csh in your shell buffers instead of tcsh.  One way

    (setq explicit-shell-file-name "/bin/csh")

  and another is to do this in your .cshrc (or .tcshrc) file:

    setenv ESHELL /bin/csh

  (You must start Emacs over again with the environment variable properly
  set for this to take effect.)

TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com

Reply to: