[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11607: 24.0.97; Directory tracking and file name completion are conf
bug#11607: 24.0.97; Directory tracking and file name completion are confused by names containing spaces in shell-mode running cmdproxy.exe
Sat, 2 Jun 2012 16:23:31 +0100
This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgement at that address.
Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.
Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':
This is a Windows-specific bug. I reproduce it as follows in Emacs
running on Windows XP, which itself is running in a virtual machine.
1. emacs -Q
2. M-x shell
3. cd c:\
The prompt changes to C:\>
4. M-: default-directory RET displays C:\
5. cd WINDOWS/Connection Wizard/
Type "cd w", hit TAB, the command should be completed to
"cd WINDOWS/", then type "conn" and hit TAB again to get
"cd WINDOW/Connection Wizard/". Hit RET.
The prompt changes to C:\WINDOWS\Connection Wizard>, but
M-: default-directory shows that Emacs still thinks that
the current directory is C:\.
From this moment on, file name completion is broken: try
to type "cd " and hit TAB, and you should get a list of
files and directories in C:\.
6. An attempt to resync the current directory with the help
of M-x shell-resync-dirs fails:
'dirs' is not recognized as an internal or external command,
operable program or batch file.
which is understandable because cmd.exe and cmdproxy.exe
don't provide "dirs" built-in.
I think this issue only manifests itself with directory names containing
spaces. A very similar issue was reported 12 years ago:
but I can't figure out if it was ever assigned a bug number. It doesn't
appear to be fixed either.
It is also somewhat unfortunate that `shell-resync-dirs' doesn't work on
Windows and no sensible default for `shell-dirstack-query' is provided.
Note also that the current method of parsing the directory stack from the
output of "dirs" in `shell-resync-dirs' doesn't work correctly with
directory names containing spaces, even on GNU/Linux.
If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
In GNU Emacs 22.214.171.124 (i386-mingw-nt5.1.2600)
of 2012-05-16 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
`configure --with-gcc (4.6) --no-opt --enable-checking --cflags
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: ENU
value of $XMODIFIERS: nil
default enable-multibyte-characters: t
Major mode: Shell
Minor modes in effect:
M-x s h e l l <return> c d SPC c : \ <return> c d SPC
w i n <tab> c o n n <tab> <return> M-: d e f a u l
t - d i r e c t o r y <return> c d SPC <tab> C-a C-k
M-x r e p o r t - e m <tab> <return>
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu view pcmpl-unix shell pcomplete
comint regexp-opt ansi-color ring time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars
tool-bar dnd fontset image fringe lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process multi-tty emacs)
|[Prev in Thread]
||[Next in Thread]|
- bug#11607: 24.0.97; Directory tracking and file name completion are confused by names containing spaces in shell-mode running cmdproxy.exe,
Oleksandr Manzyuk <=