Nguyen Anh Phu | 3 Aug 03:19 2009
Picon

EmacsW32 cmd-shell starts fail

Hi all,

I've just installed Emacs-23-CvsP090630-EmacsW32-1.58 and everything
seems to work well except one thing that I cannot start cmd-shell,
error message say: Wrong type argument: char-or-string-p, nil

How do I setup emacs to make cmd-shell work?

Many thanks,

--

-- 
Nguyen Anh Phu

Lennart Borgman | 4 Aug 07:58 2009
Picon

Re: EmacsW32 cmd-shell starts fail

On Mon, Aug 3, 2009 at 3:19 AM, Nguyen Anh Phu<phuna24 <at> gmail.com> wrote:
> Hi all,
>
> I've just installed Emacs-23-CvsP090630-EmacsW32-1.58 and everything
> seems to work well except one thing that I cannot start cmd-shell,
> error message say: Wrong type argument: char-or-string-p, nil

Hi Nguyen,

How do you try to start the cmd shell? Do you mean that you do "M-x cmd-shell"?

In that case please note that cmd-shell is not a command defined in
Emacs. It is defined in w32shell.el that comes with EmacsW32.

However it should work. It works for me. Can you turn on
debug-on-error and see if you can get a back trace with more
information?

Could you also try just "M-x shell"?

Nguyen Anh Phu | 5 Aug 19:29 2009
Picon

Re: EmacsW32 cmd-shell starts fail

Hi Lennart,
I'm sorry for late reply.

On Tue, Aug 4, 2009 at 12:58 PM, Lennart
Borgman<lennart.borgman <at> gmail.com> wrote:
> On Mon, Aug 3, 2009 at 3:19 AM, Nguyen Anh Phu<phuna24 <at> gmail.com> wrote:
>> Hi all,
>>
>> I've just installed Emacs-23-CvsP090630-EmacsW32-1.58 and everything
>> seems to work well except one thing that I cannot start cmd-shell,
>> error message say: Wrong type argument: char-or-string-p, nil
>
> Hi Nguyen,
>
> How do you try to start the cmd shell? Do you mean that you do "M-x cmd-shell"?

Yes, I tried to do "M-x cmd-shell".

>
> In that case please note that cmd-shell is not a command defined in
> Emacs. It is defined in w32shell.el that comes with EmacsW32.
>
> However it should work. It works for me. Can you turn on
> debug-on-error and see if you can get a back trace with more
> information?

I'm not sure how to get back trace?
I enabled global debug-on-error (in .emacs), then issue command "M-x
cmd-shell", in mini buffer it just says "Wrong type argument: listp,
"d:/apps/Emacs/EmacsW32/gnuwin32/bin/""
(Continue reading)

Dirk80 | 5 Aug 23:59 2009
Picon

Problems running MSYS Shell in emacsw32


Hello,

I don't get the msys shell running in emacsw32.

When I start the MSYS-Shell with Tools->W32 Shells->MSYS Shell, I get the
following error message:
Wrong type argument: listp, "C:\\msys\\bin"

