[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/...
From: |
Andy Moreton |
Subject: |
bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... |
Date: |
Thu, 12 May 2011 16:09:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) |
On Thu 12 May 2011, Eli Zaretskii wrote:
>> From: Andy Moreton <andrewjmoreton@gmail.com>
>> Date: Thu, 12 May 2011 12:52:18 +0100
>>
>> I use cygwin-mount and don't see this problem.
>
> Not sure what that means. What "this problem"? what _do_ you see in
> Drew's example?
You have managed to elide all of the context here - some quoting is
useful.
As you have observed, emacs and grep are consistent. grep reports tha
absolute paths in its results, and emacs does not change that.
Drew sees results starting with '/cygdrive/c' because he has "HOME=C:\"
in Windows (which Cygwin will translate to 'HOME=/cygdrive/c' in the
Cygwin environment). The cygwin mount table is not setup in his
environment to translate '/cygdrive/c' to '/home'. Adding a mount point
would fix this.
The other point he made was about shortening the output from grep to
substitute ~ for /home/$USER. This would require additional code to
post-process the grep results in emacs.
AndyM
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Drew Adams, 2011/05/11
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Eli Zaretskii, 2011/05/11
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Drew Adams, 2011/05/11
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Andy Moreton, 2011/05/12
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Drew Adams, 2011/05/12
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Andy Moreton, 2011/05/12
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Drew Adams, 2011/05/12
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Andy Moreton, 2011/05/12
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Eli Zaretskii, 2011/05/12
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/...,
Andy Moreton <=
- bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Eli Zaretskii, 2011/05/12
bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/..., Stefan Monnier, 2011/05/11