bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: *shell* fast and loose with what it sends to the shell


From: Dan Jacobson
Subject: Re: *shell* fast and loose with what it sends to the shell
Date: Tue, 08 Jun 2004 01:49:59 +0800

emacs-version"21.3.1"
>> Often in the *shell* buffer, the first letter or so of a command gets

K> Well, does it happen if you don't move the cursor around a lot?

No. I recall it is after say some e.g. C-c C-p's, and maybe some
editing of commands not at the bottom of the buffer, and hitting RET
thereupon, or something like that.

>> and have a fancy shell prompt.

K> Well, does it happen if you don't have a fancy shell prompt?  If not,
K> what is your shell prompt 

I have never tried it without my fancy shell prompt, which in .bashrc is
case z-$TERM in
    z-rxvt)
        my_color_on="\[\e[01;35m\]" my_color_off="\[\e[00m\]"
        if test `id -u` = 0
            then my_color_on="\[\e[01;41;30m\]"
        elif test -n "$GRASS_GUI"
            then my_color_on="\[\e[01;46;30m\]"
        fi
esac
#Mr. http://cfaj.freeshell.org:
PROMPT_COMMAND='prompt_tricks_z=" $?"; prompt_tricks_z=${prompt_tricks_z# 0}
 case $PWD in $HOME) pwd=\~;; *) pwd=${PWD##*/};; esac'
PS1=$SPECIAL_PS1"$my_color_on\A\$prompt_tricks_z \$pwd\\$""$my_color_off "
PROMPT_COMMAND='prompt_tricks_z=" $?"; prompt_tricks_z=${prompt_tricks_z# 0}
 case $PWD in $HOME) pwd=\~;; *) pwd=${PWD##*/};; esac'
PS1=$SPECIAL_PS1"$my_color_on\A\$prompt_tricks_z \$pwd\\$""$my_color_off "

K> and what are all the shell-* and comint-* variables when it
K> happens?

Hmm, .emacs has
(add-hook 'comint-mode-hook
  (function (lambda ()(setq comint-input-autoexpand nil)))) ;no more "!" 
surprises
(add-hook 'shell-mode-hook
  (function (lambda ()(setq comint-input-autoexpand nil)))) ;no more "!" 
surprises
(setq comint-scroll-show-maximum-output t)

The whole thing is in http://jidanni.org/comp/emacs.txt.gz
Maybe I should write back when I get a reproducible example.
Like the scroll bar, I look up and it's gone for the rest of the
session, but I never am aware of just when it goes away.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]