From: Michael Schierl <schierlm-usenet@gmx.de>
Subject: M-x shell does not work on Windows when default-directory too long
Date: Sun, 01 Aug 2004 21:24:56 +0200 [thread overview]
Message-ID: <wku0vmr793.fsf@smsoft.ixy.de> (raw)
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.
Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.
[cc to bug-gnu-emacs since the bug occurs as well:
In GNU Emacs 21.3.1 (i386-msvc-windows98.3000)
of 2003-03-28 on buffy]
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
Start Emacs with -q.
Open an existing file with a long path (e.g. "c:/temp/deepdir/deepdir/deepdir/deepdir/deepdir/deepdir/deepdir/deepdir/deepdir/foo.txt").
Press M-x shell RET
A shell window will appear but there is nothing in it - no prompt no
nothing. Entered Commands will not have any effects.
--Or:--
Evaluate the following code and run M-x shb.
(defvar shb-procname shell-file-name)
;; the environment will not change anything; i just put it there to
;; show that it is *not* an environment memory overflow
(defvar shb-proc-env '("TMP=C:\\TEMP"
"TEMP=C:\\TEMP"
"PROMPT=$p$g"
"COMSPEC=C:\\WINDOWS\\COMMAND.COM"))
(defvar shellbug-not-so-long-name (concat "c:/temp/deepdir/deepdir"
"/deepdir/deepdir/deepdir"
"/deepdir/deepdir/deepdir"))
(defvar shellbug-long-name (concat shellbug-not-so-long-name
"/deepdir/"))
(make-directory shellbug-long-name t)
(defun shellbug (procname bufname)
(kill-buffer (get-buffer-create bufname))
(switch-to-buffer (get-buffer-create bufname))
(let ((process-environment shb-proc-env))
(make-comint-in-buffer procname (get-buffer-create bufname)
shb-procname nil "-i")))
(defun shb () (interactive)
(let ((default-directory shellbug-long-name))
(shellbug "shellbug1" "*shell-doesnt-work*"))
(let ((default-directory shellbug-not-so-long-name))
(shellbug "shellbug2" "*shell-works*"))
(pop-to-buffer "*shell-doesnt-work*"))
Then you will see two windows of which one shows a shell and the
other does not. So the reason for the bug is really the too long
default-directory.
This bug appears both on my unstable emacs and on my stable one - and
it can be quite annoying until you found the reason why M-x shell
suddenly stops working...
Michael
In GNU Emacs 21.3.50.1 (i386-mingw-windows98.3000)
of 2004-05-19 on BERATUNG4
configured using `configure --with-gcc (3.3) --cflags -I../../jpeg-6b-1/include -I../../libpng-1.2.4-1/include -I../../tiff-3.5.7/include -I../../xpm-nox-4.2.0/include -I../../zlib-1.1.4-1/include'
Important settings:
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: deu
locale-coding-system: cp1252
default-enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
tool-bar-mode: t
encoded-kbd-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
unify-8859-on-encoding-mode: t
line-number-mode: t
Recent input:
<down-mouse-1> <mouse-1> M-x r e p o r <tab>
<return>
Recent messages:
Loading mwheel...done
(C:\PROGRAMME\EMACS-21.3.50.2\BIN\EMACS.EXE -q)
Loading encoded-kb...done
Loading tool-bar...done
Loading image...done
Loading tooltip...done
Making completion list...
Loading help-mode...done
Loading emacsbug...done
next reply other threads:[~2004-08-01 19:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-01 19:24 Michael Schierl [this message]
2004-08-01 20:23 ` M-x shell does not work on Windows when default-directory too long Jason Rumney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wku0vmr793.fsf@smsoft.ixy.de \
--to=schierlm-usenet@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.