From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs 23.3 with Cygwin bash and '\r'.
Date: Fri, 11 Mar 2011 10:32:44 +0200 [thread overview]
Message-ID: <ilcmn7$6jn$1@dough.gmane.org> (raw)
In-Reply-To: <83fwquop5n.fsf@gnu.org>
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 ))
I write
(defun my-strip-last-cr (str)
(pp str)
(if (> (length str) 0)
(if (equal (substring str -1) "\r")
(progn (message "yyy") (substring str 0 -1))
str)
""
) )
(defun my-shell-input-filter nil (add-to-list
'comint-input-filter-functions 'my-strip-last-cr))
(add-hook 'shell-mode-hook 'my-shell-input-filter)
M-x shell ls RET
bash: $'ls\r': команда не найдена
In *Message* buffer I get:
#("ls\n" 0 2
(fontified t))
So no any \r pass to filter!!
Also I try recent bash specific Cygwin settings: "set -o igncr" without
happiness.
If I type whitespace char after ls/pwd - all OK.
I don't find any relevant settings in shell.el and comint.el by
searching "\r" or "^M"
and don't know how further debug issue.
next prev parent reply other threads:[~2011-03-11 8:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 16:30 Emacs 23.3 with Cygwin bash and '\r' Oleksandr Gavenko
2011-03-10 17:34 ` Eli Zaretskii
2011-03-11 8:32 ` Oleksandr Gavenko [this message]
2011-03-11 9:00 ` Eli Zaretskii
2011-03-11 10:29 ` Oleksandr Gavenko
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='ilcmn7$6jn$1@dough.gmane.org' \
--to=gavenko@bifit.com.ua \
--cc=help-gnu-emacs@gnu.org \
/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.