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?

Running:
NT 4.0 SP5
Emacs 20,4.1
JDE 2.1.6beta15

I tested this out with an .emacs file that contained:

(add-to-list 'load-path (concat (getenv "jde_dir") "/lisp"))
(require 'jde)

The environment variable jde_dir was "c:/jde-2.1.6beta15"
classpath was ".;d:\ehusby\java"
path contained "C:\Emacs-20.4\bin;c:\jdk1.2.2\bin;c:\Jpda\bin;"


Thanks in advance
Erik Husby
Domain Pharma Corp
Suite 110           Vox: 781-778-3834
10 Maguire Rd       Fax: 781-778-3800
Lexington, MA 02421 Email: [EMAIL PROTECTED]

Reply via email to