At 03:36 PM 1/5/00 +0000, [EMAIL PROTECTED] wrote:
>I was using the BeanShell the other day and was perplexed why it was
>continuely prompting on the same line. I.E. the buffer would look like:
>
>BeanShell 0.96 beta (JDE patch) - by Pat Niemeyer ([EMAIL PROTECTED])
>bsh % bsh % bsh % bsh % bsh %
>
>If I simply hit the ENTER key.
>
>I examined my .emacs file and discovered that I had the following code
>
>;; This prevents shell commands from being echoed
>(defun my-comint-init ()
> (setq comint-process-echoes t))
>(add-hook 'comint-mode-hook 'my-comint-init)
>
>If I removed that code then the BeanShell would prompt properly but a
>*shell* buffer would always echo my command as in:
>
>Microsoft(R) Windows NT(TM)
>(C) Copyright 1985-1996 Microsoft Corp.
>
>d:\>dir
>dir
> Volume in drive D has no label.
> Volume Serial Number is 9C38-A165
>
> Directory of d:\
>
>Does anyone have a suggestion on how I can get the best of both worlds?
>
How about:
(defun my-comint-init ()
(if (not (string= (buffer-name) "*bsh*"))
(setq comint-process-echoes t)))
(add-hook 'comint-mode-hook 'my-comint-init)
- Paul