unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Jacobson <jidanni@jidanni.org>
Subject: Re: *shell* fast and loose with what it sends to the shell
Date: Tue, 08 Jun 2004 01:49:59 +0800	[thread overview]
Message-ID: <8765a3b6m0.fsf@jidanni.org> (raw)
In-Reply-To: 40C0E5F9.5030800@yahoo.com

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	other threads:[~2004-06-07 17:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-04  0:24 *shell* fast and loose with what it sends to the shell Dan Jacobson
2004-06-04 21:13 ` Kevin Rodgers
2004-06-07 17:49   ` Dan Jacobson [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8765a3b6m0.fsf@jidanni.org \
    --to=jidanni@jidanni.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).