all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 8653@debbugs.gnu.org
Subject: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/...
Date: Wed, 11 May 2011 21:05:09 +0300	[thread overview]
Message-ID: <83hb91glka.fsf@gnu.org> (raw)
In-Reply-To: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com>

> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Wed, 11 May 2011 08:33:37 -0700
> 
> Same thing exists in Emacs versions back to at least 20.7, so this is
> nothing new.
>  
> M-x grep foo ~/mydir/f*.el
> results in this kind of output in buffer *grep*:
>  
> /cygdrive/c/mydir/foobar.el:203: blah blah foo blah
>  
> Seems like Emacs & grep should be able to keep `~/' instead of printing
> `/cygdrive/c/'.  The current behavior is less readable and uses 10 more
> characters.

Emacs behaves like what you see on all systems: grep reports the
absolute file names, and Emacs does not convert them back to ~/foo.

But even if we make that change, I doubt that you will see ~/foo in
your case, because Emacs doesn't know about the /cygdrive/c/ wizardry,
unless cygwin-mount will help it.  And cygwin-mount isn't part of
Emacs, so we cannot fix it to support that.

And Grep cannot keep the ~/foo notation at all, because ~ is a shell
construct; applications and filesystems don't understand it, in
general (Emacs is an exception).





  reply	other threads:[~2011-05-11 18:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 15:33 bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/ Drew Adams
2011-05-11 18:05 ` Eli Zaretskii [this message]
2011-05-11 18:24   ` Drew Adams
2011-05-12 11:52     ` Andy Moreton
2011-05-12 13:58       ` Drew Adams
2011-05-12 14:34         ` Andy Moreton
2011-05-12 15:34           ` Drew Adams
2011-05-12 18:06             ` Andy Moreton
2017-03-25  0:36               ` npostavs
2011-05-12 14:23       ` Eli Zaretskii
2011-05-12 15:09         ` Andy Moreton
2011-05-12 17:10           ` Eli Zaretskii
2011-05-12  0:54 ` Stefan Monnier
2011-05-12 13:42   ` Drew Adams
2011-05-12 14:32     ` Jason Rumney
2011-05-12 15:34       ` Drew Adams

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=83hb91glka.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=8653@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.