emacs-devel
[Top][All Lists]
Advanced

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

Re: Shell-mode: File completion breaks editing previous commands


From: Bob Rogers
Subject: Re: Shell-mode: File completion breaks editing previous commands
Date: Wed, 9 Apr 2008 07:29:18 -0400

   From: Chong Yidong <address@hidden>
   Date: Mon, 07 Apr 2008 01:10:04 -0400

   address@hidden writes:

   >>> Emacs shell mode allows editing of previous commands. These can then
   >>> be executed by pressing return. Shell mode also allows tab completion
   >>> to expand filenames. These do not work together. If we try to modify
   >>> a previously executed command (to re-execute it with different params)
   >>> and attempt to use filename completion, the beginning of the command
   >>> is lost.
   >>>
   >>> touch foo bar
   >>> echo bar
   >>> Edit the echo command to "touch foo bar" and press return.
   >>>
   >>> produces the following output:
   >>>
   >>> % touch foo bar
   >>> % echo bar foo 
   >>> foo
   >>> % foo 
   >>> bash: ./foo: Permission denied
   >>> % 
   >>
   >> I can't reproduce this on either Emacs 22 or Emacs 23.  Please provide a
   >> more precise recipe, include all keystrokes beginning from emacs -Q.
   >
   > Recent input:
   > <escape> x s h e l l <return> c d SPC / t m p <return> 
   > t o u c h SPC f o o <return> e <backspace> t o u c 
   > h SPC b a r <return> e <backspace> l s SPC f o <tab> 
   > <return> <up> <up> <right> <right> <right> b <tab> 
   > a <tab> <return> <escape> x r e p <tab> r <backspace> 
   > o r <tab> <return>
   >
   > Sorry, I can't see how I can make this much simpler.

   I still can't reproduce this problem.  Does anyone on emacs-devel see
   the bug?

I have seen this intermittently for a long time now, but still haven't
been able to reproduce it reliably.

                                        -- Bob Rogers
                                           http://rgrjr.dyndns.org/




reply via email to

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