From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8653: 24.0.50; `M-x grep' output converts `~' to /cygdrive/c/... Date: Wed, 11 May 2011 21:05:09 +0300 Message-ID: <83hb91glka.fsf@gnu.org> References: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1305137232 28730 80.91.229.12 (11 May 2011 18:07:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 May 2011 18:07:12 +0000 (UTC) Cc: 8653@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 11 20:07:08 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QKDoQ-0002ox-W4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 May 2011 20:07:07 +0200 Original-Received: from localhost ([::1]:34596 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDoQ-0005jh-Az for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 May 2011 14:07:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDoN-0005jZ-TY for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 14:07:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKDoM-0006C8-TW for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 14:07:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKDoM-0006C1-RT for bug-gnu-emacs@gnu.org; Wed, 11 May 2011 14:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QKDoM-0007h4-DZ; Wed, 11 May 2011 14:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2011 18:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8653 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8653-submit@debbugs.gnu.org id=B8653.130513718029519 (code B ref 8653); Wed, 11 May 2011 18:07:02 +0000 Original-Received: (at 8653) by debbugs.gnu.org; 11 May 2011 18:06:20 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKDnf-0007g4-D6 for submit@debbugs.gnu.org; Wed, 11 May 2011 14:06:19 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QKDnd-0007fl-BT for 8653@debbugs.gnu.org; Wed, 11 May 2011 14:06:18 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LL100D00M0SJM00@a-mtaout20.012.net.il> for 8653@debbugs.gnu.org; Wed, 11 May 2011 21:05:29 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.228.234.175]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LL100CDJM93Y170@a-mtaout20.012.net.il>; Wed, 11 May 2011 21:05:29 +0300 (IDT) In-reply-to: <55A3422131174F54851B6C39BA4C9E25@us.oracle.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 11 May 2011 14:07:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46394 Archived-At: > From: "Drew Adams" > 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).