help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Emacs 23.3 with Cygwin bash and '\r'.


From: Oleksandr Gavenko
Subject: Re: Emacs 23.3 with Cygwin bash and '\r'.
Date: Fri, 11 Mar 2011 12:29:44 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

On 11.03.2011 11:00, Eli Zaretskii wrote:
From: Oleksandr Gavenko<gavenko@bifit.com.ua>
Date: Fri, 11 Mar 2011 10:32:44 +0200

On 10.03.2011 19:34, Eli Zaretskii wrote:
From: Oleksandr Gavenko<gavenko@bifit.com.ua>
Date: Thu, 10 Mar 2011 18:30:41 +0200

I get latest Emacs 23.3:

     http://permalink.gmane.org/gmane.emacs.announce/19

and it loaded successfully, but previously all Emacs after setting:

          (setq shell-file-name "bash")
          (setenv "SHELL" "/bin/bash")

work fine and now shell say:

  $ pwd
bash: $'pwd\r': команда не найдена

Doesn't that \r give a hint?

Sorry, no ))

What value do you get if you evaluate the following expression:

    (process-coding-system (get-process "shell"))

(windows-1251-unix . windows-1251-dos)

This hint help me!

Since you are using the Cygwin bash, you need to use undecided-unix
(or something -unix, anyway) in the cdr of the cons cell that is
returned by process-coding-system.  You can probably use
set-process-coding-system to change the defaults.

 Firstly I afraid how automatically call

(set-process-coding-system (get-process "shell") 'cp1251-unix 'cp1251-unix)

But I try

  (setq shell-file-name "bash")
  (modify-coding-system-alist 'process "bash" '(cp1251-unix . cp1251-unix))

and this help! Work with new Emacs and with old.

(Btw, if your Emacs is a native Windows build, then you should expect
these surprises, because native Windows programs and Cygwin programs
are subtly incompatible, the matters related to EOL format being one
of the aspects of this incompatibility.  Why not use the Cygwin build
of Emacs instead?)

I use native Emacs with cygwin-mount.el and Cygwin toolset because I some times use 'menu' and mouse clicking. Cygwin X Window require additional attention in this area
and look some ugly.

Work perfectly with minor issues.




reply via email to

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