On Thu, Mar 13, 2014 at 6:44 PM, Devon McCormick <[email protected]> wrote: > Funny you should say that as I just noticed I have 24.3 on my machine but > wasn't using it, so I can confirm it's still an issue there. It probably > has to do with something I'm loading in my .emacs that you aren't. >
I did more research and it appears to be an issue when using shell mode. I am able to replicate the issue in emacs shell-mode, but not in a bare comint buffer. I was trying it earlier in a comint buffer Starting J this way does not cause a problem with the history expansion: (defun jcmd() (interactive) (make-comint-in-buffer "cmd" nil "C:/Users/joe/Downloads/j801/bin/jconsole.exe" nil) (switch-to-buffer "*cmd*")) The reason why is because comint-input-autoexpand is set to nil by default C-h v comint-input-autoexpand comint-input-autoexpand is a variable defined in `comint.el'. Its value is nil Local in buffer *cmd*; global value is the same. This variable's buffer-local value is permanent. Documentation: If non-nil, expand input command history references on completion. This mirrors the optional behavior of tcsh (its autoexpand and histlist). However, if I change the buffer to shell-mode M-x shell-mode Ch-h v comint-input-autoexpand comint-input-autoexpand is a variable defined in `comint.el'. >> Its value is history Original value was nil Local in buffer *cmd*; global value is nil Don't know if this helps but it at least explains why I wasn't seeing the issue -- I wasn't using shell-mode ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