My .emacs file looks as follows:
(custom-set-variables

  ;; custom-set-variables was added by Custom.

  ;; If you edit it by hand, you could mess it up, so be careful.

  ;; Your init file should contain only one such instance.

  ;; If there is more than one, they won't work right.

 '(w32shell-msys-bin "C:\\msys\\bin")

 '(w32shell-shell (quote msys)))

(custom-set-faces

  ;; custom-set-faces was added by Custom.

  ;; If you edit it by hand, you could mess it up, so be careful.

(Continue reading)

Lennart Borgman | 6 Aug 00:58 2009
Picon

Re: EmacsW32 cmd-shell starts fail

On Wed, Aug 5, 2009 at 7:29 PM, Nguyen Anh Phu<phuna24 <at> gmail.com> wrote:
> Hi Lennart,
> I'm sorry for late reply.

No problem.

> On Tue, Aug 4, 2009 at 12:58 PM, Lennart
> Borgman<lennart.borgman <at> gmail.com> wrote:
>> On Mon, Aug 3, 2009 at 3:19 AM, Nguyen Anh Phu<phuna24 <at> gmail.com> wrote:
>>> Hi all,
>>>
>>> I've just installed Emacs-23-CvsP090630-EmacsW32-1.58 and everything
>>> seems to work well except one thing that I cannot start cmd-shell,
>>> error message say: Wrong type argument: char-or-string-p, nil
>>
>> Hi Nguyen,
>>
>> How do you try to start the cmd shell? Do you mean that you do "M-x cmd-shell"?
>
> Yes, I tried to do "M-x cmd-shell".
>
>>
>> In that case please note that cmd-shell is not a command defined in
>> Emacs. It is defined in w32shell.el that comes with EmacsW32.
>>
>> However it should work. It works for me. Can you turn on
>> debug-on-error and see if you can get a back trace with more
>> information?
>
> I'm not sure how to get back trace?
(Continue reading)

Lennart Borgman | 6 Aug 01:13 2009
Picon

Re: Problems running MSYS Shell in emacsw32

On Wed, Aug 5, 2009 at 11:59 PM, Dirk80<dirk <at> dirkundsari.de> wrote:
>
> Hello,
>
> I don't get the msys shell running in emacsw32.
>
> When I start the MSYS-Shell with Tools->W32 Shells->MSYS Shell, I get the
> following error message:
> Wrong type argument: listp, "C:\\msys\\bin"

Quite strange, there was just another similar report concerning
cmd-shell instead of msys-shell. I can't reproduce it though.

Could you please tell me the value of load-path and exec-path? Do

   f1 v load-path
   f1 v exex-path

and also

   M-: (getenv "PATH")

> My .emacs file looks as follows:
> (custom-set-variables
>
>  ;; custom-set-variables was added by Custom.
>
>  ;; If you edit it by hand, you could mess it up, so be careful.
>
>  ;; Your init file should contain only one such instance.
(Continue reading)

Lennart Borgman | 6 Aug 01:13 2009
Picon

Re: Problems running MSYS Shell in emacsw32

On Thu, Aug 6, 2009 at 1:13 AM, Lennart
Borgman<lennart.borgman <at> gmail.com> wrote:
> On Wed, Aug 5, 2009 at 11:59 PM, Dirk80<dirk <at> dirkundsari.de> wrote:
>>
>> Hello,
>>
>> I don't get the msys shell running in emacsw32.
>>
>> When I start the MSYS-Shell with Tools->W32 Shells->MSYS Shell, I get the
>> following error message:
>> Wrong type argument: listp, "C:\\msys\\bin"
>
> Quite strange, there was just another similar report concerning
> cmd-shell instead of msys-shell. I can't reproduce it though.
>
> Could you please tell me the value of load-path and exec-path? Do
>
>   f1 v load-path
>   f1 v exex-path

Should be exec-path.

> and also
>
>   M-: (getenv "PATH")
>
>
>
>> My .emacs file looks as follows:
>> (custom-set-variables
(Continue reading)

Jason Rumney | 6 Aug 01:32 2009
Picon

Re: Problems running MSYS Shell in emacsw32

Dirk80 wrote:
> My .emacs file looks as follows:
> (custom-set-variables
>
>   ;; custom-set-variables was added by Custom.
>
>   ;; If you edit it by hand, you could mess it up, so be careful.
>
>   ;; Your init file should contain only one such instance.
>
>   ;; If there is more than one, they won't work right.
>
>  '(w32shell-msys-bin "C:\\msys\\bin")
>   

c:\msys\bin would usually be a directory. The shell is normally 
something like c:\msys\bin\sh.exe

Lennart Borgman | 6 Aug 01:42 2009
Picon

Re: Problems running MSYS Shell in emacsw32

On Thu, Aug 6, 2009 at 1:32 AM, Jason Rumney<jasonr <at> gnu.org> wrote:
> Dirk80 wrote:
>>
>> My .emacs file looks as follows:
>> (custom-set-variables
>>
>>  ;; custom-set-variables was added by Custom.
>>
>>  ;; If you edit it by hand, you could mess it up, so be careful.
>>
>>  ;; Your init file should contain only one such instance.
>>
>>  ;; If there is more than one, they won't work right.
>>
>>  '(w32shell-msys-bin "C:\\msys\\bin")
>>
>
> c:\msys\bin would usually be a directory. The shell is normally something
> like c:\msys\bin\sh.exe

... but the value above should be a directory. In my case I have
"C:\\msys\\1.0\\bin".

Dirk, could you please tell us how you entered this value too? (It
could be filled in automatically by EmacsW32 if you ask it to do so in
the Customize EmacsW32 entry in the Options menu.)

Nguyen Anh Phu | 6 Aug 03:12 2009
Picon

Re: EmacsW32 cmd-shell starts fail

Hi Lennart,

On Thu, Aug 6, 2009 at 5:58 AM, Lennart
Borgman<lennart.borgman <at> gmail.com> wrote:
> On Wed, Aug 5, 2009 at 7:29 PM, Nguyen Anh Phu<phuna24 <at> gmail.com> wrote:
>> Hi Lennart,
>> I'm sorry for late reply.
>
> No problem.
>
>
>> On Tue, Aug 4, 2009 at 12:58 PM, Lennart
>> Borgman<lennart.borgman <at> gmail.com> wrote:
>>> On Mon, Aug 3, 2009 at 3:19 AM, Nguyen Anh Phu<phuna24 <at> gmail.com> wrote:
>>>> Hi all,
>>>>
>>>> I've just installed Emacs-23-CvsP090630-EmacsW32-1.58 and everything
>>>> seems to work well except one thing that I cannot start cmd-shell,
>>>> error message say: Wrong type argument: char-or-string-p, nil
>>>
>>> Hi Nguyen,
>>>
>>> How do you try to start the cmd shell? Do you mean that you do "M-x cmd-shell"?
>>
>> Yes, I tried to do "M-x cmd-shell".
>>
>>>
>>> In that case please note that cmd-shell is not a command defined in
>>> Emacs. It is defined in w32shell.el that comes with EmacsW32.
>>>
(Continue reading)


Gmane